mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[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
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#59
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 @orochifj on GitHub (Oct 13, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/165
Part 1: speed report (v1.1.4)
--benchThrough the API (prefill: a synthetic prompt with a unique prefix,
max_tokens1, thinking off; decode streaming with the server's sampling defaults, thinking off unless noted)Other results
--calibrate(Maya-L): the defaults were already the fastest (PCIe share 0.31: 28.8 tok/s; 16 CPU threads: 29.1).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.--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=0After 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 (--bench2K/8K) and decode are unchanged. I turned off one v1.1.5 default at a time: withSTRATA_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_tokens1, thinking off. Each column is a fresh server start on the same machine with the same files; nothing else used the GPUs.--kv-streaming offSTRATA_GLM_CPU_MT=0STRATA_GLM_CKPTS=0(prefill, tok/s)
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.CKPTS=0, 40.6-44.0 on v1.1.4.--benchwas also unchanged.STRATA_GLM_CPU_MT=0made none.STRATA_GLM_CKPT_EVERYbe the recommended setting for long single prompts?Attached:
./maya.sh --reportfor Maya-M on v1.1.5 (taken after theSTRATA_GLM_CKPTS=0run) and for Maya-L on v1.1.3.maya-report_M_v115_2026-10-14.txt
maya-report_2026-10-13.txt
@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=0gives you v1.1.4's prefill back, or a largerSTRATA_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.
@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=65536as suggested. Same test script as before.Results
--benchdecode (3 x 256, greedy)--benchprefill 2K / 8KSpeed 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
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 --reportfor the EXL3 config attached.maya-report_EXL3_v119_2026-10-15.txt
@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.