mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[GH-ISSUE #175] Speed report: RTX 3090 24 GB (Ryzen 7 5800X, 62 GB RAM) - Maya-S24, 9.0 tok/s decode / 507 tok/s prefill (8K), Linux + disk-bound decode question #67
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#67
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 @itsmetamike on GitHub (Oct 14, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/175
A speed report for a single RTX 3090 with 62 GB of RAM, where decode is about a third of the README's 3090 figure and the engine's own stats show roughly half of each token spent waiting on the SSD. Asking whether that is expected, and whether there is a setting I should try.
The PC
--gpu 1). An RTX 3070 8 GB is also installed and idle during the runs.f4d13e1), Maya-S24, 32K context, default settings. I have not run--calibrateor changed anySTRATA_*setting.Results (
./maya.sh --bench)For comparison, the README table lists 26.0 tok/s decode and 913 tok/s prefill for Maya-S24 on one RTX 3090 with 128 GB RAM (#135).
Where the time goes
My read (not verified): the VRAM tier holds 2449 experts and the RAM tier about 49 GB of a 94.7 GB model, so some experts come off the SSD on every token (10 to 12 disk reads per token), and the disk wait is about 41 to 65 ms of each 95 to 127 ms. Reports with every expert in RAM show
disk 0.00 reads/tok. Peak NVMe reads I saw while generating were about 1.4 GB/s.maya-bench.txt
maya-report.txtis attached.Other things I measured
--gpus 0,1) decoded at about 5.3 tok/s (3070 pegged at 100% on PCIe 3.0 x4, 3090 about 30%). Swapping the order (--gpus 1,0) gave 6.8. The 3090 alone gave 9.4 to 9.5 tok/s on Maya-S24.mtp: 0in /metrics for the single-GPU runs.Questions
STRATA_GLM_RAM_HEADROOM_GBfrom 6, or the disk reader settings in SETTINGS.md? I haven't changed any.@itsmetamike commented on GitHub (Oct 14, 2026):
maya-report.txt
@mw00 commented on GitHub (Oct 14, 2026):
Thanks for a very complete report - the engine lines make this easy to read, and your reading of them is right.
1. Is ~9 tok/s expected here? For this PC, yes. Maya-S24's experts are about 86 GB. Your VRAM pool holds 16 GB and the RAM tier 49 GB, so about 17 GB (some 2,400 experts of ~7 MB) stay on the SSD. Each token then waits for ~10 of them: 41-65 ms of its 95-127 ms, about 1.3 GB/s - close to what a PCIe 3.0 SM2263 drive delivers. For comparison:
So the drive explains most of the gap to the 60-64 GB PCs, and RAM the rest of the way to 26.
2. Settings to try - one at a time:
KEY=VALUE ./maya.sh --benchtries one, and a setting you keep goes into the"env"block of yourmaya-maya-s24.json(or./maya.sh --setup --env KEY=VALUE):git pull, then./setup.sh): since v1.1.4 the CPU lane's split is timed again during decode, and some of the CPU's expert math got faster. Small gains, but free../maya.sh --calibrate(10-15 minutes): tunes the CPU lane's split and threads for your 5800X.STRATA_GLM_RAM_HEADROOM_GB=3(the default is 6) moves about 3 GB of experts off the SSD (~420 of the ~2,400). Watchfree -h: the tier is pinned, so if the desktop starts swapping, go back up. Closing other programs before Maya starts does the same.STRATA_GLM_USAGE=$HOME/maya-usage.txt. Maya writes down which experts you use and loads those first at the next start, so the experts of your usual topics land in VRAM and RAM rather than on the SSD. It helps more after a few sessions of your normal work, and with the "later rounds get slower" part too.STRATA_GLM_DISK_READERS=8. On a DRAM-less Kingston NV3 beside a 3090 with 60 GB of RAM, a 2K prompt read 50% faster and an 8K one 25% faster, with the same output. Drives with their own DRAM can lose with it, so measure yours.STRATA_GLM_DISK_SKIP_W=0.12leaves out an SSD-only expert whose weight in the token is below 12% instead of waiting for the read. On the 3090 + 60 GB PC above: 13.3 -> 21.6 tok/s, with a KL of 0.12 against the full computation (for scale, Maya-S itself is 0.43 from the FP8 model). The engine log'sglm skipline counts what it left out. It is off by default for that reason: try it and judge the answers yourself.3. Does the DRAM-less drive hurt? Likely some, mostly for prompts (the readers setting above was measured on one). For decode the larger limit is the PCIe 3.0 x4 link and the SM2263's read speed: your 1.4 GB/s peak is near what it does.
4. 147 tok/s at 2K against 507 at 8K? Not a warm-up. A 2K prompt already routes to nearly every expert, so every prompt reads the ~17 GB of SSD experts once, whatever its length - about 12 s at your drive's speed. The 2K prompt pays all of it alone, the 8K one spreads it over four times the tokens.
STRATA_GLM_DISK_READERS=8goes after exactly this.If you are thinking about hardware: 96 GB of RAM would hold every expert in VRAM + RAM - no SSD reads, likely around 20 tok/s or more with your CPU's memory. A PCIe 4.0 NVMe with its own DRAM is the cheaper step, toward the 13-15 tok/s of the PCs above. And keeping the 3070 out was right: on PCIe 3.0 x4, every expert it needs crosses that slow link.
If you try any of these, please post the
--benchlines here - we'd like to see where it lands.@mw00 commented on GitHub (Oct 16, 2026):
Thanks again, @itsmetamike - the questions are answered above, so closing this one. If you add RAM or a faster NVMe later, a new
--benchwould be welcome.