Paths shortened: <GGUF model> is the directory coli import --mode link made for the GGUF (<GGUF dir>/ holds the file); bin-<commit>/ holds the harness built from that commit; each launchers/<name>/qwen36-bench is a script that sets SNAP and the variables in brackets and runs a harness. Units: /usr/bin/time -l gives bytes; the engine's '[bench] peak RSS' is in GiB; the summary's 'peak memory ... MB' is in MiB, and so is the engine's '1.95 MB per expert at most' (2,039,808 bytes, 2.04 MB).

# the change before's (08293922): the dense matrices' pages left to the system (a prompt's expert reads from the same file push them out of memory)

model set by each launcher; text promessi_sposi.txt; lengths 64,96; gen 32; runs 4; extra env: TEACHER=1 PHOTO=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/gguf-08293922/qwen36-bench (the change before (08293922), the defaults, SNAP=<GGUF model>)
v1: launchers/gguf/qwen36-bench (this change (627409db), the defaults, SNAP=<GGUF model>)
order: the binaries' order turns at every round (ABBA)

host before the runs: 2026-10-21 01:30:41 chrome=0 System-wide memory free percentage: 72% swap_used=534.88M swapouts=80676

host after the runs: 2026-10-21 01:42:14 chrome=0 System-wide memory free percentage: 71% swap_used=534.88M swapouts=80676

## warmup (warm-up, discarded)
### before the run (date, thermal state, swap, wait)
2026-10-21 01:31:42
0
swap_used=534.88M swapouts=80676
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,4.473,14.31,32,760.7,7.021,9072,9.03,d11eb1bbd30253bb,5cb23346ab6be1d8,2.72050,0.469
96,32,2.784,11.50,32,350.0,7.397,7395,6.59,2593b858c9d479f8,5e15539226e864e2,3.30737,0.469

### engine log and /usr/bin/time -l
[bench] GGUF <GGUF dir>/Qwen3.6-35B-A3B-UD-Q4_K_M.gguf: 1 file(s), 733 tensors
[tok] loaded 248320 pieces (max id 248319) from <GGUF model>/tokenizer.json
[gguf] qwen35moe: 40 layers (10 attention), hidden 2048, 256 experts top-8, inter 512, vocab 248320, DeltaNet v/k heads 32/16
[gguf] experts: layer 0 gate Q4_K up Q4_K down Q5_K, 1.95 MB per expert at most
[qwen-cache] global_bytes=536469504 slots=263 slot_bytes=2039808 decode_policy=expected-reuse
[qwen36-metal] expert cache below 256 retained slots: prompt experts load eight at a time
[qwen36-metal] graph ready on Apple M1: rows<=2048 dense=mapped kv=half (1910087680 bytes mapped); the experts in the global cache, not in the per-layer one
[qwen36-metal] GGUF: the dense matrices read in place as the file's ggml blocks, and the routed experts as its blocks too (layer 0: gate Q4_K, up Q4_K, down Q5_K), with no second quantization
[bench] Metal graph ready in 0.19 s; text 2312 tokens; lengths 64,96; gen 32; photo: each length continues the previous one
[bench] peak RSS 0.68 GB
[qwen36-metal] GGUF: 21706 products with the file's dense matrices and 11320 with its routed experts ran on the GPU
       17.62 real         1.36 user        10.82 sys
           734920704  maximum resident set size
                   0  average shared memory size
                   0  average unshared data size
                   0  average unshared stack size
              118333  page reclaims
                5064  page faults
                   0  swaps
                   0  block input operations
                   0  block output operations
                   0  messages sent
                   0  messages received
                   0  signals received
                 510  voluntary context switches
              282134  involuntary context switches
         30941203906  instructions retired
         35761757195  cycles elapsed
          1101402240  peak memory footprint

### after the run
2026-10-21 01:31:59
0
swap_used=534.88M swapouts=80676

## v0-run1
### before the run (date, thermal state, swap, wait)
2026-10-21 01:33:00
0
swap_used=534.88M swapouts=80676
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.801,16.84,32,1086.9,7.015,9072,9.07,d11eb1bbd30253bb,5cb23346ab6be1d8,2.72050,0.469
96,32,2.765,11.57,32,374.1,7.423,7395,6.74,2593b858c9d479f8,5e15539226e864e2,3.30737,0.469

