Skip to content

custom 2 - #439

Closed
gintasz wants to merge 18 commits into
sgl-project:mainfrom
gintasz:retry-unsynced
Closed

gintasz wants to merge 18 commits into
sgl-project:mainfrom
gintasz:retry-unsynced

Conversation

@gintasz

@gintasz gintasz commented May 14, 2024 •

Copy link
Copy Markdown

Sorry shouldn't have opened.

@gintasz gintasz closed this May 14, 2024
HanHan009527 pushed a commit to HanHan009527/sglang that referenced this pull request Apr 7, 2026
efschu added a commit to efschu/htsglang that referenced this pull request Aug 2, 2026
… --rank-moe-ratio sibling-flags line

The sgl-project#439 merge added a precise per-path breakdown of --rank-moe-ratio right
below this line (GGUF expert-dim path moves compute, every other path splits
the intermediate dim and leaves compute universal) but left the old terse
parenthetical unchanged, so the two statements in the same section
contradicted each other. Point the terse mention at the detailed note
instead of repeating the imprecise claim.
efschu added a commit to efschu/htsglang that referenced this pull request Aug 2, 2026
…ase-plan-held residency, arm-carrying harness (sgl-project#439)

Resolver reads the launch flag instead of the unpublished runtime context
(solves 160,79,119); residency held at the pre-link base plan so link mode is
VRAM-neutral by construction (fixed point broken, not iterated); the A/B
harness refuses an unset arm instead of silently booting the baseline. Band
honestly re-derived on the resolved plan: 1.392x/1.450x. Confirmation window
pending — CONFIRMATION_WINDOW.md.
efschu pushed a commit to efschu/htsglang that referenced this pull request Aug 5, 2026
… objective

Four coordinator answers folded in; two of them close holes in the first draft.

R9 (NEW, user 2026-08-05) -- every prefill/draft/decode(verify) cut is itself a
load change, and an ENFORCER must actually cause a different layout per load.
Flip granularity becomes a PRICED AXIS rather than a blanket rule: per knob,
quantify the flip cost and classify by two checkable criteria. A knob is
tick-flippable exactly when flipping it costs neither a CUDA-graph recapture
nor a byte moved; everything else flips at regime boundaries with hysteresis.
Grounded, not asserted: sgl-project#439 cold-expert compute assignment is verified
VRAM-neutral in tree (expert_heat_migration.py:31 names "the same size before
and after" as the sgl-project#439 sizing latch's invariant), which is precisely the
zero-data-movement property that puts it on the tick side. Within a tick the
layout is fixed by definition, so the right tools are overlap/behaviour
adaptation (sgl-project#128/sgl-project#199, sgl-project#125, sgl-project#274, sgl-project#156) -- not lesser substitutes for
flipping, but the correct instrument at that timescale.

F9 is the falsifier for the silent error: a wrongly-regime-classified zero-move
knob never demonstrates the gain it could have made, so nothing ever surfaces
it. F9b guards the opposite mistake (a 3-6 s recapture at tick granularity
would spend the whole tick budget on recapture). F9c asserts on ACTUATED state,
not on a logged decision, because sgl-project#578 is exactly the case where the decision
existed and the actuation did not.

SLICE 0 (sgl-project#578) -- verified in tree, not taken on report: regime_runtime.py:911
calls planner_candidates(server_args) without solve_fn, so regime_stages.py:383
takes the None branch, returns [], and the stage table permanently holds the
booted stage alone. The docstring at regime_stages.py:357 says it outright --
"it is not broken, it is unfed". The enforcer R9(i) requires therefore EXISTS
AS CODE AND ACTUATES NEVER, which made every actuated requirement in the first
draft unreachable. Promoted from unknown risk to a named prerequisite slice.
The work is wiring plus a SolverAnswer->Stage mapping (key_solver.solve already
exists and is objective-aware), but it needs plan_inputs, base plan, per-rank
budgets and RigRates -- i.e. a card probe. So slice 0 shares TICKET_582 gate
(a) as a prerequisite and should be scheduled into the same window; recorded.

R4 -- answered, [CONFIRM] removed. The objective is JOINT (maximum compute AND
maximum VRAM throughput/latency at all times), expressed as two axes rather
than collapsed into one scalar on the user's behalf. Dominance on disagreement
is decided by the running task's phase: decode is memory-bound so bandwidth IS
throughput there, prefill is compute-bound. The weights come from the same
regime signal R7 consumes. F4 is a pair for the same reason as F7: a fixed
scalar objective passes exactly one of the two regimes.

sgl-project#551 -- resolved as in-tree sgl-project#553, and my find is confirmed: DESIGN/ANALYSE
only, no mechanism. Slice 5 therefore BUILDS elastic co-residency as the
planner's tenant-event actuator. Stated plainly in the slice plan and §5 so the
plan cannot be misread as driving something that exists.

Also recorded: R9's knob inventory is incomplete by construction (only the
knobs the addendum named are classified); a full sweep with a cost per knob is
part of slice 4b, since an unclassified knob is an unpriced assumption and R9
forbids those. And "3-6 s" for recapture is an observed range, not a model --
R5's movement-cost work must cover it too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant