[GH-ISSUE #3489] [Engine] 0.1.45: prefill crash at ~165K tokens (0xC0000005 in gather_native_group) takes the whole GPU with it; 0.1.43.1 clean, 0.1.46 unchanged #1427

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

Originally created by @litao9417 on GitHub (Oct 20, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3489

What happens

Reading a prompt of ~165K tokens kills the engine. It exits with 0xC0000005 (access violation) during prefill — the frames we could capture were in gather_native_group — and after that the GPU is gone: nvidia-smi no longer lists it and only a reboot brings it back. Three launches, three crashes, same place.

System

  • RTX 3080 Ti 12 GB (sm_86), driver 617.42, 12288 MiB
  • i7-12700 (12 cores / 20 threads), 96 GB RAM, Windows 11 26300
  • Model: Qwen3.8-Flash-Next IQ3_XXS (GSQ-RCO), 47.0 + 28.8 GB shards, PLE table on an SSD
  • Config at the time: --max-context 262144 --kv int8 --kv-resident 32768 --prefill auto --vram-reserve-mib 1728, no --vision
  • Started through serve/server.py (source build, tag v0.1.45)

Reproducer

One user message of roughly 220K characters of Chinese (~165K tokens) plus a one-line question, max_tokens small. The crash lands inside the first prefill, before any token is generated.

Evidence that it is the engine and not the machine

  • 0.1.43.1 on the same box, same prompt: 6/6 passes, zero crashes, the GPU never dropped.
  • 0.1.45.3 and 0.1.46 at prompt chunk auto: 5632: a 168,814-token prefill completes twice (87 s and 79 s, ~1.9K tok/s). So a long prompt alone is not enough.

What we think the trigger is

At crash time the engine printed prompt chunk auto: 6400 (0.1.45 raises this above the 5632 of 0.1.43.1 on the same config). Today I cannot get 6400 back: strata serve: prompt chunk 6400 -> 3200 tokens so its buffers fit in every expert cache, so the exact condition is not reachable on my current VRAM settings. That is why the report is "crashed at 6400 three times, passes at 5632 twice" rather than a clean A/B.

Code note

src/prefill/moe_mmq.cu between tag v0.1.45 and a7bdbfdabc9a (engine 0.1.46) differs by 63 lines, all of them about the new Gyro trellis types (tq2_t / tqk6 / tqk7). gather_native_group and its tail_off / zero_bytes parameters are byte-identical in both.

Ask

  1. Is the 6400-token chunk path a known-broken one?
  2. What should I set so the chunk really reaches 6400 on a 12 GB card, so I can confirm or clear it?
  3. I kept strata-<model>.log from all three crashes — say the word and I will attach them.

Happy to run anything you want on this machine.

Originally created by @litao9417 on GitHub (Oct 20, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3489 ### What happens Reading a prompt of ~165K tokens kills the engine. It exits with `0xC0000005` (access violation) during prefill — the frames we could capture were in `gather_native_group` — and after that the **GPU is gone**: `nvidia-smi` no longer lists it and only a reboot brings it back. Three launches, three crashes, same place. ### System - RTX 3080 Ti 12 GB (sm_86), driver 617.42, 12288 MiB - i7-12700 (12 cores / 20 threads), 96 GB RAM, Windows 11 26300 - Model: Qwen3.8-Flash-Next IQ3_XXS (GSQ-RCO), 47.0 + 28.8 GB shards, PLE table on an SSD - Config at the time: `--max-context 262144 --kv int8 --kv-resident 32768 --prefill auto --vram-reserve-mib 1728`, no `--vision` - Started through `serve/server.py` (source build, tag `v0.1.45`) ### Reproducer One user message of roughly 220K characters of Chinese (~165K tokens) plus a one-line question, `max_tokens` small. The crash lands inside the first prefill, before any token is generated. ### Evidence that it is the engine and not the machine - **0.1.43.1 on the same box, same prompt: 6/6 passes, zero crashes, the GPU never dropped.** - 0.1.45.3 and 0.1.46 at `prompt chunk auto: 5632`: a 168,814-token prefill completes twice (87 s and 79 s, ~1.9K tok/s). So a long prompt alone is not enough. ### What we think the trigger is At crash time the engine printed `prompt chunk auto: 6400` (0.1.45 raises this above the 5632 of 0.1.43.1 on the same config). Today I cannot get 6400 back: `strata serve: prompt chunk 6400 -> 3200 tokens so its buffers fit in every expert cache`, so the exact condition is not reachable on my current VRAM settings. That is why the report is "crashed at 6400 three times, passes at 5632 twice" rather than a clean A/B. ### Code note `src/prefill/moe_mmq.cu` between tag `v0.1.45` and `a7bdbfdabc9a` (engine 0.1.46) differs by 63 lines, all of them about the new Gyro trellis types (`tq2_t` / `tqk6` / `tqk7`). `gather_native_group` and its `tail_off` / `zero_bytes` parameters are byte-identical in both. ### Ask 1. Is the 6400-token chunk path a known-broken one? 2. What should I set so the chunk really reaches 6400 on a 12 GB card, so I can confirm or clear it? 3. I kept `strata-<model>.log` from all three crashes — say the word and I will attach them. Happy to run anything you want on this machine.
Author
Owner

@Niko1221 commented on GitHub (Oct 21, 2026):

We read a 177K-token prompt at --prefill 6400 on a Linux RTX 3060 (Q2_0) and on a Tesla P100 (IQ2_XS native pack) with no fault. gather_native_group only launches a kernel, so the access violation means the driver had already lost the card. Please send:

  • the three strata-.log files
  • the Windows event log around each crash (nvlddmkm 4101, Kernel-Power 41, Application Error for strata.exe)
  • GPU temperature and power during the prefill
  • the same prompt with --prefill 5632 pinned and with --prefill 6400 pinned (the message "chunk 6400 -> 3200" means VRAM is the limit; a lower --vram-reserve-mib gets 6400 back)

If it is an engine fault, compute-sanitizer --tool memcheck on a 60K-token prompt at 6400 would show it much earlier than 165K. Meanwhile --prefill 5632 keeps the chunk you know is stable.

<!-- gh-comment-id:6308101130 --> @Niko1221 commented on GitHub (Oct 21, 2026): We read a 177K-token prompt at --prefill 6400 on a Linux RTX 3060 (Q2_0) and on a Tesla P100 (IQ2_XS native pack) with no fault. gather_native_group only launches a kernel, so the access violation means the driver had already lost the card. Please send: - the three strata-<model>.log files - the Windows event log around each crash (nvlddmkm 4101, Kernel-Power 41, Application Error for strata.exe) - GPU temperature and power during the prefill - the same prompt with --prefill 5632 pinned and with --prefill 6400 pinned (the message "chunk 6400 -> 3200" means VRAM is the limit; a lower --vram-reserve-mib gets 6400 back) If it is an engine fault, `compute-sanitizer --tool memcheck` on a 60K-token prompt at 6400 would show it much earlier than 165K. Meanwhile --prefill 5632 keeps the chunk you know is stable.
Author
Owner

@litao9417 commented on GitHub (Oct 22, 2026):

Thanks for the quick reply, and for running the prompt on two more cards - that is useful data. Here is everything you asked for.

1) The engine logs - all three crashes (2026-10-20, source-built engine 0.1.45)

The client's own strata-iq3_xxs.log did not survive (the 0.2.1 auto-update wiped the install directory before we archived it), but the source-tree engine's log is intact and covers all three crash sessions end to end. Key excerpts:

Crash 1 - started 05:50:02, prompt chunk auto: 4352 (reserve 1408, expert cache 1747 slots / 2.87 GiB, 1064 MiB VRAM free). Four 168,537-token prefills completed (first read 120.9 s, 1394.2 tok/s), the fifth died with:

prefill mmq: gather_native_group: unknown error

Six restart attempts in the following minute all died during boot with native embedding: cannot pin 260 MiB: invalid argument, nor place it in VRAM - the card was already gone - until a reboot.

Crash 2 - started 06:18:24, prompt chunk auto: 6400 (1983 cache slots / 3.26 GiB borrowed; the engine itself printed the #2065 warning: only 967 MiB of VRAM free at the start of this request). Six 168K prefills completed (first read 90.0 s, 1873.6 tok/s), then the process died with no engine error line at all. Three restarts, same cannot pin deaths, then a reboot.

Crash 3 - started 06:50:56, reserve raised to 1728 per #2065, prompt chunk auto: 5376. Five 168K prefills completed (first read 91.2 s, 1847.7 tok/s), the sixth died with the same gather_native_group: unknown error. Three restarts, same deaths, then a reboot. After rolling the source tree back to 0.1.43.1 (07:12:06) the same prompt ran clean (6/6 in our records).

Common flags of the three crash sessions: --spec 4 --mtp <rt draft head> --max-context 262144 --kv int8 --kv-resident 32768 --pcie-frac 0.35 --spec-min-p 0.70 --pool-workers 7 --adapt-every 1 --adapt-swaps 160 --adapt-decay 0.97, reserve 1408, then 1728.

Worth noting: the crash is not specific to chunk 6400 - it also happened at 4352 and 5376, each time only after 4-6 successful 168K prefills inside the same session.

2) Windows event log around the three crashes (about 05:56 / 06:22 / 06:55 on 10-20)

  • No nvlddmkm 4101 (no TDR, no "stopped responding and recovered"), no Application Error for strata.exe, and no Kernel-Power 41 at any of the three moments. The restarts that followed were clean shutdowns - EventLog 6006/6005 pairs at 06:07:59/06:08:51, 06:37:28/06:38:06 and 07:04:20/07:04:56.
  • The only nvlddmkm entries anywhere near are two error-level events with empty message payloads (10-20 08:58:58 id 153; 10-21 04:57:22 id 13) - both hours after the crash series, not at a crash moment. (There is one unrelated Kernel-Power 41 from 10-18 15:04, before this test series and not correlated with any engine run in our logs.)
  • So the system log agrees with your reading: the driver lost the card without a recovery attempt, rather than the engine tripping a watchdog.

3) GPU temperature and power during prefill

We were not monitoring at crash time, so there is no historical trace. From today's monitored runs (below): a 168K-token prefill peaks at 67-70 C and 343-347 W on this 3080 Ti (350 W stock limit) - no thermal or power-limit event.

4) The same prompt, --prefill 5632 pinned vs --prefill 6400 pinned (today, app 0.2.2 / engine 0.1.47)