### engine log and /usr/bin/time -l
[bench] GGUF <GGUF dir>/Qwen3.6-35B-A3B-UD-Q4_K_M.gguf: 1 file(s), 733 tensors
[tok] loaded 248320 pieces (max id 248319) from <GGUF model>/tokenizer.json
[gguf] qwen35moe: 40 layers (10 attention), hidden 2048, 256 experts top-8, inter 512, vocab 248320, DeltaNet v/k heads 32/16
[gguf] experts: layer 0 gate Q4_K up Q4_K down Q5_K, 1.95 MB per expert at most
[qwen-cache] global_bytes=536469504 slots=263 slot_bytes=2039808 decode_policy=expected-reuse
[qwen36-metal] expert cache below 256 retained slots: prompt experts load eight at a time
[qwen36-metal] graph ready on Apple M1: rows<=2048 dense=mapped kv=half (1910087680 bytes mapped); the experts in the global cache, not in the per-layer one
[qwen36-metal] GGUF: the dense matrices read in place as the file's ggml blocks, and the routed experts as its blocks too (layer 0: gate Q4_K, up Q4_K, down Q5_K), with no second quantization
[bench] Metal graph ready in 0.17 s; text 2312 tokens; lengths 64,96; gen 32; photo: each length continues the previous one
[bench] peak RSS 0.71 GB
[qwen36-metal] GGUF: 21706 products with the file's dense matrices and 11320 with its routed experts ran on the GPU
       17.18 real         1.30 user        10.56 sys
           757137408  maximum resident set size
                   0  average shared memory size
                   0  average unshared data size
                   0  average unshared stack size
              104557  page reclaims
                3279  page faults
                   0  swaps
                   0  block input operations
                   0  block output operations
                   0  messages sent
                   0  messages received
                   0  signals received
                 269  voluntary context switches
              275664  involuntary context switches
         29894481532  instructions retired
         34897035180  cycles elapsed
          1101156480  peak memory footprint

### after the run
2026-10-21 01:33:17
0
swap_used=534.88M swapouts=80676

## v0-run2
### before the run (date, thermal state, swap, wait)
2026-10-21 01:36:49
0
swap_used=534.88M swapouts=80676
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.932,16.27,32,1145.3,6.940,9072,9.05,d11eb1bbd30253bb,5cb23346ab6be1d8,2.72050,0.469
96,32,2.409,13.28,32,605.3,7.354,7395,6.80,2593b858c9d479f8,5e15539226e864e2,3.30737,0.469

### engine log and /usr/bin/time -l
[bench] GGUF <GGUF dir>/Qwen3.6-35B-A3B-UD-Q4_K_M.gguf: 1 file(s), 733 tensors
[tok] loaded 248320 pieces (max id 248319) from <GGUF model>/tokenizer.json
[gguf] qwen35moe: 40 layers (10 attention), hidden 2048, 256 experts top-8, inter 512, vocab 248320, DeltaNet v/k heads 32/16
[gguf] experts: layer 0 gate Q4_K up Q4_K down Q5_K, 1.95 MB per expert at most
[qwen-cache] global_bytes=536469504 slots=263 slot_bytes=2039808 decode_policy=expected-reuse
[qwen36-metal] expert cache below 256 retained slots: prompt experts load eight at a time
[qwen36-metal] graph ready on Apple M1: rows<=2048 dense=mapped kv=half (1910087680 bytes mapped); the experts in the global cache, not in the per-layer one
[qwen36-metal] GGUF: the dense matrices read in place as the file's ggml blocks, and the routed experts as its blocks too (layer 0: gate Q4_K, up Q4_K, down Q5_K), with no second quantization
[bench] Metal graph ready in 0.15 s; text 2312 tokens; lengths 64,96; gen 32; photo: each length continues the previous one
[bench] peak RSS 0.70 GB
[qwen36-metal] GGUF: 21706 products with the file's dense matrices and 11320 with its routed experts ran on the GPU
       17.34 real         1.28 user        10.58 sys
           753352704  maximum resident set size
                   0  average shared memory size
                   0  average unshared data size
                   0  average unshared stack size
              110608  page reclaims
                3400  page faults
                   0  swaps
                   0  block input operations
                   0  block output operations
                   0  messages sent
                   0  messages received
                   0  signals received
                 256  voluntary context switches
              278518  involuntary context switches
         30057914375  instructions retired
         34901036181  cycles elapsed
          1101222016  peak memory footprint

### after the run
2026-10-21 01:37:07
0
swap_used=534.88M swapouts=80676

## v0-run3
### before the run (date, thermal state, swap, wait)
2026-10-21 01:38:07
0
swap_used=534.88M swapouts=80676
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,4.413,14.50,32,755.5,7.002,9072,9.09,d11eb1bbd30253bb,5cb23346ab6be1d8,2.72050,0.469
96,32,2.412,13.27,32,349.2,7.498,7395,6.73,2593b858c9d479f8,5e15539226e864e2,3.30737,0.469

