mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5263] [Engine] IQ3_S expert gate/up matmul produces all-NaN from layer 8 on sm_86 under Windows and WSL2 #3132
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3132
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 @goddardoven110907 on GitHub (Nov 5, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5263
Environment
/usr/lib/wsl/lib)ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCOIQ3_XXS (2 shards, 76 GB). A third-party abliterated repack (SC117/...-abliterated-GGUF) fails the same way, and its tensor types match the official allocation file.Symptom
Every prompt longer than a few tokens dies with:
Engine log:
Layers 0-7 are finite. Layer 8 is the first layer whose expert gate/up is IQ3_S (types 21/42 = IQ3_S gate/up, Q2_0 down). PLE history and the GDN state are still finite at that point, so the corruption starts inside that layer's MoE matmul and never recovers (all 248320 logits are NaN).
Reproduction matrix
Same failure on engine 0.1.43, 0.1.45 and 0.1.56 (v0.2.9 and v0.2.10), on Windows native and in WSL2.
Ruled out
--ple-io mmap(the workaround from #3602): still NaNSTRATA_SM86_PERF=0: still NaNSTRATA_PREFILL_CPU_SHARE=0,STRATA_ROUTE_TAIL_SKIP=0: still NaNSTRATA_GU_CONV_ENABLE=0 STRATA_GU_MOE_CONV=0: still NaN--no-capture --no-pool: still NaN--kv k8v4 --expert-cache-per-layer --vram-reserve-mib 896(the config a 3080 user posted for native Ubuntu): still NaN--expert-cache 0is ignored here: the log still reports auto allocation (3555 slots, 5.80 GiB VRAM)blk.8.ffn_gate_exps.weightgives 838,860,800 finite values, max |x| 0.58; the pack's recorded offsets match gguf-py's reading exactly (the constant difference equals the gguf header data_offset, 11,024,256)tensor-allocationfile also assigns IQ3_S to layer 8, so this is not specific to the abliterated repackCross-reference
So the failure looks specific to sm_86 when the CUDA context sits on a WDDM/D3D12-backed driver (Windows native and WSL2 both), while the same card on a native Linux driver is fine. Q2_0 is unaffected on all of these.
Questions
STRATA_DBG_NAN=1dump of the layer-8 inputs and outputs help you? I can run one-shotgeneratewith--dump-layersand attach the residual stream.@goddardoven110907 commented on GitHub (Nov 5, 2026):
Update — root cause found, not a Strata bug.
The abliterated IQ3_XXS shard1 GGUF was corrupted during download (local sha256
b746fd3e…≠ upstream HF lfs03b11926…). Layers 8–9 hyper-connection weights contain 39 BF16 values that decode to Inf/NaN (25 in layer 8: attn_down=5, attn_up=4, ffn_down=7, ffn_up=9; 14 in layer 9), which poisons the HC read at layer 8 half 0 and cascades to all-NaN logits — that's why it surfaced aslayer 8 (mmq 1, types 21/42): non-finite GUeven thoughnative_expert_parityshows the IQ3_S dequant is bit-exact.Re-downloading shard1 now; will verify and close if fixed.