mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[GH-ISSUE #580] maya-mm3 (MiniMax M3.1 · Maya-S): prefill ~240-275 tok/s and decode ~35 tok/s on 4x RTX 3090 — 7x below the GLM engine on the same box; first Maya-S prefill numbers + a setup fix #243
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#243
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 @wickist on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/580
Sharing measurements for the mm3 engine on the same 4x RTX 3090 box I benchmarked GLM on (#579), since there are no Maya-S prefill numbers anywhere yet. Also a small setup bug we hit, with a two-line fix.
Hardware / setup
(same as #579) 4x RTX 3090 (PCIe 4.0), Threadripper PRO 3945WX, 126 GB RAM, NVMe RAID0, Ubuntu 24.04, driver 610.57.04, CUDA 13.1
minimax-maya-s(122 GB), DSpark drafter, context 262144, KV int8, vision onResults (same fixed-seed prompts as the GLM runs in #579)
So decode is ~3.3x below the GLM engine and prefill is ~7-8x below, on identical hardware. The 150K prompt takes ~10 minutes; day-to-day agent use is not practical at this speed while GLM flies. I read the per-layer sparse-attention indexer as an inherent extra prefill cost, but I have no other mm3 prefill datapoint to compare against — hence this report.
Questions:
Setup bug: the pack never finds the indexers side file when a shards list is given
On a fresh v1.1.32 install, Step 6 fails three times in a row with "the sparse-attention indexer of layers 0, 1, 2 is not in the set", even though the
-maya-indexers.binside file sits beside the shards: the mm3 pack step inmaya.pypasses an explicit--shardslist totools/mm3/pack_gguf.py, and in that script'sfind_shards()the side-file glob is only walked when no shard names are given — so an explicit list can never pick the side file up. Workarounds we used: run the pack tool by hand with no shard names (the glob then finds it), or pass--indexerswith an absolute path (a bare file name is resolved against the CWD, not against the model folder). Local fix we run now (the mm3 GGUF pack step inmaya.py, around line 4785 on v1.1.32): before building the command, look forsorted(d.glob("*-maya-indexers.bin"))in the model folder, and when found append--indexers <absolute path>to the pack command.Happy to turn this into a PR if useful — say the word. Thanks for mm3 and DSpark!
@talisp commented on GitHub (Oct 28, 2026):
Thanks for the numbers! On your question about mm3-side flags: try a larger
--chunk. On our box it was the single biggest prompt-speed lever for MiniMax, 2-3x.Why it matters when experts are outside VRAM: each prompt chunk copies, over PCIe, the experts that VRAM doesn't hold. So the cost is per chunk, not per token: a chunk of 1024 pays it 4x as often as one of 4096. Your calibration line says
chunk 1024, and your ~90% hit rate means many experts are staged.What we measured (1× L40S 48 GB, MiniMax-M3.1-Flash EXL3 3.55 bpw, 262K context, KV streaming, vision and DSpark on; one start each, page cache dropped before each):
experts residentline at start and your decode."--chunk", "8192"in theargsofmaya-mm3.json. It works the same on v1.1.32.--chunkavoids that.We'd be curious what 4096 / 8192 / 16384 give on your 4x 3090: your PCIe 4.0 box should gain at least as much as our single card.