### engine log and /usr/bin/time -l
[bench] GGUF <GGUF dir>/Qwen3.6-35B-A3B-UD-Q4_K_M.gguf: 1 file(s), 733 tensors
[tok] loaded 248320 pieces (max id 248319) from <GGUF model>/tokenizer.json
[gguf] qwen35moe: 40 layers (10 attention), hidden 2048, 256 experts top-8, inter 512, vocab 248320, DeltaNet v/k heads 32/16
[gguf] experts: layer 0 gate Q4_K up Q4_K down Q5_K, 1.95 MB per expert at most
[qwen-cache] global_bytes=536469504 slots=263 slot_bytes=2039808 decode_policy=expected-reuse
[qwen36-metal] expert cache below 256 retained slots: prompt experts load eight at a time
[qwen36-metal] graph ready on Apple M1: rows<=2048 dense=mapped kv=half (1910087680 bytes mapped); the experts in the global cache, not in the per-layer one
[qwen36-metal] GGUF: the dense matrices read in place as the file's ggml blocks, and the routed experts as its blocks too (layer 0: gate Q4_K, up Q4_K, down Q5_K), with no second quantization
[bench] Metal graph ready in 0.20 s; text 2312 tokens; lengths 64,96; gen 32; photo: each length continues the previous one
[bench] peak RSS 0.71 GB
[qwen36-metal] GGUF: 21706 products with the file's dense matrices and 11320 with its routed experts ran on the GPU
       17.14 real         1.36 user        10.67 sys
           761430016  maximum resident set size
                   0  average shared memory size
                   0  average unshared data size
                   0  average unshared stack size
              117123  page reclaims
                4550  page faults
                   0  swaps
                   0  block input operations
                   0  block output operations
                   0  messages sent
                   0  messages received
                   0  signals received
                 480  voluntary context switches
              276823  involuntary context switches
         30706888177  instructions retired
         35355721329  cycles elapsed
          1101287552  peak memory footprint

### after the run
2026-10-21 01:38:24
0
swap_used=534.88M swapouts=80676

## v0-run4
### before the run (date, thermal state, swap, wait)
2026-10-21 01:41:57
0
swap_used=534.88M swapouts=80676
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.788,16.90,32,1175.1,6.945,9072,8.98,d11eb1bbd30253bb,5cb23346ab6be1d8,2.72050,0.469
96,32,2.738,11.69,32,390.5,7.435,7395,6.87,2593b858c9d479f8,5e15539226e864e2,3.30737,0.469

### engine log and /usr/bin/time -l
[bench] GGUF <GGUF dir>/Qwen3.6-35B-A3B-UD-Q4_K_M.gguf: 1 file(s), 733 tensors
[tok] loaded 248320 pieces (max id 248319) from <GGUF model>/tokenizer.json
[gguf] qwen35moe: 40 layers (10 attention), hidden 2048, 256 experts top-8, inter 512, vocab 248320, DeltaNet v/k heads 32/16
[gguf] experts: layer 0 gate Q4_K up Q4_K down Q5_K, 1.95 MB per expert at most
[qwen-cache] global_bytes=536469504 slots=263 slot_bytes=2039808 decode_policy=expected-reuse
[qwen36-metal] expert cache below 256 retained slots: prompt experts load eight at a time
[qwen36-metal] graph ready on Apple M1: rows<=2048 dense=mapped kv=half (1910087680 bytes mapped); the experts in the global cache, not in the per-layer one
[qwen36-metal] GGUF: the dense matrices read in place as the file's ggml blocks, and the routed experts as its blocks too (layer 0: gate Q4_K, up Q4_K, down Q5_K), with no second quantization
[bench] Metal graph ready in 0.17 s; text 2312 tokens; lengths 64,96; gen 32; photo: each length continues the previous one
[bench] peak RSS 0.73 GB
[qwen36-metal] GGUF: 21706 products with the file's dense matrices and 11320 with its routed experts ran on the GPU
       17.27 real         1.28 user        10.60 sys
           780713984  maximum resident set size
                   0  average shared memory size
                   0  average unshared data size
                   0  average unshared stack size
               99106  page reclaims
                3250  page faults
                   0  swaps
                   0  block input operations
                   0  block output operations
                   0  messages sent
                   0  messages received
                   0  signals received
                 207  voluntary context switches
              275907  involuntary context switches
         29732194679  instructions retired
         34937438660  cycles elapsed
          1101353152  peak memory footprint

### after the run
2026-10-21 01:42:14
0
swap_used=534.88M swapouts=80676

