[GH-ISSUE #5051] [Engine] single-GPU layer-major prefill: Xid 31 MMU fault (FAULT_PDE) on a 31K fp16 prompt, engine 0.1.55 #2342

Closed
opened 2026-11-04 01:58:34 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @dandandelion on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5051

Desktop app, Terminal or source?

Source (START-HERE.bat, setup.sh or a build)


Area

[Engine] (speed, kernels, models, the server and API)


What happened

On engine 0.1.55 built from source (v0.2.9), a single NVIDIA card and a Qwen3.8-Flash-Next IQ3_S pack, a prompt of 31,045 tokens faults the GPU during prefill. The engine reports:

verify: layer 34 never rang (an illegal memory access was encountered)

and the kernel logs:

NVRM: Xid (PCI:0000:01:00): 31, pid=1045358, name=strata, intr 00000000.
MMU Fault: ENGINE GRAPHICS GPC1 GPCCLIENT_GCC faulted @ 0xffff81f6_393c0000.
Fault is of type FAULT_PDE ...

This is the fp16 KV arm: it runs none of the custom kernels in the tree we were testing (a KV-cache feature merged on top of v0.2.9; the fp16 path does not execute it).

What points at layer-major prefill (observation, not proof): the same harness and the same prompt completed 64K contexts in four formats with STRATA_PREFILL_LAYER_MAJOR=0, and the first 32K run without that variable (layer-major on, which is the default for a single non-HIP device) faulted on the fp16 arm before any other format ran. After pinning STRATA_PREFILL_LAYER_MAJOR=0 in the harness, the runs completed. We have not yet repeated the 32K fp16 request with layer-major on and off on a pristine 0.1.55 build, so treat the attribution as a strong correlation.

Expected: a 31K prompt prefills and decodes normally, as it does on engine 0.1.48 (the same box, pack and arguments served days of agent traffic with prompts up to ~100K).

Smallest steps or command that reproduce it

Engine: v0.2.9 source (engine 0.1.55), built locally with -DSTRATA_ENABLE_CUDA=ON
-DCMAKE_CUDA_ARCHITECTURES=86, no patches to the prefill path.

One card. Engine arguments of the failing run:

  --pack  --native  --ple-gguf 
  --expert-profile  --expert-cache 3000 --adapt-swaps 0
  --prefill 2048 --max-context 33792 --kv fp16 --spec 2 --suffix-draft 0
  --vram-reserve-mib 512 --pcie-frac 0.20

Environment of the failing run: STRATA_PREFILL_CPU_SHARE=0, STRATA_VERIFY_TRACE=0, and
STRATA_PREFILL_LAYER_MAJOR unset (the default). Then send one request with a ~31K-token prompt and
max_tokens 256.

With STRATA_PREFILL_LAYER_MAJOR=0 added, the same harness completed 32K and 64K requests.

Reproduction status

Reproduced locally

Strata version

Strata 0.2.9 · engine 0.1.55

Graphics card, memory and system

RTX 3080 Ti Laptop 16 GB (GA103M, sm_86) · 64 GB RAM · Fedora 44, kernel 7.2.11, driver 615.78.08 (proprietary),
GSP firmware enabled · memory clock locked at 7701 MHz

Model, size and settings

Qwen3.8-Flash-Next GSQ-RCO IQ3_S (native pack, experts in RAM) · 33,792 context · fp16 KV · expert-cache 3000

--adapt-swaps 0 · prefill 2048 · spec 2 · suffix-draft 0

Logs

I can attach the engine log for the faulting run (the last lines are the verify error), the complete Xid line, and
the same harness's clean 32K/64K runs with STRATA_PREFILL_LAYER_MAJOR=0, plus the exact config JSON. Say which you want.


Below the form (free text)

Why this is not the same report as #4662 / #4695

Both of those are CUDA layer splits: #4662 an asymmetric TITAN RTX + 3080 pair on Linux, #4695 a two card
Windows setup that dies with prefill (layer-major): expert source has no blob. This report is a single card, where layer-major is on by default too, and the failure surfaces as a GPU MMU fault rather than an engine error string. Same family by name, different configuration and different symptom, so we did not want to bury a single-GPU data point inside a split-GPU thread.

Related: #3976 (layer-major on a split, the feature itself), #4393 (STRATA_KVA=1 silently disabling layer-major),
#4687 (0.2.7/0.2.8 defaults regressing 4-slot prompt throughput). Note also 08e8770c in the v0.2.8..v0.2.9 range, "Prefill (layer-major): an expert with no mapped blob is copied by its source instead of ending the record" — the configuration here (--expert-cache 3000 against a ~47 GiB expert set, --adapt-swaps 0) is one where a large majority of experts have no mapped blob at any instant, which is the condition that fix names.

What we ruled out, by running it

  • The card's known separate fault class: this box's long-standing fault is Xid 13 on 50-58 of 58 SMs with ESR 0xc81eb60/0x1174 and verify: layer N never rang (illegal instruction), tied to a specific quant pack. No Xid 13 occurred in this window; all of these are Xid 31.
  • Memory clock: locked at 7701 MHz for the whole session (the same setting has served millions of clean tokens at this context size on an older engine).

What we did not test

A pristine 0.1.55 build (no KV feature merged) repeating the 32K fp16 request with layer-major on and off. That is the next run here and we will add the result to this issue; until then the attribution to layer-major is a
correlation from the same session, not an isolated A/B. We also did not test a layer split, HIP, SYCL, or
--adapt-swaps above 0 on this configuration.

Originally created by @dandandelion on GitHub (Nov 3, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5051 ## Desktop app, Terminal or source? Source (START-HERE.bat, setup.sh or a build) --- ## Area [Engine] (speed, kernels, models, the server and API) --- ## What happened On engine 0.1.55 built from source (v0.2.9), a single NVIDIA card and a Qwen3.8-Flash-Next IQ3_S pack, a prompt of 31,045 tokens faults the GPU during prefill. The engine reports: ``` verify: layer 34 never rang (an illegal memory access was encountered) ``` and the kernel logs: ``` NVRM: Xid (PCI:0000:01:00): 31, pid=1045358, name=strata, intr 00000000. MMU Fault: ENGINE GRAPHICS GPC1 GPCCLIENT_GCC faulted @ 0xffff81f6_393c0000. Fault is of type FAULT_PDE ... ``` This is the fp16 KV arm: it runs none of the custom kernels in the tree we were testing (a KV-cache feature merged on top of v0.2.9; the fp16 path does not execute it). What points at layer-major prefill (observation, not proof): the same harness and the same prompt completed 64K contexts in four formats with STRATA_PREFILL_LAYER_MAJOR=0, and the first 32K run without that variable (layer-major on, which is the default for a single non-HIP device) faulted on the fp16 arm before any other format ran. After pinning STRATA_PREFILL_LAYER_MAJOR=0 in the harness, the runs completed. We have not yet repeated the 32K fp16 request with layer-major on and off on a pristine 0.1.55 build, so treat the attribution as a strong correlation. Expected: a 31K prompt prefills and decodes normally, as it does on engine 0.1.48 (the same box, pack and arguments served days of agent traffic with prompts up to ~100K). ## Smallest steps or command that reproduce it Engine: v0.2.9 source (engine 0.1.55), built locally with -DSTRATA_ENABLE_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=86, no patches to the prefill path. One card. Engine arguments of the failing run: <pre> --pack <IQ3_S pack> --native <IQ3_S shard 1> --ple-gguf <IQ3_S shard 2> --expert-profile <profile> --expert-cache 3000 --adapt-swaps 0 --prefill 2048 --max-context 33792 --kv fp16 --spec 2 --suffix-draft 0 --vram-reserve-mib 512 --pcie-frac 0.20 </pre> Environment of the failing run: STRATA_PREFILL_CPU_SHARE=0, STRATA_VERIFY_TRACE=0, and STRATA_PREFILL_LAYER_MAJOR **unset** (the default). Then send one request with a ~31K-token prompt and max_tokens 256. With STRATA_PREFILL_LAYER_MAJOR=0 added, the same harness completed 32K and 64K requests. ## Reproduction status Reproduced locally ## Strata version Strata 0.2.9 · engine 0.1.55 ## Graphics card, memory and system RTX 3080 Ti Laptop 16 GB (GA103M, sm_86) · 64 GB RAM · Fedora 44, kernel 7.2.11, driver 615.78.08 (proprietary), GSP firmware enabled · memory clock locked at 7701 MHz ## Model, size and settings Qwen3.8-Flash-Next GSQ-RCO IQ3_S (native pack, experts in RAM) · 33,792 context · fp16 KV · expert-cache 3000 <pre> --adapt-swaps 0 · prefill 2048 · spec 2 · suffix-draft 0 </pre> ## Logs I can attach the engine log for the faulting run (the last lines are the verify error), the complete Xid line, and the same harness's clean 32K/64K runs with STRATA_PREFILL_LAYER_MAJOR=0, plus the exact config JSON. Say which you want. --- # Below the form (free text) ## Why this is not the same report as #4662 / #4695 Both of those are **CUDA layer splits**: #4662 an asymmetric TITAN RTX + 3080 pair on Linux, #4695 a two card Windows setup that dies with `prefill (layer-major): expert source has no blob`. This report is a **single card**, where layer-major is on by default too, and the failure surfaces as a **GPU MMU fault** rather than an engine error string. Same family by name, different configuration and different symptom, so we did not want to bury a single-GPU data point inside a split-GPU thread. Related: #3976 (layer-major on a split, the feature itself), #4393 (STRATA_KVA=1 silently disabling layer-major), #4687 (0.2.7/0.2.8 defaults regressing 4-slot prompt throughput). Note also `08e8770c` in the v0.2.8..v0.2.9 range, "Prefill (layer-major): an expert with no mapped blob is copied by its source instead of ending the record" — the configuration here (`--expert-cache 3000` against a ~47 GiB expert set, `--adapt-swaps 0`) is one where a large majority of experts have no mapped blob at any instant, which is the condition that fix names. ## What we ruled out, by running it - **The card's known separate fault class**: this box's long-standing fault is `Xid 13` on 50-58 of 58 SMs with ESR `0xc81eb60/0x1174` and `verify: layer N never rang (illegal instruction)`, tied to a specific quant pack. No Xid 13 occurred in this window; all of these are Xid 31. - **Memory clock**: locked at 7701 MHz for the whole session (the same setting has served millions of clean tokens at this context size on an older engine). ## What we did not test A pristine 0.1.55 build (no KV feature merged) repeating the 32K fp16 request with layer-major on and off. That is the next run here and we will add the result to this issue; until then the attribution to layer-major is a correlation from the same session, not an isolated A/B. We also did not test a layer split, HIP, SYCL, or `--adapt-swaps` above 0 on this configuration.
Author
Owner

@github-actions[bot] commented on GitHub (Nov 3, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Fill in "Area".

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6594375610 --> @github-actions[bot] commented on GitHub (Nov 3, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Fill in "Area". Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@github-actions[bot] commented on GitHub (Nov 3, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6594421543 --> @github-actions[bot] commented on GitHub (Nov 3, 2026): Thanks, this follows the format now.
Author
Owner

@dandandelion commented on GitHub (Nov 3, 2026):

/reopen

<!-- gh-comment-id:6594423598 --> @dandandelion commented on GitHub (Nov 3, 2026): /reopen
Sign in to join this conversation.
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
Niko1221/Strata#2342
No description provided.