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#1902
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 @miomao656 on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4304
Area
[Engine] (speed, kernels, models, the server and API)
Desktop app, Terminal or source?
Source (START-HERE.bat, setup.sh or a build)
What happened
Expected:
/v1/chat/completionskeeps answering long prompts on a server that has been up for days.Actual: after 2 d 23 h of continuous serving (~2,800 requests), the first request whose prompt reached 61,552 tokens ended with non-finite logits (#879), and from that moment every prompt over ~20K tokens failed the same way, while short prompts kept answering normally. The automatic retry failed identically. Restarting the engine cleared it immediately; the same 99,871-token prompt then returned 200.
The client received:
Per-request log lines:
Two things stand out:
reading the prompt: 8,192 of 99,871…99,866 of 99,871) but ends at the same tail and dies the same way. So the 0.2.2 change described in #3465 ("the retry reads the whole prompt batched, like--short-read 0for that request") does not appear to be active in this build, or does not reach this path.Smallest steps or command that reproduce it
Not reproducible from a cold start — it needed ~2,800 requests over ~3 days. Once the engine is in this state, an arbitrary synthetic long prompt reproduces it 100%, so the prompt content is not the trigger:
~99,871 prompt tokens, no tools, no cache reuse, random filler.
done: 0 tokens.Reproduction status
Reproduced locally
Strata version
Strata 0.2.6 (source build at tag
v0.2.6;engine/BUILD.json→"version": "0.2.6-build","tag": "v0.2.6","archs": [86]) · engine 0.1.51 · CUDA 13.4 ·serve/server.pyfrom the same treeGraphics card, memory and system
RTX 3090 24 GB (sm_86, ECC N/A) · AMD Ryzen 9 7945HX3D, 94 GiB RAM · Arch Linux, kernel 7.2.11-arch1-1, NVIDIA 615.78.08 (open kernel modules) · CUDA 13.4
Model, size and settings
Qwen3.8-Flash-Next Unsloth UD-Q4_K_XL (native pack
unsloth-ud-q4_k_xl), 262,144 context, pictures on,--kv fp16,--kv-resident 32768,--resident-budget-gib 64,--spec 4 --spec-min-p 0.5,--mtp,--expert-cache auto, conversation cache 8 GiB / 4 slots,--prefill auto,--short-readnot overridden (default 64),--ple-ionot overridden (default direct), MMQ K-quants in the build (-DSTRATA_MMQ_KQUANTS=ON).Launch line:
Logs
The full engine log is 5 MB and available on request; excerpts and the measurements below are from it (2,800 parsed request blocks).
The degeneration, in order:
stopSame synthetic prompt, before and after a restart:
Ruled out: no
XidorNVRMline indmesg; ECC is N/A on this card; VRAM 24.0 / 24.5 GiB; GPU 78 °C / 277 W during the retry loop; no OOM kill;/healthreturned{"status": "ok", ...}throughout; the engine process never restarted on its own;:8080/metricsreportedlive.stateidlebetween attempts.Observed at the same time, not claimed as a cause: RAM at 85.6 of 96.2 GiB and
kcompactd0at 98 % CPU while the retry loop ran;--resident-budget-gib 64keeps a large page-locked expert pool on this box.What we can run on request
STRATA_DBG_NAN=1on the next occurrence — this needs the engine to degenerate again (~2–3 days at this request rate), so we would have to pause our mitigation for one run--short-read 0(the workaround from #3465) and--ple-io mmap(from #3602) — queued, not yet runlscpuflags, the full 5 MB engine log window,strata doctor, a/metricsdumpRelated
--short-read 0fixed it for that reporter--ple-io mmappasses for that reporterWhy this is new evidence
@spideytznn commented on GitHub (Oct 27, 2026):
i meet the same problem, i use the udq4kl,my pc is 5090+96G
@miomao656 commented on GitHub (Oct 27, 2026):
Upgrade report on the same box (the one from the first post), in case it helps triage:
Now on Strata 0.2.7 / engine 0.1.52 — source build at tag
v0.2.7,sm_86, CUDA 13.4, same profile (Qwen3.8-Flash-Next UD-Q4_K_XL, 262K ctx,--kv fp16 --kv-resident 32768,--ple-io direct,--short-readdefault 64).Verified after the upgrade (nothing from the NaN family in any run):
R13-snail,C4-emails) passed in 2/2 repeats → effective 39/40, only the knownTC2-select/v1/messages, vision, 4 concurrent: all passTwo notes relevant to this family:
--ple-io direct, so the 0.1.52 PLE-reader work (#3602) is the closest change to our failure path. If the degeneration returns I will re-run withSTRATA_PLE_CHECK=1and post the row it names.reading the prompt: 99,866 of 99,871on both attempts), so the short-read tail path was still in play on the retry. I have not yet A/B'd--short-read 0here (the #3465 workaround); it is the next test if this recurs.A nightly idle-gated restart is in place on this box in the meantime, so I will report back either way once it has served a few days of long prompts on 0.1.52.
@Niko1221 commented on GitHub (Nov 5, 2026):
Thanks for taking the time to report this.
Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.