From f1d4a545815f205a7b3deac806541f8317772b57 Mon Sep 17 00:00:00 2001 From: keptn42 Date: Mon, 5 Oct 2026 11:50:44 +0200 Subject: [PATCH] libavx/README: the resident n-gram table --- libavx/README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libavx/README.md b/libavx/README.md index 79f2d4f6..1dfdfb28 100644 --- a/libavx/README.md +++ b/libavx/README.md @@ -30,8 +30,15 @@ codes; below it, one code at a time. The row's layout hook only checks the table E4M3 with one bf16 scale, or the checkpoint's plain bf16 — and asks for no re-layout, because the gather reads the rows from the container file in the layout they are stored in. +With the op's `resident` parameter (`--ngram-table ram`) the first gather instead starts a copy of +the whole table into locked huge pages, in the background, and every gather reads the copy once it +is in place: 47.7 GiB of RAM for Flash-Next, checked against RLIMIT_MEMLOCK, MemAvailable and the +cgroup's memory.max before a byte is read. A process short of any of them says so and keeps +reading the file. + `rad-avx-check` runs the op over a file-backed table with two ranks and the reader racing, at -every level, and compares every row with the file's bytes. +every level, and compares every row with the file's bytes; and once more with `resident`, before +and after the copy is in place. ## The build is the dispatch