[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

Open
opened 2026-10-29 21:23:07 +07:00 by bsakaguchi · 1 comment
Owner

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

  • Project Maya v1.1.32, minimax-maya-s (122 GB), DSpark drafter, context 262144, KV int8, vision on
  • engine layer split 0-15 / 16-31 / 32-47 / 48-59, 48 staging slots per GPU, prefill calibration written (chunk 1024, BLAS GEMMs)

Results (same fixed-seed prompts as the GLM runs in #579)

Case MiniMax M3.1 · Maya-S GLM-5.3 · Maya-M (same box)
decode, short prompt 35.5 tok/s (engine; client 34.1) 116.4 tok/s
decode, 100K-loaded context 33.0-35.8 tok/s 100.4 tok/s
prefill, 80K tokens 274.5 tok/s (292 s) 1909 tok/s
prefill, 88K tokens (TTFT) 264.2 tok/s (TTFT 334.5 s) 1966 tok/s
prefill, 143K tokens 239.7 tok/s (597 s) 2490 tok/s
expert cache hit ~90% 98-99%

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:

  • Is this in line with what you see internally for Maya-S/Maya-XS prefill, or is something off in my setup?
  • Any mm3-side flags worth trying (prefill chunking / TP grouping / staging) before the next release?

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.bin side file sits beside the shards: the mm3 pack step in maya.py passes an explicit --shards list to tools/mm3/pack_gguf.py, and in that script's find_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 --indexers with 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 in maya.py, around line 4785 on v1.1.32): before building the command, look for sorted(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!

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 - Project Maya **v1.1.32**, `minimax-maya-s` (122 GB), DSpark drafter, context **262144**, KV int8, vision on - engine layer split 0-15 / 16-31 / 32-47 / 48-59, 48 staging slots per GPU, prefill calibration written (chunk 1024, BLAS GEMMs) ## Results (same fixed-seed prompts as the GLM runs in #579) | Case | MiniMax M3.1 · Maya-S | GLM-5.3 · Maya-M (same box) | |---|---|---| | decode, short prompt | **35.5 tok/s** (engine; client 34.1) | 116.4 tok/s | | decode, 100K-loaded context | **33.0-35.8 tok/s** | 100.4 tok/s | | prefill, 80K tokens | **274.5 tok/s** (292 s) | 1909 tok/s | | prefill, 88K tokens (TTFT) | **264.2 tok/s** (TTFT 334.5 s) | 1966 tok/s | | prefill, 143K tokens | **239.7 tok/s** (597 s) | 2490 tok/s | | expert cache hit | ~90% | 98-99% | 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: - Is this in line with what you see internally for Maya-S/Maya-XS prefill, or is something off in my setup? - Any mm3-side flags worth trying (prefill chunking / TP grouping / staging) before the next release? ## 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.bin` side file sits beside the shards: the mm3 pack step in `maya.py` passes an explicit `--shards` list to `tools/mm3/pack_gguf.py`, and in that script's `find_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 `--indexers` with 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 in `maya.py`, around line 4785 on v1.1.32): before building the command, look for `sorted(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!
Author
Owner

@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):

Chunk Experts in VRAM Decode tok/s Prompt 9.6K / 39K / 159K tok/s
1024 (what the old calibration wrote) 961 18.35 157 / 163 / 137
4096 878 17.98 337 / 365 / 242
8192 767 18.03 405 / 465 / 270
16384 541 17.35 512 / 518 / 276
  • The cost: bigger chunk buffers leave less VRAM for experts. Here that cost almost no decode up to 8192, and ~5% at 16384. On 4 GPUs the trade may differ, so watch the experts resident line at start and your decode.
  • How: pass it explicitly, "--chunk", "8192" in the args of maya-mm3.json. It works the same on v1.1.32.
  • Why explicit: if you recalibrate on v1.1.34 or later and it picks a larger chunk, the single-conversation server still reads with 1024 (#602, a one-line fix there). An explicit --chunk avoids 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.

<!-- gh-comment-id:6468288009 --> @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): | Chunk | Experts in VRAM | Decode tok/s | Prompt 9.6K / 39K / 159K tok/s | |---|---|---|---| | 1024 (what the old calibration wrote) | 961 | 18.35 | 157 / 163 / 137 | | 4096 | 878 | 17.98 | 337 / 365 / 242 | | 8192 | 767 | 18.03 | 405 / 465 / 270 | | 16384 | 541 | 17.35 | 512 / 518 / 276 | - **The cost:** bigger chunk buffers leave less VRAM for experts. Here that cost almost no decode up to 8192, and ~5% at 16384. On 4 GPUs the trade may differ, so watch the `experts resident` line at start and your decode. - **How:** pass it explicitly, `"--chunk", "8192"` in the `args` of `maya-mm3.json`. It works the same on v1.1.32. - **Why explicit:** if you recalibrate on v1.1.34 or later and it picks a larger chunk, the single-conversation server still reads with 1024 (#602, a one-line fix there). An explicit `--chunk` avoids 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.
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#243
No description provided.