[GH-ISSUE #4662] [Engine] 0.1.54: every ~10K-token prefill on a CUDA layer split kills the engine (layer-major launch failure; with it off, QSA step records upload failed) #2119

Open
opened 2026-11-04 01:56:51 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @otimp2-bit on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4662

Problem: On engine 0.1.54 (compiled locally from the 0.2.8 checkout, commit 870aedd9), every request whose prefill reaches ~10K tokens kills the engine process (exit code 1), while short requests decode normally (~88 tok/s). Engine 0.1.48 on the same box, same model pack and same run args serves days of real agent traffic (prefill up to ~100K tokens, ~94% cache hits) without a crash.

Environment:

  • HP Z840, Ubuntu 24.04.5 LTS, kernel 6.8.0-147-generic, driver 580.178.04, CUDA 13 toolkit; engine built from source by update.sh (BUILD.json: source local, archs [75], vision gpu)
  • GPUs: NVIDIA TITAN RTX 24 GB (index 0) + GeForce RTX 3080 12 GB (index 1), power limits 210 W / 280 W — an asymmetric pair
  • 125 GB RAM, NVMe SSD; experts live in RAM via --native
  • Model: Huihui-Qwen3.8-Flash-Next-abliterated-v2, UD-Q4_K_XL, 4 shards ~103.7 GiB, native experts, MTP drafter, learned expert profile
  • Run args: --pack ~/Strata-data/packs/huihui-ud-q4kxl --native ~/gguf-q4kxl/Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf --expert-profile ~/Strata-data/profile-learned.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.7 --mtp ~/Strata-data/mtp/rt --max-context 262144 --kv int8 --kv-resident 32768 --vision --vram-reserve-mib 1000 --expert-profile-save ~/Strata-data/profile-learned.bin --layer-split 32 --pipeline-windows 2 --batch-mtp --batch-groups 1
  • Server: serve/server.py under systemd; server env STRATA_HC_Q8=1, STRATA_ROUTE_TAIL_SKIP=1; thinking on (the model's default)

Reproduce:

  1. ./update.sh at 0.2.8 with the server service stopped → engine 0.1.54 compiled locally; start the service; the model loads in ~4.5 min and /v1/models answers 200.
  2. POST /v1/chat/completions with a 9,600-character Korean prompt (~10K tokens), max_tokens: 24, temperature: 0 → HTTP 400 and the engine exits with code 1; following requests get 503 until the engine restarts.
  3. A 61-token prompt succeeds (46 completion tokens, ~88 tok/s).
  4. A ~30K-token prompt dies the same way.

Expected: the request completes — engine 0.1.48 completes 10K–100K-token prefills on these same args.

Actual: the engine process dies on every prefill past ~10K tokens. Exact errors per variant (each line is the engine's own report):

variant outcome at ~10K prefill
defaults (layer-major prefill on for this split) 400 invalid request: prefill (layer-major): unspecified launch failure
STRATA_PREFILL_LAYER_MAJOR=0 still dies at the same point; last lines vary: prefill: the QSA step records' upload failed, conversation-cache parking, CUDA1: 625 MiB of VRAM free with everything loaded
--vram-reserve-mib 3000 prefill (layer-major): unspecified launch failure
--vram-reserve-mib 3000 + --layer-split 36 prefill: the QSA step records' upload failed
engine 0.1.48 (rollback, same config) healthy — no crash

Short requests passed in every variant; the ~10K prefill died in every 0.1.54 variant (5 crashes, then the 0.1.48 control healthy).

Observations (recorded, not presented as the cause):

  • The two errors are kernel-level failures (launch/upload), not out-of-memory; raising the VRAM reserve and moving 4 layers to the other card do not move the failure point.
  • 0.1.54 also changed the stage order on this box: the 12 GB card now runs the first 32 layers and the picture reader (0.1.48 put them on the 24 GB card), and the 625 MiB free line names CUDA1, the 24 GB card.
  • The 0.2.8 release notes do not mention layer-major prefill or QSA step records, and the NVIDIA test matrix is A6000/3060/R9700-class — this asymmetric 24 GB + 12 GB pair, and this crash, are not in the notes. Threads reviewed first: #3976 and #4393 (layer-major on a split, performance reports), #4516 (the --vram-reserve-mib contract), #2678 (closed; head dequant launch failure on sm_120) — none covers this crash.

Evidence (verbatim log lines):

[strata] 400 invalid request: prefill (layer-major): unspecified launch failure
[strata] the engine stopped unexpectedly (exit code 1). The engine exited (code 1) after it reported: prefill (layer-major): unspecified launch failure - please report it at github.com/Niko1221/Strata/issues with the log. The next request starts the engine again.
[strata] the engine stopped unexpectedly (exit code 1). The engine exited (code 1) after it reported: prefill: the QSA step records' upload failed - please report it at github.com/Niko1221/Strata/issues with the log.

Reproduction status: reproduced locally — 4 config variants on 0.1.54 plus the 0.1.48 control, 6 for 6 as described above.

Happy to run candidate builds or capture longer logs on this box.

Originally created by @otimp2-bit on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4662 Problem: On engine 0.1.54 (compiled locally from the 0.2.8 checkout, commit 870aedd9), every request whose prefill reaches ~10K tokens kills the engine process (exit code 1), while short requests decode normally (~88 tok/s). Engine 0.1.48 on the same box, same model pack and same run args serves days of real agent traffic (prefill up to ~100K tokens, ~94% cache hits) without a crash. Environment: - HP Z840, Ubuntu 24.04.5 LTS, kernel 6.8.0-147-generic, driver 580.178.04, CUDA 13 toolkit; engine built from source by `update.sh` (BUILD.json: source local, archs [75], vision gpu) - GPUs: NVIDIA TITAN RTX 24 GB (index 0) + GeForce RTX 3080 12 GB (index 1), power limits 210 W / 280 W — an asymmetric pair - 125 GB RAM, NVMe SSD; experts live in RAM via `--native` - Model: Huihui-Qwen3.8-Flash-Next-abliterated-v2, UD-Q4_K_XL, 4 shards ~103.7 GiB, native experts, MTP drafter, learned expert profile - Run args: `--pack ~/Strata-data/packs/huihui-ud-q4kxl --native ~/gguf-q4kxl/Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf --expert-profile ~/Strata-data/profile-learned.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.7 --mtp ~/Strata-data/mtp/rt --max-context 262144 --kv int8 --kv-resident 32768 --vision --vram-reserve-mib 1000 --expert-profile-save ~/Strata-data/profile-learned.bin --layer-split 32 --pipeline-windows 2 --batch-mtp --batch-groups 1` - Server: `serve/server.py` under systemd; server env `STRATA_HC_Q8=1`, `STRATA_ROUTE_TAIL_SKIP=1`; thinking on (the model's default) Reproduce: 1. `./update.sh` at 0.2.8 with the server service stopped → engine 0.1.54 compiled locally; start the service; the model loads in ~4.5 min and `/v1/models` answers 200. 2. POST `/v1/chat/completions` with a 9,600-character Korean prompt (~10K tokens), `max_tokens: 24`, `temperature: 0` → HTTP 400 and the engine exits with code 1; following requests get 503 until the engine restarts. 3. A 61-token prompt succeeds (46 completion tokens, ~88 tok/s). 4. A ~30K-token prompt dies the same way. Expected: the request completes — engine 0.1.48 completes 10K–100K-token prefills on these same args. Actual: the engine process dies on every prefill past ~10K tokens. Exact errors per variant (each line is the engine's own report): | variant | outcome at ~10K prefill | | --- | --- | | defaults (layer-major prefill on for this split) | `400 invalid request: prefill (layer-major): unspecified launch failure` | | `STRATA_PREFILL_LAYER_MAJOR=0` | still dies at the same point; last lines vary: `prefill: the QSA step records' upload failed`, conversation-cache parking, `CUDA1: 625 MiB of VRAM free with everything loaded` | | `--vram-reserve-mib 3000` | `prefill (layer-major): unspecified launch failure` | | `--vram-reserve-mib 3000` + `--layer-split 36` | `prefill: the QSA step records' upload failed` | | engine 0.1.48 (rollback, same config) | healthy — no crash | Short requests passed in every variant; the ~10K prefill died in every 0.1.54 variant (5 crashes, then the 0.1.48 control healthy). Observations (recorded, not presented as the cause): - The two errors are kernel-level failures (launch/upload), not out-of-memory; raising the VRAM reserve and moving 4 layers to the other card do not move the failure point. - 0.1.54 also changed the stage order on this box: the 12 GB card now runs the first 32 layers and the picture reader (0.1.48 put them on the 24 GB card), and the `625 MiB` free line names CUDA1, the 24 GB card. - The 0.2.8 release notes do not mention layer-major prefill or QSA step records, and the NVIDIA test matrix is A6000/3060/R9700-class — this asymmetric 24 GB + 12 GB pair, and this crash, are not in the notes. Threads reviewed first: #3976 and #4393 (layer-major on a split, performance reports), #4516 (the `--vram-reserve-mib` contract), #2678 (closed; head dequant launch failure on sm_120) — none covers this crash. Evidence (verbatim log lines): > [strata] 400 invalid request: prefill (layer-major): unspecified launch failure > [strata] the engine stopped unexpectedly (exit code 1). The engine exited (code 1) after it reported: prefill (layer-major): unspecified launch failure - please report it at github.com/Niko1221/Strata/issues with the log. The next request starts the engine again. > [strata] the engine stopped unexpectedly (exit code 1). The engine exited (code 1) after it reported: prefill: the QSA step records' upload failed - please report it at github.com/Niko1221/Strata/issues with the log. Reproduction status: reproduced locally — 4 config variants on 0.1.54 plus the 0.1.48 control, 6 for 6 as described above. Happy to run candidate builds or capture longer logs on this box.
Author
Owner

@rugabunda commented on GitHub (Oct 30, 2026):

im getting 10-40tok/s average less on 0.1.54 on 3080 ti compared to 0.1.53

<!-- gh-comment-id:6514438297 --> @rugabunda commented on GitHub (Oct 30, 2026): im getting 10-40tok/s average less on 0.1.54 on 3080 ti compared to 0.1.53
Author
Owner

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

We couldn't make this happen on two matching cards, but we found one way to get exactly this error: an engine built for only one kind of card (yours says sm_75, the TITAN RTX) and also run on a newer one (the 3080 is sm_86). On our test PC that engine failed every request with "unspecified launch failure".

In 0.2.9, setup builds the engine for every usable NVIDIA card in the PC, and the server prints one plain line at start when a card isn't covered. Please run ./update.sh on 0.2.9 (it compiles again once, a few more minutes) and tell us if long prompts work. If the build then lists both sm_75 and sm_86 and it still fails, please send the engine log. We haven't confirmed this is your cause, so this stays open.

<!-- gh-comment-id:6541139471 --> @Niko1221 commented on GitHub (Oct 31, 2026): We couldn't make this happen on two matching cards, but we found one way to get exactly this error: an engine built for only one kind of card (yours says sm_75, the TITAN RTX) and also run on a newer one (the 3080 is sm_86). On our test PC that engine failed every request with "unspecified launch failure". In [0.2.9](https://github.com/Niko1221/Strata/releases/tag/v0.2.9), setup builds the engine for every usable NVIDIA card in the PC, and the server prints one plain line at start when a card isn't covered. Please run `./update.sh` on 0.2.9 (it compiles again once, a few more minutes) and tell us if long prompts work. If the build then lists both sm_75 and sm_86 and it still fails, please send the engine log. We haven't confirmed this is your cause, so this stays open.
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#2119
No description provided.