[GH-ISSUE #5370] [Engine] verify: timed out at layer 0 on Intel Arc Pro B65 — reproducible, no way to reproduce deterministically #3202

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

Originally created by @xmftxmft on GitHub (Nov 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5370

Problem: long generations on Intel Arc Pro B65 intermittently fail with the #267 verify timeout. The engine is then terminated (exit code -15) and the next request has to reload 26 GiB of experts (~10 s).

Environment:
GPU: Intel Arc Pro B65, 32 GB, PCI 8086:e222, xe driver
OS: Ubuntu 24.04.5, kernel 7.0.0-42-generic
Strata: 0.2.11, engine 0.1.57, control 0.1.57, backend sycl
Model: Qwen3.8-Flash-Next GGUF IQ2_XS, ~68 GB
Args: --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5
--max-context 131072 --kv q4_0 --stream-experts --vram-reserve-mib 569
Env: SYCL_UR_USE_LEVEL_ZERO_V2=0, LD_PRELOAD=,
STRATA_WATCHDOG_S=1800, STRATA_VERIFY_LEAN=1
Note: without the shim the engine does not start here
(level_zero backend failed with error: 44), so the shim is required.

Reproduce: run 10 sequential requests with a fixed prompt, max_tokens=400,
temperature=0.7. Result: 2 successes, 8 failures. Five of the eight failures
stopped at exactly 218 tokens in 39 s; the other three at 185 / 135 / 384.
Failures cluster by request index (runs of 2, 4 and 2).

Expected: the request either completes or returns an error without
terminating the engine.

Actual:
verify: timed out at layer 0; its GPU waits were released but the GPU
did not finish within 5 s (#267)
the engine stopped unexpectedly (exit code -15); the next request restarts it

When it works it is fine: 36.1-36.3 tok/s decode, 96.3-98.3% expert cache hit,
40-52% draft acceptance. This is not a "too slow" report.

Already excluded by direct observation:
--queue-timeout is null and --max-queue is unset
--shutdown-timeout 30 is the graceful-drain deadline, not a request timeout
STRATA_WATCHDOG_S=1800 is far longer than the 25-43 s failure window
issue #29 (CPU expert pool stall) has 0 hits in every log on this host
reproduces on engine-only 0.1.57, full 0.1.57, and 0.1.56
--vram-reserve-mib 2048/4096/8192/12288 were all tried earlier; 569 is
the value the engine itself suggested and is what we run now
9 of 13 failures in an earlier baseline had no GPU reset; normal decode
GPU-reach wait stays at 41-45 ms, never near 5 s

What I need:

  1. STRATA_TEST_VERIFY_STALL exists in the engine binary but not in the
    Python sources. Could you document the official repro command and
    expected usage? I want to reproduce the 5 s wait deterministically.
  2. Is a 5 s GPU wait expected to be exceeded on Battlemage with
    --stream-experts? If 5 s is deliberately conservative for cards with
    experts in pinned host memory, an undocumented knob would let me tell
    "slow" from "stuck".
  3. The engine has a stall report line with stage and duration, but it has
    never appeared in my logs (0 hits). Is it flag-gated?

Evidence: full engine log, serve --plan --json, dmesg, sycl-ls and the raw
per-request done: lines are in the attached file.

Reproduction status: reproduced locally for the failure itself (the error
text and exit code above are observed output). The claim that serve issues
the SIGTERM from the FATAL_PREFIXES branch at serve/server.py:1400-1412 is
unconfirmed static analysis — I read the source, I did not instrument the
call.

I am not claiming a root cause, and I am not claiming any token count,
the thinking budget, --max-context, VRAM headroom or the shim is the cause.

issue-attachment-Strata-267-b65.md

Originally created by @xmftxmft on GitHub (Nov 6, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5370 Problem: long generations on Intel Arc Pro B65 intermittently fail with the #267 verify timeout. The engine is then terminated (exit code -15) and the next request has to reload 26 GiB of experts (~10 s). Environment: GPU: Intel Arc Pro B65, 32 GB, PCI 8086:e222, xe driver OS: Ubuntu 24.04.5, kernel 7.0.0-42-generic Strata: 0.2.11, engine 0.1.57, control 0.1.57, backend sycl Model: Qwen3.8-Flash-Next GGUF IQ2_XS, ~68 GB Args: --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --max-context 131072 --kv q4_0 --stream-experts --vram-reserve-mib 569 Env: SYCL_UR_USE_LEVEL_ZERO_V2=0, LD_PRELOAD=<level-zero v2 shim>, STRATA_WATCHDOG_S=1800, STRATA_VERIFY_LEAN=1 Note: without the shim the engine does not start here (level_zero backend failed with error: 44), so the shim is required. Reproduce: run 10 sequential requests with a fixed prompt, max_tokens=400, temperature=0.7. Result: 2 successes, 8 failures. Five of the eight failures stopped at exactly 218 tokens in 39 s; the other three at 185 / 135 / 384. Failures cluster by request index (runs of 2, 4 and 2). Expected: the request either completes or returns an error without terminating the engine. Actual: verify: timed out at layer 0; its GPU waits were released but the GPU did not finish within 5 s (#267) the engine stopped unexpectedly (exit code -15); the next request restarts it When it works it is fine: 36.1-36.3 tok/s decode, 96.3-98.3% expert cache hit, 40-52% draft acceptance. This is not a "too slow" report. Already excluded by direct observation: --queue-timeout is null and --max-queue is unset --shutdown-timeout 30 is the graceful-drain deadline, not a request timeout STRATA_WATCHDOG_S=1800 is far longer than the 25-43 s failure window issue #29 (CPU expert pool stall) has 0 hits in every log on this host reproduces on engine-only 0.1.57, full 0.1.57, and 0.1.56 --vram-reserve-mib 2048/4096/8192/12288 were all tried earlier; 569 is the value the engine itself suggested and is what we run now 9 of 13 failures in an earlier baseline had no GPU reset; normal decode GPU-reach wait stays at 41-45 ms, never near 5 s What I need: 1. STRATA_TEST_VERIFY_STALL exists in the engine binary but not in the Python sources. Could you document the official repro command and expected usage? I want to reproduce the 5 s wait deterministically. 2. Is a 5 s GPU wait expected to be exceeded on Battlemage with --stream-experts? If 5 s is deliberately conservative for cards with experts in pinned host memory, an undocumented knob would let me tell "slow" from "stuck". 3. The engine has a stall report line with stage and duration, but it has never appeared in my logs (0 hits). Is it flag-gated? Evidence: full engine log, serve --plan --json, dmesg, sycl-ls and the raw per-request done: lines are in the attached file. Reproduction status: reproduced locally for the failure itself (the error text and exit code above are observed output). The claim that serve issues the SIGTERM from the FATAL_PREFIXES branch at serve/server.py:1400-1412 is unconfirmed static analysis — I read the source, I did not instrument the call. I am not claiming a root cause, and I am not claiming any token count, the thinking budget, --max-context, VRAM headroom or the shim is the cause. [issue-attachment-Strata-267-b65.md](https://github.com/user-attachments/files/34458462/issue-attachment-Strata-267-b65.md)
Author
Owner

@github-actions[bot] commented on GitHub (Nov 6, 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:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".

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:6675605304 --> @github-actions[bot] commented on GitHub (Nov 6, 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: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". 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 6, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6675644067 --> @github-actions[bot] commented on GitHub (Nov 6, 2026): Thanks, this follows the format now.
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#3202
No description provided.