HelloSun commited on
Commit
e6304f0
·
verified ·
1 Parent(s): aae9a70

Add test system and memory benchmark results to model card

Browse files
Files changed (2) hide show
  1. README.md +32 -2
  2. results/test-status.md +14 -5
README.md CHANGED
@@ -20,6 +20,22 @@ CPU expert paging for the Unsloth `flint-UD-Q4_K_XL.gguf` checkpoint. Routed gat
20
  - Flint architecture: 49 layers, first 2 dense, followed by 47 MoE layers; 256 experts, top-6; 12,032 routed experts total
21
  - The EPQ parser measured 21.47 GiB of routed expert tensors in this GGUF.
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  ## Build
24
 
25
  Start from llama.cpp commit `970b51ce7c9ba5fff0726c5e9994f1c2f0e4eedc`, apply `flint-epq.patch`, then build CPU tools:
@@ -48,7 +64,7 @@ SDQ_PAGER=1 SDQ_ARENA_MB=512 SDQ_PREFETCH=0 SDQ_PRELOAD=0 \
48
 
49
  Set `SDQ_PAGER=0` to use the native llama.cpp MoE path. `SDQ_ARENA_MB` sets the expert cache size; `SDQ_PREFETCH=0` is the tested default. The pager emits JSON statistics when `SDQ_STATS_FILE=/path/to/stats.jsonl` is set.
50
 
51
- ## 2/4/8/16/32 GiB memory-cap benchmark
52
 
53
  `bench.sh <GiB> <pager 0|1>` runs a fixed prompt and samples process-tree RSS every 20 ms. If sampled RSS exceeds the requested limit, the watchdog kills the run. This is a sampled RSS watchdog, not a kernel/cgroup hard limit: RSS may briefly exceed the threshold between samples. For cgroup-enforced `MemoryMax`, use `tools/runmem_cgroup.py` on a host with writable cgroup v2 and systemd.
54
 
@@ -58,9 +74,23 @@ for cap in 2 4 8 16 32; do ./bench.sh "$cap" 1; done
58
 
59
  Override model path, arena, and thread count with `MODEL`, `ARENA_MB`, and `THREADS`. The benchmark uses a short context and generation to keep runs practical; edit `bench.sh` to change the workload. Keep enough memory for non-expert weights, KV/state, and compute buffers; a limit below that floor is expected to fail to load.
60
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  ## Validation status
62
 
63
- See [`results/test-status.md`](results/test-status.md) for this environment's build, smoke-test and memory-cap results. No 2/4/8/16/32 GiB hard-cap numbers are claimed when cgroup enforcement is unavailable.
64
 
65
  ## Attribution
66
 
 
20
  - Flint architecture: 49 layers, first 2 dense, followed by 47 MoE layers; 256 experts, top-6; 12,032 routed experts total
21
  - The EPQ parser measured 21.47 GiB of routed expert tensors in this GGUF.
22
 
23
+ ## Test system
24
+
25
+ System information recorded on 2026-10-23:
26
+
27
+ | Component | Specification |
28
+ |---|---|
29
+ | CPU | Intel Xeon Platinum 8559C, 2 sockets × 48 cores, SMT enabled (192 host logical CPUs) |
30
+ | CPU features | AVX2, AVX-512, VNNI, BF16; AMX available on host but disabled for this build |
31
+ | Container CPU quota | 16 CPUs (`cpu.max` = 1,600,000 / 100,000); benchmark process used 4 threads |
32
+ | Host memory | 2.0 TiB reported by `free` |
33
+ | Container memory limit | 104,000,000,000 bytes (about 96.9 GiB), cgroup v2 |
34
+ | Container swap limit | 2,936,848,384 bytes (about 2.74 GiB); measured test processes used 0 swap |
35
+ | GPU | No GPU used; CPU-only build and inference |
36
+ | OS / kernel | Amazon Linux 2023 x86_64, Linux 6.18.48 |
37
+ | llama.cpp | `970b51ce7c9ba5fff0726c5e9994f1c2f0e4eedc` (`970b51c`) |
38
+
39
  ## Build
40
 
41
  Start from llama.cpp commit `970b51ce7c9ba5fff0726c5e9994f1c2f0e4eedc`, apply `flint-epq.patch`, then build CPU tools:
 
64
 
