okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
6e1085c1d
main
1[strata] 2026-10-09 04:47:32 engine started: /home/bench/src/strata-issue1670-p4-roofline/build/strata --serve --expert-profile /home/bench/src/strata-p4/data/expert-profile.bin --expert-cache auto --prefill 512 --kv int8 --pool-workers 27 --adapt-every 0 --adapt-swaps 64 --pcie-frac 0 --vram-reserve-mib 1024 --mtp /home/bench/src/strata-p4/mtp/rt --spec 2 --spec-min-p 0.5 --suffix-draft 0 --prompt-cache 0 --conversation-cache-mib 0 --stats --pack /home/bench/CodiServer/pack --native /home/bench/models/ISTA-IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf --max-context 16384 --ple-io ram --kv-resident 16384 --rope-scaling none --rope-scale 1 --prompt-cache-root 512 --prompt-cache-every 16384 --ple-gguf /home/bench/models/ISTA-IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf --mmap-experts 2strata generate: this CPU has no AVX-512: the expert kernels run on AVX-2 (multi-token for the i-quant gate/up rows) 3strata generate: native pack: /home/bench/CodiServer/pack experts (largest blob 2.33 MB), token embedding IQ3_S in mapped host memory (260 MiB, 0.5 s) 4strata generate: 1466 MiB of weights loaded from /home/bench/CodiServer/pack in 0.4 s (302 canonical tensors skipped: served natively) 5strata generate: 300 native projection matrices, 1781.11 MiB of weights, in 0.5 s 6strata generate: PLE table locked in RAM (--ple-io ram) in 0.6 s 7strata generate: profile /home/bench/src/strata-p4/data/expert-profile.bin: 24576 ranked pairs, built for 24576 slots 8strata generate: PLE on, table 320001536 rows of /home/bench/models/ISTA-IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf 9strata mtp: draft layer loaded, 812 MiB of VRAM (experts 675, dense 111), files read in 0.48 s (1645 MiB/s) 10strata generate: experimental native Q5_K head, 437043200 bytes, in 0.1 s 11strata generate: GPU 0: Tesla P4, compute capability 6.1 12strata generate: experts via mmap (--mmap-experts; the GGUF shards in place, no experts.bin) 13strata generate: CPU pool tasks/phase: 84 (automatic), participating threads: 28 14strata generate: 27 pool workers on logical processors 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27, the host thread on 0 (draining too) (--host-core first) 15strata generate: expert cache auto: 2.38 GiB free, 1024 MiB reserved (+70 MiB for the draft head) -> 605 slots 16strata generate: expert cache 796 slots, 1.31 GiB of VRAM; policy is 17strata generate: the GPU computes the experts in the cache; it rounds differently from the CPU, 18 so a reply can differ slightly from a run without the cache (same quality: 19 bench/results/2026-09-27-cache-parity). 20 PROFILE, ranked by routing frequency, no eviction. 21strata generate: the profile fill asks for 256 pairs ahead (STRATA_FILL_AHEAD) 22strata generate: pre-filled 796 of 796 slots from the profile in 1.0 s (1416 MB/s); slot 0 verified 23strata generate: routing-aware prefetch on (the next layer's router, file tier) 24strata generate: R4 hit path ON - resident experts are computed on the GPU 25strata generate: 27 expert-pool workers + the host thread 26strata generate: session is up (engine 0.1.41) 27strata generate: token graph hit path: 796 resident experts, decided on the device 28strata serve: the prompt path borrows 220 CUDA0 cache slots (0.36 GiB) 29prefill: the GGUF experts are 100% in the page cache; the stager takes the RAM profile 30strata hc: CUDA0: the hyper-connection read runs as staged (the norm per token and stream, the down projection's activations staged ahead by cp.async); checked bit for bit against the plain read on this card (STRATA_HC_SPLIT=1 or 0 for the earlier ones) 31strata verify: window up to 2 tokens, 46.9 MiB of device buffers 32strata mtp: draft head over 40525 tokens (68.0 MiB) 33strata serve: 888 MiB of VRAM free with everything loaded 34strata prefill roofline: tokens 511 H2D_bytes 23690265600 copies 13369 unique_bytes 23690265600 unique_experts 13369 35strata prefill timing: 511 tokens, GPU timeline 8531 ms, wall 8542 ms, host staging 5454 ms: embed+steps 0 (0.0%) hc read 323 (3.8%) gdn 889 (10.4%) qsa proj 509 (6.0%) qsa indexer 0 (0.0%) qsa select 1 (0.0%) qsa attn 50 (0.6%) router+shared 123 (1.4%) host grouping 47 (0.6%) gather 263 (3.1%) wait copy 484 (5.7%) dequant 3222 (37.8%) gemm gate/up 1500 (17.6%) gemm down 568 (6.7%) combine 56 (0.7%) ple 12 (0.1%) gdn conv+gates 16 (0.2%) gdn recurrence 73 (0.9%) gdn out proj 394 (4.6%) 36strata prefill timing: host: chunk setup (PLE rows, the expert stream plan) 0 ms, waiting for each chunk 4 ms, after each chunk (the draft layer, progress) 10 ms, PLE 7 ms 37strata verify: capturing the 1-token window (768 MiB of VRAM free) 38strata verify: captured the 1-token window (upload no error, sync no error) 39strata serve: prompt 512 tokens = 0 reused + 512 read in 8610 ms (59.5 tok/s), 1 generated in 298 ms (3.4 tok/s), drafts accepted 0 of 0, 0 checkpoints 40strata serve: decode expert cache hit rate: 11.9% (57 hits / 480 lookups) 41strata serve: expert tiers: GPU 57 hits this request; since the start RAM 0 blobs, files 0 blobs 25844.0 MB read (the GGUF in place) 42strata serve: file tier I/O this request: the OS read 0.0 MB from storage (0 major faults) for 25844.0 MB of expert reads 43strata prefill roofline: tokens 4095 H2D_bytes 135417241600 copies 75562 unique_bytes 29545113600 unique_experts 16700 44strata prefill timing: 4095 tokens, GPU timeline 52420 ms, wall 52431 ms, host staging 32610 ms: embed+steps 74 (0.1%) hc read 2579 (4.9%) gdn 7091 (13.5%) qsa proj 4071 (7.8%) qsa indexer 1 (0.0%) qsa select 153 (0.3%) qsa attn 1801 (3.4%) router+shared 987 (1.9%) host grouping 270 (0.5%) gather 1418 (2.7%) wait copy 3242 (6.2%) dequant 14241 (27.2%) gemm gate/up 8754 (16.7%) gemm down 3342 (6.4%) combine 449 (0.9%) ple 86 (0.2%) gdn conv+gates 127 (0.2%) gdn recurrence 585 (1.1%) gdn out proj 3149 (6.0%) 45strata prefill timing: host: chunk setup (PLE rows, the expert stream plan) 0 ms, waiting for each chunk 49 ms, after each chunk (the draft layer, progress) 81 ms, PLE 8 ms 46strata serve: prompt 4096 tokens = 0 reused + 4096 read in 52561 ms (77.9 tok/s), 1 generated in 262 ms (3.8 tok/s), drafts accepted 0 of 0, 0 checkpoints 47strata serve: decode expert cache hit rate: 11.7% (56 hits / 480 lookups) 48strata serve: expert tiers: GPU 56 hits this request; since the start RAM 0 blobs, files 0 blobs 162392.0 MB read (the GGUF in place) 49strata serve: file tier I/O this request: the OS read 0.0 MB from storage (0 major faults) for 136548.0 MB of expert reads 50strata prefill roofline: tokens 8191 H2D_bytes 262788940800 copies 146553 unique_bytes 30871321600 unique_experts 17469 51strata prefill timing: 8191 tokens, GPU timeline 103643 ms, wall 103655 ms, host staging 85004 ms: embed+steps 158 (0.2%) hc read 5155 (5.0%) gdn 14195 (13.7%) qsa proj 8141 (7.9%) qsa indexer 2 (0.0%) qsa select 506 (0.5%) qsa attn 4184 (4.0%) router+shared 1976 (1.9%) host grouping 532 (0.5%) gather 2824 (2.7%) wait copy 6368 (6.1%) dequant 27193 (26.2%) gemm gate/up 17062 (16.5%) gemm down 6552 (6.3%) combine 898 (0.9%) ple 171 (0.2%) gdn conv+gates 254 (0.2%) gdn recurrence 1172 (1.1%) gdn out proj 6301 (6.1%) 52strata prefill timing: host: chunk setup (PLE rows, the expert stream plan) 1 ms, waiting for each chunk 109 ms, after each chunk (the draft layer, progress) 161 ms, PLE 10 ms 53strata serve: prompt 8192 tokens = 0 reused + 8192 read in 103784 ms (78.9 tok/s), 1 generated in 262 ms (3.8 tok/s), drafts accepted 0 of 0, 0 checkpoints 54strata serve: decode expert cache hit rate: 11.7% (56 hits / 480 lookups) 55strata serve: expert tiers: GPU 56 hits this request; since the start RAM 0 blobs, files 0 blobs 426311.5 MB read (the GGUF in place) 56strata serve: file tier I/O this request: the OS read 0.0 MB from storage (0 major faults) for 263919.4 MB of expert reads