mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[GH-ISSUE #187] Speed report: EXL3-3.05bpw on 2x RTX 3090 (Threadripper PRO 3955WX, 247 GB 8-ch DDR4-2400): 29.2 tok/s decode, first 2-GPU EXL3 datapoint + CPU lane / DFlash2 findings #75
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#75
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 @catonooka on GitHub (Oct 14, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/187
Hardware
4c9f1b1), EXL3-3.05bpw, context 131072, images on, LinuxFirst EXL3 datapoint on a 2-GPU split (PR #180 listed 1-2 GPU splits as not tested) — the split works clean out of the box.
maya.sh --benchequivalent (own bench: thinking-on, temp 0.6, 2-run steady state, 3 probes)Engine lines (this boot):
Findings
STRATA_GLM_PROMOTE_MIN=6+SPEC_SAMPLE/CANCEL) took decode to 17.8 tok/s (vram hit 40%, promotions 0.00/tok). Stock promotion churn is what EXL3 wants: with it, vram hit 75-84% and promotions run 38-58/tok. On a pack with ~4.3k slots (vs ~5.5k GGUF) the promotion path must stay free.PCIE_SHARE=0.5→ 4.5 tok/s (cpu lane 43/tok in 361 ms),0.85 + CPU_LANE=24→ 18.1,0.95→ 29.0 (routes ~all to PCIe). The lane runs synchronously on the token path, so any CPU share adds its full latency — there is no overlap with PCIe fetch time. On GGUF the lane pays because per-expert CPU cost ~0.3 ms sits near PCIe parity; on EXL3 the trellis cost makes the sync lane a pure loss. An asynchronous/overlapped CPU lane for EXL3 (compute RAM-tier experts on the CPU while the PCIe link streams others, à la exllamav3-style elastic offload) looks like the one software path toward breaking the ~30 tok/s PCIe wall on 2 cards: ~87 RAM fetches/tok ≈ 860 MB/token over 2 x16 links ≈ 18-20 ms floor.Quality cross-check
functest 8/8 (tools both dialects, SSE, vision, 17.6k needle, greedy); thinking suite 9/10 — one notable trait: multi-step arithmetic is wrong-but-greedy-stable at thinking-off (3×5×4−7 → 60/50 vs 53; correct at max effort) while knowledge/code/translation are flawless. turboderp's card puts 3.05bpw at KL 0.068 vs the 2-bpw class 0.19-0.23, which matches the feel: reasoning-on quality is a clear step up from the GGUF 2-bpw packs.
Happy to run any follow-up measurements you'd want on this rig.
@catonooka commented on GitHub (Oct 14, 2026):
Two follow-ups since filing, in case they're useful:
DFlash2 drafter sweep on this rig (EXL3-3.05bpw, 2 GPUs):
glm dflash: selector tables in Q2_K (F32 / F16 / BF16 / Q8_0 / Q4_K / Q6_K are read). Maybe worth a setup-side guard or a line in the docs.glm spec: 466 of 473 drafts accepted (98.5%)— but decode 11.5 tok/s (vs 29 MTP). The batched window raises distinct-expert fetches from ~87 to ~173 per token; on a PCIe-bound 2-card split that's a straight loss. Consistent with the calibration's Q4_K_M rejection (9.4), just with a better drafter — the drafter isn't the problem, the doubled fetch traffic is.The prefetch lane (STRATA_GLM_PREFETCH_N) on EXL3: engages and measurably improves residency (vram hit 75→78%, ram fetches 87→77 with N=2/RANK=4) but decode stays in the noise band (28.2-28.7 vs 29.0 baseline) — the prefetch copies ride the same link the fetches do.
So on this rig class the EXL3 token path's PCIe traffic is the wall from every direction. Thanks for the engine — the split, calibration and stat lines made all of this cheap to measure.
@sociolog commented on GitHub (Oct 14, 2026):
Same finding 3 here, on a Ryzen 9 5900X (Zen 3, AVX2, no AVX-512) with an RTX 3090 + RTX 3060 (PCIe 4.0 x8 each) and
EXL3-SC 3.10bpw: the EXL3 CPU lane took 6.7 ms an expert against 0.94 ms over PCIe, so the start-up timing sent every
RAM-tier expert over the link. The cause is in
exl3_cpu.cpp: it has an AVX-512 kernel and a scalar loop, nothing forAVX2, so a Zen 2/3 CPU runs the trellis decode in scalar code.
#194 adds an AVX2 + FMA tier (the same bits as the AVX-512 one): 0.41 ms an expert on a card's 6 lane threads here, and
the lane takes most RAM-tier experts again.
--benchprotocolThe lane already runs beside the PCIe fetches - the start-up timing splits a route's RAM-tier experts between the CPU
and the link so both finish together - so no asynchronous rework should be needed for this part; it was the scalar loop
that made every CPU share a loss. With your x16 links (0.36 ms an expert) the split will leave more on the link than here,
and your 16 cores give each card's lane 8 threads - if you can try the branch (
sociolog:exl3-cpu-avx2), your rig wouldbe a useful second data point.
@catonooka commented on GitHub (Oct 15, 2026):
Two engine changes measured on this rig (EXL3-3.05bpw, 2x3090, v1.1.11), both wins — happy to PR them if useful:
1. Deeper prefetch pays when it's issued after the layer's own fetch.
The stock cap of 2 (and the
navail < 2spare guard) is conservative:pf_ids/pf_src/pf_dstare already 8-wide. Lifting the cap to 8 and using the third spare at depth > 2:PREFETCH_N=8 AT=route(stock issue point): 26.4 tok/s — the side-stream copies contend with the layer's own fetch on the same link. Worse than baseline.PREFETCH_N=8 AT=fetch BLOCKS=8 RANK=4: 30.3-30.6 tok/s vs 29.0-29.2 baseline (+4-5%), vram hit 75→80%, ram fetches 87→69.So on a PCIe-bound rig the issue point matters more than the depth: AT=fetch + few blocks is the configuration where deeper prediction actually lands. Might deserve a docs line or an auto-nudge for the EXL3 case.
2. A wide fetch kernel: 31.7 tok/s (+8-9%).
moe_fetch_kernelwalks all experts in one grid-stride loop with 16-byte loads. A variant with 32-byte loads (ulonglong4) and one expert pergridDim.yrow (STRATA_GLM_FETCH_WIDE=1to pick it) measures 31.3-31.7 tok/s, decode 33.6 → 31.4 ms/tok — same bytes, closer to the link ceiling. Both patches are byte-identical data movement: greedy outputs and the 8/8 functional suite are unchanged.Combined: 29.2 → 31.7 on a rig the model said was at its architectural ceiling. The trace (per-token budget, prediction-coverage stats, placement search analysis) is written up here: https://github.com/catonooka/maya-s24-turbo/blob/main/exl3/EXL3-BOTTLENECK-TRACE.md
@catonooka commented on GitHub (Oct 15, 2026):
Second data point for #194, as asked — and it's a big one on this rig class:
2x RTX 3090 (PCIe 4.0 x16 each), Threadripper PRO 3955WX (16c/32t Zen 2), EXL3-3.05bpw, 131k ctx, v1.1.11 + #194 + two local patches (deep prefetch N=8 @fetch/blocks=8; wide 32 B fetch kernel):
The lane now measures 0.508 ms an expert (was 7.05 in the scalar loop — 14x). Engine line:
an expert 0.508 ms on the CPU vs 0.365 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 1 1 2 2 2 3 3. Per token: cpu lane 23.57 experts in 13.49 ms, PCIe fetches halved 87 → 44.65, vram hit 80.5%. Facts/code probes hit 40.3/37.3 tok/s.16 threads a card was slightly worse (34.2 — per-expert 0.719 ms, the threads contend), so the 8-thread default with the in-decode retime is right on Zen 2.
STRATA_GLM_PCIE_SHAREleft at the planner's choice.Functional suite 8/8 after the change; greedy outputs differ slightly from the pure-GPU path as the lane's arithmetic expects (docs' ~0.06 KL note), and one low-effort arithmetic case that was stably wrong is now stably right — noise-level either way, no quality concern.
Combined with the two patches from my earlier comment: 29.2 → 35.9 tok/s (+23%) on the rig this issue called PCIe-walled. The async question is closed: the lane was overlap-capable all along, it just needed the AVX2 tier. Thanks @sociolog!
@mw00 commented on GitHub (Oct 20, 2026):
Thank you, @catonooka - your 2-GPU EXL3 run is now in the README's speed table, and your CPU-lane findings led to the AVX2 tier of the EXL3 CPU lane (proposed in #194), which is in Maya now.