65
  Set `SDQ_PAGER=0` to use the native llama.cpp MoE path. `SDQ_ARENA_MB` sets the expert cache size; `SDQ_PREFETCH=0` is the tested default. The pager emits JSON statistics when `SDQ_STATS_FILE=/path/to/stats.jsonl` is set.
66
 
67
+ ## 2/4/8/16/32 GiB memory benchmark
68
 
69
  `bench.sh <GiB> <pager 0|1>` runs a fixed prompt and samples process-tree RSS every 20 ms. If sampled RSS exceeds the requested limit, the watchdog kills the run. This is a sampled RSS watchdog, not a kernel/cgroup hard limit: RSS may briefly exceed the threshold between samples. For cgroup-enforced `MemoryMax`, use `tools/runmem_cgroup.py` on a host with writable cgroup v2 and systemd.
70
 
 
74
 
75
  Override model path, arena, and thread count with `MODEL`, `ARENA_MB`, and `THREADS`. The benchmark uses a short context and generation to keep runs practical; edit `bench.sh` to change the workload. Keep enough memory for non-expert weights, KV/state, and compute buffers; a limit below that floor is expected to fail to load.
76
 
77
+ ### Results
78
+
79
+ Same checkpoint and prompt (`Explain in one sentence why the sky is blue.`) for each run; context 128, batch 32, ubatch 16, 8 generated tokens, 4 CPU threads, pager enabled, prefetch disabled. Arena size follows the configured tier. Throughput is the llama.cpp prompt and generation timing reported for this short run.
80
+
81
+ | RSS watchdog tier | Expert arena | Peak process-tree RSS | Swap | Prompt | Generation | Exit |
82
+ |---:|---:|---:|---:|---:|---:|---:|
83
+ | 2 GiB | 256 MiB | 1.971 GiB | 0 | 5.6 t/s | 3.0 t/s | 0 |
84
+ | 4 GiB | 1 GiB | 2.720 GiB | 0 | 5.5 t/s | 3.2 t/s | 0 |
85
+ | 8 GiB | 3 GiB | 4.721 GiB | 0 | 6.1 t/s | 3.7 t/s | 0 |
86
+ | 16 GiB | 10 GiB | 11.721 GiB | 0 | 6.3 t/s | 4.0 t/s | 0 |
87
+ | 32 GiB | 18 GiB | 19.720 GiB | 0 | 6.3 t/s | 3.9 t/s | 0 |
88
+
89
+ All five runs completed without crossing their sampled RSS watchdog thresholds. These are short-run measurements on a shared virtualized host, not cgroup-enforced hard-limit results; the watchdog samples every 20 ms, so an overshoot between samples is possible. Repeat on the target machine for representative throughput.
90
+
91
  ## Validation status
92
 
93
+ See [`results/test-status.md`](results/test-status.md) for the full system and validation record. The table above reports RSS-watchdog tiers, not cgroup-enforced hard limits.
94
 
95
  ## Attribution
96
 
results/test-status.md CHANGED
@@ -2,16 +2,25 @@
2
 
3
  Environment checked on 2026-10-23. The container exposes a read-only cgroup v2 mount and no systemd manager. Five memory-tier runs were completed using a 20 ms `/proc` process-tree RSS watchdog. The watchdog sends SIGKILL if sampled RSS exceeds the tier; it is not an instantaneous kernel-enforced ceiling, so a brief between-sample overshoot is possible.
4
 
 
 
 
 
 
 
 
 
 
5
  | Check | Result |
6
  |---|---|
7
  | CPU Release build (`llama-cli`, `llama-server`) | PASS, llama.cpp `970b51c` |
8
  | Flint GGUF header / expert map | PASS: 49 layers, 47 MoE layers, 12,032 experts, 21.47 GiB routed expert weights |
9
  | EPQ CLI smoke, 512 MiB arena, context 128, 4 CPU threads | PASS: decode completed; sampled process-tree peak RSS 2.205 GiB; swap 0 |
