[GH-ISSUE #5229] [Engine] Prefill stall at ~9k prompt tokens on a gfx1010 HIP build, 3/3 agent-suite runs (0.1.46.2, #29 family) #3111

Open
opened 2026-11-07 14:38:09 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @shaoyanji on GitHub (Nov 4, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5229

Area

[Engine] — the server/engine, prompt reads. Related: this belongs to the batched-prefill #29 family already tracked in #3807 (0.1.46/0.1.47) and #4566 (gfx1031); posting it separately because the stall site here is deterministic and the pack is Qwen3.8 Coder IQ1_M on a different gfx10 part.

Desktop app, Terminal or source?

Source — a local HIP build for gfx1010 (setup-equivalent self-built engine, BUILD.json "source": "local-hip"), served by python -m serve.server --engine strata.

What happened

Long prompt reads stall the engine on an AMD gfx1010 (RX 5700, HIP) build, and the engine's own guard stops it after 60 s:

strata serve: no progress for 60 s during a request (reading the prompt (batched): layer 1 of
  the prompt chunk from token 9076) - stopping the engine so the server starts it again
  (issue #29) - please report it at github.com/Niko1221/Strata/issues
strata serve: the engine had stopped (exit code -6); starting it again (a minute or two) ...

The wrapper restarts the engine and the session resumes, so from the client it looks like one very slow turn (60 s + a reload), not a crash — the same masking #3807 describes.

Smallest steps or command that reproduce it

tools/strata_bench.py against the running server: the agent stage is a system prompt with four tools, then five turns, each appending ~1,500 words of a file and continuing from the model's own reply. Nothing exotic, no --parallel, one request at a time.

python tools/strata_bench.py --url http://127.0.0.1:8085

The stall lands in turn 3 of 6, at prompt ~9,0xx tokens, in all three runs.

Reproduction status

Always, at this prompt size: 3 / 3 agent-suite runs on IQ1_M at --max-context 16384, three stall sites within ~60 tokens of each other. Not once seen, not intermittent — while 609 to 9,029-token turns never stall on the same session.

reading the prompt (batched): layer 1 of the prompt chunk from token 9076
reading the prompt (batched): layer 1 of the prompt chunk from token 9121
reading the prompt (batched): layer 1 of the prompt chunk from token 9063

Also seen: IQ2_XS (68.2 GB) and IQ3_XXS (76.0 GB) stall at turn 0 at 32768, and IQ1_M stalls on a single 16,384-token prompt at 32768. So it is not the pack and not the context budget. All three quantisation levels, one engine.

Strata version

engine/BUILD.json:

{"source": "local-hip", "backend": "hip", "version": "0.1.46.2", "archs": ["gfx1010"],
 "vision": "none", "src": "c56870384782f0e9"}

Engine binary built 2026-10-21; runtime from the _rocm_sdk_devel and _rocm_sdk_libraries_gfx101X_dgpu wheels. Server banner: ready: ... (context 32768 tokens), strata generate: session is up (engine 0.1.46.2). This build prints only the one-line guard — no stall report (engine …) block and no thread-stack file — so there is no dump to attach from it. Public 0.2.10 ships engine 0.1.56; ours is ten point releases back, and I will retest on 0.1.56 when the box is up again.

Graphics card, memory and system

  • AMD Radeon RX 5700 — Navi 10, gfx1010, 8 GB GDDR6, radv Vulkan / ROCr HIP (no ROCm target upstream for gfx1010, hence the local build)
  • CPU: Xeon E5-2673 v3, Haswell-EP, 12c/24t, AVX2, no AVX-512
  • RAM: 62.7 GiB DDR3-1600 dual channel, Linux, in-kernel amdgpu

Model, size and settings

Qwen3.8-Flash-Next Coder IQ1_M (58.4 GB, 256 of 512 experts), pack built locally with tools/iq_pack.py from the publisher's two shards, checksums verified against SHA256SUMS (96 exact conversions, 0 rounded).

--pack <pack> --native <shard1.gguf> --ple-gguf <shard2.gguf> --expert-profile <profile.bin>
--expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp <mtp/rt>
--max-context 32768 --kv int8

Engine threads left at the default (24). No --adapt-swaps, no --resident-budget-gib, no STRATA_* overrides — this is the plain path.

Logs

strata serve: prompt chunk auto: 3840 tokens, a 351-slot ring
strata serve: the prompt path borrows 1687 CUDA0 cache slots (2.28 GiB)
strata serve: adaptive overlap: off (STRATA_ADAPT_OVERLAP=1 turns it on)
strata verify: window up to 6 tokens, 56.9 MiB of device buffers
strata serve: 636 MiB of VRAM free with everything loaded

Nothing is written at the stall: the engine log's last lines are the startup ones above. Journal, per stall:

the engine stopped unexpectedly (exit code -6)... the engine had stopped (exit code -6);
starting it again (a minute or two)

oom_kill 0, no kernel kill line, no coredump payload (RLIMIT_CORE is 0 on purpose), MemAvailable above 30 GiB throughout.

Numbers around it (IQ1_M, 3 runs, warm server, 16384 context)

Stage Result
chat decode median 11.30 tok/s (7.60 - 19.90, n=9)
chat first token 2.22 s
4K prompt 166.8 tok/s, first token 24.17 s
agent cache hit 55.8 %
agent first token, per turn 93.77 s (60.42 - 176.68, n=9)
agent decode 8.40 tok/s (7.90 - 10.50, n=9)

Agent turns are prefill-bound on this box, which is expected on a 12-core Haswell with AVX2 only; the stall is the problem, not the rate.

What I would like to know

  1. Is the ~9k boundary a chunk/ring boundary in the batched prompt read (--prefill auto picked a 3840-token chunk and a 351-slot ring here)? Does forcing --prefill 512 or --prefill 2048 move the stall, or does it stay at ~9k tokens?
  2. #4566's 2026-11-03 comment reports --adapt-swaps 0 + STRATA_VERIFY_COHERENT=1 stabilising prefill there. Is that the intended workaround for this family, and does it apply to a stall inside a batched chunk read (not the verify path)?
  3. Does STRATA_ADAPT_OVERLAP=1 change it? It is off by default in this build and the stall sits inside a chunk read.
  4. Is any of this fixed in 0.1.56? If so, name the build and I will run the same suite on it.
Originally created by @shaoyanji on GitHub (Nov 4, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5229 ## Area [Engine] — the server/engine, prompt reads. Related: this belongs to the batched-prefill #29 family already tracked in #3807 (0.1.46/0.1.47) and #4566 (gfx1031); posting it separately because the stall site here is deterministic and the pack is Qwen3.8 Coder IQ1_M on a different gfx10 part. ## Desktop app, Terminal or source? Source — a local HIP build for gfx1010 (`setup`-equivalent self-built engine, `BUILD.json` `"source": "local-hip"`), served by `python -m serve.server --engine strata`. ## What happened Long prompt reads stall the engine on an AMD gfx1010 (RX 5700, HIP) build, and the engine's own guard stops it after 60 s: ``` strata serve: no progress for 60 s during a request (reading the prompt (batched): layer 1 of the prompt chunk from token 9076) - stopping the engine so the server starts it again (issue #29) - please report it at github.com/Niko1221/Strata/issues strata serve: the engine had stopped (exit code -6); starting it again (a minute or two) ... ``` The wrapper restarts the engine and the session resumes, so from the client it looks like one very slow turn (60 s + a reload), not a crash — the same masking #3807 describes. ## Smallest steps or command that reproduce it `tools/strata_bench.py` against the running server: the agent stage is a system prompt with four tools, then five turns, each appending ~1,500 words of a file and continuing from the model's own reply. Nothing exotic, no `--parallel`, one request at a time. ``` python tools/strata_bench.py --url http://127.0.0.1:8085 ``` The stall lands in turn 3 of 6, at prompt ~9,0xx tokens, in all three runs. ## Reproduction status Always, at this prompt size: 3 / 3 agent-suite runs on IQ1_M at `--max-context 16384`, three stall sites within ~60 tokens of each other. Not once seen, not intermittent — while 609 to 9,029-token turns never stall on the same session. ``` reading the prompt (batched): layer 1 of the prompt chunk from token 9076 reading the prompt (batched): layer 1 of the prompt chunk from token 9121 reading the prompt (batched): layer 1 of the prompt chunk from token 9063 ``` Also seen: IQ2_XS (68.2 GB) and IQ3_XXS (76.0 GB) stall at turn 0 at 32768, and IQ1_M stalls on a single 16,384-token prompt at 32768. So it is not the pack and not the context budget. All three quantisation levels, one engine. ## Strata version `engine/BUILD.json`: ```json {"source": "local-hip", "backend": "hip", "version": "0.1.46.2", "archs": ["gfx1010"], "vision": "none", "src": "c56870384782f0e9"} ``` Engine binary built 2026-10-21; runtime from the `_rocm_sdk_devel` and `_rocm_sdk_libraries_gfx101X_dgpu` wheels. Server banner: `ready: ... (context 32768 tokens)`, `strata generate: session is up (engine 0.1.46.2)`. This build prints only the one-line guard — no `stall report (engine …)` block and no thread-stack file — so there is no dump to attach from it. Public 0.2.10 ships engine 0.1.56; ours is ten point releases back, and I will retest on 0.1.56 when the box is up again. ## Graphics card, memory and system - AMD Radeon RX 5700 — Navi 10, gfx1010, 8 GB GDDR6, radv Vulkan / ROCr HIP (no ROCm target upstream for gfx1010, hence the local build) - CPU: Xeon E5-2673 v3, Haswell-EP, 12c/24t, AVX2, no AVX-512 - RAM: 62.7 GiB DDR3-1600 dual channel, Linux, in-kernel amdgpu ## Model, size and settings Qwen3.8-Flash-Next **Coder IQ1_M** (58.4 GB, 256 of 512 experts), pack built locally with `tools/iq_pack.py` from the publisher's two shards, checksums verified against `SHA256SUMS` (96 exact conversions, 0 rounded). ``` --pack <pack> --native <shard1.gguf> --ple-gguf <shard2.gguf> --expert-profile <profile.bin> --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp <mtp/rt> --max-context 32768 --kv int8 ``` Engine threads left at the default (24). No `--adapt-swaps`, no `--resident-budget-gib`, no `STRATA_*` overrides — this is the plain path. ## Logs ``` strata serve: prompt chunk auto: 3840 tokens, a 351-slot ring strata serve: the prompt path borrows 1687 CUDA0 cache slots (2.28 GiB) strata serve: adaptive overlap: off (STRATA_ADAPT_OVERLAP=1 turns it on) strata verify: window up to 6 tokens, 56.9 MiB of device buffers strata serve: 636 MiB of VRAM free with everything loaded ``` Nothing is written at the stall: the engine log's last lines are the startup ones above. Journal, per stall: ``` the engine stopped unexpectedly (exit code -6)... the engine had stopped (exit code -6); starting it again (a minute or two) ``` `oom_kill` 0, no kernel kill line, no coredump payload (RLIMIT_CORE is 0 on purpose), `MemAvailable` above 30 GiB throughout. ## Numbers around it (IQ1_M, 3 runs, warm server, 16384 context) | Stage | Result | | :--- | :--- | | chat decode | median 11.30 tok/s (7.60 - 19.90, n=9) | | chat first token | 2.22 s | | 4K prompt | 166.8 tok/s, first token 24.17 s | | agent cache hit | 55.8 % | | agent first token, per turn | 93.77 s (60.42 - 176.68, n=9) | | agent decode | 8.40 tok/s (7.90 - 10.50, n=9) | Agent turns are prefill-bound on this box, which is expected on a 12-core Haswell with AVX2 only; the stall is the problem, not the rate. ## What I would like to know 1. Is the ~9k boundary a chunk/ring boundary in the batched prompt read (`--prefill auto` picked a 3840-token chunk and a 351-slot ring here)? Does forcing `--prefill 512` or `--prefill 2048` move the stall, or does it stay at ~9k tokens? 2. #4566's 2026-11-03 comment reports `--adapt-swaps 0` + `STRATA_VERIFY_COHERENT=1` stabilising prefill there. Is that the intended workaround for this family, and does it apply to a stall inside a batched chunk read (not the verify path)? 3. Does `STRATA_ADAPT_OVERLAP=1` change it? It is off by default in this build and the stall sits inside a chunk read. 4. Is any of this fixed in 0.1.56? If so, name the build and I will run the same suite on it.
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#3111
No description provided.