mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3134] Random "verify: layer N never rang (an illegal instruction was encountered)" crashes in MTP/verify path — also kills the whole engine (exit code 1) #1259
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#1259
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 @Justsoso-W on GitHub (Oct 19, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3134
issue-github-en.md
issue-github-zh.md
Summary
On a Windows + CUDA 12 Strata build, speculative decoding (MTP) randomly crashes mid-generation with
verify: layer N never rang (an illegal instruction was encountered). The layer indexNdiffers on every crash (observed: 2, 12, 17, 25, 26, 41, 44). In most cases the affected request returns HTTP 400 and the engine keeps serving, but sometimes the entire engine process dies with exit code 1 and has to be restarted (~60s reload). The crash also breakssetup.py --calibrate.Environment
Engine: Strata CUDA 12 build,
0.1.44.1(also reproduced on the older0.1.41build on Oct 13)GPU: RTX 3080 Ti Laptop 16GB (PCIe Gen3 x16, no ReBar), driver 576.28 (using the
--cuda 12engine path)CPU: Xeon E5-2696 v3 (Haswell, no AVX-512), 128GB DDR3L-1600 quad-channel
OS: Windows 11
Model:
Qwen3.8-Flash-NextIQ3_S,--kv int8,--mtp rt,--spec 4, max-context 262144Engine flags:
Env vars:
STRATA_PIN_BY_NEED=1 STRATA_ARENA_PIN_GIB=40(2 MiB large pages confirmed working)Steps to Reproduce
--mtp rt --spec 4).setup.py --calibrate; note that round 1/3 (PCIe share) completes and the same error then aborts the run.Expected Behavior
setup.py --calibrateruns to completion.Actual Behavior
Random requests fail mid-generation with:
Nchanges every time. The server returns HTTP 400 for that request; the engine usually keeps serving afterwards.Sometimes the whole engine process exits (exit code 1) right after a
suffix draftslog line; the server restarts it on the next request (~60s reload).Frequency is roughly 1 crash per 15–20 requests with
--pool-workers 17. With--pool-workers 24it crashed 3 requests in a row, so higher worker counts make it much more likely.setup.py --calibrateis also broken: round 1/3 completes, then the same error kills the tuning ("layer 2 never rang").Frequency & Trigger Factors
--pool-workers 17--pool-workers 24--pcie-frac0.1.41and0.1.44.1The crash is not tied to a specific config change — it reproduces across versions, RAM layouts, and flags.
Additional Observations
verify:orsuffix drafts:— i.e. the draft / MTP verification path.Logs / Further Help
I can provide full server logs on request (
strata-iq3_s.logis ~400KB per day) and am happy to run any test build or additional diagnostics you suggest.@Justsoso-W commented on GitHub (Oct 19, 2026):
issue-draft.md
@dandandelion commented on GitHub (Oct 19, 2026):
Having this issue also. Same RTX 3080 ti laptop on Gen4x8
@dandandelion commented on GitHub (Oct 19, 2026):
Following up from the other RTX 3080 Ti Laptop (my comment above). Fedora 44, not Windows - and since yesterday our build has had
STRATA_VERIFY_TRACE=1on, which dumps the host handshake ring and the GPU's per-layer stage stamps on any fatal window. That has now caught three fatal windows that all die in the same place, plus a GPU coredump on an earlier state of this box that names a kernel. Sharing it in case it narrows things for you.Our box and our rate
The 16:42 window in full (us from the window's first stamp):
and the host side of the same window:
A 3 B 3means the host had already published that layer's plan and its copies, so on our box the "a host thread never rang the doorbell" reading is ruled out for these three: the host did its part and the released GPU waits still never drained, i.e. the channel was dead rather than slow. Around 16:42 the card looked like this:For scale: the engine uses 13-14 cores whenever windows are actually running, so the 1.0 core from 16:42:41 on is the ring-wait spin alone - the pipeline had stopped feeding it.
What lives in that gap, on a CUDA build
With the doorbell path (we never reach the zero-doorbell graph - only 3,184 of 24,576 ranked experts are VRAM resident at reserve 960), the only launches between
stamp(l,20)andstamp(l,21)are:wait_flag_ge(m_flagB_, ...)- the copy doorbell - a<<<1,1>>>kernel whose body iswhile (*flag < value) strata_spin_pause(); __threadfence_system();(verify_kernels.cu:1120-1124);--pcie-mode kernel(the default -autofalls through to it):fetch_blobs(...)=fetch_blobs_kernel<<<48*8,256>>>andrebase_ptrs(...)(verify.cpp:1646-1652), which copy the PCIe share of the misses out of the pinned host arena alias and rewrite the pointer table the very next kernel dereferences.That normally costs 125-180 us per layer, and 2.0-2.9 % of routed experts take that path per window.
Corroboration that this staging path is where our faults land:
Xid 31in this family on this box isMMU Fault ... GPCCLIENT_GCC faulted @ 0x7f.., FAULT_PDE ACCESS_TYPE_VIRT_READ- the GPU dereferencing a host-shaped VA with no page-table entry:0x7f8e_fca5b000,0x7f48_b0377000,0x7fb5_8bad1000;CUDBG_EXCEPTION_WARP_ILLEGAL_INSTR_ENCODINGwithError PC 0x7f71f9cfe1e0 (fetch_blobs_kernel), that PC sitting inside a---p(PROT_NONE) host mapping. An earlier one (00:53) namednative_gu_multi_kernel<18, false, true>withOut Of Range Register;DMAR: [DMA Read NO_PASID] Request device [0000:01:00.0] fault addr 0x403c65b9000 [fault reason 0x04] Access beyond MGAW.The part of yours we can already act on, and what we'd like you to try
Two things we share that we have not isolated yet, and I would like your help on both. First, our adaptation flags are identical to yours -
--adapt-every 1 --adapt-swaps 160 --adapt-decay 0.97- so after every decode round up to 160 of the most-routed missing experts are re-decoded on the CPU pool and staged into the VRAM tier, which is the same host->GPU weight path thatfetch_blobs/rebase_ptrssit on. We have not caught that phase in a window trace, which is exactly why it deserves a switch on both sides.Second, this box faults most often just after the card wakes from a deep idle. Yesterday we recorded the shape of the transition:
The 2026-10-16
SKEDCHECK16_CTA_THREAD_DIMENSION_ZEROfaults came 5 s and 82 s after exactly that kind of idle-to-burst transition. So: do your crashes cluster in the first few seconds after the GPU has been idle? That is nearly free to answer on your side (nvidia-smi -l 5into a file, or just noting whether the crash follows a pause in your chat), and it decides whether we are looking at a power-state transition at all.Switches we'd ask you to try, cheapest first, all of them preserving MTP-3/MTP-4 decode speed:
--adapt-every 0(or1000000) - the VRAM expert tier is fixed, no swaps. If your rate collapses, the fault is in the swap/staging path and not in MTP drafting.--pcie-frac 0- note this is not the same as your "with / without--pcie-frac" row: with an explicit 0 the PCIe share is 0 blobs, sofetch_blobs/rebase_ptrsstill launch but read nothing, and the GPU never dereferences the pinned host alias. If that changes your rate, we both learn something sharp.--pcie-mode dma- moves those blobs with the copy engine instead of a GPU kernel. Experiment only:docs/DETAILS.mdrecords that this was the pre-0.1.14 default and it had its own failure mode (issue #31 - the host waiting inside the NVIDIA driver while copying experts in a verify window).--spec 0(no drafting at all) - if it still crashes, the drafter is exposure and not the fault site.nvlddmkm/ display-TDR / WHEA entries? Whether your box shows an SM-warp or MMU fault event is the difference between "same fault" and "same symptom". Also: is ReBar off on your machine (we're at BAR1 = 16 GB), and are you on the--cuda 12path because of the driver branch? We are on the CUDA 13 build.One thing in your report that we can rule out for our box: your theory that the illegal instruction is a CPU-side SIMD opcode. On our box the same CUDA text is accompanied by
Xid 13, Graphics SM Warp Exception on (GPC 1, TPC 0, SM 0): Illegal Instruction Encoding- an SM-side exception on one warp - and by a coredump naming a GPU kernel with a GPU PC. Your--pool-workerssensitivity still points at the host side, but at what the host feeds the window, not at CPU instructions.Two things your box settles that ours can't
Our GPU has a control-plane history that muddies our own numbers: 139
Xidevents on this card back to 2026-09-10 across Strata and other CUDA programs, 15 of themXid 62+NVRM: GPU0 _kgspRpcGspEventPmuHalted: PMU has halted+Xid 154 ... PF FLR, and theXid 119GSP-RPC timeouts (function 76 GSP_RM_CONTROL ... 0x20800a70) namednvidia-powerd, which on this laptop cannot work at all (SBIOS has requested to disable Dynamic Boost,Failed to get AC Line status,error setting power limit) and which we have now masked. So some of our deaths are this box and its driver stack, and we cannot separate that share cleanly.Your report removes that whole variable: no GSP power daemon, 128 GB of RAM, 2 MiB large pages working,
STRATA_PIN_BY_NEED=1 STRATA_ARENA_PIN_GIB=40, and the same error string on the same card. Whatever the shared cause is, it is not host memory pressure and not the Linux power-management path. That is the most valuable single data point in the thread, which is why the six switches above are worth running on your side.Happy to test anything you want on our box - we have the window trace, an Xid/OOM/DMAR capture watcher, a verify-stall watcher that snapshots every engine thread twice, and a 10 s GPU clock/power/VRAM sampler, and we can report counts per token.
More details
I can provide whole logs either from linux itself, driver dumps or whole strata logs if needed.
@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.