Repository navigation
Fix return_log_probs with cuda graph - #775
Merged
Merged
Conversation
Ying1123
approved these changes
Jul 28, 2024
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 25, 2026
… installed
CLASS: a term whose input is produced by the very transition it governs.
W37-D/d4, four consecutive lines:
arming pp_to_tp: DRAINED ... 2 req decoding
RESIDENTS RELEASED for pp_to_tp: 7 request(s) retracted
SEAM RE-ADMISSION: 7 put back at the FRONT of the waiting queue
arming tp_to_pp: pending prefill 18586 tok > 0 (... nothing decoding)
"Nothing decoding" one line after "7 retracted". 102 flips, GPU 98/47/57%,
exactly ONE output token per flip cycle, 0 completions in 7 minutes.
SIBLINGS SWEPT ON THE READING-MOMENT AXIS, before fixing my instance. Terms
gated `running_bs > 0` fail SAFE (a manufactured 0 makes them not fire). The
dangerous ones are those that fire BECAUSE it is 0, and there are five:
demand_prefill_tokens (mine), the idle determination, the starved dwell-bypass,
and both flip-threshold shortcuts. All five now read ONE authority,
`decode_work_bs()` = running_bs + retracted-but-unfinished.
THE DISCRIMINATOR IS OUTPUT TOKENS, and it is what separates the three metal
specimens a fix here must satisfy at once:
d2 wedge 7 queued, none ever started -> decode_work 0 -> demand FIRES
d3 pingpong 2 genuinely decoding -> decode_work 2 -> demand SILENT
d4 thrash 7 retracted at n=2..13 -> decode_work 7 -> demand SILENT
Per-rid evidence they are mid-flight and not restarts: rid be636087 read
n=2,3,4,...,13 across epochs, strictly increasing (sgl-project#775 refuted).
COMPLETION-PROGRESS CLOCK (sgl-project#699 extension). Thrash is neither wedge nor
progress: ADMISSION-WEDGE measures first-token age and first tokens DID arrive;
liveness measures progress and decode_steps DID advance; health returns 200.
Nothing measured completions per unit time. thrash_verdict() fires on
decode-advancing + completions-flat + work-pending + not-inhibited. SIX PINS,
both directions: fires on the d4 shape, silent when completions advance, when
no work is pending, when nothing decodes (that is a wedge, another rung), while
a flip pause is claimed, and below the sample floor.
STALE-GATE BLIND FALSE POSITIVE, mine: 24 firings on a HEALTHY boot devalue the
alarm into noise. The CONDITION was wrong, not just the threshold -- a cutover
legitimately checks nothing when no device-tier I/O was queued (W37-D read
checked=0 on 24 cutovers and 2/3/8 on twelve others, one healthy boot). Now
gated on the controller actually having traffic in flight, threshold 2 -> 4.
HARNESS INDIKATOR: the load driver reported spec_accept_length=None for three
windows because it read /v1/chat/completions, which carries no meta_info at
all. The server knew the number the whole time (measured 1.9184 by hand).
Driver routed to native /generate and now records accept_length, accept_rate,
verify_ct and cached_tokens. Fix the driver, not the field.
sgl-project#859 CUT 2 -- DISCOVERY-DIFF, DEFAULT-INVERTED. Cut 1 validates declarations
somebody remembered to write and cannot find an omission. Cut 2 discovers what
the cutover ASSIGNS (ast over its own source, incl. setattr) and fails on
anything unaccounted for; undeclared IS the failure. The reading-moment axis is
part of the declaration now: MUTATED_STATE maps each cutover-mutated field to
the window in which reading it is honest, and a test refuses any policy term
firing on a raw `running_bs` zero without a coherent accessor. Two can-fail
pins prove the discovery sees a planted assignment and a planted setattr.
Gate: 8 failed / 4291 passed / 2 skipped / 356 subtests in 720.79s, failure set
BYTE-IDENTICAL to the known 8 by name, zero unexpected. ruff: zero delta on
every touched file.
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.
Fix the bug in #747