mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #462] [CLOSED] diagnostics: dump every verify window's logits, so greedy decode can be bisected #2651
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#2651
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/462
Author: @constantindjonkam
Created: 10/2/2026
Status: ❌ Closed
Base:
main← Head:pr/1-per-window-diagnostics📝 Commits (10+)
a348c7aMerge branch 'f-131-srv' into r131-q4b93a00cMerge branch 'f-q4-on242' into r131-q48f5148cCS-T: the partial pin at most 24 GiB (STRATA_PARTIAL_PIN_GIB), the Q4_K/Q5_1/Q8_0 multi-token kernels from two tokens on5ffda19CS-T: the GGUF-in-place prefetch asks Windows for all of a layer's missed slices at once (PrefetchVirtualMemory)ed6c124#253: the 8 GiB arena pin cap only under WDDM; STRATA_ARENA_PIN_GIB; the split's prompt chunk steps down450149d--split-skip-if-fits (opt-in): an auto split runs on the main card alone when it holds every profiled expert + KV6926e0bMerge branch 'f-131-amd' into r131-amdc7aa3e5Revert #257 (AVX2 two-block Q2_0 unpack): bit-exact but not faster on an AVX2-only CPU (Ryzen 9 3900X: gate/up -2.6..-4.7% at 1 token, down -3..-5% at 2 tokens)2736bd0CS-T: the partial pin locks only what it does not register and ends at an expert boundary; the Q4_K/Q5_1/Q8_0 multi-token kernels opt-in (STRATA_KQ256=1)de3f045decode: hyper-connection read in 2 kernels - norm folded into a stream-split down kernel (164 blocks), rs/lo/inject in up's prologue (STRATA_GR_V3=0 = old)📊 Changes
5 files changed (+153 additions, -0 deletions)
View changed files
➕
bench-probes/bisect.js(+14 -0)➕
bench-probes/serve-adapt-probe.sh(+29 -0)➕
bench-probes/serve-first-probe.sh(+30 -0)➕
bench-probes/serve-state-hash.sh(+34 -0)➕
bench-probes/serve-warmup-probe.sh(+46 -0)📄 Description
What
A diagnostic that makes greedy decode bisectable, plus the traces that localised a real bug.
Greedy output on a two-GPU split was not reproducible: repeated identical requests diverged from
about the 28th generated character. Expert routing was byte-identical across runs and the first
verify window's logits were byte-identical, so both were ruled out by measurement rather than by
argument. What remained needed a way to see which verify window stopped reproducing.
--dump-logitscannot do that. It is written from the per-token loop, which a native pack leaves atbefore the dump site. (Fixing that is a separate, small PR.)
What this adds
STRATA_DUMP_WINDOW_LOGITS=<path>records row 0 of every verify window - the row that chose thenext token - with the position, the window length
Tand the accepted counta.Records are streamed and no count is declared up front, so a run killed mid-write leaves a short
file rather than one that lies about its contents.
STRATA_TRACE_ADAPT(whether an adaptive round considered,skipped or swapped, and whether the previous round's copies had landed) and
STRATA_TRACE_RES(adigest of the expert residency table per request).
bench-probes/.The file format lives in its own header so it is testable without a GPU:
window_logits_dump_testround-trips synthetic windows, and checks that a foreign or missing file isrejected rather than misread.
Cost
Default off: one function-local
staticgetenv, and nothing opened, copied or allocated on thedefault path.
Evidence it produced
With the per-window dump, on an IQ3_XXS / RTX 3090 run with
--adapt-every 4:which pointed at the adaptive tier and became the fix in
#463, merged in 0.1.38. That release also waits
for the swap by default (
STRATA_ADAPT_NOWAIT=1opts out), so the property this probe depends on ison for everyone - not only for people who read the note.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.