mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5259] [Engine] "NaN reached the router" on RTX 40 cards while reading prompts: random, ~2-5% of fresh 8K-token prompts #3128
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#3128
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 @swolekat on GitHub (Nov 4, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5259
Summary
With DeepSeek-V4.1-Flash split across three cards, about 1 in 35-50 fresh prompt reads of ~8K tokens fails with:
The server answers 400 and drops the conversation. It is not reproducible from the prompt: re-sending the
byte-identical prompt that failed, read fresh, succeeds. Every failure so far was on one of the two RTX 40-series
cards (sm_89). None was seen on the RTX 5090 (sm_120). It always happens while reading the prompt, never while
generating.
System
strata-dsv410.1.56,0.1.56-windows-x86_64-cuda-cuda13, sourcef-0291-rc1 06698c674, CUDA 13.0, archs 86/89/120Engine arguments (preset
deepseek-max):Layer split from the engine log:
What was measured
--prefill-chunk 1024deepseek-max, 2026-11-04--prefill-chunk 8192nan_probe.py(next to this file) is the probe: different slices of a TypeScript source tree, each with a uniquefirst line so nothing comes from the prompt cache,
max_tokens: 1.0 of 53 with the smaller chunk does not show that it fixes the problem: at this failure rate, 53 clean reads happen
by chance about a third of the time.
Hardware ruled out
Observations that may help
before it is filled. A numeric overflow in a kernel would fail on the same input every time.
reading a prompt; the 4060 Ti at x8, ~14 GB/s). The 5090 has had no failures. After the 4000 Ada moved to x8 (it
now takes in ~14 GB/s too), it still failed 2 in 40, so the slow x4 link was not the cause. A link-speed-dependent
race in the expert upload is still possible: both cards still saturate their x8 links during a prompt read.
Related issues
Searched the tracker on 2026-11-04. Nothing reports this exact case (strata-dsv41 on CUDA, RTX 40 cards, random
NaN while reading a prompt). Closest:
Verifier::fetch_dma,--pcie-mode dma), anempty expert group publishes a later completion value while an earlier upload is still in flight, so the GPU
reads half-old expert bytes and outputs NaN (RTX 3090, captured and replayed). Same kind of failure as here:
random, on the expert-upload path, more likely on a slow link. It is filed against a different engine; does the
dsv41 chunked prompt pass have the same ordering between its expert DMA and the compute that reads it?
machines. Not this machine: one NUMA node, and the engine log reports no NUMA parts.
main.Not this machine's code path.
Workaround in use
Retry the request once on the 400 error. The retry has worked every time.