Same box, same model (Qwen3.8-Flash-Next IQ3_XXS GSQ-RCO), same prompt as the crash nights (164,699 tokens by usage.prompt_tokens, same generator), daily config --pool-workers 7 --pcie-frac 0.55 --spec-min-p 0.7 --vram-reserve-mib 1728 --kv int8 --max-context 262144, no --mtp, no --adapt-*:

pinned prefill result prefill engine after
5632 OK 85.3 s (1931 tok/s) alive
6400 OK 75.2 s (2189 tok/s) alive
6400, +3 more requests in the same session (prompt-cache reuse path - the shape the crashes happened on) 3/3 OK 0.6-0.7 s each (cache hit) alive

4/4 at chunk 6400, zero faults. One useful change since 0.1.45: on 0.1.47 at reserve 1728 the pinned 6400 is no longer clamped down to 3200 (auto now picks 6656 on this card), so the chunk you could not reach back then is reachable now - the clamp message we used to get was chunk 6400 -> 3200 ... so its buffers fit in every expert cache.

5) Where we are now

We have since moved to the official client (app 0.2.2 / engine 0.1.47) for daily use and have not seen the crash again - today's pinned-6400 runs above are on that stack. Our reading (unproven): the fault was tied to the source-built 0.1.45 engine with the draft layer (--mtp) and the --adapt-* set loaded, not to the chunk size alone - the packaged 0.1.45.3 had already survived 168K twice at chunk 5632 on this box. If it would help I can re-run the exact 0.1.45 + --mtp + --adapt-* configuration on the old binary to try to reproduce, or run compute-sanitizer --tool memcheck at 60K/6400 - just say the word.

