mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#1499
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 @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
CMAKE_CUDA_ARCHITECTURES=120, Release), Linux, driver 595.91.07.--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.experimental_speed_projection: false).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:
<|im_start|>, which opens the assistant header.turn_at) and the short header goes through the verifywindows. 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.
"strata_checkpoint": false(noturn_atsplit, so the header is read batched)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_tokens64):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_tokens64, with no #879 lines in the log.Reading of the results
conversation's earlier 6K-token batched reads succeeded, before the flip.
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.
the same way (every attempt so far). The guard does what it says, but this class needs the retry to change something, for example:
STRATA_ROUTE_TAIL_SKIP=0;Still to test
--adapt-swaps 0) are involved.STRATA_DBG_NAN=1, to find where the first non-finite value appears during the batched read.Questions
does the batched path switch between about 360 and 420 tokens (a kernel, a chunk or tile size, the expert path)?
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.
@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:
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
@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:It is called after a VRAM-reserve shrink of the expert cache (the
VRAM ... MiB kept free: the expert cache A -> B slotspath, ~9795).pf_parts[1..], the later stages' loans (GPU 1 here), keep their oldfirstandfirst_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 inPrefill::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 freeline from start to failure. The fault above reproduced with the loan laid out once at startup.Possible fix (not tested): loop
relend()over everyPfPart, sizing each from its own cache, aslend()already does per participant.@Arvintian commented on GitHub (Oct 22, 2026):
same issue v0.2.1.4 with docker on wsl2
I will keep observing the upgraded version 0.2.2.
@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.
@mohamedBalkhi commented on GitHub (Oct 25, 2026):
Another occurrence on engine 0.1.50: single GPU (no layer split), Linux. No
STRATA_DBG_NAN=1log yet; the reason is below.Setup
0.1.50-linux-x86_64-cuda-cuda13(Terminal), Ubuntu, kernel 7.0, driver 595.99.02 (open module).--gpu 0,CUDA_VISIBLE_DEVICES= only that card). The desktop runs on a separate 3060 Ti. i7-12700KF, 128 GB RAM.--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.What happened (2026-10-25)
Reproduction attempts with
STRATA_DBG_NAN=1(fresh engine, 28k-token prompts with a unique prefix so nothing came from the cache)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=1made 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-finiteline, 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.@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.@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