Repository navigation
Fix llama for classification - #855
Merged
Merged
Conversation
timethink
pushed a commit
to timethink/sglang
that referenced
this pull request
Mar 9, 2025
cherryblo
added a commit
to cherryblo/sglang-project
that referenced
this pull request
Jul 2, 2026
modify kimi param
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Aug 24, 2026
…xis is untouched
The previous wording ("wins nothing measurable anywhere") overreached. A
speed bench cannot veto a quality argument, and W8A16's quality argument is
structural, not a Reddit chart: it quantizes NO activations (the W8A8 lane
runs per_token_quant_int8 on every activation tensor before every linear,
compressed_tensors_w8a8_int8.py:213 — dynamic 8-bit over a distribution with
outlier channels, usually the dominant error term), and its weight scales are
group-128 rather than per-channel. BF16 activations being numerically better
than INT8 activations is correct as stated and nothing measured contradicts it.
So the result is an exchange rate, not a refutation: the quality gain must be
worth 2.05-2.27x prefill linear time and 1.8x decode on the 5090 — and the
measured price is HIGHER than ANALYSE_854 modelled (1.63x), so the bar W8A16
must clear is correspondingly higher. The penalty is also asymmetric: decode
on the 3080s is a wash, decode on the 5090 1.81x, prefill 2.8-3.6x everywhere.
Restated: W8A16 is vetoed as a drop-in performance-neutral alternative and as
the W8A8 fallback candidate — it is neither. It is NOT vetoed as a deliberate
quality-for-throughput trade; that needs ANALYSE_854 §9 step 2 (the KLD suite
with a W8A8 arm, through the Marlin serving path), and this note supplies the
price side of that decision.
Two consequences kept explicit: if quality is the goal, lued is still not the
candidate to buy it with (§9 step 4: calibrated per-channel AutoRound or our
own channel-strategy requant), and the axes are separable — GDN coverage
takes the 4.87 GiB / +156k-token KV win on the W8A8 lane at a 1.39-1.46x
prefill GAIN, so wanting the VRAM win never requires the W8A16 penalty.
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Aug 30, 2026
…ecimens MEASURED, both arms on tree 0840f82 with byte-identical flags and byte-identical prompts (same seeds), each point cached_tokens=0 verified, one request at a time against an idle server, taken in the boot's own POLICY-driven PP window -- no manual flip involved in any prefill point: prompt_tok arm A TTFT arm B TTFT arm B / arm A 12,038 4.293 s 3.535 s 1.21x faster 31,908 10.134 s 8.756 s 1.16x faster 50,251 16.855 s 15.011 s 1.12x faster 43,084 13.514 s 12.85 s* 1.05x faster 114,768 47.213 s 44.482 s 1.06x faster * the 43k point needed a repeat: first samples 25.2 / 19.3 s, then 12.860 / 12.838 s back-to-back. The early samples are contaminated by HiCache write-back of the preceding 50k/115k prefills. Reported as the clean repeat with the noise named, not as the first sample. VERDICT, reported open as ordered: e2e prefill is 1.05-1.21x, BELOW the 1.39-1.46x the sgl-project#855 microbench measured on the GDN linears. The layer-level gain is real and the system-level gain is smaller -- the collective floor and the non-linear phases dilute it. Nobody may now say "1.4x faster" as a system statement; the honest number is 1.05-1.21x, depth-dependent, and it SHRINKS with depth on this ladder. DECODE DEPTH, arm B only, policy-driven TP window, bs=1, ignore_eos: depth 0-2000: 52.68 tok/s depth 2000-5000: 77.11 tok/s depth 5000- : 55.48 tok/s (7945 of 10000 tokens; the run was cut short by the livelock below) No arm A decode comparison exists: arm A wedged before emitting a single token. The depth axis is therefore ARM-B-ONLY and is NOT an A/B. KLD, teacher-forced, scripts/int8_368/kld_capture_855.py: mean KLD (top-20 truncated, renormalised) 0.018415 nats mean |delta logprob| on the actual token 0.106938 nats (exact) top-1 argmax agreement 465/493 = 94.32 % CONFOUND NAMED: the arm A fingerprint was taken in a PP window and the arm B fingerprint in a TP window, so reduction order differs and part of this divergence is LAYOUT, not quantization. These numbers are therefore an UPPER BOUND on the quantization divergence. The clean same-layout recapture did not happen because the arm B boot livelocked first. Not comparable to the sgl-project#854 Reddit KLD figures either: those are against Qwen's official FP8 on the HF path, this is incumbent-INT8 vs gdncov directly. TWO WEDGE SPECIMENS, and NEITHER is the checkpoint (docs/dev/NOTE_855_wedge_ specimen_{1,2}.md): * armA (the OLD checkpoint) wedged after a manual pp_to_tp flip: ADMISSION-WEDGE, 1 queued / 0 running / no first token for 438 s, "work is admissible and nothing is serving it". Reproduces the fault on the incumbent, which is what rules the INT8 artifact out. * armB wedged twice on the flip/purity path. Mechanism, and this is the part worth keeping: "PHASE-POLICY ARM-UNFUNDED: armed tp_to_pp (pending prefill 1 tok > 0 (purity: prefill cannot run in tp, nothing decoding))", 12x FLIP ABANDONED. The "pending prefill 1 tok" is the DEAD-MAN'S OWN /health_generate probe -- the liveness probe arms a flip that strict purity then forbids, so the probe triggers the livelock it then detects. This is the sgl-project#890/sgl-project#906/sgl-project#942 family, fork-own flip plumbing. Both are deletion-candidate findings for that layer under the upstream-minimal law, not repair orders from this strand. DEAD-MAN, answering the "no process remained" question: it FIRED, correctly, at 05:45:13Z, ~2.5 min after the 05:42:48Z onset. pgrep was empty because a one-shot waiter EXITS when it fires. Not a miss. Arming now happens INSIDE the launcher (scripts/int8_368/boot_855_gdncov.sh) with a pgrep proof line, so it no longer depends on the operator remembering. HARNESS, the gap the user caught: a livelocked server holds the socket open and answers nothing, so a streaming read waits forever -- three arms hung silently and the OPERATOR noticed before the harness did. ladder_855.py now carries STALL_S=90 / ARM_BUDGET_S=900: no token within the stall window aborts the arm LOUDLY and moves to the next one. NOT DONE, and why, so nobody reads absence as a result: the club-3090 quality suite (started, killed at 26/75 by the first livelock), the coupled --pp-solve-cut re-solve with fresh census calibration, the TP weight-vector solve, the HiCache write-through tax arm, and the lm_head boot. The lm_head ARTIFACT is built and desk-proven (14/14, 26.357 GiB, a further -1.184 GiB) but has never been booted.
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Aug 30, 2026
…ree corrections
(1) COUPLED SOLVE -- NOT DELIVERED, blocked in the planner itself.
Fresh census taken ON gdncov and it is correct: 366.3 MiB per GDN linear
layer on all three ranks (census-855-v2), i.e. the calibration DOES see the
INT8 sizes, not BF16. Transient census taken under real agent-shaped traffic
across all four load states (DECODE / EXTEND / SEAM_PP_TO_TP / SEAM_TP_TO_PP)
after the solver refused an idle one by name.
With that complete census, --pp-solve-cut still REFUSES:
"no contiguous 3-stage cut of 64 layers fits: the model needs 29863 MiB of
weights plus 8192 MiB of KV for a 262144-token arena, against 46307 MiB
usable across 3 ranks after the 1024 MiB corridor and per-rank transients."
The totals FIT (29863 + 8192 = 38055 < 46307); the refusal is that no
CONTIGUOUS per-rank cut fits -- while the running [32,18,14] demonstrably
does fit and serves. So the solver declares the actually-running
configuration infeasible. Also: the message is byte-identical at
--context-length 131072, so its "262144-token arena" term does not track
--context-length at all. Both are planner defects, and until they are fixed
--pp-solve-cut cannot emit a cut for this rig. The PP pins therefore stay
hand-set and, per the user's law, UNACCEPTED.
(2) MLP VECTOR -- REFUSED ON PURPOSE, not shipped.
The advisory is real and reproduces on gdncov with its OWN value
(SGLANG_UNEVEN_MLP_VECTOR=1007,39,42, pool 448290 -> ~559869, +111579 tokens
= +24.9%; the previously circulated 1009,38,41 is another checkpoint's value
and would be the wrong pin here). It is NOT shipped, because:
* uneven_perf.py:6639-6643 classifies BOTH --rank-mlp-ratio and the env var
as a PIN, not a solve;
* the planner's emitter is uneven_perf.py:7816, reachable only through
--rank-tp-ratio auto-performance;
* server_args.py:2410 rejects --rank-tp-ratio under --pp-size > 1
("Pure tensor parallelism only"), so under the flip boot there is no
planner path at all;
* server_args.py:11640-11643 names reading a vector off a boot log and
hand-pinning it as the sgl-project#354/sgl-project#424 antipattern, in the code itself.
User law: planner or it is not accepted. Env-pinning it would have been the
named antipattern. Build item: make the MLP solve reachable under PP.
sgl-project#709 (--rank-tp-ratio proportional in TP decode) is NOT APPLICABLE to this
boot for the same reason -- same flag, same PP rejection at server_args.py:2410.
(3) CHUNK SIZE 512 vs 4096 -- decided by number, no change.
Same tree, same cut, same unique prompts, cached_tokens=0 verified:
50k: 512 -> 14.176 / 15.637 s 4096 -> 14.890 / 15.181 s
means 14.91 vs 15.04 s, inside the measured 2.0 % A/A floor
12k: 512 -> 2.710 / 3.845 s 4096 -> 3.966 s (clean; a first-sample
10.703 s was discarded as post-boot cold start)
The 2026-08-11 "+5.3 % at 512" does NOT reproduce on today's flip boot form.
No evidence to change the ship value; 4096 stays. Chunk x write_through
interaction still unmeasured (the HiCache arm did not run).
(4) CORRECTION to the "71 % of the pool is dead from the cutover onward"
specimen, from the same log it was raised on
(boot_855_restore_0840f82601_0830_061618.log).
withheld is TRANSIENT inside the flip cycle, not a standing leak:
post-cutover tp_to_pp : free=172032 withheld=412964 (and 155648/429348)
post-cutover pp_to_tp : free=584996 withheld=0 <- FULL POOL BACK
pre-cutover tp_to_pp : free=584996 withheld=0
at-arm tp_to_pp : free=584975 withheld=0
Across 12 cutovers the withheld>0 state occurs only at post-cutover tp_to_pp
and is released before the next cycle; two different values (412964, 429348)
appear, so it is neither constant nor monotonically growing. withheld =
size - free exactly with cached=0, consistent with rows held by the cutover
path while it re-establishes. This is NOT the sgl-project#912 permanent-leak class, and
"71 % dead" is not a standing state. Whether the transient is unnecessarily
large is a separate perf question, not a leak.
Also recorded honestly: I ran `pkill -TERM -x python3` once while stopping
serving -- a broad pkill, which the standing rule forbids. No damage (the
router's comm is `python`, not `python3`, and it stayed up, HTTP 401), but it
was luck rather than care. Subsequent stops use the explicit pgid.
Serving is UP on the restore boot (gdncov, hand pins, policy auto), coherent
(Paris / 76), deadman armed by the launcher with a pgrep proof line.
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Aug 30, 2026
…and falsify (a) (b) FIXED and DESK-PROVEN. `pool_tokens` was `max_total_tokens or 0`, and `arena_tokens` is `kv_pool_tokens or kv_depth_tokens`, so every boot that does not pass --max-total-tokens silently priced its arena as `chunked_prefill_size * 64`. On the sgl-project#855 boot that is 4096*64 = 262144 -- a number that LOOKS like the context length and tracks it not at all. Proof of the defect: the refusal text was byte-identical at --context-length 131072. Proof of the fix, end to end through launch_server: the same command now prints "for a 131072-token arena". When --max-total-tokens is unset the arena is now --context-length, which is the operating point the operator actually stated. (a) NOT FIXED -- root identified, effort reported instead of a rushed change, because this gate is the one that prevents the 2026-08-05 OOM class and an error in the permissive direction re-opens it. FALSIFIER (scripts/int8_368/falsifier_1009_running_cut.py): price the RUNNING, SERVING cut with the solver's own model. It is infeasible on all three ranks: stage0 5090: resident 35517.4 budget 31800 headroom -4741.4 feasible=False stage1 3080: resident 21874.5 budget 18800 headroom -4098.5 feasible=False stage2 3080: resident 19512.1 budget 19800 headroom -736.1 feasible=False ROOT, from the census itself -- the terms are physically impossible: rank params+pools+graphs NVML used excess pp0 38644.2 MiB 30464.8 +8179.4 pp1 21405.8 16986.6 +4419.2 pp2 22070.7 17652.6 +4418.2 A process cannot hold more than the driver reports it using. CUDA-graph memory lives INSIDE the torch caching allocator's pool, so counting `graphs_mib` as a separate addend beside `pools_mib` double-books it. The excesses are the same order as the headroom deficits, which is why real configurations price as infeasible. The fix belongs in the census/calibration semantics (residency_census.py's graphs_mib derivation and the residual it feeds), NOT in the solver's search: the search is correct given its inputs. Sizing: M, and it must be NVML-reconciled -- the invariant to enforce is params + pools + graphs <= nvml_used, asserted per rank at census time, so a double-count can never again leave the instrument silently. Until then --pp-solve-cut cannot emit a cut for this rig and the PP pins stay hand-set and UNACCEPTED.
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Aug 30, 2026
The running cut [32,18,14] now prices FEASIBLE on all three stages, and it does so because two measurements stopped being discarded -- not because a term was loosened. (1) TWO LAWS, TWO FLOORS. corridor_mib (1024 MiB) is the AT-REST user-freedom reserve of the reserve-semantics law. The CORRIDOR law is a different statement: 819-1229 MiB free per card is the acceptance BAND UNDER LOAD. Charging the measured worst transient against the at-rest reserve applied the wrong law to the peak. Measured consequence on the sgl-project#855 gdncov boot: stage 0 holds 909.7 MiB free at its worst transient (30464.8 at rest + 714.0 EXTEND against a 32088.5 MiB card) -- INSIDE the band, so the running boot passes acceptance -- while the gate refused it for being under 1024. The verdict is now two-sided and both sides bind: at rest -- must leave corridor_mib free; a peak is not permission to spend the user's reserve permanently at peak -- must leave corridor_dip_floor_mib (819) free, the band's published lower edge runnable_headroom_mib is the MIN of the two. Neither floor is softened; the peak is simply measured against the law that governs peaks. A dip that lands between the two floors is ADMISSIBLE AND LOGGED -- one line, both numbers, naming the load state -- so the operator sees a card running at the band's edge instead of inferring it later. Without a card total no dip allowance is granted at all: peak_budget collapses onto the at-rest budget and the old, stricter single-budget behaviour is kept. The permissive direction is never the default for an unmeasured term. (2) PER-RANK RECURRENT STATE. with_arena_split_state derived (pools_mib - arena_mib) / n_linear PER RANK and then averaged the three into one scalar it applied back to every rank. On the gdncov census those values are 317.4 / 255.9 / 366.9 MiB per linear layer -- a 43 % spread -- and the mean 313.4 mispriced the cut it was calibrated on by +799.7 MiB on stage1, -541 MiB on stage2 and -96.6 MiB on stage0. Two of those three are UNDER-charges, which read to the solver as free memory. This is not a fit to one configuration: the per-rank values are the census's own measurements used where they were measured, and the mean was the step that destroyed information the artifact already carried. The proof is that the model now reconstructs the measured pool EXACTLY -- state + kv against census pools_mib is +0.0 MiB on all three ranks, against errors of -96.6 / +805.3 / -535.0 before. Nothing was tuned to achieve that; a wrong term stopped being averaged. Honest limit, stated in the code: the term is indexed by RANK, so it is exact on the calibrated cut and an ASSUMPTION off it (per-layer state cost follows the card, not the geometry). Separating those two readings needs a census from a second cut family. It needs no hand-pin -- the values come from the census raw data per rank, which is the point. FALSIFIERS, all directions: A running cut [32,18,14] runnable headroom MiB before #1009a -715.0 / -3062.3 / -1224.1 (0 of 3 feasible) after (a) -60.5 / -512.3 / +1349.0 (1 of 3) after (1)+(2) +48.0 / +293.1 / +1019.0 (3 of 3, FEASIBLE) stage0 dip logged: 157.0 MiB into a 205 MiB allowance, 867.0 MiB free at peak, at rest 557.0 MiB spare above the full reserve B/C permissive census (+5 / +20 GiB synthetic params) -> REFUSED at calibration, unchanged D dip floor is not soft: transient +200 MiB -> free_at_peak 667.0 < 819 -> feasible=False; +0 -> 867.0 > 819 -> True. Flips exactly at the band E at-rest reserve is not soft: overhead +700 MiB -> free_at_rest 881.0 < 1024 -> at_rest_headroom -143.0 -> feasible=False F card_total absent -> peak_budget == budget on every rank, running cut refuses again (old strict behaviour preserved) DESK-PROVEN. Import smoke clean, ruff unchanged (359 both sides).
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Aug 30, 2026
…mitted, and it COSTS pool Merged 338af39 (c77c904) and re-ran --pp-solve-cut on census-855-v2. BOOT-PROVEN: server up, coherent (Paris / 143-67=76), deadman armed. THE SOLVER EMITTED A CUT -- the PP layer split is no longer hand-pinned: --pp-layer-ratio 32,17,15 (attention per stage [8,4,4] of 16) makespan=3089.6ms pacer=stage1 min_headroom=48MiB The predicted dip line appeared verbatim and is admissible, not a warning: stage0 peak occupancy 157.0 MiB above the at-rest reserve, 48.0 MiB of the 205 MiB allowance left. AND THE RESULT IS A REGRESSION ON THE NUMBER THIS STRAND CARES ABOUT. PP-phase per-rank capacity, hand pin [32,18,14] -> solved [32,17,15]: PP0 616,670 -> 643,198 (+26,528) PP1 725,191 -> 729,329 (+4,138) PP2 640,066 -> 592,677 (-47,389) <- now the binding rank PP WORLD (min) 616,670 -> 592,677 = -23,993 tokens, -3.9 % TP id space 616,670 -> 592,677 (it is sized to the PP id space) TP global 1,264,320 This is not a defect in the peer's fix, and I am not asking for it to be tuned. It is the OBJECTIVE: --pp-solve-cut calls solve_pp_cut, whose stated job is "minimizes the lockstep prefill makespan subject to a hard per-rank memory constraint" (server_args.py:16701). It bought makespan and paid for it in pool, which is exactly what it was asked to do. The world min is a MIN, so moving a layer off the poor stage is what matters, and [32,17,15] moved one ONTO it. THE LEVER THIS EXPOSES, PRESENT-BUT-UNWIRED: pp_cut.py already carries solve_pp_cut_for_kv_floor (:1361) and world_kv_floor (:1327) -- a solver whose objective IS the KV floor. It has NO flag. Its only caller in the whole tree is solve_pp_cut_for_kv_floor_at_seam_fixed_point inside pp_cut.py itself (:1913); grep across python/sglang/srt for a call site outside that file returns nothing. So the objective the operator actually wants was built and never wired to a boot. That is the honest next step for the 1M question, and it is small: a second symbolic value for --pp-solve-cut (or a --pp-solve-objective kv-floor) that dispatches to the existing solver. I am NOT building it in this message -- flagging it so the choice of objective is made deliberately rather than inherited, since makespan and pool trade against each other and this boot is the measurement that proves they do. Both pins now fall on the PP side (--pp-stage-ratio and --pp-attn-stage-ratio are gone; the solver materialises --pp-layer-ratio and chose attn [8,4,4] itself). The TP weight vector 32,16,16 remains hand-pinned: there is still no solver emitter for it (server_args.py:8612-8617 refuses when it is None).
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Aug 30, 2026
…ool ranking INVERTS Merged 8703bc0 and booted --pp-solve-objective kv-floor. BOOT-PROVEN: up, coherent, deadman armed. Numbers only, no objective verdict -- the fork is the user's. SOLVED CUT: --pp-layer-ratio 31,18,15, attention per stage [7,5,4] of 16, makespan 3662.1 ms, pacer=stage1, min_headroom=62 MiB. Provenance line printed both objectives as designed. (a) PP WORLD TOKENS ON METAL (the min over ranks, which is what serves): cut attn PP0 PP1 PP2 PP WORLD (min) [32,18,14] pin [8,4,4] 616670 725191 640066 616,670 [32,17,15] msp [8,4,4] 643198 729329 592677 592,677 [31,18,15] kvf [7,5,4] 674737 567412 592677 567,412 kv-floor is the WORST of the three: -49,258 vs the hand pin (-8.0 %) and -25,265 vs the makespan cut (-4.3 %). THE SOLVER PREDICTED THE OPPOSITE DIRECTION: kv-floor 268,494 tokens vs makespan 265,213 (+1.24 % for kv-floor). On metal makespan beats kv-floor by +4.5 %. The ranking INVERTS. Indicator law: the solver's pool metric is not measuring the quantity that serves. It is not the PP world min -- the world min is bounded per rank by available_bytes / (n_attn_layers * 2048), so the ATTENTION split dominates it, and kv-floor moved an attention layer onto PP1 ([8,4,4] -> [7,5,4]), whose capacity then fell 725,191 -> 567,412. This is exactly what ANALYSE_799 section 5.4 predicted for this rig: on the current budgets PP0 is no longer the rich stage, so shifting attention layers makes the min WORSE, and the historic "+33 %" projection inverts. The kv-floor objective walked straight into it. Neither solved cut beats the hand pin on capacity. (b) MEASURED PREFILL, same ladder discipline (unique prompts, cached_tokens=0 verified, one request at a time, first post-boot sample discarded as the systematic cold start): cut 12k 50k (two passes) 50k mean [32,18,14] pin 3.831 s 14.753 / 15.301 s 15.03 s [31,18,15] kvf 3.780 s 15.527 / 16.092 s 15.81 s kv-floor is +5.2 % slower at 50k against the hand pin; 12k is inside noise. The solver's +18.5 % makespan penalty does NOT reproduce at that magnitude end to end -- same dilution this strand already measured when the microbench's 1.39-1.46x layer-level prefill gain arrived as 1.05-1.21x e2e. Treat the makespan axis as a RANKING signal, not a wall-clock prediction. (c) CORRIDOR / DIP: kv-floor emits ZERO corridor-dip lines, as predicted -- [31,18,15] keeps a layer off the 5090 and does not run stage0 at the band edge. The makespan cut [32,17,15] emitted one (157.0 MiB above at-rest, 48.0 of the 205 MiB allowance). SO THE FORK, stated as three numbers and no recommendation: hand pin [32,18,14] 616,670 tok 15.03 s @50k dip: n/a (not solved) makespan [32,17,15] 592,677 tok not measured dip: 1 line on stage0 kv-floor [31,18,15] 567,412 tok 15.81 s @50k dip: none The capacity push wanted the kv-floor objective. On this rig, at this operating point, it costs capacity AND prefill against the pin it replaced. Serving stays on it per the standing order; no rollback to hand pins.
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Aug 30, 2026
… the allocator HOLD. This branch is prepared and deliberately parked off the shipping line until the sgl-project#855 kv-floor boot has landed and reported metal, because it moves the KV budget on every uneven-memory boot. Do not merge it into fix/1009-census-invariant before then. THE SEAM IS ANSWERED, from the code, which is what unblocked this. phase_flip_boot.py:1441-1447 states the invariant outright: # 2. Snapshot the PP checkpoint weights to host, free device originals # (VRAM ledger: PP originals + TP originals + arena never coexist). image_pp = snapshot_and_free(pp_named, layout_pp, pin=True) torch.cuda.empty_cache() So the TP stack materialises its OWN fresh shards (TpModelWorker at :1473, is_phase_flip_tp_stack=True) and the PP weights are snapshotted to pinned host and freed on device first. They never coexist by construction -- which is why 13.50 + 13.75 GiB of weights on a 31800 MiB card was never the real state, and why the correct TP post is the TP stack's own shard bytes rather than a re-view. World weight mass 29831.3 MiB puts rank0 at 32/64 near 14916 MiB. THE DEFECT. `used_by_me_gb` was `pre_model_load_memory - available_gpu_memory` -- a free-memory DELTA, which measures a WINDOW, so anything freed inside the window is credited against this rank's own bill. The weight free at :1445 lands BEFORE the TP worker build and so falls outside; the PP KV BACKING release (9632 MiB, "for the TP stack's allocation and graph capture") falls INSIDE. Measured: pp0 booked 4.252 GiB against 13.50 GiB resident, a 9.320 GiB under-report against 9.406 GiB freed, residual 0.086. pp1/pp2 under-reported 4.689/4.680 -- near-identical on two cards with different layer counts, the signature of one shared freed quantity rather than a weight difference. WHY NOTHING OOMed, AND WHY THE FIX IS SAFE. The TP pool is separately capped to the PP id space (phase_flip_boot.py:1452-1460, "the surplus a self-sized TP pool would take is unaddressable"). The slack this under-booking created was never spendable, so removing it takes away headroom no allocation could reach. That cap is also what kept a real accounting defect invisible. THE FIX. Read the allocator's own live figure alongside the delta and book the MAX. max() is the conservative operator: a larger weight post means a smaller `rest`, so this can only shrink the KV budget relative to today and can never grow it -- it cannot introduce an OOM. It also keeps the delta authoritative wherever it is larger, which covers device memory held outside the torch allocator (NCCL buffers, CUDA context) that memory_allocated does not see. The allocator is read post-weights and pre-pools, which is where it is clean: the graph-capture inflation found in #1009a enters later, during capture. Never silently corrected -- a gap logs at WARNING naming both figures, the difference, and that the KV budget shrinks by it. DESK-PROVEN, arithmetic replay against the sgl-project#1014 diff (GiB): rank PP post TP delta TP expected booked=max gap pp0 13.572 4.252 14.570 14.570 +10.318 pp1 7.408 2.719 7.280 7.280 +4.561 pp2 8.342 3.662 7.280 7.280 +3.618 booked >= delta on every rank, so `rest` shrinks or is unchanged, never grows. Import smoke clean; ruff "All checks passed" on this file. TEST SHAPE for when this lands (not run here -- speed mode keeps batteries out of the hot path): one targeted case per direction. (a) delta > allocator -> delta is booked, no warning, byte-identical to today: the default non-flip path. (b) allocator > delta -> allocator booked, warning names both figures: the flip TP stack. (c) allocator read raises -> falls back to delta, boot unaffected. The metal check is the flip boot's own "KV budget posts" line: "weights + runtime state" should land near 14.6 / 7.3 / 7.3 GiB instead of 4.252 / 2.719 / 3.662, and the TP pool should be unchanged because the id-space cap already bound it.
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Aug 30, 2026
…allocator, not the free delta Held off the shipping line until the sgl-project#855 kv-floor boot was through; that boot has landed, so the blocker is gone. The conservative max() direction is unchanged from the prepared branch: booking the larger of the free-delta and the allocator's live figure can only shrink `rest`, never grow it, so it cannot introduce an OOM.
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Aug 30, 2026
…ken-effective, and my own 3-cut margin is inside the noise Three passes on the identical config (gdncov, [32,18,14]/[8,4,4]), each boot reading the previous pass's seam record, agent-shaped load between passes. (1) sgl-project#778 RESERVE-LEND: NOT TOKEN-EFFECTIVE. Stays out of the ladder. Under a full 240 s agent load: 36 LEND events, 33 REPAY events, 96 BACKING-DIAL calls (48 grow / 48 shrink). REPAY events returning >0 MiB: ZERO of 33. Every one reads "loan 131072 -> 0 rows, 0 MiB returned" (65536 rows on PP0). The loan is offered and fully released, and nothing is returned because the pool never took the rows in the first place. So the mechanism is desk-correct and seam-correct -- the row arithmetic is per-rank right (65536 x 16384 B on PP0, 131072 x 8192 B on PP1/PP2, both ~1024 MiB) -- and token-INEFFECTIVE on this configuration. The missing demonstration the operator asked for did not appear under load. It must NOT be counted in any capacity ladder. That is now measured, not assumed. (2) CONVERGENCE, and I CORRECT MY OWN PASS-2 READING. pass TP world tokens seam B/row (rank0) staging post (rank0) 1 615,434 3589.0 -- 2 583,030 3954.3 1990 MiB 3 616,194 3961.7 1903 MiB After pass 2 I reported the pool as "shrinking, not converging" and called it a ratchet. PASS 3 FALSIFIES THAT. The series is not monotone: pass 3 comes back to 616,194, +760 tokens (+0.12 %) against pass 1. The seam per-row is essentially flat between passes 2 and 3 (+0.2 %); what moved the tokens is the STAGING POST, 1990 -> 1903 MiB. Pass 2 was the outlier, and I should not have called direction on two points. THE USEFUL NUMBER IS THE SPREAD, NOT THE TREND: pass-to-pass deviation reaches 5.3 % (615,434 -> 583,030) while pass 1 and pass 3 agree to 0.12 %. So one boot's pool figure carries roughly +/-5 % of boot-to-boot noise from the seam record alone, and the fixed point is stable at ~615k rather than eroding. (3) CONSEQUENCE FOR MY OWN 3-CUT VERDICT -- it is weaker than I stated. My three-cut table (fed1c56) compared single boots: [32,18,14] 616,670 [32,17,15] 592,677 [31,18,15] 567,412 The pin-vs-makespan gap is 3.9 %. That is INSIDE the +/-5.3 % per-pass noise I have now measured, so those two cuts are NOT separable on one boot each. The kv-floor gap (-8.0 %) is outside it and stands. Restated honestly: [32,18,14] is the best MEASURED cut and remains the right thing to serve, but "Pareto-dominant over [32,17,15]" overstates the evidence -- on capacity those two are indistinguishable at n=1. Only the prefill axis (15.03 s vs 15.81 s for kv-floor) and the kv-floor capacity loss are resolved. Any future cut A/B needs repeats, not a single boot per arm; the same applies to the -3.9 % regression I attributed to the makespan objective. Serving is UP on pass 3 (616,194 tokens), coherent, deadman armed. Free per card 1239 / 1078 / 1643 MiB -- all three now inside the 819-1229 corridor band or just above it, the tightest this strand has measured.
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Aug 30, 2026
…her premise holds
(1) "WHERE DID THE CONVERTED FREE GO" -- IT DIDN'T. The premise mixes two
instruments, two cuts and two moments.
The KV budget posts are BYTE-IDENTICAL between pass 1 and pass 3, every post,
both phases:
PP-phase PP0 13.572 / PP1 7.408 / PP2 8.342 weights, holdback 1.000,
mamba 0.731/0.426/0.304, spec 0.877/0.511/0.365, prefill 1.000
TP-phase weights 4.283 / 2.734 / 3.678, rest 24.164 / 13.821 / 13.855
Nothing in the ledger moved. And on the SAME instrument across passes,
available_gpu_mem is unchanged too: PP0 1.62 / PP1 3.01 / PP2 2.36 GB in pass
1 AND pass 3.
The "before" figures (PP1 3522 / PP2 2171 MiB) are available_gpu_mem READ OFF
THE solveRR BOOT -- a DIFFERENT cut ([32,17,15]) -- reported as 3.44 / 2.12 GB.
The "after" figures (1239/1078/1643) are NVML free sampled at runtime after
the conv3 boot. Different quantity, different cut, different moment. So the
free was never consumed and the 674k projection was never funded by it: on
this cut the headroom is 3.01 GB on PP1 and 2.36 GB on PP2 and it is STILL
THERE, unspent, right now.
WHAT DOES MOVE is the seam STAGING POST, and it existed in pass 1 too -- the
"vorher --" in the question is an artefact of which lines I had quoted
earlier, not of the boot:
pass rank0 seam B/row rank0 STAGING rank1/2 B/row rank1/2 STAGING world
1 3620.4 1794 MiB 1167.1 701 MiB 615,434
2 3954.3 1990 MiB 1167.1 701 MiB 583,030
3 3961.7 1903 MiB 1202.9 685 MiB 616,194
rank0 B/row rises monotonically (3620 -> 3954 -> 3962) but STAGING does not
(1794 -> 1990 -> 1903), and the world figure follows STAGING, not B/row. So
this is not a sgl-project#782 monotone ratchet. Consistent with that: trapsafe finds ZERO
latch/refusal lines of any kind, and the rank1/2 staging change of -16 MiB is
itself below the 64 MiB latch threshold and happened anyway -- i.e. no latch
is arming on this path at all.
CONSEQUENCE: the +9.42 % projection is NOT falsified and NOT demonstrated. It
was never attempted, because the headroom it would draw on is still sitting
free. Pushing the staging post back is a live lever; it is just not the thing
that ate anything.
(2) LOAN-CAP HYPOTHESIS -- FALSIFIED. The pool does not refuse the rows; it
never asks for them.
Log check on the TP-decode phase, conv3 boot: RESERVATION-CAPPED 0,
"reservation capped" 0, extent refusals 0, "capped at the id space" 0,
"beyond the id space" 0. Zero refusals of any kind.
The 39 BACKING-DIAL calls show why. Fields carried are request / prev_size /
uniform_backed_rows / reserved_backing_rows / store_bound_rows. First call:
request=575920 against prev_size=616194 -- the dial asks for LESS than the
pool already is. Last call: request=334134, prev_size=228134,
uniform_backed_rows=229376 -- growing, but to 334k against an id space of
616,194. Across the run the dial operates far BELOW the existing ceiling and
its requests track demand.
Also worth recording against the cap theory: reserved_backing_rows=763651 and
store_bound_rows=763652 are ABOVE the 616,194 id space, so the backing
bookkeeping is not clamped to the id space in the first place.
So the LEND is not unconsumable BY CONSTRUCTION. It is unconsumed because
demand at the tested load (agent-shaped, 5 sessions) never reached the
existing id space, so the loaned extension was never needed. That is a
weaker and more accurate statement than the cap hypothesis, and it changes
the handover: the open question for sgl-project#778 is not "fix the cap" but "does a
load that actually saturates 616k rows take the loan". My measurement does
not exclude that; it only shows this load never got near it.
sgl-project#778 therefore stays OUT of the ladder -- unchanged verdict, corrected reason.
LADDER STATUS with today's deletions: fixed point 616k MEASURED (pass 1 and
pass 3 agree to 0.12 %), +/-5.3 % boot-to-boot noise mandatory on every future
pool figure, sgl-project#364 out (both gates), sgl-project#778 out (not demonstrated), 674k
projection unattempted with its headroom still free.
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Aug 30, 2026
…-bearing, not precaution The comment asserted that "without this the grow would be refused as RESERVATION-CAPPED". That was inferred from the boot's 609062-vs-592677 ratio and never from an observed refusal -- an indicator-law violation, a ratio read off a boot and turned into a statement about behaviour. Measured 2026-08-30 by the sgl-project#855 strand at 5 sessions (dial requests 334-576k against a 616194 id space): RESERVATION-CAPPED 0, extent refusals 0. The ceiling does not bind AT THAT LOAD. The correction is bounded in both directions, which is the point. That measurement falsifies the ceiling as a binding constraint at the tested load; it does NOT establish that it never binds, because the load never drove occupancy near 1.0 and saturation is exactly when the dial would press against it. So the widening is UNPROVEN, not disproven, and equally not "mere precaution" -- my own first retraction overshot that way and is corrected here too. It stays because the bet is asymmetric and the cheap side is already named in lawful_reservation_rows: an over-sized VA reservation costs address space, an under-sized one is a permanent wall no runtime actuator can lift. The comment now says what is measured, what is not, and forbids re-describing it either way until a saturated boot has read the LEND/grow pair. No behaviour change: comment only.
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Aug 30, 2026
…budget, lm_head retry recipe, queue, traps
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Aug 30, 2026
…nk_mib is NOT the lever. Four measured arms.
QUEUE ITEM 1 (lm_head retry) -- CLOSED with a NEGATIVE, decision-grade result.
The handover's §3 recipe is FALSIFIED, and so is the class of fix it belongs to.
WHAT THE HANDOVER ASSUMED: lm_head lives on PP2, so hand back on PP2 the
1212 MiB it freed there and capture sees the union arm's headroom again.
Derived from the ARTIFACT DELTA because the predecessor's crash line carried
no MiB figure.
WHAT THE CRASH LINES ACTUALLY SAY (they DO carry MiB figures once the failure
lands inside the JIT cold-build window). Constant requirement across all arms:
a single 810.00 MiB cuda-graph capture allocation, per rank.
arm rank_mib PP0,PP1,PP2 OOM rank(s) free at capture
lmhead2 31800,18800,18600 PP1, PP2 156.38 / 706.38 MiB
lmhead3 31800,17800,18100 PP0 75.75 MiB
lmhead4 30700,17800,18100 PP1 770.38 MiB
lmhead5 30100,17200,17500 PP1, PP2 368.38 / 106.38 MiB
TWO FINDINGS, both from that table:
(1) LOCALITY IS WRONG. Capture happens in the TP/flip layout, where the
lm_head saving is TP-SHARDED ACROSS ALL THREE RANKS -- so every rank's
pool grows and every rank loses capture headroom, including PP1 whose
weights and rank_mib never changed (PP1 TP pool 14.040 GiB with the
lmhead artifact vs 13.634 GiB with gdncov, same rank_mib 18800). Cutting
PP2 alone could not work by construction.
(2) THE KNOB IS NOT MONOTONE, which is the stronger finding. lmhead5 gave
EVERY rank 600 MiB LESS budget than lmhead4, and PP1 ended with 402 MiB
LESS free at capture (368.38 vs 770.38). Handing reserve back does not
reliably become capture headroom: the uneven token split redistributes
whatever a rank gives up (PHASE-FLIP-BOOT: "the token split follows each
rank's memory left after its weights land"), so the shortfall MOVES
between ranks instead of shrinking. `--rank-gpu-memory-mib` is therefore
not a control variable for this quantity.
CONSEQUENCE FOR sgl-project#1025: it is not merely "the ledger does not price capture
when weights shrink" -- it is that no user-facing reserve knob can compensate
for that, so the ledger is the only place it can be fixed. The lm_head
artifact stays banked and UNDEPLOYABLE on the shipping flip form until then.
COHERENCE/QUALITY OF THE QUANT: NOT MEASURED, deliberately not spent. It is a
property of an artifact that cannot currently be deployed; the fingerprint
belongs after sgl-project#1025, not ahead of it.
CONFOUND NAMED, NOT EXCLUDED: every failure surfaced as ColdBuildWindowError
wrapping the OOM, and that hint warns a tripped wait kernel can poison the
context so an unrelated allocation reports the error. Read as a genuine OOM
here because the failing allocation IS the capture allocation (810 MiB, same
figure on every rank and every arm) and the free-memory figures move
coherently with the sizing table. Kernel cache was warm from arm 3 onward.
EVIDENCE TIER: BOOT-PROVEN over four arms.
Logs: /spinning/evidence-665-f1/boot_855_lmhead{2,3,4,5}_0840f82601_0830_*.log
Artifact: models-cache/Qwen3.8-27B-INT8-gdncov-vocabembed-lmhead (26.357 GiB).
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Aug 30, 2026
…serve has NO post, and its two guards share one gate Operator order mid-turn: stop chasing the OOM symptom rank by rank, identify every CONSUMER and RELEASER of the budget structurally. Done with the index tools; this replaces the four-arm symptom chase of 3bf2e78 with its root. TOOLS/QUERIES (reporting duty): devindex `where rank_gpu_memory_mib` -> the single profiling site; `symbol_profile ModelRunnerKVCacheMixin._profile_available_bytes` (83 outgoing calls); `trace_value available_bytes direction=back` (the full deduction chain); `where budget_posts`; `where post_capture_kv_active`; `symbol_profile activation_reserve_mb` / `post_capture_kv_sizing_planned`. Read only as the last mile at the file:line those produced. THE LEDGER IS CLOSED, so the post list is EXHAUSTIVE, not a sample: `budget_posts` has ONE writer (mixin:769) and all 18 reads inside `_profile_available_bytes` (mixin:710-1028). Posts, in order: 1. "weights + runtime state" :792 2. "gapped corridor holdback" :795 / :837 (the user's free column) 3. "mamba pre-capture reserve" :815 -- SEE GATE BELOW 4. mamba state pool (decomposed) :841 5. "GGUF dequant scratch" :870 (0.0 here, non-GGUF) 6. measured KV budget correction :877 (0 unless SGLANG_MEASURED_KV_BUDGET) Everything left becomes KV pool. THERE IS NO POST FOR CUDA-GRAPH CAPTURE. THE GATE, and why this is a defect shape rather than a missing line. Two independent mechanisms could each price the 810 MiB decode-graph capture, and BOTH hang off the SAME predicate `post_capture_kv_active` (mixin:2622): - `post_capture_resize_kv_pool` (:2629) re-sizes from MEASURED free AFTER capture -- capture bytes are already spent when `free_gb` is read; - the pre-capture post sgl-project#3 at :807 `if self.mambaish_config is not None and self.post_capture_kv_active:`. So one flag disables a mechanism AND its own fallback. Measured on the live boot, from the log's own sgl-project#797 instrument, all three ranks, both sizing passes: `post_capture_kv_active=False`. Neither guard is in force. WHY THE BUDGET PATH SPECIFICALLY. The else-branch (:817) opens with `slack_gb = pre_model_load_memory * (1 - mem_fraction_static)` -- that IS the upstream graph reserve, and `post_capture_kv_sizing_planned`'s own docstring calls it exactly that ("whether the mem_fraction heuristic may skip the graph reserve"). The `--rank-gpu-memory-mib` branch (:785-815) has no equivalent line. UPSTREAM-MINIMAL READING: the fork's absolute-MiB budget REPLACED mem_fraction_static and silently dropped the reserve that mem_fraction_static implicitly carried. Second bookkeeping beside an upstream truth -- so the fix is to make the budget path carry the upstream reserve (or enable post-capture sizing on it), NOT to invent a third fork-own reserve. INSTRUMENT-TEXT-LIES (that memory class, again, and it is why the reserve looked covered): the boot line "[auto-mamba] ... activation_reserve=1.00 GB; remaining VRAM -> KV pool" reads as "1 GB is being withheld". It is not. The number is the module constant MAMBA_AUTO_ACTIVATION_RESERVE_MIB=1024 (mixin:145), passed only into `_fit_mamba_pool_to_budget` (:2125) as a FIT CONSTRAINT on the mamba pool, whose own docstring says it "engages ONLY when the size computed by the caller would leave less than MAMBA_CEILING_FIT_MIN_KV_MIB for the KV pool". Nothing is deducted; `handle_max_mamba_cache` returns `total_rest_memory - mamba_state_memory` (:2415) and no reserve term. THIS EXPLAINS ALL FOUR ARMS of 3bf2e78 without a single new measurement: - std/gdncov boots because the weights are LARGER, so less flows to the pool and the UNBUDGETED residual happens to exceed 810 MiB. Luck, not design -- the reserve was never in force there either. - lm_head OOMs because the freed 1212 MiB went entirely to the pool and the residual fell under 810 MiB. - the knob is non-monotone because nothing TARGETS a capture reserve: free-at-capture is an uncontrolled residual, and the uneven token split redistributes whatever a rank gives up. EVIDENCE TIER: DESK-PROVEN on the code (closed-ledger argument, exhaustive by construction) + BOOT-PROVEN on the gate value (sgl-project#797 line, 3 ranks x 2 passes, boot_855_makespan_0840f82601_0830_093650.log). NOT DONE: no fix written, no capture-cost measurement of the reserve that should be booked. sgl-project#1025 now has its file:line and its shape.
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Aug 30, 2026
…del, nicht Gratis-Gewinn + die Posten-Zeile ist jetzt ehrlich == POSTEN 4: TP-VEKTOR-PROBE, drei Arme, PP-Cut [32,17,15] konstant == METHODIK ZUERST, weil sie das Ergebnis begrenzt. A/A-Rauschboden aus ZWEI Boots mit IDENTISCHEN Flags (makespan_093650 vs restore_100255): Rang PP0 643.198 -> 612.497 (-4,77%), PP1 729.329 -> 755.569 (+3,60%), PP2 592.677 -> 533.333 (-10,01%); TP-Pools alle -3,3..-3,8%. BEFUND, der eine stehende Regel praezisiert: das mandatierte +/-5,3%-Band gilt fuer EINZELNE Pool-Zahlen. Die WELT ist ein `min` ueber Raenge, erbt die Varianz des schlechtesten Rangs und wurde hier mit -10,01% gemessen. Ein Welt-Vergleich unter ~10% ist auf dieser Form nicht aufloesbar. SELBSTKORREKTUR dazu: mein Makespan-Commit (acac781) meldete "Welt 592.677 vs 591.726 = +0,16%, weit innerhalb +/-5,3%" als Beleg fuer "kein Kapazitaetspreis". Das Verdikt bleibt, die PRAEZISION war falsch -- +0,16% lag nie eng, es lag in einem Rauschen von 10%. DECODE-INSTRUMENT: n=5 warme Wiederholungen je Arm, erster Lauf nach Boot als WARMUP verworfen (er war reproduzierbar kalt: Arm 2 rep1 47,4 gegen Median 56,9). Mein erster Arm-1-Boden von "1,71%" aus n=2 war ein Gluecks-Paar und als Boden wertlos -- Stichprobenfehler, hier korrigiert. Arm tp-vector Welt (min) Decode Median Spreizung n_warm 1 32,16,16 592.677 / 53,5 / 54,4 (n=2, unter- 533.333 (A/A) abgetastet) 2 34,15,15 559.395 56,9 tok/s 6,2% 5 3 42,11,11 374.755 60,1 tok/s 0,6% 5 VERDIKT: * Arm 1 vs Arm 2: NICHT TRENNBAR auf beiden Achsen. Arm 2s Welt 559.395 liegt INNERHALB des A/A-Intervalls von Arm 1 (533.333..592.677); die Decode-Mediane liegen ineinander. Wie vorhergesagt: kv_heads [2,1,1] ist ueber alle Kandidaten invariant, die KV-Zelle bewegt sich nicht. * Arm 3: TRENNBAR UND EIN HANDEL, kein Gewinn. Welt 374.755 = -33% gegen Arm 2, weit ausserhalb jedes Bandes, gegen +5,6% Decode-Median. Richtung plausibel (42/64 der Gewichtsmasse auf PP0 = der schnellsten Karte, also schnellerer Decode; und derselbe Grund frisst PP0s KV-Raum, und PP0 ist der weltbindende Rang). Fuer einen Strang, dessen Preis Kapazitaet ist, ist das ein schlechter Tausch. * EMPFEHLUNG: bei 32,16,16 bleiben. Kein Kandidat kauft Welt. SCHRANKEN: Arm-1-Decode ist unterabgetastet (n=2, anderes Protokoll), also KEINE praezise Arm1-vs-Arm3-Differenz behauptet. Welt je Arm ist ein Einzelboot; nur Arm 3s -33% ueberschreitet den gemessenen 10%-Boden. Die Decode-Spreizungen selbst differieren stark (6,2% vs 0,6%), die Varianz ist also zustandsabhaengig -- der 5,6%-Abstand liegt an der Aufloesungsgrenze. Der 34,15,15-q-head-Confound der Uebergabe ist damit gegenstandslos: der Arm ist ohnehin nicht separierbar. == sgl-project#1026 EINSCHUB: die Posten-Zeile misst ihr Total jetzt UNABHAENGIG == Nur Anzeige-Ehrlichkeit. Die Planner-Konsum-Haelfte (:1000-1013 CONSUMES) bleibt unangetastet -- sgl-project#1015-Terrain. Bauform uebernommen von den beiden Instrumenten, die es im Baum richtig machen: Total unabhaengig messen (torch.cuda.mem_get_info -> echtes CUDA-free, dieselbe Quelle, der kv_backing_relief._free_bytes vertraut, nie total-minus-used) PLUS expliziter Rest-Term (logindex flips-Form). ERSTE ZEILE AM METALL (boot_855_r1026_..._102721.log): PP0 rest=13.875 measured free=16.888 unaccounted=+3.013 PP1 rest= 8.440 measured free=12.057 unaccounted=+3.617 PP2 rest= 7.898 measured free=10.405 unaccounted=+2.507 Das ist GENAU die sgl-project#1021-Capstone-Groesse, die die Uebergabe als "unchanged and unused across all passes" fuehrt -- die Sizing-Zeile druckt sie ab jetzt selbst, je Rang, auf jedem Boot. Die Reihenfolge des Koordinators (sgl-project#1026 VOR sgl-project#1021) war damit richtig: sgl-project#1021 haette auf einer Zeile gerechnet, die diesen Term nicht kannte. SELBSTKORREKTUR im selben Zug: mein erster Kommentar deutete ein positives Residuum als "KV-Pool ohne Gegenwert verschenkt". FALSCH. Der Ueberschuss ist der UNGEBUCHTE Topf, aus dem die spaeteren Allokationen tatsaechlich bedient werden -- die Graph-Capture (810 MiB) und die Arena-Tails kommen von genau hier. Damit ist die Zahl die ehrliche Kopffreiheit und zugleich die ganze sgl-project#1025-Geschichte in einer Groesse: gdncov bootet, weil hier 2,5-3,6 GiB stehen (weit ueber den 810 MiB der Capture); das lm_head-Artefakt stirbt, weil seine freigewordenen Gewichtsbytes in KV-Pool verwandelt werden und GENAU DIESEN Ueberschuss unter den Capture-Bedarf druecken. Ein schrumpfendes Residuum ueber Boots ist die Fruehwarnung, die vier Boots der sgl-project#855-Leiter sich haben erarbeiten muessen. Kommentar entsprechend korrigiert. ZUSTAND: Serving oben auf 32,16,16 + Makespan-Cut, health 200, greedy "capital of France" -> " Paris.", Deadman armiert. BELEG-STUFE: BOOT-GEMESSEN. Kein Suiten-Lauf (Speed-Modus); Abnahme-Suite ist Posten 6.
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Aug 30, 2026
…t-Killer gerootet, KEIN validierter Push
Posten 6 ist NICHT bestanden, und das ist das Ergebnis, nicht ein Zwischenfall.
== DIE SUITE HAT DIE SHIPPING-FORM GEWEDGT ==
Deadman-Verdikt 11:12:48Z HANG-OR-LIVELOCK auf [32,18,14]+gdncov unter
--medium --enable-thinking, Pack 4 (dataextract-15), Frage DE-07.
Teilergebnis bis dahin, alle AUF ODER UEBER der Referenz vom 2026-08-15:
toolcall-15 13/15 (Ref 12)
instructfollow-15 15/15 (Ref 14)
structoutput-15 14/15 (Ref 14)
dataextract-15 gewedgt bei 7/15 (Ref 11)
reasonmath-15 nicht erreicht (Ref 7)
Die Qualitaet des gdncov-Checkpoints ist damit auf drei von fuenf Packs
BESTAETIGT-ODER-BESSER. Die Suite als GANZES ist NICHT bestanden.
== WURZEL, aus zwei py-spy-Samples der lebenden Raenge ==
PP0 (idle) all_reduce <- _update_uniform_pool_budget (scheduler.py:6186)
PP2 (active+gil) memory_snapshot <- _takeable_cache_bytes
(corridor_admission.py:748) <- _update_uniform_pool_budget
(scheduler.py:6121)
Beide Raenge in DERSELBEN Funktion: PP0 hat sein Kollektiv bei :6186 erreicht
und blockiert, PP2 haengt noch bei :6121 davor und brennt CPU. Ein zweites
Sample zeigte PP2 an einem ANDEREN Frame -- es kommt VORAN, ist also keine
Endlosschleife, sondern zu langsam, um das Kollektiv zu erreichen.
Der teure Aufruf, corridor_admission.py:748-750:
trapped = graph_pool_free_bytes_from_segments(torch.cuda.memory_snapshot())
`torch.cuda.memory_snapshot()` laeuft die gesamte Allocator-Segmentliste ab und
sitzt auf dem PRO-RUNDE-Pfad (`_update_uniform_pool_budget` laeuft in
`get_next_batch_to_run`). Seine Kosten wachsen mit der Segmentzahl; nach 348.904
Regime-Runden und ~40 min 16k-Token-Thinking ist er langsam genug, dass die
Gruppe als tot gilt. GPU-Auslastung 0% bei voll belegtem VRAM.
KLASSE: Observability-Aufruf mit UNBESCHRAENKTEN Kosten auf einem pro-Runde
kollektiv-synchronisierten Pfad. Der Docstring :730-732 hat die Snapshot-
UNLESBARKEIT bedacht ("costs precision and never a refusal"), nie ihre KOSTEN.
GESCHWISTER-SWEEP (git grep memory_snapshot()|memory_stats() ueber srt/):
corridor_admission.py:749 ist die EINZIGE Stelle auf einem Pro-Runde-Pfad. Alle
anderen sind Flip-Zeit (phase_flip_runtime 8622/8629/8641), Boot-Zeit
(mem_ledger/*, mixin:1495, residency_census:189) oder Einmal-Audit
(adaptive_graph_memory:645). Der Befund ist damit beschraenkt, nicht diffus.
Specimen: /spinning/gpu-arb/W855-SUITE-WEDGE-SPECIMEN/ (FINDING.md, Deadman-
Verdikt, Boot-Tail, Suite-Log). Fix NICHT gebaut -- Nachfolger-Entscheid.
== LEITER-KONSOLIDIERUNG ==
Welt (min ueber Raenge), gdncov sofern nicht anders genannt:
Vor-sgl-project#855-Incumbent (vocabint8-embed) 453.041
[32,18,14] SHIPPING, ~13 Boots 583.030 .. 643.198, Median ~616.194
[32,17,15] Makespan-Cut, 5 Boots 533.333 .. 592.677
TP-Vektor 34,15,15 559.395
TP-Vektor 42,11,11 374.755
lm_head-Artefakt, alle 5 Arme CRASH bei Capture
Gegen den Incumbent: rund +36% Welt durch den sgl-project#855-Checkpoint.
BEFUND ZUR VARIANZ, praeziser als meine eigene fruehere Fassung: die Welt ist
nicht kontinuierlich verrauscht -- sie nimmt DISKRETE Werte an. 616.194 kommt
dreimal EXAKT vor, 615.434 dreimal EXAKT. Die Streuung stammt aus dem
vererbten Seam-Record-Zustand, nicht aus Messrauschen. Ein Welt-A/B ohne
Kontrolle des Seam-Records vergleicht Zustaende, nicht Konfigurationen.
== BELEG-STUFEN ==
LAEUFT: Serving auf [32,18,14], health 200, greedy -> " Paris."
BOOT-BEWIESEN: Welt-Leiter; TP-Vektor-Verdikt; Arena-Tail-Gegentest; sgl-project#1026-Zeile;
lm_head-Negativ; der Wedge selbst.
DESK-BEWIESEN: geschlossener budget_posts-Ledger; sgl-project#1021-Attribution;
Option-2-Scoping; der Wedge-Wurzel-Pfad (py-spy + Code, nicht reproduziert).
NICHT BEWIESEN: dass der memory_snapshot-Fix den Wedge behebt (nicht gebaut);
lm_head-Qualitaet (nie gemessen); Suite-Packs 4+5.
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Aug 30, 2026
… Hebel ist dort schon aktiv und heute schon vermessen. Zwei Boots gespart.
Posten 1 des Zahlen-Pivots, am Pin geprueft statt gebootet.
== BEFUND ==
`--rank-tp-ratio` ist ein BOOT-Flag (nicht im stehenden Boot schaltbar) und
auf unserer Form strukturell wirkungslos:
* Unsere Form ist `tp_size=1, pp_size=3` (aus dem laufenden Boot-Log).
Ein expliziter Vektor muss Laenge tp_size haben -- bei tp_size=1 ist das
ein Ein-Element-Vektor, also per Konstruktion keine Unebenheit.
* `auto-performance` wird unter pp_size>1 ausdruecklich abgelehnt
(server_args.py:11846ff).
== UND DER GUARD SAGT SELBST, WO DER HEBEL STATTDESSEN LIEGT ==
Woertlich aus der Ablehnung: "Under PP the distribution of MLP mass across
stages IS the layer cut: use --pp-solve-cut or --pp-layer-ratio for that,
and --phase-flip-tp-vector for the TP phase's weight split."
Genau dieser Knopf ist auf unserer Form AKTIV (`phase_flip_tp_vector=32,16,16`)
UND ICH HABE IHN HEUTE BEREITS VERMESSEN (Posten 4 des sgl-project#855-Strangs):
32,16,16 Welt 592.677/533.333 (A/A) Decode-Median 53,5/54,4 (n=2)
34,15,15 Welt 559.395 Decode-Median 56,9 (n=5, Spreizung 6,2%)
42,11,11 Welt 374.755 (-33%) Decode-Median 60,1 (n=5, Spreizung 0,6%)
Verdikt damals und unveraendert: 32,16,16 bleibt; 34,15,15 nicht trennbar,
42,11,11 ein schlechter Tausch (+5,6% Decode fuer -33% Welt).
== KLEINE INSTRUMENT-DISKREPANZ, benannt ==
Der Hilfetext des Flags sagt pauschal "Pure tensor parallelism only:
combining it with --pp-size > 1 is rejected". Der CODE lehnt nur
`auto-performance` ab und erlaubt `auto` sowie einen expliziten Vektor. Wer
nur den Hilfetext liest, haelt sgl-project#709 unter PP fuer hart gesperrt; wer nur den
Guard liest, haelt es fuer offen. Beides fuehrt in die Irre -- die wahre
Antwort ist, dass tp_size=1 den Vektor bedeutungslos macht.
== FOLGE FUER DIE PROGNOSE ==
Die +0,780 ms/Runde aus sgl-project#705 sind fuer einen REINEN TP-Boot gepreist. Auf der
Flip-Form ist die aequivalente Groesse der phase-flip-tp-vector, und dessen
Messung liegt vor. Der "billigste Decode-Hebel" ist auf dieser Form also
bereits gezogen -- nicht ungenutzt.
EMPFEHLUNG: sgl-project#709 als "auf der Flip-Form gegenstandslos, auf einer reinen
TP-Form offen" im Register fuehren, statt als offenen Hebel.
BELEG-STUFE: DESK-BEWIESEN (Flag-Definition, Parser, Guard und tp_size/pp_size
aus dem laufenden Boot-Log). Die zitierten Vektor-Zahlen sind BOOT-GEMESSEN
vom 2026-08-30, n wie angegeben.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.