Paths shortened: <model> is the model directory; bin-pr10/ holds the harness; launchers/base/qwen36-bench runs it as it is, launchers/fast5/qwen36-bench with QWEN36_FAST_EXPERTS=5; chat.txt is the text. Units: /usr/bin/time -l gives bytes; the engine's own lines ('[bench] peak RSS', '[dense-i8] ... GB f32 freed') are in GiB, and summary-chat.txt's 'peak memory ... MB' is in MiB.

# this branch at f2aa1165, QWEN36_FAST_EXPERTS=5

model <model>; text chat.txt; lengths 64,512; gen 32; runs 4; extra env: TEACHER=1
cooldown before every run: 60 seconds, after waiting for thermal state 0: yes, at most 900s; thermal states: 0 nominal, 1 fair, 2 serious, 3 critical
v0: launchers/base/qwen36-bench ()
v1: launchers/fast5/qwen36-bench ()
order: the binaries' order turns at every round (ABBA)

host before the runs: 2026-10-21 21:46:09 chrome=0 System-wide memory free percentage: 74% swap_used=393.38M swapouts=86788

host after the runs: 2026-10-21 21:57:34 chrome=0 System-wide memory free percentage: 71% swap_used=393.38M swapouts=86788

## v1-run1
### before the run (date, thermal state, swap, wait)
2026-10-21 21:49:44
0
swap_used=393.38M swapouts=86788
waited for state 0: 0s

### harness output
ctx_tokens,prefill_tokens,prefill_s,prefill_tps,gen_tokens,gen_first_ms,gen_steady_tps,expert_miss,disk_s,fingerprint,tokens,nll,top1
64,64,3.088,20.73,32,310.3,10.291,8415,9.46,ba409f6417f99de4,f55beb9e5e71ac78,2.08935,0.594
512,512,4.283,119.55,32,252.2,10.154,10887,13.47,9ea1e6bb7fab7f19,99b2135657766012,1.90591,0.500

### engine log and /usr/bin/time -l
[tok] loaded 248044 pieces (max id 248069) from <model>/tokenizer.json
[meta] loaded: q_heads=16 kv_heads=2 head_dim=256 q_head_dim=512 k_head_dim=256 v_head_dim=256 o_in=4096 rotary_dim=64 n_experts=256 topk=8 inter=512 shared_inter=512 n_group=1 topk_group=1 attn_output_gate=1 n_active=10
[meta] DeltaNet: vheads=32 kheads=16 kdim=128 vdim=128 convk=4 conv_dim=8192
[qwen-dense] <model>/canonical.qc: 291 INT8 matrices (1941078016 bytes) checked in 0.036 s, read instead of converted
[qwen36] embedding: rows read in place from the checkpoint, COLI_EMBED_MMAP=0 builds the f32 table
[dense-i8] 291 matrices read from canonical.qc, no f32 copies
[qwen-experts] <model>/experts.qc: 10240 planar records, 1671168 bytes each (scales as 16-bit codes); checkpoint metadata and shard samples checked in 0.011 s
[qwen-cache] global_bytes=536150016 slots=303 slot_bytes=1769472 decode_policy=expected-reuse
[qwen36-metal] graph ready on Apple M1: rows<=2048 dense=mapped kv=half (1941078016 bytes mapped); the experts in the global cache, not in the per-layer one
[qwen36-metal] QWEN36_FAST_EXPERTS=5: in decode a token uses its 5 likeliest routed experts, the rest of its top-8 only when the expert cache holds them
[bench] Metal graph ready in 0.18 s; text 1590 tokens; lengths 64,512; gen 32; each length from an empty state
[bench] peak RSS 1.55 GB
       14.51 real         4.05 user        10.20 sys
          1663746048  maximum resident set size
                   0  average shared memory size
                   0  average unshared data size
                   0  average unshared stack size
              151469  page reclaims
                7932  page faults
                   0  swaps
                   0  block input operations
                   0  block output operations
                   0  messages sent
                   0  messages received
                   0  signals received
                1002  voluntary context switches
              313747  involuntary context switches
         46157237784  instructions retired
         40251406564  cycles elapsed
          1032232896  peak memory footprint

### after the run
2026-10-21 21:49:58
0
swap_used=393.38M swapouts=86788

## v1-run2
### before the run (date, thermal state, swap, wait)
2026-10-21 21:50:59
0
swap_used=393.38M swapouts=86788
waited for state 0: 0s

