mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[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
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#1427
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 @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 ingather_native_group— and after that the GPU is gone:nvidia-smino longer lists it and only a reboot brings it back. Three launches, three crashes, same place.System
--max-context 262144 --kv int8 --kv-resident 32768 --prefill auto --vram-reserve-mib 1728, no--visionserve/server.py(source build, tagv0.1.45)Reproducer
One user message of roughly 220K characters of Chinese (~165K tokens) plus a one-line question,
max_tokenssmall. The crash lands inside the first prefill, before any token is generated.Evidence that it is the engine and not the machine
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.cubetween tagv0.1.45anda7bdbfdabc9a(engine 0.1.46) differs by 63 lines, all of them about the new Gyro trellis types (tq2_t/tqk6/tqk7).gather_native_groupand itstail_off/zero_bytesparameters are byte-identical in both.Ask
strata-<model>.logfrom all three crashes — say the word and I will attach them.Happy to run anything you want on this machine.
@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:
If it is an engine fault,
compute-sanitizer --tool memcheckon a 60K-token prompt at 6400 would show it much earlier than 165K. Meanwhile --prefill 5632 keeps the chunk you know is stable.@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.logdid 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: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, samecannot pindeaths, 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 samegather_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)
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 5632pinned vs--prefill 6400pinned (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-*: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 runcompute-sanitizer --tool memcheckat 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.
@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:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.