[GH-ISSUE #3638] [Engine] 0.1.44.1, CUDA layer split (sm_120): after hours of serving, any batched prompt read over ~400 tokens ends non-finite, so the #879 guard's retry cannot recover it #1499

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

Originally created by @Omnicef on GitHub (Oct 21, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3638

Follow-up to #879 (closed). This is the same rig as #3470.

Setup

  • Build: Strata v0.1.44.1 built locally (CUDA 13.0, CMAKE_CUDA_ARCHITECTURES=120, Release), Linux, driver 595.91.07.
  • Hardware: 2x RTX 5060 Ti 16 GB, 48 GB RAM.
  • Model and split: Qwen3.8-Flash-Next GSQ-RCO IQ3_S, layer split auto (K=24).
  • Args: --spec 4 --kv int8 --resident-experts --resident-budget-gib 32.14 --vram-reserve-mib 700 --vram-reserve-later-mib 1265 --remote-expert-opt --pcie-frac 0.35 --spec-min-p 0.70. Defaults otherwise:
    --short-read 64, prompt cache on, STRATA_ROUTE_TAIL_SKIP=7, no --tail-role-token.
  • Control vector: loaded but off for every request here (experimental_speed_projection: false).
  • Process: up 8.5 h at the first failure, 73 requests before it (prompts up to 159K tokens). Free VRAM throughout
    was CUDA0 268 MiB and CUDA1 666-684 MiB, so this is not the low-VRAM case from #3470.

What happened in production

An agent conversation that had grown from 28K to 63K tokens without trouble sent its next request: 69,315 tokens, of
which 63,161 were reused from the cache and 6,154 were new. The client sent it 3 times, and the server retried each one
once after the guard fired: 6 attempts in all. Every attempt failed the same way:

strata serve: non-finite logits (#879) in a prompt window at position 69310 (row 0): ... the next request reads its prompt from token 0
strata serve: after non-finite logits (#879): dropped the live session, 5 checkpoints, ...; reading this prompt from token 0
  • The first attempt reused 63,161 tokens. The other five re-read all 69,310 tokens from token 0 in a fresh session.
  • Each failure was at row 0, position 69310: the last <|im_start|>, which opens the assistant header.
  • With the prompt cache on, the prompt is split at that point (turn_at) and the short header goes through the verify
    windows. Those windows are the first logits check after the batched read, which doesn't check logits.

Replays on the same process (each cold, from token 0, sampled with seed 1)

We recovered the request body from the client's failure dump. It renders to 69,311 tokens, 4 fewer than the original;
the client's dump differs slightly from what it sent. Each attempt below includes the server's own retry.

arm change tokens first logits check result
a none 69,311 prompt window at the last `< im_start
b1 +3 / +11 / +59 whitespace tokens inside the last message (the header moves) 69,314 / 69,322 / 69,370 69309 / 69317 / 69365 non-finite at the new header position, row 0, every attempt
b2 "strata_checkpoint": false (no turn_at split, so the header is read batched) 69,311 first decode window (69310) non-finite in the first decode window, row 0
c the newest ~6.1K tokens (the last 2 messages) replaced by neutral text of equal token length 69,311 69306 non-finite at 69306, row 0
a none, repeated last 69,311 69306 non-finite at 69306, row 0

All 14 attempts were non-finite.

Cold prompts of any content, same process

Next, prefixes of the same conversation and then unrelated text, each read from token 0 (max_tokens 64):

prompt tokens (batched before the header) result
the conversation, messages 0-69 (the history the client had built up from the cache without trouble) 63,162 (63,157) non-finite at the header, both attempts
messages 0-13 / 0-5 / 0-1 (system prompt, tools, first user message) 31,354 / 28,581 / 27,374 non-finite at the header, every attempt
neutral filler text, one user message, no system prompt, no tools 25,816 / 868 / 538 / 428 (25,811 / 863 / 533 / 423) non-finite at the header, every attempt
the same filler 362 / 164 / 32 finite; a normal reply

The threshold is a step between a 357-token and a 423-token batched read.

When it flipped

The same conversation had batched reads of 6,478, 6,379 and 6,600 tokens succeed. The last of these started at
14:48:49 UTC. The five requests after it read 269-403 tokens each on top of the cache, below the threshold, and
succeeded by 14:49:47. After 3 minutes idle, the next request (6,154 tokens batched) failed at 14:52:42. The process
flipped in that 4-minute window. It was the only client then: plain text, no images, no sampling or control-vector
fields in the requests, and no kernel, Xid or driver messages in the journal.

The same prompts on a fresh process

After a restart (same build, same args), each read cold from token 0: the 428-token filler, the 25,816-token filler,
messages 0-69 (63,162) and the full capture (69,311). All four came back finite and replied normally up to
max_tokens 64, with no #879 lines in the log.

Reading of the results

  • Not the content: unrelated filler fails the same way once the batched part is over about 400 tokens. The same
    conversation's earlier 6K-token batched reads succeeded, before the flip.
  • Not the window geometry:
    • The failure follows the header when the header moves (b1).
    • It still fires when there is no prompt window at all and the first check is the first decode window (b2).
    • The non-finite value is already in the state when the batched read ends. The window only reveals it.
  • Something in the process's state: the same build read prompts of up to 159K tokens cold earlier in this process's
    life. After 8.5 h and about 75 requests, any batched read above roughly 400 tokens produces non-finite logits, and
    short reads and decode are still fine.
  • Not recoverable by the retry: a re-read from token 0 in the same process repeats the same computation and fails
    the same way (every attempt so far). The guard does what it says, but this class needs the retry to change something, for example:
    • read with STRATA_ROUTE_TAIL_SKIP=0;
    • compute the experts that are missing from the GPU on the CPU for the retry;
    • or at least report "deterministic at position P" so a client stops sending the same request.

Still to test

  • What ages: what changes in the 4-minute window, and whether adaptive expert swaps (--adapt-swaps 0) are involved.
  • What changes in the batched read at about 400 tokens, and whether the expert placement after adaptive swaps is involved.
  • STRATA_DBG_NAN=1, to find where the first non-finite value appears during the batched read.

Questions

  1. Is a non-finite residual at the end of a batched read a known path, separate from #879's MoE-output poisoning? What
    does the batched path switch between about 360 and 420 tokens (a kernel, a chunk or tile size, the expert path)?
  2. Is there a per-request knob for a retry that changes the numerics, or a way to make the guard's retry do that?
  3. Does the batched prompt path have a cheap non-finite check per chunk, so the failure can be placed, not just seen
    at the end?

For contrast: in our 0.1.40 failures (before the guard), the "!" run began 17-64 tokens into decode after a short
11-17 token read. That is a different signature from this one.

Originally created by @Omnicef on GitHub (Oct 21, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3638 Follow-up to #879 (closed). This is the same rig as #3470. ## Setup - **Build:** Strata v0.1.44.1 built locally (CUDA 13.0, `CMAKE_CUDA_ARCHITECTURES=120`, Release), Linux, driver 595.91.07. - **Hardware:** 2x RTX 5060 Ti 16 GB, 48 GB RAM. - **Model and split:** Qwen3.8-Flash-Next GSQ-RCO IQ3_S, layer split auto (K=24). - **Args:** `--spec 4 --kv int8 --resident-experts --resident-budget-gib 32.14 --vram-reserve-mib 700 --vram-reserve-later-mib 1265 --remote-expert-opt --pcie-frac 0.35 --spec-min-p 0.70`. Defaults otherwise: `--short-read 64`, prompt cache on, `STRATA_ROUTE_TAIL_SKIP=7`, no `--tail-role-token`. - **Control vector:** loaded but off for every request here (`experimental_speed_projection: false`). - **Process:** up 8.5 h at the first failure, 73 requests before it (prompts up to 159K tokens). Free VRAM throughout was CUDA0 268 MiB and CUDA1 666-684 MiB, so this is not the low-VRAM case from #3470. ## What happened in production An agent conversation that had grown from 28K to 63K tokens without trouble sent its next request: 69,315 tokens, of which 63,161 were reused from the cache and 6,154 were new. The client sent it 3 times, and the server retried each one once after the guard fired: 6 attempts in all. Every attempt failed the same way: ``` strata serve: non-finite logits (#879) in a prompt window at position 69310 (row 0): ... the next request reads its prompt from token 0 strata serve: after non-finite logits (#879): dropped the live session, 5 checkpoints, ...; reading this prompt from token 0 ``` - The first attempt reused 63,161 tokens. The other five re-read all 69,310 tokens from token 0 in a fresh session. - Each failure was at row 0, position 69310: the last `<|im_start|>`, which opens the assistant header. - With the prompt cache on, the prompt is split at that point (`turn_at`) and the short header goes through the verify windows. Those windows are the first logits check after the batched read, which doesn't check logits. ## Replays on the same process (each cold, from token 0, sampled with seed 1) We recovered the request body from the client's failure dump. It renders to 69,311 tokens, 4 fewer than the original; the client's dump differs slightly from what it sent. Each attempt below includes the server's own retry. | arm | change | tokens | first logits check | result | |---|---|---|---|---| | a | none | 69,311 | prompt window at the last `<|im_start|>` (69306) | non-finite at 69306, row 0, both attempts | | b1 | +3 / +11 / +59 whitespace tokens inside the last message (the header moves) | 69,314 / 69,322 / 69,370 | 69309 / 69317 / 69365 | non-finite at the new header position, row 0, every attempt | | b2 | `"strata_checkpoint": false` (no `turn_at` split, so the header is read batched) | 69,311 | first decode window (69310) | non-finite in the **first decode** window, row 0 | | c | the newest ~6.1K tokens (the last 2 messages) replaced by neutral text of equal token length | 69,311 | 69306 | non-finite at 69306, row 0 | | a | none, repeated last | 69,311 | 69306 | non-finite at 69306, row 0 | All 14 attempts were non-finite. ## Cold prompts of any content, same process Next, prefixes of the same conversation and then unrelated text, each read from token 0 (`max_tokens` 64): | prompt | tokens (batched before the header) | result | |---|---|---| | the conversation, messages 0-69 (the history the client had built up from the cache without trouble) | 63,162 (63,157) | non-finite at the header, both attempts | | messages 0-13 / 0-5 / 0-1 (system prompt, tools, first user message) | 31,354 / 28,581 / 27,374 | non-finite at the header, every attempt | | neutral filler text, one user message, no system prompt, no tools | 25,816 / 868 / 538 / 428 (25,811 / 863 / 533 / 423) | non-finite at the header, every attempt | | the same filler | 362 / 164 / 32 | finite; a normal reply | The threshold is a step between a 357-token and a 423-token batched read. ## When it flipped The same conversation had batched reads of 6,478, 6,379 and 6,600 tokens succeed. The last of these started at 14:48:49 UTC. The five requests after it read 269-403 tokens each on top of the cache, below the threshold, and succeeded by 14:49:47. After 3 minutes idle, the next request (6,154 tokens batched) failed at 14:52:42. The process flipped in that 4-minute window. It was the only client then: plain text, no images, no sampling or control-vector fields in the requests, and no kernel, Xid or driver messages in the journal. ## The same prompts on a fresh process After a restart (same build, same args), each read cold from token 0: the 428-token filler, the 25,816-token filler, messages 0-69 (63,162) and the full capture (69,311). All four came back finite and replied normally up to `max_tokens` 64, with no #879 lines in the log. ## Reading of the results - **Not the content:** unrelated filler fails the same way once the batched part is over about 400 tokens. The same conversation's earlier 6K-token batched reads succeeded, before the flip. - **Not the window geometry:** - The failure follows the header when the header moves (b1). - It still fires when there is no prompt window at all and the first check is the first decode window (b2). - The non-finite value is already in the state when the batched read ends. The window only reveals it. - **Something in the process's state:** the same build read prompts of up to 159K tokens cold earlier in this process's life. After 8.5 h and about 75 requests, any batched read above roughly 400 tokens produces non-finite logits, and short reads and decode are still fine. - **Not recoverable by the retry:** a re-read from token 0 in the same process repeats the same computation and fails the same way (every attempt so far). The guard does what it says, but this class needs the retry to change something, for example: - read with `STRATA_ROUTE_TAIL_SKIP=0`; - compute the experts that are missing from the GPU on the CPU for the retry; - or at least report "deterministic at position P" so a client stops sending the same request. ## Still to test - **What ages:** what changes in the 4-minute window, and whether adaptive expert swaps (`--adapt-swaps 0`) are involved. - **What changes in the batched read at about 400 tokens**, and whether the expert placement after adaptive swaps is involved. - **`STRATA_DBG_NAN=1`**, to find where the first non-finite value appears during the batched read. ## Questions 1. Is a non-finite residual at the end of a batched read a known path, separate from #879's MoE-output poisoning? What does the batched path switch between about 360 and 420 tokens (a kernel, a chunk or tile size, the expert path)? 2. Is there a per-request knob for a retry that changes the numerics, or a way to make the guard's retry do that? 3. Does the batched prompt path have a cheap non-finite check per chunk, so the failure can be placed, not just seen at the end? For contrast: in our 0.1.40 failures (before the guard), the "!" run began 17-64 tokens into decode after a short 11-17 token read. That is a different signature from this one.
bsakaguchi 2026-11-04 01:51:44 +07:00
Author
Owner

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

  • Fill in "Area".
  • Fill in "Desktop app, Terminal or source?".
  • Fill in "Reproduction status".
  • Fill in "Strata version".
  • Fill in "Graphics card, memory and system".

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:6324498765 --> @github-actions[bot] commented on GitHub (Oct 21, 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: - [ ] Fill in "Area". - [ ] Fill in "Desktop app, Terminal or source?". - [ ] Fill in "Reproduction status". - [ ] Fill in "Strata version". - [ ] Fill in "Graphics card, memory and system". 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

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

Separate latent finding: not involved in this occurrence. Found while reading the prompt path's loan code for the aging failure above.

On a layer split, relend() (src/program/generate.cpp:9700, v0.1.44.1) re-plans only the first participant's loan:

auto relend = [&]() {
    if (pf_parts.empty() || pf_parts[0].first < 0) return;
    PfPart& p = pf_parts[0];
    ...
    p.first = ...;
    p.first_now = -1;   // laid out again at the next loan
};

It is called after a VRAM-reserve shrink of the expert cache (the VRAM ... MiB kept free: the expert cache A -> B slots path, ~9795). pf_parts[1..], the later stages' loans (GPU 1 here), keep their old first and first_now. If a shrink ever touches a later stage's cache, that stage's next loan would be laid out against a slot range that no longer matches the cache. The prompt path's buffers would then sit where they were, which can include the cuBLAS workspace and dequant scratch (carved from the loan in Prefill::relayout, prefill.cpp:1363-1365).

Why it isn't this occurrence: no shrink ran in the process that failed. Its engine log has no kept free line from start to failure. The fault above reproduced with the loan laid out once at startup.

Possible fix (not tested): loop relend() over every PfPart, sizing each from its own cache, as lend() already does per participant.

<!-- gh-comment-id:6325925101 --> @Omnicef commented on GitHub (Oct 21, 2026): **Separate latent finding: not involved in this occurrence.** Found while reading the prompt path's loan code for the aging failure above. On a layer split, `relend()` (src/program/generate.cpp:9700, v0.1.44.1) re-plans only the first participant's loan: ```cpp auto relend = [&]() { if (pf_parts.empty() || pf_parts[0].first < 0) return; PfPart& p = pf_parts[0]; ... p.first = ...; p.first_now = -1; // laid out again at the next loan }; ``` It is called after a VRAM-reserve shrink of the expert cache (the `VRAM ... MiB kept free: the expert cache A -> B slots` path, ~9795). `pf_parts[1..]`, the later stages' loans (GPU 1 here), keep their old `first` and `first_now`. If a shrink ever touches a later stage's cache, that stage's next loan would be laid out against a slot range that no longer matches the cache. The prompt path's buffers would then sit where they were, which can include the cuBLAS workspace and dequant scratch (carved from the loan in `Prefill::relayout`, prefill.cpp:1363-1365). **Why it isn't this occurrence:** no shrink ran in the process that failed. Its engine log has no `kept free` line from start to failure. The fault above reproduced with the loan laid out once at startup. **Possible fix (not tested):** loop `relend()` over every `PfPart`, sizing each from its own cache, as `lend()` already does per participant.
Author
Owner

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

same issue v0.2.1.4 with docker on wsl2

strata serve: prompt 701 tokens = 0 reused + 701 read in 4072 ms (172.1 tok/s), 1706 generated in 23662 ms (72.1 tok/s), drafts accepted 1096 of 1552, 1 checkpoints
strata serve: decode expert cache hit rate: 86.4% (837892 hits / 970038 lookups)
strata serve: route tail skip: 91968 missed experts skipped (97461 entries) since the start
strata serve: resident RAM: 34.34 GiB of experts in RAM, 8871 exchanged with the VRAM tier, 0 blob reads from the file
strata serve: expert tiers: GPU 837892 hits this request; since the start RAM 188218 blobs, files 0 blobs 13281.0 MB read
strata serve: suffix drafts: 65 windows, 200 of 243 drafts accepted
strata serve: conversation cache: parked 2409 tokens in 224.0 ms; parked=3 bytes=769020544 evictions=0 snapshot_bytes=273710048 reused_kv_bytes=0
strata serve: non-finite logits (#879) in a prompt window at position 2695 (row 0): its tokens are not emitted, the request ends (DONE nonfinite) and the next request reads its prompt from token 0
strata serve: prompt 2700 tokens = 696 reused + 1999 of 2004 read in 5305 ms (376.8 tok/s), 0 generated in 0 ms (0.0 tok/s), drafts accepted 0 of 0, 2 checkpoints (cancelled)
strata serve: route tail skip: 92085 missed experts skipped (97885 entries) since the start
strata serve: resident RAM: 34.34 GiB of experts in RAM, 8905 exchanged with the VRAM tier, 0 blob reads from the file
strata serve: expert tiers: GPU 0 hits this request; since the start RAM 207992 blobs, files 0 blobs 13281.0 MB read
strata serve: after non-finite logits (#879): dropped the live session, 2 checkpoints, 3 parked conversations and 0 idle slots (0 running slots not kept after their reply); reading this prompt from token 0
strata serve: non-finite logits (#879) in a prompt window at position 2695 (row 0): its tokens are not emitted, the request ends (DONE nonfinite) and the next request reads its prompt from token 0
strata serve: prompt 2700 tokens = 0 reused + 2695 of 2700 read in 4798 ms (561.7 tok/s), 0 generated in 0 ms (0.0 tok/s), drafts accepted 0 of 0, 1 checkpoints (cancelled)
strata serve: route tail skip: 92202 missed experts skipped (98309 entries) since the start
strata serve: resident RAM: 34.34 GiB of experts in RAM, 8905 exchanged with the VRAM tier, 0 blob reads from the file
strata serve: expert tiers: GPU 0 hits this request; since the start RAM 228470 blobs, files 0 blobs 13281.0 MB read
strata serve: after non-finite logits (#879): dropped the live session, 1 checkpoint, 0 parked conversations and 0 idle slots (0 running slots not kept after their reply); reading this prompt from token 0
strata serve: non-finite logits (#879) in a prompt window at position 2695 (row 0): its tokens are not emitted, the request ends (DONE nonfinite) and the next request reads its prompt from token 0
strata serve: prompt 2700 tokens = 0 reused + 2695 of 2700 read in 5015 ms (537.4 tok/s), 0 generated in 0 ms (0.0 tok/s), drafts accepted 0 of 0, 1 checkpoints (cancelled)

I will keep observing the upgraded version 0.2.2.

<!-- gh-comment-id:6334700809 --> @Arvintian commented on GitHub (Oct 22, 2026): same issue v0.2.1.4 with docker on wsl2 ``` strata serve: prompt 701 tokens = 0 reused + 701 read in 4072 ms (172.1 tok/s), 1706 generated in 23662 ms (72.1 tok/s), drafts accepted 1096 of 1552, 1 checkpoints strata serve: decode expert cache hit rate: 86.4% (837892 hits / 970038 lookups) strata serve: route tail skip: 91968 missed experts skipped (97461 entries) since the start strata serve: resident RAM: 34.34 GiB of experts in RAM, 8871 exchanged with the VRAM tier, 0 blob reads from the file strata serve: expert tiers: GPU 837892 hits this request; since the start RAM 188218 blobs, files 0 blobs 13281.0 MB read strata serve: suffix drafts: 65 windows, 200 of 243 drafts accepted strata serve: conversation cache: parked 2409 tokens in 224.0 ms; parked=3 bytes=769020544 evictions=0 snapshot_bytes=273710048 reused_kv_bytes=0 strata serve: non-finite logits (#879) in a prompt window at position 2695 (row 0): its tokens are not emitted, the request ends (DONE nonfinite) and the next request reads its prompt from token 0 strata serve: prompt 2700 tokens = 696 reused + 1999 of 2004 read in 5305 ms (376.8 tok/s), 0 generated in 0 ms (0.0 tok/s), drafts accepted 0 of 0, 2 checkpoints (cancelled) strata serve: route tail skip: 92085 missed experts skipped (97885 entries) since the start strata serve: resident RAM: 34.34 GiB of experts in RAM, 8905 exchanged with the VRAM tier, 0 blob reads from the file strata serve: expert tiers: GPU 0 hits this request; since the start RAM 207992 blobs, files 0 blobs 13281.0 MB read strata serve: after non-finite logits (#879): dropped the live session, 2 checkpoints, 3 parked conversations and 0 idle slots (0 running slots not kept after their reply); reading this prompt from token 0 strata serve: non-finite logits (#879) in a prompt window at position 2695 (row 0): its tokens are not emitted, the request ends (DONE nonfinite) and the next request reads its prompt from token 0 strata serve: prompt 2700 tokens = 0 reused + 2695 of 2700 read in 4798 ms (561.7 tok/s), 0 generated in 0 ms (0.0 tok/s), drafts accepted 0 of 0, 1 checkpoints (cancelled) strata serve: route tail skip: 92202 missed experts skipped (98309 entries) since the start strata serve: resident RAM: 34.34 GiB of experts in RAM, 8905 exchanged with the VRAM tier, 0 blob reads from the file strata serve: expert tiers: GPU 0 hits this request; since the start RAM 228470 blobs, files 0 blobs 13281.0 MB read strata serve: after non-finite logits (#879): dropped the live session, 1 checkpoint, 0 parked conversations and 0 idle slots (0 running slots not kept after their reply); reading this prompt from token 0 strata serve: non-finite logits (#879) in a prompt window at position 2695 (row 0): its tokens are not emitted, the request ends (DONE nonfinite) and the next request reads its prompt from token 0 strata serve: prompt 2700 tokens = 0 reused + 2695 of 2700 read in 5015 ms (537.4 tok/s), 0 generated in 0 ms (0.0 tok/s), drafts accepted 0 of 0, 1 checkpoints (cancelled) ``` I will keep observing the upgraded version 0.2.2.
Author
Owner

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

Thanks — the replays and the 0.2.1.4 confirmation are enough to triage this. If you capture a STRATA_DBG_NAN=1 log, adding it here would help place the first non-finite value; nothing else is needed.

<!-- gh-comment-id:6337209437 --> @Niko1221 commented on GitHub (Oct 22, 2026): Thanks — the replays and the 0.2.1.4 confirmation are enough to triage this. If you capture a STRATA_DBG_NAN=1 log, adding it here would help place the first non-finite value; nothing else is needed.
Author
Owner

@mohamedBalkhi commented on GitHub (Oct 25, 2026):

Another occurrence on engine 0.1.50: single GPU (no layer split), Linux. No STRATA_DBG_NAN=1 log yet; the reason is below.

Setup

  • Engine 0.1.50-linux-x86_64-cuda-cuda13 (Terminal), Ubuntu, kernel 7.0, driver 595.99.02 (open module).
  • One RTX 3060 12 GB for Strata (--gpu 0, CUDA_VISIBLE_DEVICES = only that card). The desktop runs on a separate 3060 Ti. i7-12700KF, 128 GB RAM.
  • Qwen3.8-Flash-Next GSQ-RCO abliterated IQ3_S, --expert-cache auto --prefill auto:8192 --vram-reserve-mib 1200 --pcie-frac 0.1 --spec 4 --spec-min-p 0.5 --mtp <strata-rt> --max-context 262144 --kv q4_0.
  • About 1 GB of VRAM free on the 3060 while serving (11.2 of 12.3 GB used).

What happened (2026-10-25)

  1. An agent client at about 66k of 262k context ran its context-overflow summarization, and that request failed with "non-finite (NaN) twice in a row (#879)".
  2. The engine then stayed poisoned. Even a short prompt failed:
    [strata] reading the prompt: 1,966 of 1,971 tokens, 4 s so far
    [strata] the engine's logits became non-finite before the first token (#879); it dropped its cached state: sending the request again once
    [strata] reading the prompt: 1,966 of 1,971 tokens, 9 s so far
    [strata] the engine's logits became non-finite again on the retry (#879): the request ends with an error
    [strata] done: 0 tokens in 9 s (no speed) (error, cancel=False), expert cache 6.8% hit
    
    Only a process restart recovered it, as in the original report. It happened three times in about an hour (restarts at 19:46, 20:31 and 20:43).
  3. In the same window the kernel logged out-of-memory on that same GPU (NVRM GPU0 = the 3060):
    20:24:19 NVRM: GPU0 nvCheckOkFailedNoLog: Check failed: Out of memory [NV_ERR_NO_MEMORY] (0x00000051) returned from ctxBufPoolReserve(pGpu, pKernelChannelGroup->pCtxBufPool, bufInfoList, bufCount) @ kernel_channel_group_api.c:557
    
    nvidia-drm also logged "Failed to allocate NVKMS memory" for that GPU at 20:24 and 20:26. The NaNs roughly lined up with other processes creating contexts on the 3060 (vulkaninfo, vkcube, the Android emulator enumerating Vulkan devices). There was no Xid.

Reproduction attempts with STRATA_DBG_NAN=1 (fresh engine, 28k-token prompts with a unique prefix so nothing came from the cache)

Run Interference on the same 3060 while the prompt was read Result
control none OK
VRAM fill another process allocated every free 32 MiB piece (608 MiB) at +25 s and held it for 45 s OK
compute contention another process launched 20 ms spin kernels for 150 s, plus 6 Vulkan device creations near the end of the read OK

None of the runs printed a non-finite line, so there is no DBG log to attach. Outside VRAM or compute pressure on its own did not trigger it here. The correlation above may be a coincidence, or it may also need the long-context state.

Side note: STRATA_DBG_NAN=1 made the same 28k prompt read 2.5× slower here (210 s with it, 83 s without). That makes it hard to leave on for a long session while waiting for the next occurrence. A cheaper first-NaN locator that can stay enabled would help get you the log.

Workaround for anyone else hitting this: a watchdog that, on any non-finite line, sends a one-word canary request and restarts the server only if the canary also fails. Healthy recoveries by the #879 retry are then left alone.

<!-- gh-comment-id:6401324146 --> @mohamedBalkhi commented on GitHub (Oct 25, 2026): **Another occurrence on engine 0.1.50: single GPU (no layer split), Linux.** No `STRATA_DBG_NAN=1` log yet; the reason is below. **Setup** - Engine `0.1.50-linux-x86_64-cuda-cuda13` (Terminal), Ubuntu, kernel 7.0, driver 595.99.02 (open module). - One RTX 3060 12 GB for Strata (`--gpu 0`, `CUDA_VISIBLE_DEVICES` = only that card). The desktop runs on a separate 3060 Ti. i7-12700KF, 128 GB RAM. - Qwen3.8-Flash-Next GSQ-RCO abliterated IQ3_S, `--expert-cache auto --prefill auto:8192 --vram-reserve-mib 1200 --pcie-frac 0.1 --spec 4 --spec-min-p 0.5 --mtp <strata-rt> --max-context 262144 --kv q4_0`. - About 1 GB of VRAM free on the 3060 while serving (11.2 of 12.3 GB used). **What happened (2026-10-25)** 1. An agent client at about 66k of 262k context ran its context-overflow summarization, and that request failed with "non-finite (NaN) twice in a row (#879)". 2. The engine then stayed poisoned. Even a short prompt failed: ``` [strata] reading the prompt: 1,966 of 1,971 tokens, 4 s so far [strata] the engine's logits became non-finite before the first token (#879); it dropped its cached state: sending the request again once [strata] reading the prompt: 1,966 of 1,971 tokens, 9 s so far [strata] the engine's logits became non-finite again on the retry (#879): the request ends with an error [strata] done: 0 tokens in 9 s (no speed) (error, cancel=False), expert cache 6.8% hit ``` Only a process restart recovered it, as in the original report. It happened three times in about an hour (restarts at 19:46, 20:31 and 20:43). 3. In the same window the kernel logged out-of-memory on that same GPU (NVRM GPU0 = the 3060): ``` 20:24:19 NVRM: GPU0 nvCheckOkFailedNoLog: Check failed: Out of memory [NV_ERR_NO_MEMORY] (0x00000051) returned from ctxBufPoolReserve(pGpu, pKernelChannelGroup->pCtxBufPool, bufInfoList, bufCount) @ kernel_channel_group_api.c:557 ``` nvidia-drm also logged "Failed to allocate NVKMS memory" for that GPU at 20:24 and 20:26. The NaNs roughly lined up with other processes creating contexts on the 3060 (vulkaninfo, vkcube, the Android emulator enumerating Vulkan devices). There was no Xid. **Reproduction attempts with `STRATA_DBG_NAN=1`** (fresh engine, 28k-token prompts with a unique prefix so nothing came from the cache) | Run | Interference on the same 3060 while the prompt was read | Result | |---|---|---| | control | none | OK | | VRAM fill | another process allocated every free 32 MiB piece (608 MiB) at +25 s and held it for 45 s | OK | | compute contention | another process launched 20 ms spin kernels for 150 s, plus 6 Vulkan device creations near the end of the read | OK | None of the runs printed a non-finite line, so there is no DBG log to attach. Outside VRAM or compute pressure on its own did not trigger it here. The correlation above may be a coincidence, or it may also need the long-context state. Side note: `STRATA_DBG_NAN=1` made the same 28k prompt read 2.5× slower here (210 s with it, 83 s without). That makes it hard to leave on for a long session while waiting for the next occurrence. A cheaper first-NaN locator that can stay enabled would help get you the log. Workaround for anyone else hitting this: a watchdog that, on any `non-finite` line, sends a one-word canary request and restarts the server only if the canary also fails. Healthy recoveries by the #879 retry are then left alone.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 27, 2026):

Closing this issue because it still did not follow the format after 5 days. That is housekeeping, not a rejection.

To bring it back: fix the title (area prefix) and the missing parts, then comment /reopen. A check runs and reopens it, or tells you what is still missing. See CONTRIBUTING.md.

<!-- gh-comment-id:6438735821 --> @github-actions[bot] commented on GitHub (Oct 27, 2026): Closing this issue because it still did not follow the format after 5 days. That is housekeeping, not a rejection. To bring it back: fix the title (area prefix) and the missing parts, then comment `/reopen`. A check runs and reopens it, or tells you what is still missing. See [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Author
Owner

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

Thank you. Fixed in 0.2.7: Audit fixes for failed allocations, the reserve arithmetic as a tested helper, a per-card out-of-memory report (#3638 #3702 #3797). We could check it with unit tests and builds, but not on your hardware or with your workload. Please try 0.2.7 and tell us how it goes.

Release: https://github.com/Niko1221/Strata/releases/tag/v0.2.7

<!-- gh-comment-id:6446059432 --> @Niko1221 commented on GitHub (Oct 27, 2026): Thank you. Fixed in 0.2.7: Audit fixes for failed allocations, the reserve arithmetic as a tested helper, a per-card out-of-memory report (#3638 #3702 #3797). We could check it with unit tests and builds, but not on your hardware or with your workload. Please try 0.2.7 and tell us how it goes. Release: https://github.com/Niko1221/Strata/releases/tag/v0.2.7
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#1499
No description provided.