### harness output
ctx_tokens,prefill_tokens,prefill_s,prefill_tps,gen_tokens,gen_first_ms,gen_steady_tps,expert_miss,disk_s,fingerprint,tokens,nll,top1
64,64,3.037,21.07,32,278.4,10.234,8415,9.26,ba409f6417f99de4,f55beb9e5e71ac78,2.08935,0.594
512,512,4.591,111.51,32,234.5,9.985,10887,14.10,9ea1e6bb7fab7f19,99b2135657766012,1.90591,0.500

### engine log and /usr/bin/time -l
[tok] loaded 248044 pieces (max id 248069) from <model>/tokenizer.json
[meta] loaded: q_heads=16 kv_heads=2 head_dim=256 q_head_dim=512 k_head_dim=256 v_head_dim=256 o_in=4096 rotary_dim=64 n_experts=256 topk=8 inter=512 shared_inter=512 n_group=1 topk_group=1 attn_output_gate=1 n_active=10
[meta] DeltaNet: vheads=32 kheads=16 kdim=128 vdim=128 convk=4 conv_dim=8192
[qwen-dense] <model>/canonical.qc: 291 INT8 matrices (1941078016 bytes) checked in 0.036 s, read instead of converted
[qwen36] embedding: rows read in place from the checkpoint, COLI_EMBED_MMAP=0 builds the f32 table
[dense-i8] 291 matrices read from canonical.qc, no f32 copies
[qwen-experts] <model>/experts.qc: 10240 planar records, 1671168 bytes each (scales as 16-bit codes); checkpoint metadata and shard samples checked in 0.011 s
[qwen-cache] global_bytes=536150016 slots=303 slot_bytes=1769472 decode_policy=expected-reuse
[qwen36-metal] graph ready on Apple M1: rows<=2048 dense=mapped kv=half (1941078016 bytes mapped); the experts in the global cache, not in the per-layer one
[qwen36-metal] QWEN36_FAST_EXPERTS=5: in decode a token uses its 5 likeliest routed experts, the rest of its top-8 only when the expert cache holds them
[bench] Metal graph ready in 0.19 s; text 1590 tokens; lengths 64,512; gen 32; each length from an empty state
[bench] peak RSS 1.52 GB
       14.79 real         4.06 user        10.28 sys
          1635696640  maximum resident set size
                   0  average shared memory size
                   0  average unshared data size
                   0  average unshared stack size
              156913  page reclaims
               10416  page faults
                   0  swaps
                   0  block input operations
                   0  block output operations
                   0  messages sent
                   0  messages received
                   0  signals received
                 919  voluntary context switches
              318370  involuntary context switches
         46483487930  instructions retired
         40541158765  cycles elapsed
          1032314880  peak memory footprint

### after the run
2026-10-21 21:51:13
0
swap_used=393.38M swapouts=86788

## v1-run3
### before the run (date, thermal state, swap, wait)
2026-10-21 21:54:47
0
swap_used=393.38M swapouts=86788
waited for state 0: 0s

### harness output
ctx_tokens,prefill_tokens,prefill_s,prefill_tps,gen_tokens,gen_first_ms,gen_steady_tps,expert_miss,disk_s,fingerprint,tokens,nll,top1
64,64,2.940,21.77,32,316.2,10.128,8415,9.38,ba409f6417f99de4,f55beb9e5e71ac78,2.08935,0.594
512,512,4.394,116.51,32,221.4,10.174,10887,13.54,9ea1e6bb7fab7f19,99b2135657766012,1.90591,0.500