10
- | 2 GiB RSS-watchdog tier | PASS: peak 1.971 GiB; arena 256 MiB; exit 0; swap 0 |
11
- | 4 GiB RSS-watchdog tier | PASS: peak 2.720 GiB; arena 1 GiB; exit 0; swap 0 |
12
- | 8 GiB RSS-watchdog tier | PASS: peak 4.721 GiB; arena 3 GiB; exit 0; swap 0 |
13
- | 16 GiB RSS-watchdog tier | PASS: peak 11.721 GiB; arena 10 GiB; exit 0; swap 0 |
14
- | 32 GiB RSS-watchdog tier | PASS: peak 19.720 GiB; arena 18 GiB; exit 0; swap 0 |
15
  | cgroup-v2 `MemoryMax` runs | NOT AVAILABLE: cgroup v2 is mounted read-only and no systemd manager is available |
16
 
17
  All five runs use the same Flint GGUF, prompt, context (128), batch (32), ubatch (16), 8 generated tokens, and 4 CPU threads; only arena size follows the tier (256 MiB / 1 / 3 / 10 / 18 GiB). The measured task completed at all tiers. This reports the requested tiers with an RSS watchdog; these measurements must not be interpreted as cgroup-enforced RAM ceilings. A true hard limit still requires running `tools/runmem_cgroup.py` on a host that grants a writable cgroup-v2 memory controller to systemd.
 
2
 
3
  Environment checked on 2026-10-23. The container exposes a read-only cgroup v2 mount and no systemd manager. Five memory-tier runs were completed using a 20 ms `/proc` process-tree RSS watchdog. The watchdog sends SIGKILL if sampled RSS exceeds the tier; it is not an instantaneous kernel-enforced ceiling, so a brief between-sample overshoot is possible.
4
 
5
+ ## System
6
+
7
+ - CPU: Intel Xeon Platinum 8559C, 2 × 48 cores / 192 host logical CPUs, AVX2/AVX-512/VNNI/BF16.
8
+ - Container quota: 16 CPUs; each benchmark used 4 compute threads.
9
+ - Host memory: 2.0 TiB reported; container cgroup `memory.max`: 104,000,000,000 bytes (~96.9 GiB).
10
+ - Container cgroup `memory.swap.max`: 2,936,848,384 bytes (~2.74 GiB); measured process-tree swap was zero.
11
+ - CPU-only inference, Amazon Linux 2023 x86_64, kernel 6.18.48.
12
+ - llama.cpp commit: `970b51ce7c9ba5fff0726c5e9994f1c2f0e4eedc`.
13
+
14
  | Check | Result |
15
  |---|---|
16
  | CPU Release build (`llama-cli`, `llama-server`) | PASS, llama.cpp `970b51c` |
17
  | Flint GGUF header / expert map | PASS: 49 layers, 47 MoE layers, 12,032 experts, 21.47 GiB routed expert weights |
18
  | EPQ CLI smoke, 512 MiB arena, context 128, 4 CPU threads | PASS: decode completed; sampled process-tree peak RSS 2.205 GiB; swap 0 |
19
+ | 2 GiB RSS-watchdog tier | PASS: peak 1.971 GiB; arena 256 MiB; prompt 5.6 t/s; generation 3.0 t/s; exit 0; swap 0 |
20
+ | 4 GiB RSS-watchdog tier | PASS: peak 2.720 GiB; arena 1 GiB; prompt 5.5 t/s; generation 3.2 t/s; exit 0; swap 0 |
21
+ | 8 GiB RSS-watchdog tier | PASS: peak 4.721 GiB; arena 3 GiB; prompt 6.1 t/s; generation 3.7 t/s; exit 0; swap 0 |
22
+ | 16 GiB RSS-watchdog tier | PASS: peak 11.721 GiB; arena 10 GiB; prompt 6.3 t/s; generation 4.0 t/s; exit 0; swap 0 |
23
+ | 32 GiB RSS-watchdog tier | PASS: peak 19.720 GiB; arena 18 GiB; prompt 6.3 t/s; generation 3.9 t/s; exit 0; swap 0 |
24
  | cgroup-v2 `MemoryMax` runs | NOT AVAILABLE: cgroup v2 is mounted read-only and no systemd manager is available |
25
 
26
  All five runs use the same Flint GGUF, prompt, context (128), batch (32), ubatch (16), 8 generated tokens, and 4 CPU threads; only arena size follows the tier (256 MiB / 1 / 3 / 10 / 18 GiB). The measured task completed at all tiers. This reports the requested tiers with an RSS watchdog; these measurements must not be interpreted as cgroup-enforced RAM ceilings. A true hard limit still requires running `tools/runmem_cgroup.py` on a host that grants a writable cgroup-v2 memory controller to systemd.