Repository navigation
Clean up the comments and names under python/sglang/srt/layers - #1047
Merged
Merged
Conversation
merrymercy
marked this pull request as ready for review
August 12, 2024 04:59
merrymercy
enabled auto-merge (squash)
August 12, 2024 05:00
merrymercy
requested review from
Ying1123 and
zhyncs
and removed request for
Ying1123
August 12, 2024 05:00
Ying1123
approved these changes
Aug 12, 2024
zhyncs
approved these changes
Aug 12, 2024
timethink
pushed a commit
to timethink/sglang
that referenced
this pull request
Mar 9, 2025
JinyanYi
pushed a commit
to JinyanYi/sglang
that referenced
this pull request
Jul 27, 2026
…heck_in_2 update something
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Aug 31, 2026
…a dict the cut swallowed TWO EMITTERS MADE HONEST, both instances of the sampling trap this campaign has now hit four times. `sgl-project#988 LOADBACK` printed the FIRST event and then every 64th, with no suppression count. Three lines across three ranks were therefore indistinguishable from "one application per rank" and from "sixty-three per rank that were never printed" -- and a reproducibility run on boot 15 read exactly that ambiguity and could conclude NOTHING, in either direction. This is the quantity the whole slice is judged on, so it is now unconditional. `sgl-project#1042 EXTENT LIFECYCLE` sampled at n<=3 then every 256th. Boot 15's acceptance window contained ZERO such lines while the log held nine: the window fell between samples, and a reader would have concluded "the contract was never exercised". `set` and `retract` are rare and now print unconditionally; only `hitless_noop` is still sampled, and it prints how many it skipped. RUFF CAUGHT A REAL BUG, not a style nit: `_SECOND_CONTINUATION_REFUSALS` (F821) was swallowed by the sgl-project#1046 cut, which deleted the old `_pp_load_back_extent` body by slicing to the next `def` -- and that module-level line sat inside the span. The NameError would have fired only on the sgl-project#959 second-continuation refusal path, i.e. under specific traffic and probably not on the next boot. Restored with a note. This is the argument for keeping ruff in the loop even under speed mode: it is not a suite, it is one pass that can fail on exactly the class a text-slice deletion produces. check_1042 and check_1045 re-run green; import smoke confirms the restored ledger.
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.
token_attention.py->decode_attention.py,context_flashattention_nopad.py->prefill_attention.pylinear.pyandquantization