Skip to content

fix: use devel for Triton's compiler requirements - #1074

Merged
merrymercy merged 1 commit into
sgl-project:mainfrom
zhyncs:img
Aug 13, 2024
Merged

merrymercy merged 1 commit into
sgl-project:mainfrom
zhyncs:img

Conversation

@zhyncs

@zhyncs zhyncs commented Aug 13, 2024

Copy link
Copy Markdown
Contributor

Thank you for your contribution, we really appreciate it. The following instructions will help improve your pull request and make it easier to receive feedback. If there are any items you don't understand, don't worry. Just submit the pull request and ask the maintainers for help.

Motivation

Please explain the motivation behind this PR and the goal you aim to achieve with it.

Modification

Briefly describe the changes made in this PR.

Checklist

  1. Ensure pre-commit pre-commit run --all-files or other linting tools are used to fix potential lint issues.
  2. Confirm that modifications are covered by complete unit tests. If not, please add more unit tests for correctness.
  3. Modify documentation as needed, such as docstrings or example tutorials.

@zhyncs zhyncs mentioned this pull request Aug 13, 2024
4 tasks done
@merrymercy
merrymercy merged commit 0076f11 into sgl-project:main Aug 13, 2024
@merrymercy

Copy link
Copy Markdown
Collaborator

@zhyncs release new images? Re-running the actions will override the images.

@zhyncs
zhyncs deleted the img branch August 13, 2024 11:12
@zhyncs

zhyncs commented Aug 13, 2024

Copy link
Copy Markdown
Contributor Author

OK!

@zhyncs

zhyncs commented Aug 13, 2024

Copy link
Copy Markdown
Contributor Author

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 Sep 1, 2026
… producer since #1072c

#1072c removed both retraction branches of `reconcile_pp_admission_decision`,
so nothing mints `PPAdmissionEntry.retracted=True` any more. Everything keyed
on that predicate became unreachable in the same commit, and this deletes it.
The measurement is BY CONSTRUCTION, not by sampling: a consumer whose
predicate no producer can set is unreachable, not merely unused, and no
uniformity rate from any boot could change that.

Verified from two sources, because a grep-null is not an absence: the only
`retracted=True` hits in the tree are a different class (servability_matrix
`RequestState`, `req.is_retracted` on the Req object), and on the
construction side the only `replace()` calls on an entry are one that READS
`e.retracted` and one that sets `observed_local`.

GONE: `_learned_floor` and its four accessors (`learned_floor`,
`_remember_prefix_floor`, `outstanding_rids`, `forget_observed_coverage` --
the last two already had zero callers), `entries_retracted_by_rank` (zero
callers since #1072c dropped its import), the `if entry.retracted:` arm of
`record_return_trip`, and the floor term in `prefix_len_for`'s clamp.

AND THE PART THAT WAS NOT IN THE PLAN: `_prefix_floor` (sgl-project#963) dies with the
SAME predicate one hop later. `_remember_prefix_floor` was its only writer
and that function's only caller sat inside the deleted arm, so the dict
became something nothing writes. It is removed rather than left as a clamp
that can never fire under a comment claiming it still clamps -- which is the
defect class this campaign has spent the day removing, and it was about to be
created in the act of removing it.

KEPT, DELIBERATELY, and each was checked rather than assumed:
  * the `elif entry.admitted:` arm (promoted to `if`). It is the ONLY clearer
    of `_unresolved_rounds` (sgl-project#944), `_terminator_spent` (sgl-project#955) and
    `_offer_streak` (#944b) -- one pop site each, counted across the module.
    Folding it into the deletion would have made three live gates unclearable.
  * `note_observed_coverage` at the top of the loop -- the sgl-project#1059 feed that
    makes PP0's published prefix realizable by every rank. It sits ABOVE the
    retracted/admitted split on purpose (its comment says why), so it survives
    the producer's death by design. Boot 27 is what happens without it.
  * the sgl-project#944 escalation, whose trigger is PP0's own re-offer and never a
    reported round count (#944b moved it off the lap deliberately).

TESTS: a test of a deleted mechanism is deleted with it; a test whose subject
survives is re-pinned, not stubbed. `test_pp_prefix_scoped_floor_963.py` goes
whole. Four tests in `test_pp_unresolved_defer_cap_944.py` and one in
`test_pp_forwarded_schedule_791.py` had the floor or the retraction as their
SUBJECT -- the 791 one set `guard._learned_floor[RID] = 0` as its premise and
would have become a test that cannot fail. `test_pp_terminator_rearm_955.py`
keeps its test and loses one stale assertion: its other four checks are the
reset it is actually about, and they still pass, so the clearer is intact and
only its inventory shrank.

THE RATCHET CAUGHT ITS OWN CASE: `TheConsumerSweepRatchet` fired on the
vanished 963 reader -- the can-fail proof for the "or one vanished" half of a
pin that had only ever fired for additions. Updated with the reasoning it
demands.

Desk-proven: py_compile, import smoke (guard constructs, `prefix_len_for`
passes through, sgl-project#944 and sgl-project#1059 intact), falsifiers 25/25 + discipline 11/11,
944 18/18, 955 13/13, and 791 back to its 7 PRE-EXISTING failures, measured
by A/B against the pre-cut file rather than asserted.
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.

2 participants