mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[GH-ISSUE #333] 4x Tesla V100-SXM2 32GB (NVLink 2.0) - GLM-5.3-Flash Maya-S: 68.4 tok/s decode, 400/549 tok/s prefill #127
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#127
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 @jeremiahlangner on GitHub (Oct 21, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/333
Speed report: GLM-5.3-Flash (Maya-S) on 8× Tesla V100-SXM2-32GB — how it scales with the number of GPUs
Maya version 1.1.18, commit
456a5ca(2026-10-20) · Model Maya-S-v2-IQ2_XXS (96.5 GB) · Context 32,768 tokens · Engine sm_70, CUDA 12.9, g++ 11.4Summary
--benchnumber below), 400/549 tokens/s prefill at 2K/8K tokens.The machine
nvidia-smi nvlink -s). Two quads (GPUs 0–3, 4–7): inside a quad the cards peer over NVLink (NV1/NV2 = 25.8/51.6 GB/s per direction), between the quads over PCIe (PIX)nvccV12.9.86), CMake + Ninja, g++ 11.4The setup
The draft block is the model's own MTP block. The same config was used for every arm below; only the GPU list changed.
The canonical benchmark (
./maya.sh --bench, 4 GPUs)Attached:
maya-bench.txtandmaya-report.txt(./maya.sh --report).The scaling: nine GPU combinations, two rounds each
Method: every combination is a fresh server start with its own copy of the expert profile, one short warm-up, then four requests — three questions of 256 tokens (greedy, thinking off) and one 6,344-token prompt. The numbers are the server's own
timings(decode =predicted_per_second, prefill =prompt_per_second); the table holds the medians of two rounds, which agreed within ~1% everywhere. The order of the arms alternates between the rounds.[0][0,1](NVLink)[0,4](PCIe)[4,5,6][0,1,2,3][4,5,6,7][0,1,2,3,4][0,1,2,3,4,5]Decode in tokens/s; prefill in tokens/s for the 6,344-token prompt (the
--benchprefill above is the engine's own path with 2K/8K prompts — a different harness, so the two prefill columns are not directly comparable).Both quads measure the same (49.2 vs 49.1 at 6.3K context; 69.8 vs 70.0 on chat0), so this is about the number of cards, not which ones.
Why: the engine's own counters
The
glm stat:line of the 6,344-token request, per arm:One and two GPUs pay for the experts on the CPU. The missing experts are computed by the CPU lane, not read from the disk — that is where the 18.2 ms/token (one GPU) and 9–11 ms/token (two GPUs) go.
From three GPUs on, the tiers are complete: every card holds its own layers' experts in VRAM, the RAM tier is empty (
ram 0/1415in the 4-GPU bench log), the CPU lane is off and the disk is never read while generating. The model files are read once, at the start (656 s for the 4-GPU arm, 617–800 s across the arms).Past four GPUs the tiers stay perfect and the speed still drops. The split log says why:
The split is a serial pipeline: a token's layers run one card after another, and every boundary costs a host hop. Three boundaries (four cards) beat four, five and seven boundaries (five, six and eight cards) by 12–18% at 6.3K context, even though each card then does less work. The engine's own prediction line agrees on the shape: "a token 10.9 ms predicted" for both the 3-card and the 4-card split (per card 4.0/3.1/3.7 ms vs 2.6/2.7/2.7/2.8 ms), so the extra stages buy less than the extra hops cost.
The 8-card arm has more PCIe boundaries than the 5-card arm and is slightly faster (41.5 vs 40.3), which fits "the number of stages hurts" better than "the PCIe boundary hurts" — and the 2-card pair says the same (44.0 over NVLink vs 46.2 over PCIe, i.e. no NVLink advantage) even though each SXM2 card carries six NVLink links at 25.781 GB/s. The hop moves 64 KB per token, 3.2 MB/s at 50 tok/s: what the boundary costs is its place in the token's serial path, not bytes on the wire.
What I did not measure
--kv-streaming on,--prefill auto,--expert-cache autoand the MTP draft block. No--parallelabove 1, no DFlash2 drafter, no--calibrate, no comparison of--kv-streaming off.--benchprefill numbers come through the engine directly. I did not reconcile the two paths.Reproducing
The nine arms are nine config files that differ only in their
"gpu"list, each started withwith the model's own pack, the same args and a private copy of the expert profile, then the same four requests. The driver and its raw output are on request — say the word and I will attach them.
The data
maya-bench.txt— from./maya.sh --bench(the numbers above; inlined below as well)maya-report.txt— from./maya.sh --report(this PC, the setup, the engine's speed lines; inlined below as well)If a table row for the README would help, this is the one (the numbers are the
--benchones):If this is useful to the project
Two things in the report look like they could be worth a look upstream, both in the area CONTRIBUTING.md lists as open ("decode speed when every expert fits in VRAM (kernel launches and host waits dominate there)"):
The
--benchoutput (maya-bench.txt)The
--reportoutput (maya-report.txt)@jeremiahlangner commented on GitHub (Oct 21, 2026):
The raw data
GitHub's API cannot attach files to an issue, so the raw data of the nine combinations is in a public gist
(20 files):
https://gist.github.com/jeremiahlangner/ce8f30861cfddf6c085ef6a848761056
results.csv- the 72 rows: round, arm, GPUs, request, decode tok/s, prompt tok/s, prompt tokens, generatedtokens, load time
engine-<arm>-r<round>.txt- each arm's engine log, with theglm fast:,glm split:,glm stat:andglm spec:linesREADME.md- the same write-up as a standalone documentThe rows behind the table
The four-GPU arm's engine log (the configuration the table's row is measured on)
@jeremiahlangner commented on GitHub (Oct 21, 2026):
The evidence, in full, under the issue
The gist linked above has every arm's complete engine log. Here are the lines that carry the comparison -
each arm's split, its tier warm-up and the
glm stat:counters of the 6,344-token request (the lastglm stat:line of each log), so the table in the report can be checked without leaving the issue.And the same write-up as a standalone document:
@mw00 commented on GitHub (Oct 22, 2026):
Thank you for the scaling study on the SXM2 V100s. Your four-GPU number is in the README's speed table: https://github.com/mw00/project-maya#how-fast-is-it