Repository navigation
Conversation
zhyncs
reviewed
Jul 25, 2024
Ying1123
marked this pull request as draft
July 25, 2024 06:33
Ying1123
marked this pull request as ready for review
July 25, 2024 08:45
timethink
pushed a commit
to timethink/sglang
that referenced
this pull request
Mar 9, 2025
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Aug 17, 2026
…ision set nearly doubles THE DEFECT (self-flagged in 4c5e594): solve_prefill_frontier enumerated, per lead depth, ONLY the tail minimising pipelined time. At n0=30 that is [30,16,18] (130.95 ms, 343,951 tokens), so [30,18,16] (139.32 ms, 436,275 tokens) was never generated -- six percent of speed bought at twenty-seven percent of pool, decided inside an enumeration and never surfaced. [30,18,16] holds the incumbent's own pool while running 1.11x faster, so it STRICTLY DOMINATES the layout in production, and the solver whose purpose is to find such cuts could not emit it. It reached the sgl-project#702 table only because I priced it by hand. THE FIX: per lead depth, keep the Pareto set over (pipelined time, pool). Sort by time ascending, keep strict pool improvements. The first element is the speed-argmin, so every pre-sgl-project#723 row still appears unmoved; the rest are additions, each roomier than everything faster. needs_pipelining became a property of the DEPTH, evaluated on that depth's fastest tail and shared by its siblings. Per-tail evaluation would flag a roomier, slower sibling as needing a lever it is not reaching for -- that cut trades speed for pool, it does not buy depth. Using the depth's fastest tail also reproduces the pre-sgl-project#723 flags exactly, because that tail used to be the only candidate at its depth. RESULT: 25 -> 41 candidates, 16 previously invisible. [31,17,16] STRICTLY BETTER than the cut this ticket was opened for: same pool as the incumbent (436,275, +0.0%), 1.1765 prefill, and at 17.7% its gain is ABOVE the rig's 14.1% A-vs-A noise floor -- so unlike [30,18,16] a boot could actually confirm it. Payback 10.50 s vs 15.75 s. Cuts that BEAT the incumbent pool, all previously invisible: [30,19,15] +15.5% @ 1.0526, [31,18,15] +9.8% @ 1.1111, [29,20,15] +6.1% @ 1.0000. The old frontier's roomiest row WAS the incumbent; it no longer is. FALSIFICATION FOUND, and it changes [33,15,16] on the user's morning list. [32,16,16] also surfaced, predicted pool-neutral (+0.0%) at 1.2500 -- and it is the layout that was BOOTED and FAILED its pool gate (STAGE 1 VERDICT 2026-08-16). available_bytes_for_cut shifts a bracket captured at the INCUMBENT by weight and GDN terms only (seam_holdback.py:145-147), so a change in the ARMING FLOOR is structurally invisible to the model. [32,16,16] measured rank0's floor rise 1728 -> 2255 MiB (+527) and is the only booted layout with the (8,4,4) split. Applying that measured delta: [32,16,16] +0.0% -> -4.7% (consistent with its observed gate failure) [32,17,15] +3.1% -> -4.7% [33,15,16] -4.7% -> -12.4% So [33,15,16]'s advertised -4.7% is OPTIMISTIC; against the only measured arming floor for its own attention split it is -12.4%. The +-500 MiB caveat is not abstract -- it was measured at +527 MiB and has already failed one boot. A tidy rule I asserted in a first test draft was FALSE and the test caught it: "pool-neutral cuts keep the (7,5,4) split". [32,16,16] is predicted pool-neutral WITH the changed split. What separates the safe family is the attention split being unchanged, not the predicted pool. The test now pins both families so the booted counter-example keeps its row. Test results (hermetic, CUDA_VISIBLE_DEVICES="", interpreter /spinning/htsglang-gpu/.venv/bin/python3): test_frontier_pool_pareto_723.py (new) 12 passed red-first before the fix: 3 failed on the missing cut, and the must-not-move pins were already green at that point test_prefill_frontier_702.py 15 passed, unchanged test/registered/unit/planner full suite 2837 passed, 123 skipped, 157 subtests, 0 failed (2825 before) can-fail by breakage: reverting the enumeration to the speed-argmin (one `break`) turns 6 tests red while every pre-sgl-project#723 pin stays green, which is the property that matters -- the fix adds rows without moving one. Decision set appended to docs/DECISION_702_cut_table.md and to the morning plan file as a dated block; plan head-298 sha256 verified byte-identical before and after (81560e94b7628e6c8...). No recommendation added: the set is now complete rather than filtered, and the pick remains the user's. Desk only, no GPU, deploy tree untouched.
efschu
added a commit
to efschu/htsglang
that referenced
this pull request
Aug 17, 2026
…unification sgl-project#612: declare the decoupled_kv construction site in RUNTIME_COMMUNICATOR_GROUPS. Declaration completeness only -- the contract checks construction SITES, and initialize_decoupled_kv_group has no production caller yet, which the entry says rather than implies. No behaviour change. sgl-project#584: file both constants the newly-merged ratchet caught, with differentiated verdicts rather than a baseline bump. planner/boot_instruments.py:: _CHAIN_TOLERANCE_MIB is NOT A DEMAND DECISION and the call site was read to say so: it is the rounding slack for verifying the budget-chain identity, reserving nothing. managers/phase_flip_seam_reserve.py::DEFAULT_ARMING_MARGIN_MIB is NEEDS AUDIT: it genuinely gates a VRAM decision, its own comment argues it is an instrument tolerance, and that call belongs to the sgl-project#662-F4 owner. TICKET_702_unify_revisions.md files the decision that stopped fix/602-fill-side: WorldMemory canonical (boot 2 validated it), PhasePoolModel's attention-layer divisor and sgl-project#723 frontier completeness ported as an EXTENSION, never a parallel model. The four mechanical resolutions from that aborted merge are recorded so the next attempt does not re-derive them.
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Aug 22, 2026
The retracted-provenance gate refuses a vector whose LINEAGE is bad. This is
the other half: a vector admitted as a SEED made a claim about the future --
"I am a pre-boot estimate and the measured per-rank capacity supersedes me
in-process" -- and a boot where that never happened is now refused rather than
warned about.
That case is not hypothetical. boot_798_0822_0629 reached three install-capable
sizing sites at dcp_size=3 with allow_install=True and role='seed', declined
every one on a predicate about the worker's LABEL instead of its pool, and
served the seed [29, 19, 16] as if it were a decision. Nothing failed. The
advisory printed and was ignored, which is the defect class this task is about:
a path that is logged and never enforced. A warning here would be the same
thing again, so this raises.
Three signals, because refusing on fewer would refuse correct boots:
armed -- a seed was actually resolved (a pin asserts its value and
arms nothing)
calibration -- a site that could REALLY have superseded it was reached
(dcp_size > 1 AND allow_install), so "never superseded" means
declined and not "never had the chance"
superseded -- a verdict was reached
Refuse iff armed AND calibration AND NOT superseded.
Two design points that each prevent a false refusal. The latch is disarmed on
the VERDICT, not on the write: the install site writes nothing when the
measured optimum equals the active vector, so disarming on the write would
refuse a boot whose seed happened to be right. And the latch is process-global,
so a genuine draft-pool worker declining its own install does not trip it --
its target runs in the same process and its verdict disarms the claim for both.
Placed at scheduler.py:1448, after build_phase_flip_tp_stack rather than after
init_memory_pools, because under the flip it is the TP stack that carries the
DCP layout; the earlier position would refuse every flip boot.
CAN-FAIL, EXECUTED, both directions, driving the real sizing method in the
boot-0629 configuration (is_draft_worker=True, is_draft_pool_worker=False):
predicate `not self.is_draft_worker` -> installs [29, 19, 16] -> FIRED
predicate `not self.is_draft_pool_worker` -> installs [29, 17, 18] -> silent
So the gate would have refused the boot that shipped and admits the one that is
fixed. Neutering assert_seed_superseded to return unconditionally turns both
falsifiers red; verified separately.
15 new tests; 84 green across the six sgl-project#797 suites. ruff clean on the new files
and unchanged in count on the edited ones (utils.py 1, scheduler.py 99, mixin
0, all pre-existing); the two codespell hits in utils.py are pre-existing and
unchanged in count.
WHAT sgl-project#797 IS WORTH, corrected. The commit that landed the install fix quoted
this runtime's own projection, "max_total_num_tokens 1213952 -> ~1335296". That
number is not deliverable and should not be cited. Measured on boot
_798_0822_0646: installing [29, 17, 18] in place of [29, 19, 16] moved the
world pool by ZERO tokens, 990656 either way. The phase-flip boot caps every TP
rank at the PP id space (448910 tokens, phase_flip_boot.py:206), clipping rank 0
from its profiled 620560 and making rank 0 the binding rank under both vectors,
since both give it ratio 29. The threshold is cap0 > 29 * min(360392//17,
375560//18) = 605056, about 35 % above today's operating point; lifting it is
the PP cut's problem (sgl-project#723/sgl-project#702), where cut and vector have to be solved
together. The DEFECT remains real on any cut without that ceiling. This commit
also annotates the install log line, whose "-> ~N" is scored on uncapped
capacity and is what made a non-deliverable figure quotable, and drops the
"roughly 10 % of the KV pool" line from the suite docstring.
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.