Repository navigation
Test regex in vision api - #926
Merged
Merged
Conversation
Ying1123
enabled auto-merge (squash)
August 5, 2024 05:52
merrymercy
approved these changes
Aug 5, 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 10, 2026
test: add NPU test cases for EPD dynamic register + speculative decoding (DFLASH/Adaptive/skip-dp-mlp-sync)
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Aug 27, 2026
… every arm
One of four boots in the 0827 window died in a CPU spin whose hot frame was
the at-arm census. `arm()` called `_pool_census("at-arm", ...)`
unconditionally (sgl-project#631 J), which walks the pool and, through
`_census_ownership_audit`, the KV row-ownership map. That was affordable when
an arm was rare. It is not: the same window measured 69 cutovers in five
minutes, so a full-pool walk per arm is an O(pool) tax per flip on the
scheduler thread.
A CADENCE GATE, NOT A DELETION. The census is the only instrument that can see
the sgl-project#631 J page loss, so what changes is how OFTEN it runs, never whether it
CAN. Two independent admissions, either of which opens the gate:
* the first arm after SGLANG_PP_ARM_CENSUS_MIN_INTERVAL_S of wall clock
(default 30s) -- so a slow-arming instance censuses every arm exactly as
before and is not throttled at all;
* every Nth arm (SGLANG_PP_ARM_CENSUS_EVERY_N, default 16) -- so a
fast-arming instance still gets a bounded sample rather than nothing.
Setting BOTH to 0 restores the unconditional pre-sgl-project#926 behaviour, which is the
escape hatch an operator needs when chasing exactly the page loss this
watches for.
NEVER SILENTLY FALSE (sgl-project#829/INDIKATOR-GESETZ): a skipped arm is counted, and
the count rides the next census that does run -- "N arm(s) since the last one
were NOT censused ... a SAMPLE, not a continuous record". Without that line a
sampled window reads exactly like a clean one, which is the failure this gate
would otherwise introduce while fixing the spin.
Tests, hermetic, CUDA_VISIBLE_DEVICES="": test_arm_census_cadence_926.py,
6 passed. Pins both halves -- 69 arms produce 4 censuses, the Nth arm is the
one that fires, the time budget alone admits every arm of a slow cadence, both
admissions off restores the unconditional census, and a skipped arm is counted
and reset onto the census that reports it.
sgl-project#801 IS NOT IN THIS COMMIT, and the reason is a measured negative rather than
a missing step. The task's fix shape -- a void-send backstop on the
intermediate hop, gated like the last rank's #791b contract -- was built and
driven through the three-process gloo ring
(test_pp_output_ring_retraction_wedge_791b's harness, hazard moved to the last
rank so the missing send lands on an intermediate hop). THE RED ARM DID NOT
WEDGE: with the new relay neutered in the child, all three ranks still ran all
12 passes (voids=1, requeued=1 on PP0 and PP1). The existing sgl-project#801 republish
already carries that case, so the backstop was dead code.
It also cannot close the hole `_pp_send_output_to_next_stage` names, and the
reason is structural: that hole is "this rank received NOTHING because its OWN
slot was empty while the successor's was not", and PP0 derives the published
expectation FROM ITS OWN SLOT (`expects_output = _pp_output_exchange_due(
h.mbs[mb_id])`). An empty slot therefore publishes False, so ANY backstop
gated on `_pp_output_expected_for_slot` is inert in precisely the state that
wedges. Closing it needs the successor-to-predecessor expectation wire the
comment already calls "a wire against the ring direction and a separate
posting". Reverted rather than shipped unproven, so this branch stays a clean
boot candidate.
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.