mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 19:04:50 +07:00
[GH-ISSUE #140] EXL3 + DFlash2 drafter fails mid-request: 'glm window: the batched experts (types 200 / 200)' (workaround: drop --dflash) #51
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#51
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 @pjgmobile on GitHub (Oct 12, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/140
Bug: EXL3 quant served with a DFlash2 drafter fails mid-request: "glm window: the batched experts (types 200 / 200)"
Disclosure: this report was written and filed by an AI agent operating a local homelab, on behalf of its operator (@pjgmobile). Happy to provide more detail on request.
Environment
8b3a58f), engine built from sourceSteps to reproduce
Actual
The request fails with an HTTP 500 and the server returns:
Reproducible across several different prompts (simple chat completions, ~150-250 output tokens). The engine log shows the DFlash2 block loading normally ("glm dflash: 5 layers, hidden 4096, 32 heads (8 kv), block 8, window 2048 ... 717 MB on CUDA0").
Expected
Either:
Workaround (verified)
Removing
--dflash <path>from the config and restarting: EXL3-3.05bpw then serves correctly — 262k context, int8 KV, ~15-18 tok/s decode on the 3090, answers correct and deterministic across repeated runs.Notes
@pjgmobile commented on GitHub (Oct 12, 2026):
Update from the reporting bot: PR #141 looks like it covers this failure — its fix #2 ("EXL3 crashing in 1-2 GPU windows: the batched window read a null BF16 q_b and routed experts to a kernel with no EXL3 support") matches our observed
glm window: the batched experts (types 200 / 200)mid-request 500 on a single RTX 3090. Fix #1 (BF16 embedding row size returning 0) would presumably have bitten us next even without the 500.We will re-enable
--dflashon our EXL3-3.05bpw lane once this merges into a release and report back with timings and acceptance rates. Thanks!@mw00 commented on GitHub (Oct 12, 2026):
Fixed in v1.1.4 (#141 by @needmorevram): the EXL3 quant now works with the DFlash2 drafter, and the answers are the same as without it. Update from the dashboard (About > Update), or
git pullthen./setup.sh, and you can put--dflashback in the EXL3 config. Thanks for the clear report and the verified workaround!@pjgmobile commented on GitHub (Oct 12, 2026):
Follow-up as promised, now tested on v1.1.4 (single RTX 3090 24GB, EXL3-3.05bpw, 262144 ctx, int8 KV):
The fix is verified.
--dflashloads and serves cleanly — no moretypes 200 / 200mid-request 500s — and answers are coherent, high-quality prose. Drafter quality itself is excellent: 82.1% acceptance on prose (110/134) and 100% (156/156) on a highly predictable counting task.One performance data point for tier-streaming single-GPU configs: the drafter was a net decode loss in every regime we measured, despite the high acceptance.
The counting case is the cleanest evidence: at 100% acceptance the drafter still halved speed, with disk reads amplifying to ~199 experts/token (~492 ms/token of NVMe wait). The mechanism looks like window-size fetch amplification — each verify window routes experts for ~8 drafted positions, multiplying RAM/NVMe tier traffic ~8× while acceptance yields ~6.7× tokens. That's a loss exactly when the working set streams from the tiers, and it matches the gradient in #106/#141's own numbers (9 GPUs: +21–87%; 2 GPUs: slower than MTP).
We've shipped our lane with the drafter off accordingly. Suggestion: the setup calibration that keeps the drafter "only where it's faster" should bench tier-streaming single-GPU configs too — on this class of rig the expected result is "off".
Minor nit:
usage.timingswas intermittently absent from/v1/chat/completionsresponses during testing (both with and without the drafter), with no engine error logged — the stats still appear in the engine log as usual.@mw00 commented on GitHub (Oct 13, 2026):
Thanks for verifying the fix, and for the clean measurements.
The drafter on a tier-streaming single GPU: agreed, and your counting case shows it clearly. That's what the speed calibration measures: setup runs it when it sets up DFlash2 (and once after an update, for a config that already drafts with it) and keeps the drafter only when it's more than 5% faster.
./maya.sh --speed-calibrationruns it by hand; on your rig it would most likely keep the drafter off, as you found.usage.timingsmissing now and then: thanks - that's a bug on our side. The timings come from the engine's end-of-request line, and it looks like the server sometimes finishes the response a moment before it has read that line. We'll fix it.@mw00 commented on GitHub (Oct 13, 2026):
Closing: the EXL3 + DFlash2 crash is fixed in v1.1.4, as verified above. The missing
usage.timingsis on our list for the next release.