mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[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
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mw00/project-maya#55
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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)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
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?Engine lines (from
--bench; full report below)What I can test
STRATA_GLM_PREFILL_SUBsweeps on this card, if that is a useful data point.--bench+--report), and report back numbers on sm_120.maya-report.txtbelow (includes the DFlash2 calibration legs, so the prompt-path stats there are at 8K-doc working-set conditions).maya-report.txt
@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
--setupwhile 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--repackon the complete files, output is correct and the same--benchon 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:
--speed-calibrationon the correct pack and follow up. (The 93% acceptance figure is real — it is the drafter's own counter.)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)
@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.
@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 --repackto build it again. Thanks again for tracing it.@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.