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#1103
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 @sankerXD on GitHub (Oct 16, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2745
What happened
When running an NVFP4 pack (
Maximilian228--Qwen3.8-Flash-Next-NVFP4-GPTQ-Strata) with a 2-GPU layer split (--layer-split 23),--prefill auto(chunk 8192), andSTRATA_PREFILL_HELP=1, every single-chunk prompt segment whose uncached lengthTfalls in1024 <= T <= 3276deterministically fails withnon-finite logits (#879) in a prompt window.When
#879fires:after non-finite logits (#879): dropped the live session, 6 checkpoints ... reading this prompt from token 0).server.pyautomatically retries the request from token 0.13Kto86Ktokens) spans multiple 8192-token chunks (single_chunk == false), sobind_stage_helperdoes not activate and the retry succeeds after re-reading the entire 13K–86K prompt from scratch.In a single multi-turn coding/agent session (growing from 11K to 86K tokens), this triggered 9 times (at prompt deltas of
1189,1292,1292,1297,1738,1288,1289,1289,1296tokens — every single one in[1024, 3276]), wiping the KV cache each time. SettingSTRATA_PREFILL_HELP=0completely resolves the issue.Root cause in
src/prefill/prefill.cppsrc/prefill/prefill.cpp:1571-1579, 1624-1633, 2125-2126):Prefill::bind_stage_helper(int64_t T)activates only whensingle_chunk(n <= m.T),T >= stream_all_min()(1024), andsplit_help_frac(T) >= 0.3(T <= 3276).bind_stage_helperchecksmmq_plan()andfused::native_supported(), but does not checklay.fmt[l].tail_off != 0.tail_offglobal scales inPeerPrefill(src/prefill/prefill.cpp:3626-3657and3707-3732):{s_gate, s_up, s_down, 0}(f.tail_off != 0, each scale~1e-4).src/prefill/prefill.cpp:3888-3930) gathersf.tail_offintom.grp_tail, runsmmq::swiglu_scaled(applyings_gateands_up), and writess_downintom.row_sdviammq::down_row_scalesbeforemoe_combine(line 4055-4056) multiplies allT * Krows bym.row_sd.PeerPrefill(P.compactat lines3626-3657forSTRATA_PREFILL_HELP=1, and!P.compactat lines3707-3732for--peer-device) callsmmq::gather_nativewithoutf.tail_off/grp_tail, runs unscaledmmq::swigluinstead ofmmq::swiglu_scaled(leaving hidden activations~1e8xtoo large), and never writesm.row_sd[rows_local .. rows_local + rows_peer)(leaving those entries uninitialized/stale whenmoe_combinereadsm.row_sdacross allT * Krows).Strata version, GPU, OS
0.1.44.1 · RTX 4070 Ti 12GB (CUDA0) + RTX 2080 Ti 22GB (CUDA1) · Debian 13 Linux 6.12.111 (Driver 615.71.09, CUDA 13.1)
Engine log
@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. 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.