[GH-ISSUE #165] Speed report: Maya-M 44 / Maya-L 30 tok/s on 2x RTX 3090 (EPYC 7452, 256 GB) + note on v1.1.5 long-prompt prefill with checkpoints #59

Closed
opened 2026-10-29 21:19:54 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @orochifj on GitHub (Oct 13, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/165

Part 1: speed report (v1.1.4)

GPUs 2x RTX 3090 24 GB, PCIe 4.0 x16 each, power cap 250 W, driver 610.57.04, layer split (auto)
CPU AMD EPYC 7452 (32 cores, Zen 2, AVX2)
RAM 256 GB, 8x 32 GB DDR4-2666 RDIMM on all 8 channels (STREAM ~139 GB/s)
Disk NVMe (Samsung 970 EVO Plus / WD SN550)
OS Ubuntu 24.04.4, kernel 6.8, CUDA 12.0 nvcc + g++-12
Maya v1.1.4 (Maya-L also on v1.1.3), context 131072, MTP drafting, setup defaults

--bench

Model Decode (3 x 256 tokens, greedy) Prefill 2K Prefill 8K
Maya-M 44.0 tok/s (43.2 / 43.6 / 45.1) 536 860
Maya-L 30.2 tok/s (29.9 / 29.9 / 30.9) 417 801

Through the API (prefill: a synthetic prompt with a unique prefix, max_tokens 1, thinking off; decode streaming with the server's sampling defaults, thinking off unless noted)

Maya-M Maya-L
Prefill 17K / 38K / 77K / 105K 1,177 / 1,334 / 1,388 / 1,377 1,026 / 1,214 / 1,267 / 1,270
Decode: English story 40.6 27.7
Decode: Chinese prose 43.1 31.6
Decode: Python module (1,500 tokens) 44.0 30.6
Decode: reasoning, thinking on 41.5 31.3
Decode right after a 77K prompt 38.4 26.3
RAM used (engine RSS) ~90 GB (87 GB) ~131 GB (127 GB)
VRAM per card 23.7 GB 23.8 GB
Routed experts in VRAM 69 % 55 %

Other results

  • DFlash2 loses here (Maya-L speed calibration): MTP 29.2 tok/s (83 % of drafts accepted) against DFlash2 17.7 tok/s (79 %), so MTP was kept. This matches the comment on #157.
  • --calibrate (Maya-L): the defaults were already the fastest (PCIe share 0.31: 28.8 tok/s; 16 CPU threads: 29.1).
  • Needle (Maya-L, v1.1.3): 6/6 at 32K and 128K.
  • STRATA_GLM_SPEC_SAMPLE=1 + STRATA_GLM_SPEC_CANCEL=1 (Maya-M, v1.1.5): sampled decode +1 to +9 %, and +12 % right after a 77K prompt.
  • Not measured: Maya-S / S24, --parallel, --prefill 32768, STRATA_GLM_KV_INT8, 1-card runs.

Part 2: observation on v1.1.5 - long-prompt prefill 16-26 % slower here, the difference goes away with STRATA_GLM_CKPTS=0

After updating from v1.1.4 to v1.1.5 (commit 5ce7929), I measured prefill on prompts of 17K-105K tokens 16-26 % lower on my 2x RTX 3090 layer split. Short prompts (--bench 2K/8K) and decode are unchanged. I turned off one v1.1.5 default at a time: with STRATA_GLM_CKPTS=0 (the conversation checkpoints, #146), prefill is back within 3-4 % of v1.1.4. I don't know whether this is a problem or the expected cost of the checkpoints, which should pay back on later turns. Posting the numbers in case they're useful.

Test: Maya-M, context 131072, MTP, --prefill auto. OpenAI endpoint, one request at a time. A synthetic prompt with a unique prefix each time, so neither the conversation cache nor a checkpoint can be reused. max_tokens 1, thinking off. Each column is a fresh server start on the same machine with the same files; nothing else used the GPUs.

Prompt v1.1.4 v1.1.5 defaults --kv-streaming off STRATA_GLM_CPU_MT=0 STRATA_GLM_CKPTS=0
17K 1,177 987 1,041 989 1,144
38K 1,334 1,019 1,050 1,018 1,290
77K 1,388 1,029 1,067 1,028 1,334
105K 1,377 1,074 1,115 1,074 1,323

(prefill, tok/s)

  • Time to read the 105K prompt: 97.9 s with checkpoints against 79.4 s with STRATA_GLM_CKPTS=0. That's about 18.5 s for the roughly 6-7 checkpoints taken while reading it, or ~3 s per checkpoint. I don't know the internals; if a save is meant to be cheap (~150 MB of state), this may be worth a look on splits.
  • The 17K row also drops by ~13 % with at most one or two checkpoints, so a single save already seems to cost seconds.
  • Decode was not affected: 39.7-43.7 tok/s with defaults, 38.5-43.3 with CKPTS=0, 40.6-44.0 on v1.1.4. --bench was also unchanged.
  • KV streaming (now on by default) made a 2-5 % difference on long prompts here; STRATA_GLM_CPU_MT=0 made none.
  • Question: is this cost expected on a 2-GPU split? If so, would a larger STRATA_GLM_CKPT_EVERY be the recommended setting for long single prompts?

Attached: ./maya.sh --report for Maya-M on v1.1.5 (taken after the STRATA_GLM_CKPTS=0 run) and for Maya-L on v1.1.3.

maya-report_M_v115_2026-10-14.txt

maya-report_2026-10-13.txt

Originally created by @orochifj on GitHub (Oct 13, 2026). Original GitHub issue: https://github.com/mw00/project-maya/issues/165 ## Part 1: speed report (v1.1.4) | | | |---|---| | GPUs | 2x RTX 3090 24 GB, PCIe 4.0 x16 each, power cap 250 W, driver 610.57.04, layer split (auto) | | CPU | AMD EPYC 7452 (32 cores, Zen 2, AVX2) | | RAM | 256 GB, 8x 32 GB DDR4-2666 RDIMM on all 8 channels (STREAM ~139 GB/s) | | Disk | NVMe (Samsung 970 EVO Plus / WD SN550) | | OS | Ubuntu 24.04.4, kernel 6.8, CUDA 12.0 nvcc + g++-12 | | Maya | v1.1.4 (Maya-L also on v1.1.3), context 131072, MTP drafting, setup defaults | **`--bench`** | Model | Decode (3 x 256 tokens, greedy) | Prefill 2K | Prefill 8K | |---|---:|---:|---:| | **Maya-M** | **44.0 tok/s** (43.2 / 43.6 / 45.1) | 536 | 860 | | **Maya-L** | **30.2 tok/s** (29.9 / 29.9 / 30.9) | 417 | 801 | **Through the API** (prefill: a synthetic prompt with a unique prefix, `max_tokens` 1, thinking off; decode streaming with the server's sampling defaults, thinking off unless noted) | | Maya-M | Maya-L | |---|---:|---:| | Prefill 17K / 38K / 77K / 105K | 1,177 / 1,334 / 1,388 / 1,377 | 1,026 / 1,214 / 1,267 / 1,270 | | Decode: English story | 40.6 | 27.7 | | Decode: Chinese prose | 43.1 | 31.6 | | Decode: Python module (1,500 tokens) | 44.0 | 30.6 | | Decode: reasoning, thinking on | 41.5 | 31.3 | | Decode right after a 77K prompt | 38.4 | 26.3 | | RAM used (engine RSS) | ~90 GB (87 GB) | ~131 GB (127 GB) | | VRAM per card | 23.7 GB | 23.8 GB | | Routed experts in VRAM | 69 % | 55 % | **Other results** - **DFlash2 loses here (Maya-L speed calibration):** MTP 29.2 tok/s (83 % of drafts accepted) against DFlash2 17.7 tok/s (79 %), so MTP was kept. This matches the comment on #157. - **`--calibrate` (Maya-L):** the defaults were already the fastest (PCIe share 0.31: 28.8 tok/s; 16 CPU threads: 29.1). - **Needle (Maya-L, v1.1.3):** 6/6 at 32K and 128K. - **`STRATA_GLM_SPEC_SAMPLE=1` + `STRATA_GLM_SPEC_CANCEL=1` (Maya-M, v1.1.5):** sampled decode +1 to +9 %, and +12 % right after a 77K prompt. - Not measured: Maya-S / S24, `--parallel`, `--prefill 32768`, `STRATA_GLM_KV_INT8`, 1-card runs. ## Part 2: observation on v1.1.5 - long-prompt prefill 16-26 % slower here, the difference goes away with `STRATA_GLM_CKPTS=0` After updating from v1.1.4 to v1.1.5 (commit 5ce7929), I measured prefill on prompts of 17K-105K tokens 16-26 % lower on my 2x RTX 3090 layer split. Short prompts (`--bench` 2K/8K) and decode are unchanged. I turned off one v1.1.5 default at a time: with `STRATA_GLM_CKPTS=0` (the conversation checkpoints, #146), prefill is back within 3-4 % of v1.1.4. I don't know whether this is a problem or the expected cost of the checkpoints, which should pay back on later turns. Posting the numbers in case they're useful. **Test:** Maya-M, context 131072, MTP, `--prefill auto`. OpenAI endpoint, one request at a time. A synthetic prompt with a unique prefix each time, so neither the conversation cache nor a checkpoint can be reused. `max_tokens` 1, thinking off. Each column is a fresh server start on the same machine with the same files; nothing else used the GPUs. | Prompt | v1.1.4 | v1.1.5 defaults | `--kv-streaming off` | `STRATA_GLM_CPU_MT=0` | **`STRATA_GLM_CKPTS=0`** | |---|---:|---:|---:|---:|---:| | 17K | 1,177 | 987 | 1,041 | 989 | **1,144** | | 38K | 1,334 | 1,019 | 1,050 | 1,018 | **1,290** | | 77K | 1,388 | 1,029 | 1,067 | 1,028 | **1,334** | | 105K | 1,377 | 1,074 | 1,115 | 1,074 | **1,323** | (prefill, tok/s) - Time to read the 105K prompt: **97.9 s** with checkpoints against **79.4 s** with `STRATA_GLM_CKPTS=0`. That's about 18.5 s for the roughly 6-7 checkpoints taken while reading it, or **~3 s per checkpoint**. I don't know the internals; if a save is meant to be cheap (~150 MB of state), this may be worth a look on splits. - The 17K row also drops by ~13 % with at most one or two checkpoints, so a single save already seems to cost seconds. - Decode was not affected: 39.7-43.7 tok/s with defaults, 38.5-43.3 with `CKPTS=0`, 40.6-44.0 on v1.1.4. `--bench` was also unchanged. - KV streaming (now on by default) made a 2-5 % difference on long prompts here; `STRATA_GLM_CPU_MT=0` made none. - Question: is this cost expected on a 2-GPU split? If so, would a larger `STRATA_GLM_CKPT_EVERY` be the recommended setting for long single prompts? Attached: `./maya.sh --report` for Maya-M on v1.1.5 (taken after the `STRATA_GLM_CKPTS=0` run) and for Maya-L on v1.1.3. [maya-report_M_v115_2026-10-14.txt](https://github.com/user-attachments/files/33395812/maya-report_M_v115_2026-10-14.txt) [maya-report_2026-10-13.txt](https://github.com/user-attachments/files/33395819/maya-report_2026-10-13.txt)
Author
Owner

@mw00 commented on GitHub (Oct 13, 2026):

Thank you - a careful report, and the checkpoint finding is a real one: about 3 s a save is far more than writing ~150 MB of state should take, so something on the split path (most likely a wait the save forces between the two cards) costs more than it should. We're looking into it.

Until then, for long single prompts: STRATA_GLM_CKPTS=0 gives you v1.1.4's prefill back, or a larger STRATA_GLM_CKPT_EVERY (e.g. 65536) keeps the checkpoints at the end of the system prompt and the start of the last turn, where they pay off in agent sessions, while taking far fewer saves during a long read.

Also thanks for the spec-sampling numbers and the needle results - and for confirming DFlash2 vs MTP on a 2x 3090 split.

<!-- gh-comment-id:6155979065 --> @mw00 commented on GitHub (Oct 13, 2026): Thank you - a careful report, and the checkpoint finding is a real one: about 3 s a save is far more than writing ~150 MB of state should take, so something on the split path (most likely a wait the save forces between the two cards) costs more than it should. We're looking into it. Until then, for long single prompts: `STRATA_GLM_CKPTS=0` gives you v1.1.4's prefill back, or a larger `STRATA_GLM_CKPT_EVERY` (e.g. `65536`) keeps the checkpoints at the end of the system prompt and the start of the last turn, where they pay off in agent sessions, while taking far fewer saves during a long read. Also thanks for the spec-sampling numbers and the needle results - and for confirming DFlash2 vs MTP on a 2x 3090 split.
Author
Owner

@orochifj commented on GitHub (Oct 14, 2026):

Follow-up on the same box, v1.1.9 with EXL3-4.05bpw, in case it helps others with two 24 GB cards choose a quant.

Setup: same machine as above (2x RTX 3090 at 250 W, layer split auto, EPYC 7452, 256 GB 8-ch DDR4). Maya v1.1.9 (4c9f1b1), EXL3-4.05bpw, context 131072, MTP drafting, --kv-streaming on (setup default), STRATA_GLM_CKPT_EVERY=65536 as suggested. Same test script as before.

Results

EXL3-4.05bpw (v1.1.9) Maya-M (v1.1.4) Maya-L (v1.1.4)
--bench decode (3 x 256, greedy) 17.4 tok/s (16.8 / 17.7 / 17.6) 44.0 30.2
--bench prefill 2K / 8K 333 / 675 536 / 860 417 / 801
API prefill 17K / 38K / 77K / 105K 915 / 1,071 / 1,051 / 1,059 1,177 / 1,334 / 1,388 / 1,377 1,026 / 1,214 / 1,267 / 1,270
API decode: English / Chinese / code / thinking on 17.0 / 19.4 / 16.9 / 17.9 40.6 / 43.1 / 44.0 / 41.5 27.7 / 31.6 / 30.6 / 31.3
Decode right after a 77K prompt 15.6 38.4 26.3
Routed experts in VRAM (split auto) 31 % 69 % 55 %
RAM used (engine RSS) ~138 GB (134 GB) ~90 GB (87 GB) ~131 GB (127 GB)
VRAM per card 23.8 GB 23.7 GB 23.8 GB

Speed calibration (v1.1.9, EXL3-4.05bpw): MTP 17.8 tok/s sustained (84 % of drafts accepted) against DFlash2 6.2 tok/s (80 %), so MTP was kept.

What the engine log shows

glm fast: CUDA0 CPU lane off: an expert 4.476 ms on the CPU vs 0.484 ms over PCIe
glm fast: CUDA1 CPU lane off: an expert 4.214 ms on the CPU vs 0.484 ms over PCIe
glm fast: CUDA0 layers [0,24) expert pool 18.48 GB, 52-92 slots/layer (1572 total)
glm fast: CUDA0 RAM tier 56.25 GB pinned, 4786 slots
glm split auto: ... a token 31.3 ms predicted (CUDA0 29.5 ms, 72 slots a layer | CUDA1 31.3 ms, 69 slots a layer), 31% of the routed experts in VRAM

So with only 48 GB of VRAM, the CPU lane is off (an EXL3 expert costs ~9x more on this CPU than a PCIe copy), only 31 % of the routed experts sit in VRAM, and the rest are copied over PCIe for every token. On this box that makes EXL3-4.05bpw about 2.5x slower in decode than Maya-M, whose IQ quants keep the CPU lane working. DFlash2's wider verify windows make it worse here (6.2 against 17.8 tok/s).

Measured decode (~17.4 with MTP) is also below the split's own prediction (31.3 ms per token, ~32 tok/s); I don't know whether that prediction is meant to include drafting.

I read this as expected for EXL3 on a small-VRAM split, rather than a problem: EXL3 seems to pay off where most experts fit on the GPUs (#142 on 4x3090, the 3090 + 8x 5060 Ti in #180). Posting it as a data point for two-card owners: on 2x 24 GB with plenty of RAM, Maya-M (IQ) was the fastest option I measured.

./maya.sh --report for the EXL3 config attached.

maya-report_EXL3_v119_2026-10-15.txt

<!-- gh-comment-id:6173005852 --> @orochifj commented on GitHub (Oct 14, 2026): Follow-up on the same box, v1.1.9 with **EXL3-4.05bpw**, in case it helps others with two 24 GB cards choose a quant. **Setup:** same machine as above (2x RTX 3090 at 250 W, layer split auto, EPYC 7452, 256 GB 8-ch DDR4). Maya v1.1.9 (4c9f1b1), EXL3-4.05bpw, context 131072, MTP drafting, `--kv-streaming on` (setup default), `STRATA_GLM_CKPT_EVERY=65536` as suggested. Same test script as before. ## Results | | **EXL3-4.05bpw (v1.1.9)** | Maya-M (v1.1.4) | Maya-L (v1.1.4) | |---|---:|---:|---:| | `--bench` decode (3 x 256, greedy) | **17.4 tok/s** (16.8 / 17.7 / 17.6) | 44.0 | 30.2 | | `--bench` prefill 2K / 8K | **333 / 675** | 536 / 860 | 417 / 801 | | API prefill 17K / 38K / 77K / 105K | **915 / 1,071 / 1,051 / 1,059** | 1,177 / 1,334 / 1,388 / 1,377 | 1,026 / 1,214 / 1,267 / 1,270 | | API decode: English / Chinese / code / thinking on | **17.0 / 19.4 / 16.9 / 17.9** | 40.6 / 43.1 / 44.0 / 41.5 | 27.7 / 31.6 / 30.6 / 31.3 | | Decode right after a 77K prompt | **15.6** | 38.4 | 26.3 | | Routed experts in VRAM (split auto) | **31 %** | 69 % | 55 % | | RAM used (engine RSS) | ~138 GB (134 GB) | ~90 GB (87 GB) | ~131 GB (127 GB) | | VRAM per card | 23.8 GB | 23.7 GB | 23.8 GB | **Speed calibration (v1.1.9, EXL3-4.05bpw):** MTP **17.8 tok/s** sustained (84 % of drafts accepted) against DFlash2 **6.2 tok/s** (80 %), so MTP was kept. ## What the engine log shows ``` glm fast: CUDA0 CPU lane off: an expert 4.476 ms on the CPU vs 0.484 ms over PCIe glm fast: CUDA1 CPU lane off: an expert 4.214 ms on the CPU vs 0.484 ms over PCIe glm fast: CUDA0 layers [0,24) expert pool 18.48 GB, 52-92 slots/layer (1572 total) glm fast: CUDA0 RAM tier 56.25 GB pinned, 4786 slots glm split auto: ... a token 31.3 ms predicted (CUDA0 29.5 ms, 72 slots a layer | CUDA1 31.3 ms, 69 slots a layer), 31% of the routed experts in VRAM ``` So with only 48 GB of VRAM, the CPU lane is off (an EXL3 expert costs ~9x more on this CPU than a PCIe copy), only 31 % of the routed experts sit in VRAM, and the rest are copied over PCIe for every token. On this box that makes EXL3-4.05bpw about 2.5x slower in decode than Maya-M, whose IQ quants keep the CPU lane working. DFlash2's wider verify windows make it worse here (6.2 against 17.8 tok/s). Measured decode (~17.4 with MTP) is also below the split's own prediction (31.3 ms per token, ~32 tok/s); I don't know whether that prediction is meant to include drafting. I read this as expected for EXL3 on a small-VRAM split, rather than a problem: EXL3 seems to pay off where most experts fit on the GPUs (#142 on 4x3090, the 3090 + 8x 5060 Ti in #180). Posting it as a data point for two-card owners: on 2x 24 GB with plenty of RAM, Maya-M (IQ) was the fastest option I measured. `./maya.sh --report` for the EXL3 config attached. [maya-report_EXL3_v119_2026-10-15.txt](https://github.com/user-attachments/files/33445790/maya-report_EXL3_v119_2026-10-15.txt)
Author
Owner

@mw00 commented on GitHub (Oct 16, 2026):

Thanks, @orochifj - your Maya-M / Maya-L numbers are in the README's table, and the EXL3-4.05bpw follow-up is a useful comparison for anyone choosing a quant for two 24 GB cards. Closing this report.

<!-- gh-comment-id:6223521046 --> @mw00 commented on GitHub (Oct 16, 2026): Thanks, @orochifj - your Maya-M / Maya-L numbers are in the README's table, and the EXL3-4.05bpw follow-up is a useful comparison for anyone choosing a quant for two 24 GB cards. Closing this report.
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#59
No description provided.