[GH-ISSUE #155] CUDA prompt speed, single RTX 5080 (Maya-S24): 106/279 tok/s at 2K/8K - prefill tuning headroom on consumer NVIDIA #55

Closed
opened 2026-10-29 21:19:50 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @zhanghuqqqq on GitHub (Oct 13, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/155

CUDA prompt speed, single RTX 5080 (Maya-S24): 106 / 279 tok/s at 2K / 8K — prefill tuning headroom on consumer NVIDIA

Hardware: RTX 5080 16 GB · 2×24 GB DDR5-6000 (47 GB) · Ryzen 7 9800X3D (8C/16T, AVX-512) · Windows 11 · Maya v1.1.4 (commit f4d13e1, engine built locally, CUDA 13.4.1 / MSVC 14.44, sm_120) · Maya-S24 · one GPU · 32K context · model on a WD SN740 NVMe.

This is the decode-side twin of my PR #76 comment (DFlash2 calibration on the same card) — this one is about the prompt path on CUDA.

Measured (--bench, v1.1.4)

prompt prefill
2,048 tokens 106 tok/s
8,192 tokens 279 tok/s

For context on the same machine (llama.cpp-based, fully VRAM-resident): a 27B dense model prefills at ~1,200 tok/s here, and Strata's 125B (A3B-class, ~3 B active, VRAM+RAM streaming) at 1,100-1,500 tok/s.

Why I think there is headroom

  • Effective compute: 18 B active × 2 FLOP × 279 tok/s ≈ 10 TFLOPS effective, against the card's ~110 dense BF16 peak. The tiers warm in 14 s (2.3 GB/s, NVMe keeping up), so the streaming itself is not the limiter at 8 K — the prompt-path kernels look like it.
  • v1.1.3's HIP work (tuned hipBLASLt GLM projections, runtime sub-batch) took an RX 7900 XT from 198 → 413 tok/s (+108%) on GLM-5.3-Flash IQ2_XXS. Is there a symmetric lever on CUDA — cuBLASLt heuristic pinning, sub-batch sweeps (STRATA_GLM_PREFILL_SUB), the row-count split between tensor-core kernels and reconstruct+cuBLAS that #75 built for EXL3?
  • The 2K-vs-8K shape suggests fixed per-chunk costs dominate small prompts: the engine borrows 4,248 MB of the expert pool per chunk, prestages 160→124 experts, and runs the disk landing ring regardless of prompt length — 2K pays all of that over 106 tokens.

Engine lines (from --bench; full report below)

glm prefill: CUDA0 chunks of 17408 tokens (--prefill auto, up to 32768; mixer sub-batches of 1024), borrowing 4248 MB of the expert pool while a prompt runs (activations 2896, weight scratch 96, expert staging 86, prestage 1153: 160 experts); disk landing ring 96 experts (692 MB pinned)
glm fast: CUDA0 layers [0,45) expert pool 7.65 GB, 27-35 slots/layer (1154 total)
glm fast: CUDA0 RAM tier 22.84 GB pinned, 3448 slots
glm fast: CUDA0 tiers warm: 4468 experts (31.8 GB) in 14 s (2.27 GB/s)
glm fast: CUDA0 CPU lane: 8 threads, an expert 0.306 ms on the CPU vs 0.135 ms over PCIe

What I can test

  • STRATA_GLM_PREFILL_SUB sweeps on this card, if that is a useful data point.
  • Any branch that ports the HIP prefill tuning ideas to CUDA — happy to build, bench (--bench + --report), and report back numbers on sm_120.

maya-report.txt below (includes the DFlash2 calibration legs, so the prompt-path stats there are at 8K-doc working-set conditions).

maya-report.txt
## Maya
version 1.1.4, commit f4d13e1 2026-10-12, Python 3.11.9, win32

## System
Windows-10-10.0.26200-SP0

## GPUs
index, name, memory.total [MiB], memory.used [MiB], driver_version, pcie.link.gen.max, pcie.link.width.current, pcie.link.width.max, power.limit [W], temperature.gpu
0, NVIDIA GeForce RTX 5080, 16303 MiB, 14749 MiB, 616.92, 5, 16, 16, 360.00 W, 33

## CPU and RAM
AMD Ryzen 7 9800X3D 8-Core Processor, 16 threads, AVX-512
RAM 47.1 GB, 4.0 GB available now, page file 128 GB

## Disks

FriendlyName         MediaType BusType          Size
------------         --------- -------          ----
KingDian S280 1TB    SSD       SATA    1024209543168
PC SN740 NVMe WD 1TB SSD       NVMe    1024209543168
HYV1TBX3(XT)         SSD       NVMe    1024209543168
HS-SSD-DK4000 512G   SSD       NVMe     512110190592

## Engine build
{"archs": [120], "nvcc": "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v13.4\\bin\\nvcc.EXE", "host_compiler": null, "date": "2026-10-13 13:53"}

## Setup maya-maya-s24.json
model Maya-S24, context 32768, GPUs [0], images on, settings {}
model folder G:\project-maya\Maya-data\models\Maya-S24: 94.7 GB of GGUF, 120 GB free, not a hard disk

## Engine log maya-maya-s24.log: the speed and memory lines (last 80 of 105)
glm stat: decode 132.86 ms/tok (7.53 tok/s) | vram hit 53.94% | ram fetches 86.66/tok | disk 35.91 reads/tok in 26.84 waits/tok, 87.69 ms/tok | promotions 60.25/tok | cpu lane 22.44/tok in 7.76 ms/tok | prompt 55.8 ms/tok | vram 1084/1154 ram 3564/3655
glm prefill: CUDA0 chunks of 17408 tokens (--prefill auto, up to 32768; mixer sub-batches of 1024), borrowing 4248 MB of the expert pool while a prompt runs (activations 2896, weight scratch 96, expert staging 86, prestage 1153: 160 experts); disk landing ring 96 experts (692 MB pinned)
glm fast: CUDA0 VRAM before the expert pool: 7.56 of 15.89 GB in use - dense weights 5.24, state/KV (32768 ctx) 0.62, activations 0.06, other (context, MTP, scratch, prompt path) 1.64
glm prefill: CUDA0 prestage buffer 160 -> 124 experts (what the pool can lend)
glm fast: the expert profile G:\project-maya\data\expert-profile-glm.bin ranks 13248 (layer, expert) pairs
glm fast: CUDA0 layers [0,45) expert pool 7.65 GB, 27-35 slots/layer (1154 total)
glm fast: CUDA0 RAM tier 24.45 GB pinned, 3691 slots
glm prefill: CUDA0 40% of the experts' bytes are held pinned: the pool lends at most 85% of its slots
glm fast: CUDA0 tiers warm: 4711 experts (33.5 GB) in 14 s (2.36 GB/s)
glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen
glm fast: CUDA0 CPU lane: 8 threads, an expert 0.273 ms on the CPU vs 0.132 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 0 1 1 1 2 2 2
glm stat: decode 239.15 ms/tok (4.18 tok/s) | vram hit 42.78% | ram fetches 84.94/tok | disk 76.80 reads/tok in 35.67 waits/tok, 184.50 ms/tok | promotions 64.29/tok | cpu lane 21.75/tok in 7.73 ms/tok | prompt 2.2 ms/tok | vram 1090/1154 ram 3585/3691
glm stat: decode 249.19 ms/tok (4.01 tok/s) | vram hit 40.37% | ram fetches 95.24/tok | disk 68.97 reads/tok in 34.84 waits/tok, 195.07 ms/tok | promotions 63.96/tok | cpu lane 26.54/tok in 9.33 ms/tok | prompt 3.0 ms/tok | vram 1082/1154 ram 3585/3691
glm stat: decode 262.56 ms/tok (3.81 tok/s) | vram hit 40.33% | ram fetches 93.65/tok | disk 71.02 reads/tok in 34.93 waits/tok, 207.01 ms/tok | promotions 63.99/tok | cpu lane 25.89/tok in 9.51 ms/tok | prompt 3.2 ms/tok | vram 1095/1154 ram 3596/3691
glm stat: decode 275.85 ms/tok (3.63 tok/s) | vram hit 38.86% | ram fetches 96.25/tok | disk 73.48 reads/tok in 34.67 waits/tok, 221.31 ms/tok | promotions 63.87/tok | cpu lane 26.96/tok in 9.40 ms/tok | prompt 3.2 ms/tok | vram 1088/1154 ram 3578/3691
glm stat: decode 286.46 ms/tok (3.49 tok/s) | vram hit 37.58% | ram fetches 95.26/tok | disk 77.96 reads/tok in 36.33 waits/tok, 230.93 ms/tok | promotions 64.36/tok | cpu lane 26.49/tok in 9.23 ms/tok | prompt 3.2 ms/tok | vram 1086/1154 ram 3582/3691
glm prefill: CUDA0 chunks of 10240 tokens (--prefill auto, up to 32768; mixer sub-batches of 1024), borrowing 3397 MB of the expert pool while a prompt runs (activations 2046, weight scratch 96, expert staging 86, prestage 1153: 160 experts); disk landing ring 96 experts (692 MB pinned)
glm fast: CUDA0 VRAM before the expert pool: 8.48 of 15.89 GB in use - dense weights 5.24, state/KV (32768 ctx) 0.62, activations 0.06, other (context, MTP, scratch, prompt path) 2.57
glm prefill: CUDA0 prestage buffer 160 -> 123 experts (what the pool can lend)
glm fast: the expert profile G:\project-maya\data\expert-profile-glm.bin ranks 13248 (layer, expert) pairs
glm fast: CUDA0 layers [0,45) expert pool 6.73 GB, 24-30 slots/layer (1015 total)
glm fast: CUDA0 RAM tier 24.67 GB pinned, 3725 slots
glm prefill: CUDA0 39% of the experts' bytes are held pinned: the pool lends at most 85% of its slots
glm fast: CUDA0 tiers warm: 4606 experts (32.8 GB) in 14 s (2.38 GB/s)
glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen
glm fast: CUDA0 CPU lane: 8 threads, an expert 0.255 ms on the CPU vs 0.133 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 0 1 1 1 2 2 2
glm stat: decode 552.61 ms/tok (1.81 tok/s) | vram hit 41.63% | ram fetches 136.66/tok | disk 142.87 reads/tok in 60.57 waits/tok, 469.43 ms/tok | promotions 41.67/tok | cpu lane 33.84/tok in 14.20 ms/tok | prompt 2.6 ms/tok | vram 957/1015 ram 3624/3725
glm prefill: CUDA0 chunks of 17408 tokens (--prefill auto, up to 32768; mixer sub-batches of 1024), borrowing 4248 MB of the expert pool while a prompt runs (activations 2896, weight scratch 96, expert staging 86, prestage 1153: 160 experts); disk landing ring 96 experts (692 MB pinned)
glm fast: CUDA0 VRAM before the expert pool: 7.56 of 15.89 GB in use - dense weights 5.24, state/KV (32768 ctx) 0.62, activations 0.06, other (context, MTP, scratch, prompt path) 1.64
glm prefill: CUDA0 prestage buffer 160 -> 124 experts (what the pool can lend)
glm fast: the expert profile G:\project-maya\data\expert-profile-glm.bin ranks 13248 (layer, expert) pairs
glm fast: CUDA0 layers [0,45) expert pool 7.65 GB, 27-35 slots/layer (1154 total)
glm fast: CUDA0 RAM tier 24.83 GB pinned, 3748 slots
glm prefill: CUDA0 41% of the experts' bytes are held pinned: the pool lends at most 85% of its slots
glm fast: CUDA0 tiers warm: 4768 experts (33.9 GB) in 15 s (2.34 GB/s)
glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen
glm fast: CUDA0 CPU lane: 8 threads, an expert 0.252 ms on the CPU vs 0.134 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 0 1 1 1 2 2 3
glm stat: decode 292.47 ms/tok (3.42 tok/s) | vram hit 40.37% | ram fetches 89.37/tok | disk 78.48 reads/tok in 35.89 waits/tok, 236.79 ms/tok | promotions 64.41/tok | cpu lane 23.73/tok in 8.92 ms/tok | prompt 2.2 ms/tok | vram 1090/1154 ram 3645/3748
glm stat: decode 247.42 ms/tok (4.04 tok/s) | vram hit 40.87% | ram fetches 94.67/tok | disk 67.73 reads/tok in 34.75 waits/tok, 191.94 ms/tok | promotions 63.86/tok | cpu lane 26.43/tok in 9.74 ms/tok | prompt 3.5 ms/tok | vram 1085/1154 ram 3641/3748
glm stat: decode 260.87 ms/tok (3.83 tok/s) | vram hit 39.90% | ram fetches 94.97/tok | disk 70.15 reads/tok in 35.03 waits/tok, 204.75 ms/tok | promotions 64.01/tok | cpu lane 26.58/tok in 9.67 ms/tok | prompt 3.5 ms/tok | vram 1092/1154 ram 3649/3748
glm prefill: CUDA0 chunks of 17408 tokens (--prefill auto, up to 32768; mixer sub-batches of 1024), borrowing 4248 MB of the expert pool while a prompt runs (activations 2896, weight scratch 96, expert staging 86, prestage 1153: 160 experts); disk landing ring 96 experts (692 MB pinned)
glm fast: CUDA0 VRAM before the expert pool: 7.56 of 15.89 GB in use - dense weights 5.24, state/KV (32768 ctx) 0.62, activations 0.06, other (context, MTP, scratch, prompt path) 1.64
glm prefill: CUDA0 prestage buffer 160 -> 124 experts (what the pool can lend)
glm fast: the expert profile G:\project-maya\data\expert-profile-glm.bin ranks 13248 (layer, expert) pairs
glm fast: CUDA0 layers [0,45) expert pool 7.65 GB, 27-35 slots/layer (1154 total)
glm fast: CUDA0 RAM tier 24.88 GB pinned, 3756 slots
glm prefill: CUDA0 41% of the experts' bytes are held pinned: the pool lends at most 85% of its slots
glm fast: CUDA0 tiers warm: 4776 experts (34.0 GB) in 14 s (2.35 GB/s)
glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen
glm fast: CUDA0 CPU lane: 8 threads, an expert 0.260 ms on the CPU vs 0.138 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 0 1 1 1 2 2 3
glm stat: decode 290.02 ms/tok (3.45 tok/s) | vram hit 41.28% | ram fetches 87.81/tok | disk 77.67 reads/tok in 35.76 waits/tok, 234.75 ms/tok | promotions 64.41/tok | cpu lane 23.19/tok in 8.37 ms/tok | prompt 2.2 ms/tok | vram 1090/1154 ram 3651/3756
glm stat: decode 252.11 ms/tok (3.97 tok/s) | vram hit 40.70% | ram fetches 95.59/tok | disk 66.99 reads/tok in 34.41 waits/tok, 196.54 ms/tok | promotions 63.92/tok | cpu lane 26.91/tok in 9.55 ms/tok | prompt 3.3 ms/tok | vram 1096/1154 ram 3651/3756
glm stat: decode 269.45 ms/tok (3.71 tok/s) | vram hit 39.64% | ram fetches 94.87/tok | disk 71.29 reads/tok in 35.37 waits/tok, 213.23 ms/tok | promotions 63.91/tok | cpu lane 26.26/tok in 9.33 ms/tok | prompt 3.2 ms/tok | vram 1089/1154 ram 3650/3756
glm stat: decode 226.52 ms/tok (4.41 tok/s) | vram hit 43.74% | ram fetches 94.09/tok | disk 61.72 reads/tok in 31.59 waits/tok, 172.75 ms/tok | promotions 62.86/tok | cpu lane 26.15/tok in 9.23 ms/tok | prompt 3.2 ms/tok | vram 1088/1154 ram 3649/3756
glm stat: decode 289.38 ms/tok (3.46 tok/s) | vram hit 37.93% | ram fetches 94.66/tok | disk 76.97 reads/tok in 36.03 waits/tok, 232.24 ms/tok | promotions 64.17/tok | cpu lane 26.41/tok in 9.34 ms/tok | prompt 3.4 ms/tok | vram 1091/1154 ram 3644/3756
glm prefill: CUDA0 chunks of 10240 tokens (--prefill auto, up to 32768; mixer sub-batches of 1024), borrowing 3397 MB of the expert pool while a prompt runs (activations 2046, weight scratch 96, expert staging 86, prestage 1153: 160 experts); disk landing ring 96 experts (692 MB pinned)
glm fast: CUDA0 VRAM before the expert pool: 8.48 of 15.89 GB in use - dense weights 5.24, state/KV (32768 ctx) 0.62, activations 0.06, other (context, MTP, scratch, prompt path) 2.57
glm prefill: CUDA0 prestage buffer 160 -> 123 experts (what the pool can lend)
glm fast: the expert profile G:\project-maya\data\expert-profile-glm.bin ranks 13248 (layer, expert) pairs
glm fast: CUDA0 layers [0,45) expert pool 6.73 GB, 24-30 slots/layer (1015 total)
glm fast: CUDA0 RAM tier 24.91 GB pinned, 3760 slots
glm prefill: CUDA0 39% of the experts' bytes are held pinned: the pool lends at most 85% of its slots
glm fast: CUDA0 tiers warm: 4641 experts (33.0 GB) in 14 s (2.38 GB/s)
glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen
glm fast: CUDA0 CPU lane: 8 threads, an expert 0.241 ms on the CPU vs 0.153 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 1 1 1 2 2 3 3
glm stat: decode 523.82 ms/tok (1.91 tok/s) | vram hit 41.73% | ram fetches 115.61/tok | disk 140.27 reads/tok in 60.78 waits/tok, 441.24 ms/tok | promotions 43.05/tok | cpu lane 57.91/tok in 22.05 ms/tok | prompt 2.7 ms/tok | vram 948/1015 ram 3658/3760
glm stat: decode 441.44 ms/tok (2.27 tok/s) | vram hit 41.40% | ram fetches 142.45/tok | disk 120.55 reads/tok in 59.48 waits/tok, 356.74 ms/tok | promotions 38.63/tok | cpu lane 72.74/tok in 25.68 ms/tok | prompt 3.5 ms/tok | vram 962/1015 ram 3662/3760
glm stat: decode 487.15 ms/tok (2.05 tok/s) | vram hit 43.00% | ram fetches 135.12/tok | disk 130.67 reads/tok in 62.19 waits/tok, 402.00 ms/tok | promotions 35.50/tok | cpu lane 68.72/tok in 23.61 ms/tok | prompt 3.4 ms/tok | vram 956/1015 ram 3656/3760
glm stat: decode 521.03 ms/tok (1.92 tok/s) | vram hit 44.98% | ram fetches 139.95/tok | disk 138.18 reads/tok in 63.11 waits/tok, 435.99 ms/tok | promotions 26.22/tok | cpu lane 70.71/tok in 24.03 ms/tok | prompt 3.2 ms/tok | vram 952/1015 ram 3653/3760
glm stat: decode 475.61 ms/tok (2.10 tok/s) | vram hit 41.55% | ram fetches 135.60/tok | disk 128.68 reads/tok in 60.62 waits/tok, 390.85 ms/tok | promotions 37.28/tok | cpu lane 68.72/tok in 23.61 ms/tok | prompt 3.2 ms/tok | vram 938/1015 ram 3646/3760
glm fast: CUDA0 VRAM before the expert pool: 7.56 of 15.89 GB in use - dense weights 5.24, state/KV (32768 ctx) 0.62, activations 0.06, other (context, MTP, scratch, prompt path) 1.64
glm prefill: CUDA0 prestage buffer 160 -> 124 experts (what the pool can lend)
glm fast: CUDA0 the pool (27 slots/layer) cannot lend 3027 MB to the vision encoder
glm fast: the expert profile G:\project-maya\data\expert-profile-glm.bin ranks 13248 (layer, expert) pairs
glm fast: CUDA0 layers [0,45) expert pool 7.65 GB, 27-35 slots/layer (1154 total)
glm fast: CUDA0 RAM tier 24.77 GB pinned, 3740 slots
glm prefill: CUDA0 40% of the experts' bytes are held pinned: the pool lends at most 85% of its slots
glm fast: CUDA0 tiers warm: 4760 experts (33.9 GB) in 14 s (2.34 GB/s)
glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen
glm fast: CUDA0 CPU lane: 8 threads, an expert 0.220 ms on the CPU vs 0.132 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 1 1 1 2 2 2 3

## Engine log maya-maya-s24.log: the last 25 lines
load: special_eot_id is not in special_eog_ids - the tokenizer config may be incorrect
load: special_eom_id is not in special_eog_ids - the tokenizer config may be incorrect
maya-vision: warmed up at 1024 image tokens
e 1153: 160 experts); disk landing ring 96 experts (692 MB pinned)
glm fast: CUDA0 VRAM before the expert pool: 7.56 of 15.89 GB in use - dense weights 5.24, state/KV (32768 ctx) 0.62, activations 0.06, other (context, MTP, scratch, prompt path) 1.64
glm prefill: CUDA0 prestage buffer 160 -> 124 experts (what the pool can lend)
glm fast: CUDA0 the pool (27 slots/layer) cannot lend 3027 MB to the vision encoder
glm fast: the expert profile G:\project-maya\data\expert-profile-glm.bin ranks 13248 (layer, expert) pairs
glm fast: CUDA0 layers [0,45) expert pool 7.65 GB, 27-35 slots/layer (1154 total)
glm fast: CUDA0 RAM tier 24.77 GB pinned, 3740 slots
glm prefill: CUDA0 40% of the experts' bytes are held pinned: the pool lends at most 85% of its slots
glm fast: CUDA0 warming the expert tiers 10% (3.4 of 33.9 GB, 2 s)
glm fast: CUDA0 warming the expert tiers 20% (6.8 of 33.9 GB, 4 s)
glm fast: CUDA0 warming the expert tiers 30% (10.2 of 33.9 GB, 5 s)
glm fast: CUDA0 warming the expert tiers 40% (13.6 of 33.9 GB, 7 s)
glm fast: CUDA0 warming the expert tiers 50% (17.0 of 33.9 GB, 8 s)
glm fast: CUDA0 warming the expert tiers 60% (20.4 of 33.9 GB, 9 s)
glm fast: CUDA0 warming the expert tiers 70% (23.7 of 33.9 GB, 11 s)
glm fast: CUDA0 warming the expert tiers 80% (27.1 of 33.9 GB, 12 s)
glm fast: CUDA0 warming the expert tiers 90% (30.5 of 33.9 GB, 13 s)
glm fast: CUDA0 warming the expert tiers 100% (33.9 of 33.9 GB, 14 s)
glm fast: CUDA0 tiers warm: 4760 experts (33.9 GB) in 14 s (2.34 GB/s)
glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen
glm fast: CUDA0 CPU lane: 8 threads, an expert 0.220 ms on the CPU vs 0.132 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 1 1 1 2 2 2 3
maya generate: glm5-next serve (M3.1): GEN <max_new> [keys] <ids>, GENI <max_new> [keys] <embeddings> <ids>; QUIT to end

## Benchmark (maya-bench.txt, from --bench)
Project Maya v1.1.4 benchmark, 2026-10-13 14:07
GPUs: NVIDIA GeForce RTX 5080 16 GB; RAM 47 GB; CPU AMD Ryzen 7 9800X3D 8-Core Processor
setup: maya-maya-s24.json, context 32768, GPUs [0]
decode (writing the answer): mean 29.2 tokens/s over 3 answers of 256 tokens (greedy, thinking off)
    26.7 tokens/s  Write a Python function that parses a CSV file into a list of dictionaries, with type hints and a docstring.
    29.6 tokens/s  Explain how photosynthesis works, step by step, for a high-school student.
    31.1 tokens/s  Write a complete HTML page with a canvas that draws a bouncing ball animation in JavaScript.
prefill (reading the prompt): 106 tokens/s, 2048 tokens
prefill (reading the prompt): 279 tokens/s, 8192 tokens

engine lines:
glm prefill: CUDA0 chunks of 17408 tokens (--prefill auto, up to 32768; mixer sub-batches of 1024), borrowing 4248 MB of the expert pool while a prompt runs (activations 2896, weight scratch 96, expert staging 86, prestage 1153: 160 experts); disk landing ring 96 experts (692 MB pinned)
glm fast: CUDA0 VRAM before the expert pool: 7.56 of 15.89 GB in use - dense weights 5.24, state/KV (32768 ctx) 0.62, activations 0.06, other (context, MTP, scratch, prompt path) 1.64
glm prefill: CUDA0 prestage buffer 160 -> 124 experts (what the pool can lend)
glm fast: the expert profile G:\project-maya\data\expert-profile-glm.bin ranks 13248 (layer, expert) pairs
glm fast: CUDA0 layers [0,45) expert pool 7.65 GB, 27-35 slots/layer (1154 total)
glm fast: CUDA0 RAM tier 22.84 GB pinned, 3448 slots
glm prefill: CUDA0 38% of the experts' bytes are held pinned: the pool lends at most 85% of its slots
glm fast: CUDA0 tiers warm: 4468 experts (31.8 GB) in 14 s (2.27 GB/s)
glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen
glm fast: CUDA0 CPU lane: 8 threads, an expert 0.306 ms on the CPU vs 0.135 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 0 1 1 1 2 2 2
glm stat: decode 68.10 ms/tok (14.68 tok/s) | vram hit 86.31% | ram fetches 22.30/tok | disk 17.19 reads/tok in 12.23 waits/tok, 41.55 ms/tok | promotions 25.09/tok | cpu lane 3.11/tok in 1.41 ms/tok | prompt 258.5 ms/tok | vram 1057/1154 ram 3390/3448
glm stat: decode 37.43 ms/tok (26.72 tok/s) | vram hit 85.09% | ram fetches 35.60/tok | disk 4.60 reads/tok in 5.64 waits/tok, 11.26 ms/tok | promotions 27.48/tok | cpu lane 7.39/tok in 2.69 ms/tok | prompt 93.2 ms/tok | vram 1037/1154 ram 3424/3448
glm stat: decode 33.74 ms/tok (29.64 tok/s) | vram hit 81.51% | ram fetches 45.95/tok | disk 2.38 reads/tok in 4.26 waits/tok, 5.92 ms/tok | promotions 31.13/tok | cpu lane 11.16/tok in 3.97 ms/tok | prompt 62.8 ms/tok | vram 1054/1154 ram 3394/3448
glm stat: decode 32.11 ms/tok (31.14 tok/s) | vram hit 83.00% | ram fetches 42.92/tok | disk 1.99 reads/tok in 3.58 waits/tok, 5.00 ms/tok | promotions 29.95/tok | cpu lane 9.96/tok in 3.64 ms/tok | prompt 59.3 ms/tok | vram 1064/1154 ram 3390/3448
glm stat (prompt only): prompt 8.8 ms/tok | vram 843/1154 ram 3363/3448
glm slots: saved a 2047-token conversation (0.18 GB in 0.1 s); 1 kept, 0.18 GB
glm stat (prompt only): prompt 9.5 ms/tok | vram 820/1154 ram 3350/3448
glm slots: saved a 2047-token conversation (0.18 GB in 0.1 s); 2 kept, 0.36 GB
glm stat (prompt only): prompt 3.6 ms/tok | vram 708/1154 ram 3369/3448
Originally created by @zhanghuqqqq on GitHub (Oct 13, 2026). Original GitHub issue: https://github.com/mw00/project-maya/issues/155 **CUDA prompt speed, single RTX 5080 (Maya-S24): 106 / 279 tok/s at 2K / 8K — prefill tuning headroom on consumer NVIDIA** Hardware: RTX 5080 16 GB · 2×24 GB DDR5-6000 (47 GB) · Ryzen 7 9800X3D (8C/16T, AVX-512) · Windows 11 · Maya v1.1.4 (commit f4d13e1, engine built locally, CUDA 13.4.1 / MSVC 14.44, sm_120) · Maya-S24 · one GPU · 32K context · model on a WD SN740 NVMe. This is the decode-side twin of my [PR #76 comment](https://github.com/mw00/project-maya/pull/76#issuecomment-6142473136) (DFlash2 calibration on the same card) — this one is about the **prompt path on CUDA**. ## Measured (`--bench`, v1.1.4) | prompt | prefill | |---|---:| | 2,048 tokens | **106 tok/s** | | 8,192 tokens | **279 tok/s** | For context on the same machine (llama.cpp-based, fully VRAM-resident): a 27B dense model prefills at ~1,200 tok/s here, and Strata's 125B (A3B-class, ~3 B active, VRAM+RAM streaming) at 1,100-1,500 tok/s. ## Why I think there is headroom - Effective compute: 18 B active × 2 FLOP × 279 tok/s ≈ **10 TFLOPS effective**, against the card's ~110 dense BF16 peak. The tiers warm in 14 s (2.3 GB/s, NVMe keeping up), so the streaming itself is not the limiter at 8 K — the prompt-path kernels look like it. - v1.1.3's HIP work (`tuned hipBLASLt GLM projections, runtime sub-batch`) took an RX 7900 XT from **198 → 413 tok/s (+108%)** on GLM-5.3-Flash IQ2_XXS. Is there a symmetric lever on CUDA — cuBLASLt heuristic pinning, sub-batch sweeps (`STRATA_GLM_PREFILL_SUB`), the row-count split between tensor-core kernels and reconstruct+cuBLAS that #75 built for EXL3? - The 2K-vs-8K shape suggests fixed per-chunk costs dominate small prompts: the engine borrows 4,248 MB of the expert pool per chunk, prestages 160→124 experts, and runs the disk landing ring regardless of prompt length — 2K pays all of that over 106 tokens. ## Engine lines (from `--bench`; full report below) ``` glm prefill: CUDA0 chunks of 17408 tokens (--prefill auto, up to 32768; mixer sub-batches of 1024), borrowing 4248 MB of the expert pool while a prompt runs (activations 2896, weight scratch 96, expert staging 86, prestage 1153: 160 experts); disk landing ring 96 experts (692 MB pinned) glm fast: CUDA0 layers [0,45) expert pool 7.65 GB, 27-35 slots/layer (1154 total) glm fast: CUDA0 RAM tier 22.84 GB pinned, 3448 slots glm fast: CUDA0 tiers warm: 4468 experts (31.8 GB) in 14 s (2.27 GB/s) glm fast: CUDA0 CPU lane: 8 threads, an expert 0.306 ms on the CPU vs 0.135 ms over PCIe ``` ## What I can test - `STRATA_GLM_PREFILL_SUB` sweeps on this card, if that is a useful data point. - Any branch that ports the HIP prefill tuning ideas to CUDA — happy to build, bench (`--bench` + `--report`), and report back numbers on sm_120. `maya-report.txt` below (includes the DFlash2 calibration legs, so the prompt-path stats there are at 8K-doc working-set conditions). <details> <summary>maya-report.txt</summary> ``` ## Maya version 1.1.4, commit f4d13e1 2026-10-12, Python 3.11.9, win32 ## System Windows-10-10.0.26200-SP0 ## GPUs index, name, memory.total [MiB], memory.used [MiB], driver_version, pcie.link.gen.max, pcie.link.width.current, pcie.link.width.max, power.limit [W], temperature.gpu 0, NVIDIA GeForce RTX 5080, 16303 MiB, 14749 MiB, 616.92, 5, 16, 16, 360.00 W, 33 ## CPU and RAM AMD Ryzen 7 9800X3D 8-Core Processor, 16 threads, AVX-512 RAM 47.1 GB, 4.0 GB available now, page file 128 GB ## Disks FriendlyName MediaType BusType Size ------------ --------- ------- ---- KingDian S280 1TB SSD SATA 1024209543168 PC SN740 NVMe WD 1TB SSD NVMe 1024209543168 HYV1TBX3(XT) SSD NVMe 1024209543168 HS-SSD-DK4000 512G SSD NVMe 512110190592 ## Engine build {"archs": [120], "nvcc": "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v13.4\\bin\\nvcc.EXE", "host_compiler": null, "date": "2026-10-13 13:53"} ## Setup maya-maya-s24.json model Maya-S24, context 32768, GPUs [0], images on, settings {} model folder G:\project-maya\Maya-data\models\Maya-S24: 94.7 GB of GGUF, 120 GB free, not a hard disk ## Engine log maya-maya-s24.log: the speed and memory lines (last 80 of 105) glm stat: decode 132.86 ms/tok (7.53 tok/s) | vram hit 53.94% | ram fetches 86.66/tok | disk 35.91 reads/tok in 26.84 waits/tok, 87.69 ms/tok | promotions 60.25/tok | cpu lane 22.44/tok in 7.76 ms/tok | prompt 55.8 ms/tok | vram 1084/1154 ram 3564/3655 glm prefill: CUDA0 chunks of 17408 tokens (--prefill auto, up to 32768; mixer sub-batches of 1024), borrowing 4248 MB of the expert pool while a prompt runs (activations 2896, weight scratch 96, expert staging 86, prestage 1153: 160 experts); disk landing ring 96 experts (692 MB pinned) glm fast: CUDA0 VRAM before the expert pool: 7.56 of 15.89 GB in use - dense weights 5.24, state/KV (32768 ctx) 0.62, activations 0.06, other (context, MTP, scratch, prompt path) 1.64 glm prefill: CUDA0 prestage buffer 160 -> 124 experts (what the pool can lend) glm fast: the expert profile G:\project-maya\data\expert-profile-glm.bin ranks 13248 (layer, expert) pairs glm fast: CUDA0 layers [0,45) expert pool 7.65 GB, 27-35 slots/layer (1154 total) glm fast: CUDA0 RAM tier 24.45 GB pinned, 3691 slots glm prefill: CUDA0 40% of the experts' bytes are held pinned: the pool lends at most 85% of its slots glm fast: CUDA0 tiers warm: 4711 experts (33.5 GB) in 14 s (2.36 GB/s) glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen glm fast: CUDA0 CPU lane: 8 threads, an expert 0.273 ms on the CPU vs 0.132 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 0 1 1 1 2 2 2 glm stat: decode 239.15 ms/tok (4.18 tok/s) | vram hit 42.78% | ram fetches 84.94/tok | disk 76.80 reads/tok in 35.67 waits/tok, 184.50 ms/tok | promotions 64.29/tok | cpu lane 21.75/tok in 7.73 ms/tok | prompt 2.2 ms/tok | vram 1090/1154 ram 3585/3691 glm stat: decode 249.19 ms/tok (4.01 tok/s) | vram hit 40.37% | ram fetches 95.24/tok | disk 68.97 reads/tok in 34.84 waits/tok, 195.07 ms/tok | promotions 63.96/tok | cpu lane 26.54/tok in 9.33 ms/tok | prompt 3.0 ms/tok | vram 1082/1154 ram 3585/3691 glm stat: decode 262.56 ms/tok (3.81 tok/s) | vram hit 40.33% | ram fetches 93.65/tok | disk 71.02 reads/tok in 34.93 waits/tok, 207.01 ms/tok | promotions 63.99/tok | cpu lane 25.89/tok in 9.51 ms/tok | prompt 3.2 ms/tok | vram 1095/1154 ram 3596/3691 glm stat: decode 275.85 ms/tok (3.63 tok/s) | vram hit 38.86% | ram fetches 96.25/tok | disk 73.48 reads/tok in 34.67 waits/tok, 221.31 ms/tok | promotions 63.87/tok | cpu lane 26.96/tok in 9.40 ms/tok | prompt 3.2 ms/tok | vram 1088/1154 ram 3578/3691 glm stat: decode 286.46 ms/tok (3.49 tok/s) | vram hit 37.58% | ram fetches 95.26/tok | disk 77.96 reads/tok in 36.33 waits/tok, 230.93 ms/tok | promotions 64.36/tok | cpu lane 26.49/tok in 9.23 ms/tok | prompt 3.2 ms/tok | vram 1086/1154 ram 3582/3691 glm prefill: CUDA0 chunks of 10240 tokens (--prefill auto, up to 32768; mixer sub-batches of 1024), borrowing 3397 MB of the expert pool while a prompt runs (activations 2046, weight scratch 96, expert staging 86, prestage 1153: 160 experts); disk landing ring 96 experts (692 MB pinned) glm fast: CUDA0 VRAM before the expert pool: 8.48 of 15.89 GB in use - dense weights 5.24, state/KV (32768 ctx) 0.62, activations 0.06, other (context, MTP, scratch, prompt path) 2.57 glm prefill: CUDA0 prestage buffer 160 -> 123 experts (what the pool can lend) glm fast: the expert profile G:\project-maya\data\expert-profile-glm.bin ranks 13248 (layer, expert) pairs glm fast: CUDA0 layers [0,45) expert pool 6.73 GB, 24-30 slots/layer (1015 total) glm fast: CUDA0 RAM tier 24.67 GB pinned, 3725 slots glm prefill: CUDA0 39% of the experts' bytes are held pinned: the pool lends at most 85% of its slots glm fast: CUDA0 tiers warm: 4606 experts (32.8 GB) in 14 s (2.38 GB/s) glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen glm fast: CUDA0 CPU lane: 8 threads, an expert 0.255 ms on the CPU vs 0.133 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 0 1 1 1 2 2 2 glm stat: decode 552.61 ms/tok (1.81 tok/s) | vram hit 41.63% | ram fetches 136.66/tok | disk 142.87 reads/tok in 60.57 waits/tok, 469.43 ms/tok | promotions 41.67/tok | cpu lane 33.84/tok in 14.20 ms/tok | prompt 2.6 ms/tok | vram 957/1015 ram 3624/3725 glm prefill: CUDA0 chunks of 17408 tokens (--prefill auto, up to 32768; mixer sub-batches of 1024), borrowing 4248 MB of the expert pool while a prompt runs (activations 2896, weight scratch 96, expert staging 86, prestage 1153: 160 experts); disk landing ring 96 experts (692 MB pinned) glm fast: CUDA0 VRAM before the expert pool: 7.56 of 15.89 GB in use - dense weights 5.24, state/KV (32768 ctx) 0.62, activations 0.06, other (context, MTP, scratch, prompt path) 1.64 glm prefill: CUDA0 prestage buffer 160 -> 124 experts (what the pool can lend) glm fast: the expert profile G:\project-maya\data\expert-profile-glm.bin ranks 13248 (layer, expert) pairs glm fast: CUDA0 layers [0,45) expert pool 7.65 GB, 27-35 slots/layer (1154 total) glm fast: CUDA0 RAM tier 24.83 GB pinned, 3748 slots glm prefill: CUDA0 41% of the experts' bytes are held pinned: the pool lends at most 85% of its slots glm fast: CUDA0 tiers warm: 4768 experts (33.9 GB) in 15 s (2.34 GB/s) glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen glm fast: CUDA0 CPU lane: 8 threads, an expert 0.252 ms on the CPU vs 0.134 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 0 1 1 1 2 2 3 glm stat: decode 292.47 ms/tok (3.42 tok/s) | vram hit 40.37% | ram fetches 89.37/tok | disk 78.48 reads/tok in 35.89 waits/tok, 236.79 ms/tok | promotions 64.41/tok | cpu lane 23.73/tok in 8.92 ms/tok | prompt 2.2 ms/tok | vram 1090/1154 ram 3645/3748 glm stat: decode 247.42 ms/tok (4.04 tok/s) | vram hit 40.87% | ram fetches 94.67/tok | disk 67.73 reads/tok in 34.75 waits/tok, 191.94 ms/tok | promotions 63.86/tok | cpu lane 26.43/tok in 9.74 ms/tok | prompt 3.5 ms/tok | vram 1085/1154 ram 3641/3748 glm stat: decode 260.87 ms/tok (3.83 tok/s) | vram hit 39.90% | ram fetches 94.97/tok | disk 70.15 reads/tok in 35.03 waits/tok, 204.75 ms/tok | promotions 64.01/tok | cpu lane 26.58/tok in 9.67 ms/tok | prompt 3.5 ms/tok | vram 1092/1154 ram 3649/3748 glm prefill: CUDA0 chunks of 17408 tokens (--prefill auto, up to 32768; mixer sub-batches of 1024), borrowing 4248 MB of the expert pool while a prompt runs (activations 2896, weight scratch 96, expert staging 86, prestage 1153: 160 experts); disk landing ring 96 experts (692 MB pinned) glm fast: CUDA0 VRAM before the expert pool: 7.56 of 15.89 GB in use - dense weights 5.24, state/KV (32768 ctx) 0.62, activations 0.06, other (context, MTP, scratch, prompt path) 1.64 glm prefill: CUDA0 prestage buffer 160 -> 124 experts (what the pool can lend) glm fast: the expert profile G:\project-maya\data\expert-profile-glm.bin ranks 13248 (layer, expert) pairs glm fast: CUDA0 layers [0,45) expert pool 7.65 GB, 27-35 slots/layer (1154 total) glm fast: CUDA0 RAM tier 24.88 GB pinned, 3756 slots glm prefill: CUDA0 41% of the experts' bytes are held pinned: the pool lends at most 85% of its slots glm fast: CUDA0 tiers warm: 4776 experts (34.0 GB) in 14 s (2.35 GB/s) glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen glm fast: CUDA0 CPU lane: 8 threads, an expert 0.260 ms on the CPU vs 0.138 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 0 1 1 1 2 2 3 glm stat: decode 290.02 ms/tok (3.45 tok/s) | vram hit 41.28% | ram fetches 87.81/tok | disk 77.67 reads/tok in 35.76 waits/tok, 234.75 ms/tok | promotions 64.41/tok | cpu lane 23.19/tok in 8.37 ms/tok | prompt 2.2 ms/tok | vram 1090/1154 ram 3651/3756 glm stat: decode 252.11 ms/tok (3.97 tok/s) | vram hit 40.70% | ram fetches 95.59/tok | disk 66.99 reads/tok in 34.41 waits/tok, 196.54 ms/tok | promotions 63.92/tok | cpu lane 26.91/tok in 9.55 ms/tok | prompt 3.3 ms/tok | vram 1096/1154 ram 3651/3756 glm stat: decode 269.45 ms/tok (3.71 tok/s) | vram hit 39.64% | ram fetches 94.87/tok | disk 71.29 reads/tok in 35.37 waits/tok, 213.23 ms/tok | promotions 63.91/tok | cpu lane 26.26/tok in 9.33 ms/tok | prompt 3.2 ms/tok | vram 1089/1154 ram 3650/3756 glm stat: decode 226.52 ms/tok (4.41 tok/s) | vram hit 43.74% | ram fetches 94.09/tok | disk 61.72 reads/tok in 31.59 waits/tok, 172.75 ms/tok | promotions 62.86/tok | cpu lane 26.15/tok in 9.23 ms/tok | prompt 3.2 ms/tok | vram 1088/1154 ram 3649/3756 glm stat: decode 289.38 ms/tok (3.46 tok/s) | vram hit 37.93% | ram fetches 94.66/tok | disk 76.97 reads/tok in 36.03 waits/tok, 232.24 ms/tok | promotions 64.17/tok | cpu lane 26.41/tok in 9.34 ms/tok | prompt 3.4 ms/tok | vram 1091/1154 ram 3644/3756 glm prefill: CUDA0 chunks of 10240 tokens (--prefill auto, up to 32768; mixer sub-batches of 1024), borrowing 3397 MB of the expert pool while a prompt runs (activations 2046, weight scratch 96, expert staging 86, prestage 1153: 160 experts); disk landing ring 96 experts (692 MB pinned) glm fast: CUDA0 VRAM before the expert pool: 8.48 of 15.89 GB in use - dense weights 5.24, state/KV (32768 ctx) 0.62, activations 0.06, other (context, MTP, scratch, prompt path) 2.57 glm prefill: CUDA0 prestage buffer 160 -> 123 experts (what the pool can lend) glm fast: the expert profile G:\project-maya\data\expert-profile-glm.bin ranks 13248 (layer, expert) pairs glm fast: CUDA0 layers [0,45) expert pool 6.73 GB, 24-30 slots/layer (1015 total) glm fast: CUDA0 RAM tier 24.91 GB pinned, 3760 slots glm prefill: CUDA0 39% of the experts' bytes are held pinned: the pool lends at most 85% of its slots glm fast: CUDA0 tiers warm: 4641 experts (33.0 GB) in 14 s (2.38 GB/s) glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen glm fast: CUDA0 CPU lane: 8 threads, an expert 0.241 ms on the CPU vs 0.153 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 1 1 1 2 2 3 3 glm stat: decode 523.82 ms/tok (1.91 tok/s) | vram hit 41.73% | ram fetches 115.61/tok | disk 140.27 reads/tok in 60.78 waits/tok, 441.24 ms/tok | promotions 43.05/tok | cpu lane 57.91/tok in 22.05 ms/tok | prompt 2.7 ms/tok | vram 948/1015 ram 3658/3760 glm stat: decode 441.44 ms/tok (2.27 tok/s) | vram hit 41.40% | ram fetches 142.45/tok | disk 120.55 reads/tok in 59.48 waits/tok, 356.74 ms/tok | promotions 38.63/tok | cpu lane 72.74/tok in 25.68 ms/tok | prompt 3.5 ms/tok | vram 962/1015 ram 3662/3760 glm stat: decode 487.15 ms/tok (2.05 tok/s) | vram hit 43.00% | ram fetches 135.12/tok | disk 130.67 reads/tok in 62.19 waits/tok, 402.00 ms/tok | promotions 35.50/tok | cpu lane 68.72/tok in 23.61 ms/tok | prompt 3.4 ms/tok | vram 956/1015 ram 3656/3760 glm stat: decode 521.03 ms/tok (1.92 tok/s) | vram hit 44.98% | ram fetches 139.95/tok | disk 138.18 reads/tok in 63.11 waits/tok, 435.99 ms/tok | promotions 26.22/tok | cpu lane 70.71/tok in 24.03 ms/tok | prompt 3.2 ms/tok | vram 952/1015 ram 3653/3760 glm stat: decode 475.61 ms/tok (2.10 tok/s) | vram hit 41.55% | ram fetches 135.60/tok | disk 128.68 reads/tok in 60.62 waits/tok, 390.85 ms/tok | promotions 37.28/tok | cpu lane 68.72/tok in 23.61 ms/tok | prompt 3.2 ms/tok | vram 938/1015 ram 3646/3760 glm fast: CUDA0 VRAM before the expert pool: 7.56 of 15.89 GB in use - dense weights 5.24, state/KV (32768 ctx) 0.62, activations 0.06, other (context, MTP, scratch, prompt path) 1.64 glm prefill: CUDA0 prestage buffer 160 -> 124 experts (what the pool can lend) glm fast: CUDA0 the pool (27 slots/layer) cannot lend 3027 MB to the vision encoder glm fast: the expert profile G:\project-maya\data\expert-profile-glm.bin ranks 13248 (layer, expert) pairs glm fast: CUDA0 layers [0,45) expert pool 7.65 GB, 27-35 slots/layer (1154 total) glm fast: CUDA0 RAM tier 24.77 GB pinned, 3740 slots glm prefill: CUDA0 40% of the experts' bytes are held pinned: the pool lends at most 85% of its slots glm fast: CUDA0 tiers warm: 4760 experts (33.9 GB) in 14 s (2.34 GB/s) glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen glm fast: CUDA0 CPU lane: 8 threads, an expert 0.220 ms on the CPU vs 0.132 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 1 1 1 2 2 2 3 ## Engine log maya-maya-s24.log: the last 25 lines load: special_eot_id is not in special_eog_ids - the tokenizer config may be incorrect load: special_eom_id is not in special_eog_ids - the tokenizer config may be incorrect maya-vision: warmed up at 1024 image tokens e 1153: 160 experts); disk landing ring 96 experts (692 MB pinned) glm fast: CUDA0 VRAM before the expert pool: 7.56 of 15.89 GB in use - dense weights 5.24, state/KV (32768 ctx) 0.62, activations 0.06, other (context, MTP, scratch, prompt path) 1.64 glm prefill: CUDA0 prestage buffer 160 -> 124 experts (what the pool can lend) glm fast: CUDA0 the pool (27 slots/layer) cannot lend 3027 MB to the vision encoder glm fast: the expert profile G:\project-maya\data\expert-profile-glm.bin ranks 13248 (layer, expert) pairs glm fast: CUDA0 layers [0,45) expert pool 7.65 GB, 27-35 slots/layer (1154 total) glm fast: CUDA0 RAM tier 24.77 GB pinned, 3740 slots glm prefill: CUDA0 40% of the experts' bytes are held pinned: the pool lends at most 85% of its slots glm fast: CUDA0 warming the expert tiers 10% (3.4 of 33.9 GB, 2 s) glm fast: CUDA0 warming the expert tiers 20% (6.8 of 33.9 GB, 4 s) glm fast: CUDA0 warming the expert tiers 30% (10.2 of 33.9 GB, 5 s) glm fast: CUDA0 warming the expert tiers 40% (13.6 of 33.9 GB, 7 s) glm fast: CUDA0 warming the expert tiers 50% (17.0 of 33.9 GB, 8 s) glm fast: CUDA0 warming the expert tiers 60% (20.4 of 33.9 GB, 9 s) glm fast: CUDA0 warming the expert tiers 70% (23.7 of 33.9 GB, 11 s) glm fast: CUDA0 warming the expert tiers 80% (27.1 of 33.9 GB, 12 s) glm fast: CUDA0 warming the expert tiers 90% (30.5 of 33.9 GB, 13 s) glm fast: CUDA0 warming the expert tiers 100% (33.9 of 33.9 GB, 14 s) glm fast: CUDA0 tiers warm: 4760 experts (33.9 GB) in 14 s (2.34 GB/s) glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen glm fast: CUDA0 CPU lane: 8 threads, an expert 0.220 ms on the CPU vs 0.132 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 1 1 1 2 2 2 3 maya generate: glm5-next serve (M3.1): GEN <max_new> [keys] <ids>, GENI <max_new> [keys] <embeddings> <ids>; QUIT to end ## Benchmark (maya-bench.txt, from --bench) Project Maya v1.1.4 benchmark, 2026-10-13 14:07 GPUs: NVIDIA GeForce RTX 5080 16 GB; RAM 47 GB; CPU AMD Ryzen 7 9800X3D 8-Core Processor setup: maya-maya-s24.json, context 32768, GPUs [0] decode (writing the answer): mean 29.2 tokens/s over 3 answers of 256 tokens (greedy, thinking off) 26.7 tokens/s Write a Python function that parses a CSV file into a list of dictionaries, with type hints and a docstring. 29.6 tokens/s Explain how photosynthesis works, step by step, for a high-school student. 31.1 tokens/s Write a complete HTML page with a canvas that draws a bouncing ball animation in JavaScript. prefill (reading the prompt): 106 tokens/s, 2048 tokens prefill (reading the prompt): 279 tokens/s, 8192 tokens engine lines: glm prefill: CUDA0 chunks of 17408 tokens (--prefill auto, up to 32768; mixer sub-batches of 1024), borrowing 4248 MB of the expert pool while a prompt runs (activations 2896, weight scratch 96, expert staging 86, prestage 1153: 160 experts); disk landing ring 96 experts (692 MB pinned) glm fast: CUDA0 VRAM before the expert pool: 7.56 of 15.89 GB in use - dense weights 5.24, state/KV (32768 ctx) 0.62, activations 0.06, other (context, MTP, scratch, prompt path) 1.64 glm prefill: CUDA0 prestage buffer 160 -> 124 experts (what the pool can lend) glm fast: the expert profile G:\project-maya\data\expert-profile-glm.bin ranks 13248 (layer, expert) pairs glm fast: CUDA0 layers [0,45) expert pool 7.65 GB, 27-35 slots/layer (1154 total) glm fast: CUDA0 RAM tier 22.84 GB pinned, 3448 slots glm prefill: CUDA0 38% of the experts' bytes are held pinned: the pool lends at most 85% of its slots glm fast: CUDA0 tiers warm: 4468 experts (31.8 GB) in 14 s (2.27 GB/s) glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen glm fast: CUDA0 CPU lane: 8 threads, an expert 0.306 ms on the CPU vs 0.135 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 0 1 1 1 2 2 2 glm stat: decode 68.10 ms/tok (14.68 tok/s) | vram hit 86.31% | ram fetches 22.30/tok | disk 17.19 reads/tok in 12.23 waits/tok, 41.55 ms/tok | promotions 25.09/tok | cpu lane 3.11/tok in 1.41 ms/tok | prompt 258.5 ms/tok | vram 1057/1154 ram 3390/3448 glm stat: decode 37.43 ms/tok (26.72 tok/s) | vram hit 85.09% | ram fetches 35.60/tok | disk 4.60 reads/tok in 5.64 waits/tok, 11.26 ms/tok | promotions 27.48/tok | cpu lane 7.39/tok in 2.69 ms/tok | prompt 93.2 ms/tok | vram 1037/1154 ram 3424/3448 glm stat: decode 33.74 ms/tok (29.64 tok/s) | vram hit 81.51% | ram fetches 45.95/tok | disk 2.38 reads/tok in 4.26 waits/tok, 5.92 ms/tok | promotions 31.13/tok | cpu lane 11.16/tok in 3.97 ms/tok | prompt 62.8 ms/tok | vram 1054/1154 ram 3394/3448 glm stat: decode 32.11 ms/tok (31.14 tok/s) | vram hit 83.00% | ram fetches 42.92/tok | disk 1.99 reads/tok in 3.58 waits/tok, 5.00 ms/tok | promotions 29.95/tok | cpu lane 9.96/tok in 3.64 ms/tok | prompt 59.3 ms/tok | vram 1064/1154 ram 3390/3448 glm stat (prompt only): prompt 8.8 ms/tok | vram 843/1154 ram 3363/3448 glm slots: saved a 2047-token conversation (0.18 GB in 0.1 s); 1 kept, 0.18 GB glm stat (prompt only): prompt 9.5 ms/tok | vram 820/1154 ram 3350/3448 glm slots: saved a 2047-token conversation (0.18 GB in 0.1 s); 2 kept, 0.36 GB glm stat (prompt only): prompt 3.6 ms/tok | vram 708/1154 ram 3369/3448 ``` </details>
Author
Owner

@zhanghuqqqq commented on GitHub (Oct 13, 2026):

Correction to my earlier numbers here and on PR #76: the 29.2 tok/s bench and the DFlash2 −46% calibration were measured on a CORRUPTED pack. Real sustained decode on this card is ~4 tok/s.

Root cause, and I think it is worth a guard: the pack was built by --setup while the GGUF shards were still downloading. My download manager preallocates files at their final size and fills chunks afterwards, so the shard files existed at full size with unfilled (zero) regions inside — the pack builder read valid headers, indexed happily, and the resulting expert offsets pointed at unfilled regions. The engine decoded garbage at 29.2 tok/s (the broken expert mapping collapsed the effective expert working set, so almost everything was served from the resident tiers). After --repack on the complete files, output is correct and the same --bench on the same card/config gives decode 3.5-4.9 tok/s, prefill 73/284 tok/s at 2K/8K.

The contrast is diagnostic: corrupt pack = fast + wrong; correct pack = correct + 7× slower on short answers (the real tiered-streaming cost of a 321B / 18 B-active model behind a 16 GB pool + 24 GB pinned RAM tier). A cheap guard in the pack step — verify the indexed data extents are fully allocated (or record the shards' size/mtime in the pack and refuse to serve a pack whose GGUF changed after packing) — would have caught this before I posted numbers.

So:

  • Please disregard the 29.2 / 106 / 279 numbers in my earlier comment and the 29.2 reference in this issue — wrong pack.
  • The DFlash2 −46% on PR #76 was measured on the same corrupt pack (both legs), so treat the relative verdict as unproven; I will re-run --speed-calibration on the correct pack and follow up. (The 93% acceptance figure is real — it is the drafter's own counter.)
  • The tier-coverage question for a 16 GB card still stands, but it needs re-measuring on honest numbers.

Updated maya-report.txt (correct pack; the log now includes tonight's decode legs at 3.5-4.9 tok/s and the 73/284 prefill) below.

maya-report.txt (correct pack, 2026-10-13 evening)
## Maya
version 1.1.4, commit f4d13e1 2026-10-12, Python 3.11.9, win32

## System
Windows-10-10.0.26200-SP0

## GPUs
index, name, memory.total [MiB], memory.used [MiB], driver_version, pcie.link.gen.max, pcie.link.width.current, pcie.link.width.max, power.limit [W], temperature.gpu
0, NVIDIA GeForce RTX 5080, 16303 MiB, 14819 MiB, 616.92, 5, 16, 16, 360.00 W, 37

## CPU and RAM
AMD Ryzen 7 9800X3D 8-Core Processor, 16 threads, AVX-512
RAM 47.1 GB, 3.9 GB available now, page file 128 GB

## Disks

FriendlyName         MediaType BusType          Size
------------         --------- -------          ----
KingDian S280 1TB    SSD       SATA    1024209543168
PC SN740 NVMe WD 1TB SSD       NVMe    1024209543168
HYV1TBX3(XT)         SSD       NVMe    1024209543168
HS-SSD-DK4000 512G   SSD       NVMe     512110190592

## Engine build
{"archs": [120], "nvcc": "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v13.4\\bin\\nvcc.EXE", "host_compiler": null, "date": "2026-10-13 13:53"}

## Setup maya-maya-s24.json
model Maya-S24, context 32768, GPUs [0], images on, settings {}
model folder G:\project-maya\Maya-data\models\Maya-S24: 94.7 GB of GGUF, 120 GB free, not a hard disk

## Engine log maya-maya-s24.log: the speed and memory lines (last 80 of 151)
glm prefill: CUDA0 41% of the experts' bytes are held pinned: the pool lends at most 85% of its slots
glm fast: CUDA0 tiers warm: 4776 experts (34.0 GB) in 14 s (2.35 GB/s)
glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen
glm fast: CUDA0 CPU lane: 8 threads, an expert 0.260 ms on the CPU vs 0.138 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 0 1 1 1 2 2 3
glm stat: decode 290.02 ms/tok (3.45 tok/s) | vram hit 41.28% | ram fetches 87.81/tok | disk 77.67 reads/tok in 35.76 waits/tok, 234.75 ms/tok | promotions 64.41/tok | cpu lane 23.19/tok in 8.37 ms/tok | prompt 2.2 ms/tok | vram 1090/1154 ram 3651/3756
glm stat: decode 252.11 ms/tok (3.97 tok/s) | vram hit 40.70% | ram fetches 95.59/tok | disk 66.99 reads/tok in 34.41 waits/tok, 196.54 ms/tok | promotions 63.92/tok | cpu lane 26.91/tok in 9.55 ms/tok | prompt 3.3 ms/tok | vram 1096/1154 ram 3651/3756
glm stat: decode 269.45 ms/tok (3.71 tok/s) | vram hit 39.64% | ram fetches 94.87/tok | disk 71.29 reads/tok in 35.37 waits/tok, 213.23 ms/tok | promotions 63.91/tok | cpu lane 26.26/tok in 9.33 ms/tok | prompt 3.2 ms/tok | vram 1089/1154 ram 3650/3756
glm stat: decode 226.52 ms/tok (4.41 tok/s) | vram hit 43.74% | ram fetches 94.09/tok | disk 61.72 reads/tok in 31.59 waits/tok, 172.75 ms/tok | promotions 62.86/tok | cpu lane 26.15/tok in 9.23 ms/tok | prompt 3.2 ms/tok | vram 1088/1154 ram 3649/3756
glm stat: decode 289.38 ms/tok (3.46 tok/s) | vram hit 37.93% | ram fetches 94.66/tok | disk 76.97 reads/tok in 36.03 waits/tok, 232.24 ms/tok | promotions 64.17/tok | cpu lane 26.41/tok in 9.34 ms/tok | prompt 3.4 ms/tok | vram 1091/1154 ram 3644/3756
glm prefill: CUDA0 chunks of 10240 tokens (--prefill auto, up to 32768; mixer sub-batches of 1024), borrowing 3397 MB of the expert pool while a prompt runs (activations 2046, weight scratch 96, expert staging 86, prestage 1153: 160 experts); disk landing ring 96 experts (692 MB pinned)
glm fast: CUDA0 VRAM before the expert pool: 8.48 of 15.89 GB in use - dense weights 5.24, state/KV (32768 ctx) 0.62, activations 0.06, other (context, MTP, scratch, prompt path) 2.57
glm prefill: CUDA0 prestage buffer 160 -> 123 experts (what the pool can lend)
glm fast: the expert profile G:\project-maya\data\expert-profile-glm.bin ranks 13248 (layer, expert) pairs
glm fast: CUDA0 layers [0,45) expert pool 6.73 GB, 24-30 slots/layer (1015 total)
glm fast: CUDA0 RAM tier 24.91 GB pinned, 3760 slots
glm prefill: CUDA0 39% of the experts' bytes are held pinned: the pool lends at most 85% of its slots
glm fast: CUDA0 tiers warm: 4641 experts (33.0 GB) in 14 s (2.38 GB/s)
glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen
glm fast: CUDA0 CPU lane: 8 threads, an expert 0.241 ms on the CPU vs 0.153 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 1 1 1 2 2 3 3
glm stat: decode 523.82 ms/tok (1.91 tok/s) | vram hit 41.73% | ram fetches 115.61/tok | disk 140.27 reads/tok in 60.78 waits/tok, 441.24 ms/tok | promotions 43.05/tok | cpu lane 57.91/tok in 22.05 ms/tok | prompt 2.7 ms/tok | vram 948/1015 ram 3658/3760
glm stat: decode 441.44 ms/tok (2.27 tok/s) | vram hit 41.40% | ram fetches 142.45/tok | disk 120.55 reads/tok in 59.48 waits/tok, 356.74 ms/tok | promotions 38.63/tok | cpu lane 72.74/tok in 25.68 ms/tok | prompt 3.5 ms/tok | vram 962/1015 ram 3662/3760
glm stat: decode 487.15 ms/tok (2.05 tok/s) | vram hit 43.00% | ram fetches 135.12/tok | disk 130.67 reads/tok in 62.19 waits/tok, 402.00 ms/tok | promotions 35.50/tok | cpu lane 68.72/tok in 23.61 ms/tok | prompt 3.4 ms/tok | vram 956/1015 ram 3656/3760
glm stat: decode 521.03 ms/tok (1.92 tok/s) | vram hit 44.98% | ram fetches 139.95/tok | disk 138.18 reads/tok in 63.11 waits/tok, 435.99 ms/tok | promotions 26.22/tok | cpu lane 70.71/tok in 24.03 ms/tok | prompt 3.2 ms/tok | vram 952/1015 ram 3653/3760
glm stat: decode 475.61 ms/tok (2.10 tok/s) | vram hit 41.55% | ram fetches 135.60/tok | disk 128.68 reads/tok in 60.62 waits/tok, 390.85 ms/tok | promotions 37.28/tok | cpu lane 68.72/tok in 23.61 ms/tok | prompt 3.2 ms/tok | vram 938/1015 ram 3646/3760
glm fast: CUDA0 VRAM before the expert pool: 7.56 of 15.89 GB in use - dense weights 5.24, state/KV (32768 ctx) 0.62, activations 0.06, other (context, MTP, scratch, prompt path) 1.64
glm prefill: CUDA0 prestage buffer 160 -> 124 experts (what the pool can lend)
glm fast: CUDA0 the pool (27 slots/layer) cannot lend 3027 MB to the vision encoder
glm fast: the expert profile G:\project-maya\data\expert-profile-glm.bin ranks 13248 (layer, expert) pairs
glm fast: CUDA0 layers [0,45) expert pool 7.65 GB, 27-35 slots/layer (1154 total)
glm fast: CUDA0 RAM tier 24.77 GB pinned, 3740 slots
glm prefill: CUDA0 40% of the experts' bytes are held pinned: the pool lends at most 85% of its slots
glm fast: CUDA0 tiers warm: 4760 experts (33.9 GB) in 14 s (2.34 GB/s)
glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen
glm fast: CUDA0 CPU lane: 8 threads, an expert 0.220 ms on the CPU vs 0.132 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 1 1 1 2 2 2 3
glm prefill: CUDA0 chunks of 17408 tokens (--prefill auto, up to 32768; mixer sub-batches of 1024), borrowing 4248 MB of the expert pool while a prompt runs (activations 2896, weight scratch 96, expert staging 86, prestage 1153: 160 experts); disk landing ring 96 experts (692 MB pinned)
glm fast: CUDA0 VRAM before the expert pool: 7.56 of 15.89 GB in use - dense weights 5.24, state/KV (32768 ctx) 0.62, activations 0.06, other (context, MTP, scratch, prompt path) 1.64
glm prefill: CUDA0 prestage buffer 160 -> 124 experts (what the pool can lend)
glm fast: CUDA0 the pool (27 slots/layer) cannot lend 3027 MB to the vision encoder
glm fast: the expert profile G:\project-maya\data\expert-profile-glm.bin ranks 13248 (layer, expert) pairs
glm fast: CUDA0 layers [0,45) expert pool 7.65 GB, 27-35 slots/layer (1154 total)
maya generate: glm fast: --glm-ram-resident: the RAM tier cannot hold every non-VRAM expert (class 0: 715 of 2384 slots pinned; raise STRATA_GLM_RAM_GB, its headroom, or lower --max-context)
glm fast: CUDA0 VRAM before the expert pool: 7.56 of 15.89 GB in use - dense weights 5.24, state/KV (32768 ctx) 0.62, activations 0.06, other (context, MTP, scratch, prompt path) 1.64
glm prefill: CUDA0 prestage buffer 160 -> 124 experts (what the pool can lend)
glm fast: CUDA0 the pool (27 slots/layer) cannot lend 3027 MB to the vision encoder
glm fast: the expert profile G:\project-maya\data\expert-profile-glm.bin ranks 13248 (layer, expert) pairs
glm fast: CUDA0 layers [0,45) expert pool 7.65 GB, 27-35 slots/layer (1154 total)
glm fast: CUDA0 RAM tier 24.87 GB pinned, 3754 slots
glm prefill: CUDA0 41% of the experts' bytes are held pinned: the pool lends at most 85% of its slots
glm fast: CUDA0 tiers warm: 4774 experts (34.0 GB) in 14 s (2.36 GB/s)
glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen
glm fast: CUDA0 CPU lane: 8 threads, an expert 0.236 ms on the CPU vs 0.132 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 0 1 1 2 2 2 3
glm stat: decode 234.27 ms/tok (4.27 tok/s) | vram hit 44.28% | ram fetches 79.94/tok | disk 77.33 reads/tok in 35.09 waits/tok, 184.72 ms/tok | promotions 37.26/tok | cpu lane 23.97/tok in 8.27 ms/tok | prompt 376.5 ms/tok | vram 1073/1154 ram 3681/3754
glm stat: decode 324.37 ms/tok (3.08 tok/s) | vram hit 32.33% | ram fetches 84.34/tok | disk 107.41 reads/tok in 38.26 waits/tok, 266.11 ms/tok | promotions 51.62/tok | cpu lane 26.38/tok in 9.14 ms/tok | prompt 173.7 ms/tok | vram 1078/1154 ram 3663/3754
glm stat: decode 254.12 ms/tok (3.94 tok/s) | vram hit 44.43% | ram fetches 80.57/tok | disk 72.70 reads/tok in 35.27 waits/tok, 203.51 ms/tok | promotions 49.58/tok | cpu lane 24.35/tok in 8.43 ms/tok | prompt 507.0 ms/tok | vram 1063/1154 ram 3690/3754
glm stat: decode 331.93 ms/tok (3.01 tok/s) | vram hit 35.31% | ram fetches 88.58/tok | disk 90.29 reads/tok in 36.80 waits/tok, 275.99 ms/tok | promotions 54.19/tok | cpu lane 29.30/tok in 10.16 ms/tok | prompt 435.2 ms/tok | vram 1071/1154 ram 3683/3754
glm fast: CUDA0 VRAM before the expert pool: 7.56 of 15.89 GB in use - dense weights 5.24, state/KV (32768 ctx) 0.62, activations 0.06, other (context, MTP, scratch, prompt path) 1.64
glm prefill: CUDA0 prestage buffer 160 -> 124 experts (what the pool can lend)
glm fast: CUDA0 the pool (27 slots/layer) cannot lend 3027 MB to the vision encoder
glm fast: the expert profile G:\project-maya\data\expert-profile-glm.bin ranks 13248 (layer, expert) pairs
glm fast: CUDA0 layers [0,45) expert pool 7.65 GB, 27-35 slots/layer (1154 total)
glm fast: CUDA0 RAM tier 24.55 GB pinned, 3707 slots
glm prefill: CUDA0 40% of the experts' bytes are held pinned: the pool lends at most 85% of its slots
glm fast: CUDA0 tiers warm: 4727 experts (33.6 GB) in 14 s (2.35 GB/s)
glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen
glm fast: CUDA0 CPU lane: 8 threads, an expert 0.218 ms on the CPU vs 0.132 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 1 1 1 2 2 2 3
glm stat: decode 254.07 ms/tok (3.94 tok/s) | vram hit 36.77% | ram fetches 79.11/tok | disk 83.66 reads/tok in 37.25 waits/tok, 199.65 ms/tok | promotions 65.64/tok | cpu lane 39.67/tok in 13.55 ms/tok | prompt 161.5 ms/tok | vram 1098/1154 ram 3614/3707
glm stat: decode 219.57 ms/tok (4.55 tok/s) | vram hit 43.97% | ram fetches 74.83/tok | disk 65.88 reads/tok in 33.95 waits/tok, 169.20 ms/tok | promotions 63.64/tok | cpu lane 37.12/tok in 12.68 ms/tok | prompt 378.2 ms/tok | vram 1085/1154 ram 3610/3707
glm stat: decode 274.55 ms/tok (3.64 tok/s) | vram hit 35.27% | ram fetches 84.95/tok | disk 79.96 reads/tok in 35.90 waits/tok, 219.82 ms/tok | promotions 65.00/tok | cpu lane 42.74/tok in 14.62 ms/tok | prompt 419.3 ms/tok | vram 1086/1154 ram 3597/3707
glm fast: CUDA0 VRAM before the expert pool: 7.56 of 15.89 GB in use - dense weights 5.24, state/KV (32768 ctx) 0.62, activations 0.06, other (context, MTP, scratch, prompt path) 1.64
glm prefill: CUDA0 prestage buffer 160 -> 124 experts (what the pool can lend)
glm fast: CUDA0 the pool (27 slots/layer) cannot lend 3027 MB to the vision encoder
glm fast: CUDA0 layers [0,45) expert pool 7.52 GB, 27-27 slots/layer (1134 total)
glm fast: CUDA0 RAM tier 24.49 GB pinned, 3697 slots
glm prefill: CUDA0 40% of the experts' bytes are held pinned: the pool lends at most 85% of its slots
glm fast: CUDA0 tiers warm: 4697 experts (33.4 GB) in 13 s (2.51 GB/s)
glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen
glm fast: CUDA0 CPU lane: 8 threads, an expert 0.216 ms on the CPU vs 0.133 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 1 1 1 2 2 2 3
glm stat: decode 266.97 ms/tok (3.75 tok/s) | vram hit 36.51% | ram fetches 76.23/tok | disk 89.13 reads/tok in 37.48 waits/tok, 212.13 ms/tok | promotions 65.84/tok | cpu lane 38.06/tok in 14.02 ms/tok | prompt 211.6 ms/tok | vram 1095/1134 ram 3614/3697
glm stat: decode 210.60 ms/tok (4.75 tok/s) | vram hit 44.60% | ram fetches 74.75/tok | disk 63.29 reads/tok in 33.98 waits/tok, 160.76 ms/tok | promotions 63.92/tok | cpu lane 37.36/tok in 13.05 ms/tok | prompt 379.0 ms/tok | vram 1078/1134 ram 3607/3697
glm stat: decode 274.49 ms/tok (3.64 tok/s) | vram hit 35.02% | ram fetches 86.78/tok | disk 78.89 reads/tok in 35.86 waits/tok, 219.97 ms/tok | promotions 65.18/tok | cpu lane 43.25/tok in 14.83 ms/tok | prompt 441.6 ms/tok | vram 1078/1134 ram 3595/3697

## Engine log maya-maya-s24.log: the last 25 lines
e 1153: 160 experts); disk landing ring 96 experts (692 MB pinned)
glm fast: CUDA0 VRAM before the expert pool: 7.56 of 15.89 GB in use - dense weights 5.24, state/KV (32768 ctx) 0.62, activations 0.06, other (context, MTP, scratch, prompt path) 1.64
glm prefill: CUDA0 prestage buffer 160 -> 124 experts (what the pool can lend)
glm fast: CUDA0 the pool (27 slots/layer) cannot lend 3027 MB to the vision encoder
glm fast: CUDA0 layers [0,45) expert pool 7.52 GB, 27-27 slots/layer (1134 total)
glm fast: CUDA0 RAM tier 24.49 GB pinned, 3697 slots
glm prefill: CUDA0 40% of the experts' bytes are held pinned: the pool lends at most 85% of its slots
glm fast: CUDA0 warming the expert tiers 10% (3.4 of 33.4 GB, 2 s)
glm fast: CUDA0 warming the expert tiers 20% (6.7 of 33.4 GB, 4 s)
glm fast: CUDA0 warming the expert tiers 30% (10.1 of 33.4 GB, 5 s)
glm fast: CUDA0 warming the expert tiers 40% (13.4 of 33.4 GB, 6 s)
glm fast: CUDA0 warming the expert tiers 50% (16.7 of 33.4 GB, 8 s)
glm fast: CUDA0 warming the expert tiers 60% (20.1 of 33.4 GB, 9 s)
glm fast: CUDA0 warming the expert tiers 70% (23.4 of 33.4 GB, 10 s)
glm fast: CUDA0 warming the expert tiers 80% (26.7 of 33.4 GB, 11 s)
glm fast: CUDA0 warming the expert tiers 90% (30.1 of 33.4 GB, 12 s)
glm fast: CUDA0 warming the expert tiers 100% (33.4 of 33.4 GB, 13 s)
glm fast: CUDA0 tiers warm: 4697 experts (33.4 GB) in 13 s (2.51 GB/s)
glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen
glm fast: CUDA0 CPU lane: 8 threads, an expert 0.216 ms on the CPU vs 0.133 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 1 1 1 2 2 2 3
maya generate: glm5-next serve (M3.1): GEN <max_new> [keys] <ids>, GENI <max_new> [keys] <embeddings> <ids>; QUIT to end
glm_batch: CUDA0 prompt attention on the tensor cores (mma.sync, 32 heads a block)
glm stat: decode 266.97 ms/tok (3.75 tok/s) | vram hit 36.51% | ram fetches 76.23/tok | disk 89.13 reads/tok in 37.48 waits/tok, 212.13 ms/tok | promotions 65.84/tok | cpu lane 38.06/tok in 14.02 ms/tok | prompt 211.6 ms/tok | vram 1095/1134 ram 3614/3697
glm stat: decode 210.60 ms/tok (4.75 tok/s) | vram hit 44.60% | ram fetches 74.75/tok | disk 63.29 reads/tok in 33.98 waits/tok, 160.76 ms/tok | promotions 63.92/tok | cpu lane 37.36/tok in 13.05 ms/tok | prompt 379.0 ms/tok | vram 1078/1134 ram 3607/3697
glm stat: decode 274.49 ms/tok (3.64 tok/s) | vram hit 35.02% | ram fetches 86.78/tok | disk 78.89 reads/tok in 35.86 waits/tok, 219.97 ms/tok | promotions 65.18/tok | cpu lane 43.25/tok in 14.83 ms/tok | prompt 441.6 ms/tok | vram 1078/1134 ram 3595/3697

## Benchmark (maya-bench.txt, from --bench)
Project Maya v1.1.4 benchmark, 2026-10-13 18:21
GPUs: NVIDIA GeForce RTX 5080 16 GB; RAM 47 GB; CPU AMD Ryzen 7 9800X3D 8-Core Processor
setup: maya-maya-s24.json, context 32768, GPUs [0]
decode (writing the answer): mean 4.1 tokens/s over 3 answers of 256 tokens (greedy, thinking off)
     3.9 tokens/s  Write a Python function that parses a CSV file into a list of dictionaries, with type hints and a docstring.
     4.9 tokens/s  Explain how photosynthesis works, step by step, for a high-school student.
     3.5 tokens/s  Write a complete HTML page with a canvas that draws a bouncing ball animation in JavaScript.
prefill (reading the prompt): 73 tokens/s, 2048 tokens
prefill (reading the prompt): 284 tokens/s, 8192 tokens

engine lines:
glm prefill: CUDA0 chunks of 17408 tokens (--prefill auto, up to 32768; mixer sub-batches of 1024), borrowing 4248 MB of the expert pool while a prompt runs (activations 2896, weight scratch 96, expert staging 86, prestage 1153: 160 experts); disk landing ring 96 experts (692 MB pinned)
glm fast: CUDA0 VRAM before the expert pool: 7.56 of 15.89 GB in use - dense weights 5.24, state/KV (32768 ctx) 0.62, activations 0.06, other (context, MTP, scratch, prompt path) 1.64
glm prefill: CUDA0 prestage buffer 160 -> 124 experts (what the pool can lend)
glm fast: the expert profile G:\project-maya\data\expert-profile-glm.bin ranks 13248 (layer, expert) pairs
glm fast: CUDA0 layers [0,45) expert pool 7.65 GB, 27-35 slots/layer (1154 total)
glm fast: CUDA0 RAM tier 24.65 GB pinned, 3722 slots
glm prefill: CUDA0 40% of the experts' bytes are held pinned: the pool lends at most 85% of its slots
glm fast: CUDA0 tiers warm: 4742 experts (33.7 GB) in 14 s (2.37 GB/s)
glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen
glm fast: CUDA0 CPU lane: 8 threads, an expert 0.272 ms on the CPU vs 0.132 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 0 1 1 1 2 2 2
glm stat: decode 191.36 ms/tok (5.23 tok/s) | vram hit 53.29% | ram fetches 71.22/tok | disk 60.28 reads/tok in 32.34 waits/tok, 144.52 ms/tok | promotions 59.89/tok | cpu lane 15.52/tok in 5.44 ms/tok | prompt 318.1 ms/tok | vram 1098/1154 ram 3629/3722
glm stat: decode 256.97 ms/tok (3.89 tok/s) | vram hit 34.32% | ram fetches 97.56/tok | disk 84.04 reads/tok in 37.20 waits/tok, 200.87 ms/tok | promotions 64.86/tok | cpu lane 27.77/tok in 9.54 ms/tok | prompt 294.3 ms/tok | vram 1106/1154 ram 3632/3722
glm stat: decode 203.45 ms/tok (4.92 tok/s) | vram hit 44.63% | ram fetches 88.42/tok | disk 63.77 reads/tok in 33.71 waits/tok, 152.83 ms/tok | promotions 63.62/tok | cpu lane 23.28/tok in 8.00 ms/tok | prompt 538.9 ms/tok | vram 1090/1154 ram 3618/3722
glm stat: decode 284.91 ms/tok (3.51 tok/s) | vram hit 34.43% | ram fetches 100.35/tok | disk 80.56 reads/tok in 36.48 waits/tok, 229.20 ms/tok | promotions 64.85/tok | cpu lane 29.06/tok in 9.99 ms/tok | prompt 427.5 ms/tok | vram 1095/1154 ram 3619/3722
glm stat (prompt only): prompt 12.4 ms/tok | vram 907/1154 ram 3655/3722
glm slots: saved a 2047-token conversation (0.18 GB in 0.1 s); 1 kept, 0.18 GB
glm stat (prompt only): prompt 13.7 ms/tok | vram 922/1154 ram 3655/3722
glm slots: saved a 2047-token conversation (0.18 GB in 0.1 s); 2 kept, 0.36 GB
glm stat (prompt only): prompt 3.5 ms/tok | vram 816/1154 ram 3661/3722
<!-- gh-comment-id:6143634705 --> @zhanghuqqqq commented on GitHub (Oct 13, 2026): **Correction to my earlier numbers here and on PR #76: the 29.2 tok/s bench and the DFlash2 −46% calibration were measured on a CORRUPTED pack. Real sustained decode on this card is ~4 tok/s.** Root cause, and I think it is worth a guard: the pack was built by `--setup` while the GGUF shards were still downloading. My download manager preallocates files at their final size and fills chunks afterwards, so the shard files existed at full size with unfilled (zero) regions inside — the pack builder read valid headers, indexed happily, and the resulting expert offsets pointed at unfilled regions. The engine decoded **garbage at 29.2 tok/s** (the broken expert mapping collapsed the effective expert working set, so almost everything was served from the resident tiers). After `--repack` on the complete files, output is correct and the same `--bench` on the same card/config gives **decode 3.5-4.9 tok/s, prefill 73/284 tok/s at 2K/8K**. The contrast is diagnostic: corrupt pack = fast + wrong; correct pack = correct + 7× slower on short answers (the real tiered-streaming cost of a 321B / 18 B-active model behind a 16 GB pool + 24 GB pinned RAM tier). A cheap guard in the pack step — verify the indexed data extents are fully allocated (or record the shards' size/mtime in the pack and refuse to serve a pack whose GGUF changed after packing) — would have caught this before I posted numbers. So: - Please disregard the 29.2 / 106 / 279 numbers in my earlier comment and the 29.2 reference in this issue — wrong pack. - The DFlash2 −46% on PR #76 was measured on the same corrupt pack (both legs), so treat the relative verdict as unproven; I will re-run `--speed-calibration` on the correct pack and follow up. (The 93% acceptance figure is real — it is the drafter's own counter.) - The tier-coverage question for a 16 GB card still stands, but it needs re-measuring on honest numbers. Updated `maya-report.txt` (correct pack; the log now includes tonight's decode legs at 3.5-4.9 tok/s and the 73/284 prefill) below. <details> <summary>maya-report.txt (correct pack, 2026-10-13 evening)</summary> ``` ## Maya version 1.1.4, commit f4d13e1 2026-10-12, Python 3.11.9, win32 ## System Windows-10-10.0.26200-SP0 ## GPUs index, name, memory.total [MiB], memory.used [MiB], driver_version, pcie.link.gen.max, pcie.link.width.current, pcie.link.width.max, power.limit [W], temperature.gpu 0, NVIDIA GeForce RTX 5080, 16303 MiB, 14819 MiB, 616.92, 5, 16, 16, 360.00 W, 37 ## CPU and RAM AMD Ryzen 7 9800X3D 8-Core Processor, 16 threads, AVX-512 RAM 47.1 GB, 3.9 GB available now, page file 128 GB ## Disks FriendlyName MediaType BusType Size ------------ --------- ------- ---- KingDian S280 1TB SSD SATA 1024209543168 PC SN740 NVMe WD 1TB SSD NVMe 1024209543168 HYV1TBX3(XT) SSD NVMe 1024209543168 HS-SSD-DK4000 512G SSD NVMe 512110190592 ## Engine build {"archs": [120], "nvcc": "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v13.4\\bin\\nvcc.EXE", "host_compiler": null, "date": "2026-10-13 13:53"} ## Setup maya-maya-s24.json model Maya-S24, context 32768, GPUs [0], images on, settings {} model folder G:\project-maya\Maya-data\models\Maya-S24: 94.7 GB of GGUF, 120 GB free, not a hard disk ## Engine log maya-maya-s24.log: the speed and memory lines (last 80 of 151) glm prefill: CUDA0 41% of the experts' bytes are held pinned: the pool lends at most 85% of its slots glm fast: CUDA0 tiers warm: 4776 experts (34.0 GB) in 14 s (2.35 GB/s) glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen glm fast: CUDA0 CPU lane: 8 threads, an expert 0.260 ms on the CPU vs 0.138 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 0 1 1 1 2 2 3 glm stat: decode 290.02 ms/tok (3.45 tok/s) | vram hit 41.28% | ram fetches 87.81/tok | disk 77.67 reads/tok in 35.76 waits/tok, 234.75 ms/tok | promotions 64.41/tok | cpu lane 23.19/tok in 8.37 ms/tok | prompt 2.2 ms/tok | vram 1090/1154 ram 3651/3756 glm stat: decode 252.11 ms/tok (3.97 tok/s) | vram hit 40.70% | ram fetches 95.59/tok | disk 66.99 reads/tok in 34.41 waits/tok, 196.54 ms/tok | promotions 63.92/tok | cpu lane 26.91/tok in 9.55 ms/tok | prompt 3.3 ms/tok | vram 1096/1154 ram 3651/3756 glm stat: decode 269.45 ms/tok (3.71 tok/s) | vram hit 39.64% | ram fetches 94.87/tok | disk 71.29 reads/tok in 35.37 waits/tok, 213.23 ms/tok | promotions 63.91/tok | cpu lane 26.26/tok in 9.33 ms/tok | prompt 3.2 ms/tok | vram 1089/1154 ram 3650/3756 glm stat: decode 226.52 ms/tok (4.41 tok/s) | vram hit 43.74% | ram fetches 94.09/tok | disk 61.72 reads/tok in 31.59 waits/tok, 172.75 ms/tok | promotions 62.86/tok | cpu lane 26.15/tok in 9.23 ms/tok | prompt 3.2 ms/tok | vram 1088/1154 ram 3649/3756 glm stat: decode 289.38 ms/tok (3.46 tok/s) | vram hit 37.93% | ram fetches 94.66/tok | disk 76.97 reads/tok in 36.03 waits/tok, 232.24 ms/tok | promotions 64.17/tok | cpu lane 26.41/tok in 9.34 ms/tok | prompt 3.4 ms/tok | vram 1091/1154 ram 3644/3756 glm prefill: CUDA0 chunks of 10240 tokens (--prefill auto, up to 32768; mixer sub-batches of 1024), borrowing 3397 MB of the expert pool while a prompt runs (activations 2046, weight scratch 96, expert staging 86, prestage 1153: 160 experts); disk landing ring 96 experts (692 MB pinned) glm fast: CUDA0 VRAM before the expert pool: 8.48 of 15.89 GB in use - dense weights 5.24, state/KV (32768 ctx) 0.62, activations 0.06, other (context, MTP, scratch, prompt path) 2.57 glm prefill: CUDA0 prestage buffer 160 -> 123 experts (what the pool can lend) glm fast: the expert profile G:\project-maya\data\expert-profile-glm.bin ranks 13248 (layer, expert) pairs glm fast: CUDA0 layers [0,45) expert pool 6.73 GB, 24-30 slots/layer (1015 total) glm fast: CUDA0 RAM tier 24.91 GB pinned, 3760 slots glm prefill: CUDA0 39% of the experts' bytes are held pinned: the pool lends at most 85% of its slots glm fast: CUDA0 tiers warm: 4641 experts (33.0 GB) in 14 s (2.38 GB/s) glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen glm fast: CUDA0 CPU lane: 8 threads, an expert 0.241 ms on the CPU vs 0.153 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 1 1 1 2 2 3 3 glm stat: decode 523.82 ms/tok (1.91 tok/s) | vram hit 41.73% | ram fetches 115.61/tok | disk 140.27 reads/tok in 60.78 waits/tok, 441.24 ms/tok | promotions 43.05/tok | cpu lane 57.91/tok in 22.05 ms/tok | prompt 2.7 ms/tok | vram 948/1015 ram 3658/3760 glm stat: decode 441.44 ms/tok (2.27 tok/s) | vram hit 41.40% | ram fetches 142.45/tok | disk 120.55 reads/tok in 59.48 waits/tok, 356.74 ms/tok | promotions 38.63/tok | cpu lane 72.74/tok in 25.68 ms/tok | prompt 3.5 ms/tok | vram 962/1015 ram 3662/3760 glm stat: decode 487.15 ms/tok (2.05 tok/s) | vram hit 43.00% | ram fetches 135.12/tok | disk 130.67 reads/tok in 62.19 waits/tok, 402.00 ms/tok | promotions 35.50/tok | cpu lane 68.72/tok in 23.61 ms/tok | prompt 3.4 ms/tok | vram 956/1015 ram 3656/3760 glm stat: decode 521.03 ms/tok (1.92 tok/s) | vram hit 44.98% | ram fetches 139.95/tok | disk 138.18 reads/tok in 63.11 waits/tok, 435.99 ms/tok | promotions 26.22/tok | cpu lane 70.71/tok in 24.03 ms/tok | prompt 3.2 ms/tok | vram 952/1015 ram 3653/3760 glm stat: decode 475.61 ms/tok (2.10 tok/s) | vram hit 41.55% | ram fetches 135.60/tok | disk 128.68 reads/tok in 60.62 waits/tok, 390.85 ms/tok | promotions 37.28/tok | cpu lane 68.72/tok in 23.61 ms/tok | prompt 3.2 ms/tok | vram 938/1015 ram 3646/3760 glm fast: CUDA0 VRAM before the expert pool: 7.56 of 15.89 GB in use - dense weights 5.24, state/KV (32768 ctx) 0.62, activations 0.06, other (context, MTP, scratch, prompt path) 1.64 glm prefill: CUDA0 prestage buffer 160 -> 124 experts (what the pool can lend) glm fast: CUDA0 the pool (27 slots/layer) cannot lend 3027 MB to the vision encoder glm fast: the expert profile G:\project-maya\data\expert-profile-glm.bin ranks 13248 (layer, expert) pairs glm fast: CUDA0 layers [0,45) expert pool 7.65 GB, 27-35 slots/layer (1154 total) glm fast: CUDA0 RAM tier 24.77 GB pinned, 3740 slots glm prefill: CUDA0 40% of the experts' bytes are held pinned: the pool lends at most 85% of its slots glm fast: CUDA0 tiers warm: 4760 experts (33.9 GB) in 14 s (2.34 GB/s) glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen glm fast: CUDA0 CPU lane: 8 threads, an expert 0.220 ms on the CPU vs 0.132 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 1 1 1 2 2 2 3 glm prefill: CUDA0 chunks of 17408 tokens (--prefill auto, up to 32768; mixer sub-batches of 1024), borrowing 4248 MB of the expert pool while a prompt runs (activations 2896, weight scratch 96, expert staging 86, prestage 1153: 160 experts); disk landing ring 96 experts (692 MB pinned) glm fast: CUDA0 VRAM before the expert pool: 7.56 of 15.89 GB in use - dense weights 5.24, state/KV (32768 ctx) 0.62, activations 0.06, other (context, MTP, scratch, prompt path) 1.64 glm prefill: CUDA0 prestage buffer 160 -> 124 experts (what the pool can lend) glm fast: CUDA0 the pool (27 slots/layer) cannot lend 3027 MB to the vision encoder glm fast: the expert profile G:\project-maya\data\expert-profile-glm.bin ranks 13248 (layer, expert) pairs glm fast: CUDA0 layers [0,45) expert pool 7.65 GB, 27-35 slots/layer (1154 total) maya generate: glm fast: --glm-ram-resident: the RAM tier cannot hold every non-VRAM expert (class 0: 715 of 2384 slots pinned; raise STRATA_GLM_RAM_GB, its headroom, or lower --max-context) glm fast: CUDA0 VRAM before the expert pool: 7.56 of 15.89 GB in use - dense weights 5.24, state/KV (32768 ctx) 0.62, activations 0.06, other (context, MTP, scratch, prompt path) 1.64 glm prefill: CUDA0 prestage buffer 160 -> 124 experts (what the pool can lend) glm fast: CUDA0 the pool (27 slots/layer) cannot lend 3027 MB to the vision encoder glm fast: the expert profile G:\project-maya\data\expert-profile-glm.bin ranks 13248 (layer, expert) pairs glm fast: CUDA0 layers [0,45) expert pool 7.65 GB, 27-35 slots/layer (1154 total) glm fast: CUDA0 RAM tier 24.87 GB pinned, 3754 slots glm prefill: CUDA0 41% of the experts' bytes are held pinned: the pool lends at most 85% of its slots glm fast: CUDA0 tiers warm: 4774 experts (34.0 GB) in 14 s (2.36 GB/s) glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen glm fast: CUDA0 CPU lane: 8 threads, an expert 0.236 ms on the CPU vs 0.132 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 0 1 1 2 2 2 3 glm stat: decode 234.27 ms/tok (4.27 tok/s) | vram hit 44.28% | ram fetches 79.94/tok | disk 77.33 reads/tok in 35.09 waits/tok, 184.72 ms/tok | promotions 37.26/tok | cpu lane 23.97/tok in 8.27 ms/tok | prompt 376.5 ms/tok | vram 1073/1154 ram 3681/3754 glm stat: decode 324.37 ms/tok (3.08 tok/s) | vram hit 32.33% | ram fetches 84.34/tok | disk 107.41 reads/tok in 38.26 waits/tok, 266.11 ms/tok | promotions 51.62/tok | cpu lane 26.38/tok in 9.14 ms/tok | prompt 173.7 ms/tok | vram 1078/1154 ram 3663/3754 glm stat: decode 254.12 ms/tok (3.94 tok/s) | vram hit 44.43% | ram fetches 80.57/tok | disk 72.70 reads/tok in 35.27 waits/tok, 203.51 ms/tok | promotions 49.58/tok | cpu lane 24.35/tok in 8.43 ms/tok | prompt 507.0 ms/tok | vram 1063/1154 ram 3690/3754 glm stat: decode 331.93 ms/tok (3.01 tok/s) | vram hit 35.31% | ram fetches 88.58/tok | disk 90.29 reads/tok in 36.80 waits/tok, 275.99 ms/tok | promotions 54.19/tok | cpu lane 29.30/tok in 10.16 ms/tok | prompt 435.2 ms/tok | vram 1071/1154 ram 3683/3754 glm fast: CUDA0 VRAM before the expert pool: 7.56 of 15.89 GB in use - dense weights 5.24, state/KV (32768 ctx) 0.62, activations 0.06, other (context, MTP, scratch, prompt path) 1.64 glm prefill: CUDA0 prestage buffer 160 -> 124 experts (what the pool can lend) glm fast: CUDA0 the pool (27 slots/layer) cannot lend 3027 MB to the vision encoder glm fast: the expert profile G:\project-maya\data\expert-profile-glm.bin ranks 13248 (layer, expert) pairs glm fast: CUDA0 layers [0,45) expert pool 7.65 GB, 27-35 slots/layer (1154 total) glm fast: CUDA0 RAM tier 24.55 GB pinned, 3707 slots glm prefill: CUDA0 40% of the experts' bytes are held pinned: the pool lends at most 85% of its slots glm fast: CUDA0 tiers warm: 4727 experts (33.6 GB) in 14 s (2.35 GB/s) glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen glm fast: CUDA0 CPU lane: 8 threads, an expert 0.218 ms on the CPU vs 0.132 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 1 1 1 2 2 2 3 glm stat: decode 254.07 ms/tok (3.94 tok/s) | vram hit 36.77% | ram fetches 79.11/tok | disk 83.66 reads/tok in 37.25 waits/tok, 199.65 ms/tok | promotions 65.64/tok | cpu lane 39.67/tok in 13.55 ms/tok | prompt 161.5 ms/tok | vram 1098/1154 ram 3614/3707 glm stat: decode 219.57 ms/tok (4.55 tok/s) | vram hit 43.97% | ram fetches 74.83/tok | disk 65.88 reads/tok in 33.95 waits/tok, 169.20 ms/tok | promotions 63.64/tok | cpu lane 37.12/tok in 12.68 ms/tok | prompt 378.2 ms/tok | vram 1085/1154 ram 3610/3707 glm stat: decode 274.55 ms/tok (3.64 tok/s) | vram hit 35.27% | ram fetches 84.95/tok | disk 79.96 reads/tok in 35.90 waits/tok, 219.82 ms/tok | promotions 65.00/tok | cpu lane 42.74/tok in 14.62 ms/tok | prompt 419.3 ms/tok | vram 1086/1154 ram 3597/3707 glm fast: CUDA0 VRAM before the expert pool: 7.56 of 15.89 GB in use - dense weights 5.24, state/KV (32768 ctx) 0.62, activations 0.06, other (context, MTP, scratch, prompt path) 1.64 glm prefill: CUDA0 prestage buffer 160 -> 124 experts (what the pool can lend) glm fast: CUDA0 the pool (27 slots/layer) cannot lend 3027 MB to the vision encoder glm fast: CUDA0 layers [0,45) expert pool 7.52 GB, 27-27 slots/layer (1134 total) glm fast: CUDA0 RAM tier 24.49 GB pinned, 3697 slots glm prefill: CUDA0 40% of the experts' bytes are held pinned: the pool lends at most 85% of its slots glm fast: CUDA0 tiers warm: 4697 experts (33.4 GB) in 13 s (2.51 GB/s) glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen glm fast: CUDA0 CPU lane: 8 threads, an expert 0.216 ms on the CPU vs 0.133 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 1 1 1 2 2 2 3 glm stat: decode 266.97 ms/tok (3.75 tok/s) | vram hit 36.51% | ram fetches 76.23/tok | disk 89.13 reads/tok in 37.48 waits/tok, 212.13 ms/tok | promotions 65.84/tok | cpu lane 38.06/tok in 14.02 ms/tok | prompt 211.6 ms/tok | vram 1095/1134 ram 3614/3697 glm stat: decode 210.60 ms/tok (4.75 tok/s) | vram hit 44.60% | ram fetches 74.75/tok | disk 63.29 reads/tok in 33.98 waits/tok, 160.76 ms/tok | promotions 63.92/tok | cpu lane 37.36/tok in 13.05 ms/tok | prompt 379.0 ms/tok | vram 1078/1134 ram 3607/3697 glm stat: decode 274.49 ms/tok (3.64 tok/s) | vram hit 35.02% | ram fetches 86.78/tok | disk 78.89 reads/tok in 35.86 waits/tok, 219.97 ms/tok | promotions 65.18/tok | cpu lane 43.25/tok in 14.83 ms/tok | prompt 441.6 ms/tok | vram 1078/1134 ram 3595/3697 ## Engine log maya-maya-s24.log: the last 25 lines e 1153: 160 experts); disk landing ring 96 experts (692 MB pinned) glm fast: CUDA0 VRAM before the expert pool: 7.56 of 15.89 GB in use - dense weights 5.24, state/KV (32768 ctx) 0.62, activations 0.06, other (context, MTP, scratch, prompt path) 1.64 glm prefill: CUDA0 prestage buffer 160 -> 124 experts (what the pool can lend) glm fast: CUDA0 the pool (27 slots/layer) cannot lend 3027 MB to the vision encoder glm fast: CUDA0 layers [0,45) expert pool 7.52 GB, 27-27 slots/layer (1134 total) glm fast: CUDA0 RAM tier 24.49 GB pinned, 3697 slots glm prefill: CUDA0 40% of the experts' bytes are held pinned: the pool lends at most 85% of its slots glm fast: CUDA0 warming the expert tiers 10% (3.4 of 33.4 GB, 2 s) glm fast: CUDA0 warming the expert tiers 20% (6.7 of 33.4 GB, 4 s) glm fast: CUDA0 warming the expert tiers 30% (10.1 of 33.4 GB, 5 s) glm fast: CUDA0 warming the expert tiers 40% (13.4 of 33.4 GB, 6 s) glm fast: CUDA0 warming the expert tiers 50% (16.7 of 33.4 GB, 8 s) glm fast: CUDA0 warming the expert tiers 60% (20.1 of 33.4 GB, 9 s) glm fast: CUDA0 warming the expert tiers 70% (23.4 of 33.4 GB, 10 s) glm fast: CUDA0 warming the expert tiers 80% (26.7 of 33.4 GB, 11 s) glm fast: CUDA0 warming the expert tiers 90% (30.1 of 33.4 GB, 12 s) glm fast: CUDA0 warming the expert tiers 100% (33.4 of 33.4 GB, 13 s) glm fast: CUDA0 tiers warm: 4697 experts (33.4 GB) in 13 s (2.51 GB/s) glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen glm fast: CUDA0 CPU lane: 8 threads, an expert 0.216 ms on the CPU vs 0.133 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 1 1 1 2 2 2 3 maya generate: glm5-next serve (M3.1): GEN <max_new> [keys] <ids>, GENI <max_new> [keys] <embeddings> <ids>; QUIT to end glm_batch: CUDA0 prompt attention on the tensor cores (mma.sync, 32 heads a block) glm stat: decode 266.97 ms/tok (3.75 tok/s) | vram hit 36.51% | ram fetches 76.23/tok | disk 89.13 reads/tok in 37.48 waits/tok, 212.13 ms/tok | promotions 65.84/tok | cpu lane 38.06/tok in 14.02 ms/tok | prompt 211.6 ms/tok | vram 1095/1134 ram 3614/3697 glm stat: decode 210.60 ms/tok (4.75 tok/s) | vram hit 44.60% | ram fetches 74.75/tok | disk 63.29 reads/tok in 33.98 waits/tok, 160.76 ms/tok | promotions 63.92/tok | cpu lane 37.36/tok in 13.05 ms/tok | prompt 379.0 ms/tok | vram 1078/1134 ram 3607/3697 glm stat: decode 274.49 ms/tok (3.64 tok/s) | vram hit 35.02% | ram fetches 86.78/tok | disk 78.89 reads/tok in 35.86 waits/tok, 219.97 ms/tok | promotions 65.18/tok | cpu lane 43.25/tok in 14.83 ms/tok | prompt 441.6 ms/tok | vram 1078/1134 ram 3595/3697 ## Benchmark (maya-bench.txt, from --bench) Project Maya v1.1.4 benchmark, 2026-10-13 18:21 GPUs: NVIDIA GeForce RTX 5080 16 GB; RAM 47 GB; CPU AMD Ryzen 7 9800X3D 8-Core Processor setup: maya-maya-s24.json, context 32768, GPUs [0] decode (writing the answer): mean 4.1 tokens/s over 3 answers of 256 tokens (greedy, thinking off) 3.9 tokens/s Write a Python function that parses a CSV file into a list of dictionaries, with type hints and a docstring. 4.9 tokens/s Explain how photosynthesis works, step by step, for a high-school student. 3.5 tokens/s Write a complete HTML page with a canvas that draws a bouncing ball animation in JavaScript. prefill (reading the prompt): 73 tokens/s, 2048 tokens prefill (reading the prompt): 284 tokens/s, 8192 tokens engine lines: glm prefill: CUDA0 chunks of 17408 tokens (--prefill auto, up to 32768; mixer sub-batches of 1024), borrowing 4248 MB of the expert pool while a prompt runs (activations 2896, weight scratch 96, expert staging 86, prestage 1153: 160 experts); disk landing ring 96 experts (692 MB pinned) glm fast: CUDA0 VRAM before the expert pool: 7.56 of 15.89 GB in use - dense weights 5.24, state/KV (32768 ctx) 0.62, activations 0.06, other (context, MTP, scratch, prompt path) 1.64 glm prefill: CUDA0 prestage buffer 160 -> 124 experts (what the pool can lend) glm fast: the expert profile G:\project-maya\data\expert-profile-glm.bin ranks 13248 (layer, expert) pairs glm fast: CUDA0 layers [0,45) expert pool 7.65 GB, 27-35 slots/layer (1154 total) glm fast: CUDA0 RAM tier 24.65 GB pinned, 3722 slots glm prefill: CUDA0 40% of the experts' bytes are held pinned: the pool lends at most 85% of its slots glm fast: CUDA0 tiers warm: 4742 experts (33.7 GB) in 14 s (2.37 GB/s) glm fast: CUDA0 the RAM tier sits on node 0 of 2 seen glm fast: CUDA0 CPU lane: 8 threads, an expert 0.272 ms on the CPU vs 0.132 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 0 1 1 1 2 2 2 glm stat: decode 191.36 ms/tok (5.23 tok/s) | vram hit 53.29% | ram fetches 71.22/tok | disk 60.28 reads/tok in 32.34 waits/tok, 144.52 ms/tok | promotions 59.89/tok | cpu lane 15.52/tok in 5.44 ms/tok | prompt 318.1 ms/tok | vram 1098/1154 ram 3629/3722 glm stat: decode 256.97 ms/tok (3.89 tok/s) | vram hit 34.32% | ram fetches 97.56/tok | disk 84.04 reads/tok in 37.20 waits/tok, 200.87 ms/tok | promotions 64.86/tok | cpu lane 27.77/tok in 9.54 ms/tok | prompt 294.3 ms/tok | vram 1106/1154 ram 3632/3722 glm stat: decode 203.45 ms/tok (4.92 tok/s) | vram hit 44.63% | ram fetches 88.42/tok | disk 63.77 reads/tok in 33.71 waits/tok, 152.83 ms/tok | promotions 63.62/tok | cpu lane 23.28/tok in 8.00 ms/tok | prompt 538.9 ms/tok | vram 1090/1154 ram 3618/3722 glm stat: decode 284.91 ms/tok (3.51 tok/s) | vram hit 34.43% | ram fetches 100.35/tok | disk 80.56 reads/tok in 36.48 waits/tok, 229.20 ms/tok | promotions 64.85/tok | cpu lane 29.06/tok in 9.99 ms/tok | prompt 427.5 ms/tok | vram 1095/1154 ram 3619/3722 glm stat (prompt only): prompt 12.4 ms/tok | vram 907/1154 ram 3655/3722 glm slots: saved a 2047-token conversation (0.18 GB in 0.1 s); 1 kept, 0.18 GB glm stat (prompt only): prompt 13.7 ms/tok | vram 922/1154 ram 3655/3722 glm slots: saved a 2047-token conversation (0.18 GB in 0.1 s); 2 kept, 0.36 GB glm stat (prompt only): prompt 3.5 ms/tok | vram 816/1154 ram 3661/3722 ``` </details>
Author
Owner

@mw00 commented on GitHub (Oct 13, 2026):

Thanks for tracking that down, and for correcting the numbers so openly.

The pack guard: agreed, Maya should have caught this. Setup checks the SHA-256 only of the files it downloads itself; a GGUF already in the folder is used as it is. We'll check those too before packing, and record each shard's size and modification time in the pack, so a GGUF that changes after packing is refused with a pointer to --repack.

Why prompts are slow on this PC: with 47 GB of RAM, the RAM tier holds about 40% of the experts' bytes (your log: "40% of the experts' bytes are held pinned"). A prompt chunk needs nearly every expert of every layer, so each chunk reads most of the rest from the NVMe. That's why the 2K and the 8K prompt take about the same time (~28 s): it's the SSD, not the kernels, and kernel tuning wouldn't show on this machine. The disk reads per token in your decode lines are the same story. More RAM is what moves both: every GB takes experts off the SSD, and at 96 GB nearly all of Maya-S24 fits in VRAM + RAM.

<!-- gh-comment-id:6147946771 --> @mw00 commented on GitHub (Oct 13, 2026): Thanks for tracking that down, and for correcting the numbers so openly. **The pack guard:** agreed, Maya should have caught this. Setup checks the SHA-256 only of the files it downloads itself; a GGUF already in the folder is used as it is. We'll check those too before packing, and record each shard's size and modification time in the pack, so a GGUF that changes after packing is refused with a pointer to `--repack`. **Why prompts are slow on this PC:** with 47 GB of RAM, the RAM tier holds about 40% of the experts' bytes (your log: "40% of the experts' bytes are held pinned"). A prompt chunk needs nearly every expert of every layer, so each chunk reads most of the rest from the NVMe. That's why the 2K and the 8K prompt take about the same time (~28 s): it's the SSD, not the kernels, and kernel tuning wouldn't show on this machine. The disk reads per token in your decode lines are the same story. More RAM is what moves both: every GB takes experts off the SSD, and at 96 GB nearly all of Maya-S24 fits in VRAM + RAM.
Author
Owner

@mw00 commented on GitHub (Oct 13, 2026):

The guard is in v1.1.7: before the setup builds a pack from a Maya model's files, it checks them against their published sha256 (once each, files already in the folder too), and a start refuses a pack whose model files changed afterwards, with ./maya.sh --setup --repack to build it again. Thanks again for tracing it.

<!-- gh-comment-id:6154921672 --> @mw00 commented on GitHub (Oct 13, 2026): The guard is in [v1.1.7](https://github.com/mw00/project-maya/releases/tag/v1.1.7): before the setup builds a pack from a Maya model's files, it checks them against their published sha256 (once each, files already in the folder too), and a start refuses a pack whose model files changed afterwards, with `./maya.sh --setup --repack` to build it again. Thanks again for tracing it.
Author
Owner

@mw00 commented on GitHub (Oct 13, 2026):

Closing: the guard is in v1.1.7, and the prompt speed on this PC comes down to the experts the SSD has to supply (above). Thanks again.

<!-- gh-comment-id:6155983370 --> @mw00 commented on GitHub (Oct 13, 2026): Closing: the guard is in v1.1.7, and the prompt speed on this PC comes down to the experts the SSD has to supply (above). Thanks again.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mw00/project-maya#55
No description provided.