Happy to send the full 447 KB engine log (it covers every session from 10-14 to 10-20) in whatever form you prefer.

Thanks again for the substantive reply - the driver-loss explanation matches what the event log shows on our side.

<!-- gh-comment-id:6341339341 --> @litao9417 commented on GitHub (Oct 22, 2026): Thanks for the quick reply, and for running the prompt on two more cards - that is useful data. Here is everything you asked for. **1) The engine logs - all three crashes (2026-10-20, source-built engine 0.1.45)** The client's own `strata-iq3_xxs.log` did not survive (the 0.2.1 auto-update wiped the install directory before we archived it), but the source-tree engine's log is intact and covers all three crash sessions end to end. Key excerpts: **Crash 1** - started 05:50:02, `prompt chunk auto: 4352` (reserve 1408, expert cache 1747 slots / 2.87 GiB, 1064 MiB VRAM free). Four 168,537-token prefills completed (first read 120.9 s, 1394.2 tok/s), the fifth died with: ``` prefill mmq: gather_native_group: unknown error ``` Six restart attempts in the following minute all died during boot with `native embedding: cannot pin 260 MiB: invalid argument, nor place it in VRAM` - the card was already gone - until a reboot. **Crash 2** - started 06:18:24, `prompt chunk auto: 6400` (1983 cache slots / 3.26 GiB borrowed; the engine itself printed the #2065 warning: `only 967 MiB of VRAM free at the start of this request`). Six 168K prefills completed (first read 90.0 s, 1873.6 tok/s), then the process died with **no engine error line at all**. Three restarts, same `cannot pin` deaths, then a reboot. **Crash 3** - started 06:50:56, reserve raised to 1728 per #2065, `prompt chunk auto: 5376`. Five 168K prefills completed (first read 91.2 s, 1847.7 tok/s), the sixth died with the same `gather_native_group: unknown error`. Three restarts, same deaths, then a reboot. After rolling the source tree back to 0.1.43.1 (07:12:06) the same prompt ran clean (6/6 in our records). Common flags of the three crash sessions: `--spec 4 --mtp <rt draft head> --max-context 262144 --kv int8 --kv-resident 32768 --pcie-frac 0.35 --spec-min-p 0.70 --pool-workers 7 --adapt-every 1 --adapt-swaps 160 --adapt-decay 0.97`, reserve 1408, then 1728. Worth noting: the crash is **not specific to chunk 6400** - it also happened at 4352 and 5376, each time only after 4-6 successful 168K prefills inside the same session. **2) Windows event log around the three crashes (about 05:56 / 06:22 / 06:55 on 10-20)** - **No nvlddmkm 4101** (no TDR, no "stopped responding and recovered"), **no Application Error for strata.exe**, and **no Kernel-Power 41** at any of the three moments. The restarts that followed were clean shutdowns - EventLog 6006/6005 pairs at 06:07:59/06:08:51, 06:37:28/06:38:06 and 07:04:20/07:04:56. - The only nvlddmkm entries anywhere near are two error-level events with empty message payloads (10-20 08:58:58 id 153; 10-21 04:57:22 id 13) - both hours after the crash series, not at a crash moment. (There is one unrelated Kernel-Power 41 from 10-18 15:04, before this test series and not correlated with any engine run in our logs.) - So the system log agrees with your reading: the driver lost the card without a recovery attempt, rather than the engine tripping a watchdog. **3) GPU temperature and power during prefill** We were not monitoring at crash time, so there is no historical trace. From today's monitored runs (below): a 168K-token prefill peaks at **67-70 C and 343-347 W** on this 3080 Ti (350 W stock limit) - no thermal or power-limit event. **4) The same prompt, `--prefill 5632` pinned vs `--prefill 6400` pinned (today, app 0.2.2 / engine 0.1.47)** Same box, same model (Qwen3.8-Flash-Next IQ3_XXS GSQ-RCO), same prompt as the crash nights (164,699 tokens by `usage.prompt_tokens`, same generator), daily config `--pool-workers 7 --pcie-frac 0.55 --spec-min-p 0.7 --vram-reserve-mib 1728 --kv int8 --max-context 262144`, **no `--mtp`, no `--adapt-*`**: | pinned prefill | result | prefill | engine after | |---|---|---|---| | 5632 | OK | 85.3 s (1931 tok/s) | alive | | 6400 | OK | 75.2 s (2189 tok/s) | alive | | 6400, +3 more requests in the same session (prompt-cache reuse path - the shape the crashes happened on) | 3/3 OK | 0.6-0.7 s each (cache hit) | alive | **4/4 at chunk 6400, zero faults.** One useful change since 0.1.45: on 0.1.47 at reserve 1728 the pinned 6400 is no longer clamped down to 3200 (auto now picks 6656 on this card), so the chunk you could not reach back then is reachable now - the clamp message we used to get was `chunk 6400 -> 3200 ... so its buffers fit in every expert cache`. **5) Where we are now** We have since moved to the official client (app 0.2.2 / engine 0.1.47) for daily use and have not seen the crash again - today's pinned-6400 runs above are on that stack. Our reading (unproven): the fault was tied to the **source-built 0.1.45 engine with the draft layer (`--mtp`) and the `--adapt-*` set loaded**, not to the chunk size alone - the packaged 0.1.45.3 had already survived 168K twice at chunk 5632 on this box. If it would help I can re-run the exact 0.1.45 + `--mtp` + `--adapt-*` configuration on the old binary to try to reproduce, or run `compute-sanitizer --tool memcheck` at 60K/6400 - just say the word. Happy to send the full 447 KB engine log (it covers every session from 10-14 to 10-20) in whatever form you prefer. Thanks again for the substantive reply - the driver-loss explanation matches what the event log shows on our side.
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Thanks for taking the time to report this.

Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.11. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6659520021 --> @Niko1221 commented on GitHub (Nov 5, 2026): Thanks for taking the time to report this. Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.11. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
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#1427
No description provided.