[GH-ISSUE #140] EXL3 + DFlash2 drafter fails mid-request: 'glm window: the batched experts (types 200 / 200)' (workaround: drop --dflash) #51

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

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

  • project-maya v1.1.3 (commit 8b3a58f), engine built from source
  • RTX 3090 24 GB (sm_86), Ubuntu 24.04, CUDA 13.1, single GPU
  • Model: EXL3-3.05bpw (Maya-data/models/EXL3-3.05bpw, pack built, checksums verified)
  • Drafter: GLM-5.3-Flash-DFlash2-Q4_K_M.gguf (0.7 GB, via setup)

Steps to reproduce

  1. Run setup with the DFlash2 drafter configured, then add/set up the EXL3 quant afterwards. The generated EXL3 model config ends up carrying the drafter, e.g.:
"args": [
  "--glm-pack", ".../EXL3-3.05bpw/pack",
  "--max-context", "262144",
  "--prefill", "auto",
  "--dflash", ".../GLM-5.3-Flash-DFlash2/GLM-5.3-Flash-DFlash2-Q4_K_M.gguf",
  "--expert-profile", ".../expert-profile-glm.bin"
]
  1. Start the server and send a chat completion.

Actual

The request fails with an HTTP 500 and the server returns:

{"error": {"type": "invalid_request_error", "message": "glm window: the batched experts (types 200 / 200)"}}

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:

  1. The setup does not combine the DFlash2 drafter with the EXL3 quant (if they are incompatible — the drafter may assume the batched-expert tensor types of the IQ2/IQ3-class packs), or
  2. The engine refuses the combination at load time with a clear message, instead of failing mid-request with a 500.

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

  • The same DFlash2 drafter works fine against the Maya-S24 (IQ2_XXS_S) pack, so the interaction appears specific to EXL3's batched-expert types.
  • Happy to test a fix or provide more logs.
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 - project-maya v1.1.3 (commit 8b3a58f), engine built from source - RTX 3090 24 GB (sm_86), Ubuntu 24.04, CUDA 13.1, single GPU - Model: EXL3-3.05bpw (Maya-data/models/EXL3-3.05bpw, pack built, checksums verified) - Drafter: GLM-5.3-Flash-DFlash2-Q4_K_M.gguf (0.7 GB, via setup) ### Steps to reproduce 1. Run setup with the DFlash2 drafter configured, then add/set up the EXL3 quant afterwards. The generated EXL3 model config ends up carrying the drafter, e.g.: ```json "args": [ "--glm-pack", ".../EXL3-3.05bpw/pack", "--max-context", "262144", "--prefill", "auto", "--dflash", ".../GLM-5.3-Flash-DFlash2/GLM-5.3-Flash-DFlash2-Q4_K_M.gguf", "--expert-profile", ".../expert-profile-glm.bin" ] ``` 2. Start the server and send a chat completion. ### Actual The request fails with an HTTP 500 and the server returns: ``` {"error": {"type": "invalid_request_error", "message": "glm window: the batched experts (types 200 / 200)"}} ``` 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: 1. The setup does not combine the DFlash2 drafter with the EXL3 quant (if they are incompatible — the drafter may assume the batched-expert tensor types of the IQ2/IQ3-class packs), or 2. The engine refuses the combination at load time with a clear message, instead of failing mid-request with a 500. ### 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 - The same DFlash2 drafter works fine against the Maya-S24 (IQ2_XXS_S) pack, so the interaction appears specific to EXL3's batched-expert types. - Happy to test a fix or provide more logs.
Author
Owner

@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 --dflash on our EXL3-3.05bpw lane once this merges into a release and report back with timings and acceptance rates. Thanks!

<!-- gh-comment-id:6131365990 --> @pjgmobile commented on GitHub (Oct 12, 2026): Update from the reporting bot: [PR #141](https://github.com/mw00/project-maya/pull/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 `--dflash` on our EXL3-3.05bpw lane once this merges into a release and report back with timings and acceptance rates. Thanks!
Author
Owner

@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 pull then ./setup.sh, and you can put --dflash back in the EXL3 config. Thanks for the clear report and the verified workaround!

<!-- gh-comment-id:6131933756 --> @mw00 commented on GitHub (Oct 12, 2026): Fixed in [v1.1.4](https://github.com/mw00/project-maya/releases/tag/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 pull` then `./setup.sh`, and you can put `--dflash` back in the EXL3 config. Thanks for the clear report and the verified workaround!
Author
Owner

@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. --dflash loads and serves cleanly — no more types 200 / 200 mid-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.

config prose counting task
drafter ON 2.4–3.3 tok/s 1.23 tok/s
drafter OFF 4.4–4.9 tok/s at conversation depth; ~9–10 tok/s warm, short prompts —

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.timings was intermittently absent from /v1/chat/completions responses during testing (both with and without the drafter), with no engine error logged — the stats still appear in the engine log as usual.

<!-- gh-comment-id:6133954496 --> @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.** `--dflash` loads and serves cleanly — no more `types 200 / 200` mid-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.** | config | prose | counting task | |---|---|---| | drafter ON | 2.4–3.3 tok/s | 1.23 tok/s | | drafter OFF | 4.4–4.9 tok/s at conversation depth; ~9–10 tok/s warm, short prompts | — | 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.timings` was intermittently absent from `/v1/chat/completions` responses during testing (both with and without the drafter), with no engine error logged — the stats still appear in the engine log as usual.
Author
Owner

@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-calibration runs it by hand; on your rig it would most likely keep the drafter off, as you found.

usage.timings missing 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.

<!-- gh-comment-id:6147949798 --> @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-calibration` runs it by hand; on your rig it would most likely keep the drafter off, as you found. **`usage.timings` missing 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.
Author
Owner

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

Closing: the EXL3 + DFlash2 crash is fixed in v1.1.4, as verified above. The missing usage.timings is on our list for the next release.

<!-- gh-comment-id:6149454822 --> @mw00 commented on GitHub (Oct 13, 2026): Closing: the EXL3 + DFlash2 crash is fixed in v1.1.4, as verified above. The missing `usage.timings` is on our list for the next release.
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#51
No description provided.