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; code.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-code.txt's 'peak memory ... MB' is in MiB.

# this branch at f2aa1165, QWEN36_FAST_EXPERTS unset

model <model>; text code.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:32:48 chrome=0 System-wide memory free percentage: 72% swap_used=366.56M swapouts=85072

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

## warmup (warm-up, discarded)
### before the run (date, thermal state, swap, wait)
2026-10-21 21:33:48
0
swap_used=366.56M swapouts=85072
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.708,23.63,32,296.7,8.257,10344,10.64,2ca892c20f9dfdfa,24b5cd77c9db23fb,2.85014,0.406
512,512,4.360,117.44,32,345.3,7.994,13449,15.91,31fb860c5d30aac5,561100505ac9d4ca,2.59694,0.562

### 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
[bench] Metal graph ready in 0.21 s; text 6959 tokens; lengths 64,512; gen 32; each length from an empty state
[bench] peak RSS 1.53 GB
       15.87 real         4.30 user        11.92 sys
          1643003904  maximum resident set size
                   0  average shared memory size
                   0  average unshared data size
                   0  average unshared stack size
              137270  page reclaims
               10252  page faults
                   0  swaps
                   0  block input operations
                   0  block output operations
                   0  messages sent
                   0  messages received
                   0  signals received
                1004  voluntary context switches
              342301  involuntary context switches
         50740221299  instructions retired
         46172648986  cycles elapsed
          1031298752  peak memory footprint

### after the run
2026-10-21 21:34:04
0
swap_used=366.56M swapouts=85072

## v0-run1
### before the run (date, thermal state, swap, wait)
2026-10-21 21:35:05
0
swap_used=366.56M swapouts=85072
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.773,23.08,32,284.9,8.193,10344,10.83,2ca892c20f9dfdfa,24b5cd77c9db23fb,2.85014,0.406
512,512,4.534,112.93,32,310.5,8.054,13449,15.87,31fb860c5d30aac5,561100505ac9d4ca,2.59694,0.562

### 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
[bench] Metal graph ready in 0.19 s; text 6959 tokens; lengths 64,512; gen 32; each length from an empty state
[bench] peak RSS 1.55 GB
       16.06 real         4.43 user        12.05 sys
          1661927424  maximum resident set size
                   0  average shared memory size
                   0  average unshared data size
                   0  average unshared stack size
              138121  page reclaims
               13828  page faults
                   0  swaps
                   0  block input operations
                   0  block output operations
                   0  messages sent
                   0  messages received
                   0  signals received
                1082  voluntary context switches
              349060  involuntary context switches
         52191423716  instructions retired
         46815175146  cycles elapsed
          1031724608  peak memory footprint

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

## v0-run2
### before the run (date, thermal state, swap, wait)
2026-10-21 21:38:50
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.703,23.68,32,278.9,8.099,10344,10.59,2ca892c20f9dfdfa,24b5cd77c9db23fb,2.85014,0.406
512,512,4.477,114.35,32,330.6,7.973,13449,15.94,31fb860c5d30aac5,561100505ac9d4ca,2.59694,0.562

### 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
[bench] Metal graph ready in 0.19 s; text 6959 tokens; lengths 64,512; gen 32; each length from an empty state
[bench] peak RSS 1.53 GB
       16.02 real         4.32 user        11.99 sys
          1642414080  maximum resident set size
                   0  average shared memory size
                   0  average unshared data size
                   0  average unshared stack size
              134424  page reclaims
               13877  page faults
                   0  swaps
                   0  block input operations
                   0  block output operations
                   0  messages sent
                   0  messages received
                   0  signals received
                 885  voluntary context switches
              346638  involuntary context switches
         50902616756  instructions retired
         46366058014  cycles elapsed
          1031806528  peak memory footprint

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

## v0-run3
### before the run (date, thermal state, swap, wait)
2026-10-21 21:40:06
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.764,23.16,32,315.9,7.894,10344,10.89,2ca892c20f9dfdfa,24b5cd77c9db23fb,2.85014,0.406
512,512,4.725,108.36,32,319.2,7.888,13449,16.54,31fb860c5d30aac5,561100505ac9d4ca,2.59694,0.562

### 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
[bench] Metal graph ready in 0.19 s; text 6959 tokens; lengths 64,512; gen 32; each length from an empty state
[bench] peak RSS 1.51 GB
       16.50 real         4.30 user        11.97 sys
          1624555520  maximum resident set size
                   0  average shared memory size
                   0  average unshared data size
                   0  average unshared stack size
              134374  page reclaims
               17340  page faults
                   0  swaps
                   0  block input operations
                   0  block output operations
                   0  messages sent
                   0  messages received
                   0  signals received
                1087  voluntary context switches
              350636  involuntary context switches
         51427114653  instructions retired
         46352381533  cycles elapsed
          1030971136  peak memory footprint

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

## v0-run4
### before the run (date, thermal state, swap, wait)
2026-10-21 21:43:53
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.768,23.12,32,330.3,8.082,10344,10.56,2ca892c20f9dfdfa,24b5cd77c9db23fb,2.85014,0.406
512,512,4.502,113.72,32,329.1,7.989,13449,15.90,31fb860c5d30aac5,561100505ac9d4ca,2.59694,0.562

### 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
[bench] Metal graph ready in 0.18 s; text 6959 tokens; lengths 64,512; gen 32; each length from an empty state
[bench] peak RSS 1.51 GB
       16.16 real         4.36 user        12.13 sys
          1618903040  maximum resident set size
                   0  average shared memory size
                   0  average unshared data size
                   0  average unshared stack size
              138805  page reclaims
               13021  page faults
                   0  swaps
                   0  block input operations
                   0  block output operations
                   0  messages sent
                   0  messages received
                   0  signals received
                 874  voluntary context switches
              348665  involuntary context switches
         51276655208  instructions retired
         46759200004  cycles elapsed
          1031593536  peak memory footprint

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