mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 19:04:50 +07:00
[GH-ISSUE #29] Maya-M on RTX 3090 + RTX 3060 (+ Quadro RTX 4000), 125 GB RAM: benchmarks, a disk-read fix, setup findings #14
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#14
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 @sociolog on GitHub (Oct 8, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/29
Machine: Ryzen 9 5900X (12C/24T, AVX2), 125 GB DDR4-3200, RTX 3090 24 GB + RTX 3060 12 GB + Quadro RTX 4000 8 GB
(all PCIe x8; Gen4, Gen4, Gen3), WD SN850X NVMe, Linux Mint (kernel 7.0), driver 580.178.04, CUDA 12.8.
Maya: v1.0.14 (v1.0.12's 3090 work included), Maya-M, context 32768,
./maya.sh --benchunless noted.maya-report.txtand the bench files attached. (The report shows commitcbb0188— our local patch below; the"out of the box" rows were measured on plain v1.0.14 before it.)
Results
Best: 2 GPUs, split 29, DEMOTE_WAIT, PREFILL_MB 3072 —
--calibratekept its own settings (PCIe share 0.27; 0.10 re-measured equal).Through the OpenAI API (our 21K test: a fresh 20.5K-token prompt, then 2,500 tokens at 21K depth), best 2-GPU setup: prefill 790 tok/s, decode 18.3 tok/s.
MTP acceptance on 2 GPUs: 76-79 % (bench prompts).
Quick quality look: a correct tool call (Serbian question, diacritics intact); Serbian answer fluent but in ijekavian forms; image test read exactly the visible (accidentally clipped) text and noticed the clipping.
1. Disk reads with every expert in RAM + VRAM — and a small fix (
STRATA_GLM_DEMOTE_WAIT)With 125 GB RAM all experts fit RAM + VRAM, yet
glm statshowed 5-7 disk reads per token (10-14 ms of ~70 ms).STRATA_GLM_RAM_GB, a bigger RAM tier andSTRATA_GLM_PROMOTE=0changed nothing (drops 0). Cause:fast_boundary's spare refill (step 3) demotes a VRAM expert — its table entry is cleared at once and its RAM slot iskRDemoteuntil the D2H lands and the next boundary publishes it. A route in that window is a miss, and the miss path infast_serviceaccepts onlykRLoad/kRNewslots, so it reads the expert from the disk into a second slot. Patch (opt-in, attached0001-...patch, 31 lines inglm_fast_path.cu): in the miss path, akRDemoteslot holding that key →cudaEventSynchronizeon its drain event (sub-ms), use the slot (kRNew, orkRReleasewhen promoted). Disk reads → 0 (a log line counts them: ~29,000 avoided in one API session), decode +26 % (13.8 → 17.4) on 2 GPUs, +9 % on 1. Quality (STRATA_GLM_SCOREon 1,135 tokens, KL against a stock run's dumped distribution): stock vs stock KL 0.014-0.017 (median 0.0002, max 0.43-1.05); patched vs stock KL 0.036-0.041 (median 0.009, p99 0.30-0.34, max 1.5-2.4); mean NLL patched 1.302-1.308 vs stock 1.299-1.308. We read it as a small uniform shift from the different tier placement, not an error cluster — but it is not bit-identical (stock greedy is not reproducible run to run either), so your parity tests should decide. It may also be cleaner to keep the table entry until the D2H lands instead of waiting.2. Two GPUs of different size
The middle split (+2) is far from best for 24 + 12 GB: split 29 gives +12 % decode (curve in the table). The VRAM-sized split (
glm_auto_bounds) is used only for 3+ GPUs — using it for two unequal GPUs too would likely find this by itself.Prefill: the 2-GPU chunk budget (~6 % of the card, 1-2 GB) gave chunks of 2,816 (3090) / 1,728 (3060) tokens; with
STRATA_GLM_PREFILL_MB=3072both take 8,192 → 8K prefill +46 %, 2K +23 %, decode unchanged. One GPU reads 8K at 886.3+ GPUs force 512-token chunks (tuned on 9 GPUs); on 3 consumer cards over PCIe x8, 4,096-token chunks were 3.2x faster on 8K prompts (155 → 495).
3. Setup findings (each cost us a restart)
Build without NVTX: a CUDA 12.8 runfile install without the NVTX component fails at
glm_fast_path.cu:29(nvtx3/nvToolsExt.h: No such file or directory). Worked around withCPATH=<site-packages>/nvidia/nvtx/include(pipnvidia-nvtx-cu12 12.8.90, header-only). A setup check with that hint, or#if __has_include, would help.Download folder renamed in v1.0.12:
models/glm-5.3-flash-maya-m/→models/Maya-M/. Updating mid-download (or with an earlier download) starts from zero; we moved 78 GB by hand andcurl -C -resumed. Not in the release notes.curl --retry 5does not retry exit 92 (HTTP/2 stream 1 was not closed cleanly: CANCEL (err 8)) → "Setup stopped" on a 20 GB shard.--retry-all-errors(curl ≥ 7.71) and/or--http1.1would keep it going.Thank you for Maya — happy to test more on this mixed setup.
The engine and model were tested, the patch written and this report produced with the help of Claude, an AI assistant by Anthropic.
@sociolog commented on GitHub (Oct 8, 2026):
I found after posting that #13 and PR #24 (@tanutanu56) describe the same in-flight demotion re-reads, and they were first. Please take this as an independent confirmation on a 3090 + 3060 + 125 GB machine. The split, prompt-chunk and setup findings are separate from that.
@mw00 commented on GitHub (Oct 11, 2026):
Thank you, these findings are folded in: the in-flight demotion re-reads (fixed with #13 and #24), and the split and prompt-chunk findings fed the split search and
--prefill auto. Closing as done. Your later reports (#51, #77, #79) carry on from here.