Paths shortened: <model> is the model directory; bin-pr11/ holds the harness; launchers/fast5-mtp0/qwen36-bench runs it with QWEN36_FAST_EXPERTS=5 QWEN36_MTP=0, launchers/fast5-mtp/qwen36-bench with QWEN36_FAST_EXPERTS=5; <model+head> is a directory of links to the model's files with model-mtp.safetensors beside them; guxiang.txt is the text. Units: /usr/bin/time -l gives bytes; the engine's own line ('[bench] peak RSS') is in GiB, and summary-fast5-chinese.txt's 'peak memory ... MB' is in MiB.

# this branch at c8fc51fc, the default (fast) kernels with QWEN36_FAST_EXPERTS=5, QWEN36_MTP unset

model <model+head>; text guxiang.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/fast5-mtp0/qwen36-bench (commit c8fc51fcd3f1a7b725b26c2a103fdd52bbca4138 (fast mode, QWEN36_FAST_EXPERTS=5, QWEN36_MTP=0))
v1: launchers/fast5-mtp/qwen36-bench (commit c8fc51fcd3f1a7b725b26c2a103fdd52bbca4138 (fast mode, QWEN36_FAST_EXPERTS=5, the MTP head's drafts))
order: the binaries' order turns at every round (ABBA)

host before the runs: 2026-10-22 13:14:33 chrome=0 System-wide memory free percentage: 70% swap_used=361.38M swapouts=86788

host after the runs: 2026-10-22 13:25:32 chrome=0 System-wide memory free percentage: 70% swap_used=361.38M swapouts=86788

## v1-run1
### before the run (date, thermal state, swap, wait)
2026-10-22 13:18:00
0
swap_used=361.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.352,27.21,32,230.1,11.326,6654,6.91,d15bdccc05841fd3,266a8cefdde78c56,0.03838,1.000
512,512,3.905,131.10,32,206.2,11.523,8877,11.59,c59e883968f11bb6,8adbbd1531b837f3,0.01574,1.000

### engine log and /usr/bin/time -l
[tok] loaded 248044 pieces (max id 248069) from <model+head>/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+head>/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+head>/experts.qc: 10240 planar records, 1671168 bytes each (scales as 16-bit codes); checkpoint metadata and shard samples checked in 0.011 s
[qwen36-mtp] the MTP head drafts (speculative decoding; QWEN36_MTP=0 turns it off)
[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.27 s; text 3545 tokens; lengths 64,512; gen 32; each length from an empty state
[qwen36 mtp] 64 tokens: 0 drafts below the confidence 0.60 left out, 30 steps without the head
[qwen36 mtp] 512 tokens: 0 drafts below the confidence 0.60 left out, 30 steps without the head
[bench] peak RSS 1.51 GB
       12.76 real         3.81 user         8.28 sys
          1616494592  maximum resident set size
                   0  average shared memory size
                   0  average unshared data size
                   0  average unshared stack size
              142056  page reclaims
                9752  page faults
                   0  swaps
                   0  block input operations
                   0  block output operations
                   0  messages sent
                   0  messages received
                   0  signals received
                 843  voluntary context switches
              268952  involuntary context switches
         40512029879  instructions retired
         33473182877  cycles elapsed
          1164517312  peak memory footprint

### after the run
2026-10-22 13:18:13
0
swap_used=361.38M swapouts=86788

## v1-run2
### before the run (date, thermal state, swap, wait)
2026-10-22 13:19:13
0
swap_used=361.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.353,27.20,32,265.6,11.311,6654,6.88,d15bdccc05841fd3,266a8cefdde78c56,0.03838,1.000
512,512,3.895,131.45,32,201.9,11.391,8877,11.67,c59e883968f11bb6,8adbbd1531b837f3,0.01574,1.000

### engine log and /usr/bin/time -l
[tok] loaded 248044 pieces (max id 248069) from <model+head>/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+head>/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+head>/experts.qc: 10240 planar records, 1671168 bytes each (scales as 16-bit codes); checkpoint metadata and shard samples checked in 0.011 s
[qwen36-mtp] the MTP head drafts (speculative decoding; QWEN36_MTP=0 turns it off)
[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.28 s; text 3545 tokens; lengths 64,512; gen 32; each length from an empty state
[qwen36 mtp] 64 tokens: 0 drafts below the confidence 0.60 left out, 30 steps without the head
[qwen36 mtp] 512 tokens: 0 drafts below the confidence 0.60 left out, 30 steps without the head
[bench] peak RSS 1.50 GB
       12.83 real         3.80 user         8.34 sys
          1615298560  maximum resident set size
                   0  average shared memory size
                   0  average unshared data size
                   0  average unshared stack size
              142792  page reclaims
               10448  page faults
                   0  swaps
                   0  block input operations
                   0  block output operations
                   0  messages sent
                   0  messages received
                   0  signals received
                 941  voluntary context switches
              272018  involuntary context switches
         40670707903  instructions retired
         33737237974  cycles elapsed
          1164845056  peak memory footprint

### after the run
2026-10-22 13:19:26
0
swap_used=361.38M swapouts=86788

## v1-run3
### before the run (date, thermal state, swap, wait)
2026-10-22 13:22:52
0
swap_used=361.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.356,27.16,32,209.9,11.282,6654,6.88,d15bdccc05841fd3,266a8cefdde78c56,0.03838,1.000
512,512,3.951,129.60,32,204.3,11.493,8877,11.59,c59e883968f11bb6,8adbbd1531b837f3,0.01574,1.000

### engine log and /usr/bin/time -l
[tok] loaded 248044 pieces (max id 248069) from <model+head>/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+head>/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+head>/experts.qc: 10240 planar records, 1671168 bytes each (scales as 16-bit codes); checkpoint metadata and shard samples checked in 0.011 s
[qwen36-mtp] the MTP head drafts (speculative decoding; QWEN36_MTP=0 turns it off)
[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.29 s; text 3545 tokens; lengths 64,512; gen 32; each length from an empty state
[qwen36 mtp] 64 tokens: 0 drafts below the confidence 0.60 left out, 30 steps without the head
[qwen36 mtp] 512 tokens: 0 drafts below the confidence 0.60 left out, 30 steps without the head
[bench] peak RSS 1.49 GB
       12.84 real         3.83 user         8.37 sys
          1604698112  maximum resident set size
                   0  average shared memory size
                   0  average unshared data size
                   0  average unshared stack size
              141084  page reclaims
               16335  page faults
                   0  swaps
                   0  block input operations
                   0  block output operations
                   0  messages sent
                   0  messages received
                   0  signals received
                1000  voluntary context switches
              270225  involuntary context switches
         40744933799  instructions retired
         33811470861  cycles elapsed
          1165320128  peak memory footprint

### after the run
2026-10-22 13:23:05
0
swap_used=361.38M swapouts=86788

## v1-run4
### before the run (date, thermal state, swap, wait)
2026-10-22 13:24:06
0
swap_used=361.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.387,26.81,32,258.3,11.306,6654,6.89,d15bdccc05841fd3,266a8cefdde78c56,0.03838,1.000
512,512,4.002,127.94,32,214.1,11.428,8877,11.77,c59e883968f11bb6,8adbbd1531b837f3,0.01574,1.000

### engine log and /usr/bin/time -l
[tok] loaded 248044 pieces (max id 248069) from <model+head>/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+head>/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+head>/experts.qc: 10240 planar records, 1671168 bytes each (scales as 16-bit codes); checkpoint metadata and shard samples checked in 0.011 s
[qwen36-mtp] the MTP head drafts (speculative decoding; QWEN36_MTP=0 turns it off)
[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.28 s; text 3545 tokens; lengths 64,512; gen 32; each length from an empty state
[qwen36 mtp] 64 tokens: 0 drafts below the confidence 0.60 left out, 30 steps without the head
[qwen36 mtp] 512 tokens: 0 drafts below the confidence 0.60 left out, 30 steps without the head
[bench] peak RSS 1.53 GB
       12.97 real         3.80 user         8.33 sys
          1644773376  maximum resident set size
                   0  average shared memory size
                   0  average unshared data size
                   0  average unshared stack size
              147892  page reclaims
                9362  page faults
                   0  swaps
                   0  block input operations
                   0  block output operations
                   0  messages sent
                   0  messages received
                   0  signals received
                 907  voluntary context switches
              271822  involuntary context switches
         40745084232  instructions retired
         33693748353  cycles elapsed
          1164517376  peak memory footprint

### after the run
2026-10-22 13:24:19
0
swap_used=361.38M swapouts=86788