### engine log and /usr/bin/time -l
[tok] loaded 248044 pieces (max id 248069) from <model>/tokenizer.json
[meta] loaded: q_heads=16 kv_heads=2 head_dim=256 q_head_dim=512 k_head_dim=256 v_head_dim=256 o_in=4096 rotary_dim=64 n_experts=256 topk=8 inter=512 shared_inter=512 n_group=1 topk_group=1 attn_output_gate=1 n_active=10
[meta] DeltaNet: vheads=32 kheads=16 kdim=128 vdim=128 convk=4 conv_dim=8192
[qwen-dense] <model>/canonical.qc: 291 INT8 matrices (1941078016 bytes) checked in 0.036 s, read instead of converted
[qwen36] embedding: rows read in place from the checkpoint, COLI_EMBED_MMAP=0 builds the f32 table
[dense-i8] 291 matrices read from canonical.qc, no f32 copies
[qwen-experts] <model>/experts.qc: 10240 planar records, 1671168 bytes each (scales as 16-bit codes); checkpoint metadata and shard samples checked in 0.011 s
[qwen-cache] global_bytes=536150016 slots=303 slot_bytes=1769472 decode_policy=expected-reuse
[qwen36-metal] graph ready on Apple M1: rows<=2048 dense=mapped kv=half (1941078016 bytes mapped); the experts in the global cache, not in the per-layer one
[qwen36-metal] QWEN36_FAST_EXPERTS=5: in decode a token uses its 5 likeliest routed experts, the rest of its top-8 only when the expert cache holds them
[bench] Metal graph ready in 0.18 s; text 1590 tokens; lengths 64,512; gen 32; each length from an empty state
[bench] peak RSS 1.46 GB
       14.48 real         4.06 user        10.19 sys
          1571143680  maximum resident set size
                   0  average shared memory size
                   0  average unshared data size
                   0  average unshared stack size
              148203  page reclaims
               14004  page faults
                   0  swaps
                   0  block input operations
                   0  block output operations
                   0  messages sent
                   0  messages received
                   0  signals received
                 884  voluntary context switches
              314813  involuntary context switches
         46283269680  instructions retired
         40315821954  cycles elapsed
          1031184448  peak memory footprint

### after the run
2026-10-21 21:55:02
0
swap_used=393.38M swapouts=86788

## v1-run4
### before the run (date, thermal state, swap, wait)
2026-10-21 21:56:02
0
swap_used=393.38M swapouts=86788
waited for state 0: 0s

### harness output
ctx_tokens,prefill_tokens,prefill_s,prefill_tps,gen_tokens,gen_first_ms,gen_steady_tps,expert_miss,disk_s,fingerprint,tokens,nll,top1
64,64,3.035,21.09,32,259.0,10.171,8415,9.26,ba409f6417f99de4,f55beb9e5e71ac78,2.08935,0.594
512,512,4.460,114.79,32,309.3,9.817,10887,13.53,9ea1e6bb7fab7f19,99b2135657766012,1.90591,0.500

### engine log and /usr/bin/time -l
[tok] loaded 248044 pieces (max id 248069) from <model>/tokenizer.json
[meta] loaded: q_heads=16 kv_heads=2 head_dim=256 q_head_dim=512 k_head_dim=256 v_head_dim=256 o_in=4096 rotary_dim=64 n_experts=256 topk=8 inter=512 shared_inter=512 n_group=1 topk_group=1 attn_output_gate=1 n_active=10
[meta] DeltaNet: vheads=32 kheads=16 kdim=128 vdim=128 convk=4 conv_dim=8192
[qwen-dense] <model>/canonical.qc: 291 INT8 matrices (1941078016 bytes) checked in 0.036 s, read instead of converted
[qwen36] embedding: rows read in place from the checkpoint, COLI_EMBED_MMAP=0 builds the f32 table
[dense-i8] 291 matrices read from canonical.qc, no f32 copies
[qwen-experts] <model>/experts.qc: 10240 planar records, 1671168 bytes each (scales as 16-bit codes); checkpoint metadata and shard samples checked in 0.011 s
[qwen-cache] global_bytes=536150016 slots=303 slot_bytes=1769472 decode_policy=expected-reuse
[qwen36-metal] graph ready on Apple M1: rows<=2048 dense=mapped kv=half (1941078016 bytes mapped); the experts in the global cache, not in the per-layer one
[qwen36-metal] QWEN36_FAST_EXPERTS=5: in decode a token uses its 5 likeliest routed experts, the rest of its top-8 only when the expert cache holds them
[bench] Metal graph ready in 0.19 s; text 1590 tokens; lengths 64,512; gen 32; each length from an empty state
[bench] peak RSS 1.41 GB
       14.79 real         4.14 user        10.37 sys
          1519157248  maximum resident set size
                   0  average shared memory size
                   0  average unshared data size
                   0  average unshared stack size
              138396  page reclaims
               18231  page faults
                   0  swaps
                   0  block input operations
                   0  block output operations
                   0  messages sent
                   0  messages received
                   0  signals received
                 940  voluntary context switches
              317762  involuntary context switches
         46430894667  instructions retired
         40953487327  cycles elapsed
          1032445888  peak memory footprint

### after the run
2026-10-21 21:56:17
0
swap_used=393.38M swapouts=86788
