Repository navigation
Enable cuda graph by default - #612
Merged
Merged
Conversation
timethink
pushed a commit
to timethink/sglang
that referenced
this pull request
Mar 9, 2025
vschandramourya
pushed a commit
to vschandramourya/sglang
that referenced
this pull request
Feb 3, 2026
* fix rebase error. * fix router. * add log. --------- Co-authored-by: root <[email protected]>
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Aug 6, 2026
…priced per rank into the sgl-project#593 reserve and sgl-project#602 corridor late terms — inherited 70 MiB honestly labelled CALIBRATED with a measured replacement path via the flight recorder; communicator_groups declaration corrected both directions with an AST contract test against parallel_state; runbook 16.8 reserve semantics + 16.9 fill side documented OPEN)
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Aug 14, 2026
…mmunicators the ledger was missing MERGE-R9 12.6, the one inherited mem_ledger red, and load-bearing rather than cosmetic: initialize_phase_flip_secondary_groups builds flip_tp, flip_dcp and flip_pp over the same world (parallel_state.py:3502-3512), and sgl-project#605 put the nccl_init_end mark AFTER that call on purpose (model_runner.py:1985) -- so the first boot to measure TERM_NCCL_BUFFERS measures those three communicators while the term's signature does not know they exist. Undeclared, they hit the OOM direction twice: their buffers were charged to no ledger row, and they left nccl_signature unmoved, so a figure measured on a non-flip launch was silently reusable on a flip one. Both directions of the contract now hold. The over-declaration arm was already green and stays green: flip_pp is emitted with world_size=1 (the call site passes pp_size=1) and classify_communicator_groups -- not this inventory -- is what decides a single-rank group allocates nothing. Deciding it at the inventory would hide the group the moment the call site passes a different pp_size. flip_dcp is emitted on the CONSTRUCTION SITE's condition (dcp_size > 1 of the SECONDARY set), not on "dcp is enabled": the secondary set's DCP width is len(--phase-flip-tp-vector), and the primary --dcp-size has nothing to do with it. The width is read from the vector the call site itself reads, and server_args pins len(vector) == pp_size (server_args.py:7708), so the inventory cannot drift from the launch. A malformed vector falls back to pp_size instead of raising -- server_args is the judge of argv and the ledger runs before it; a bad flag must not arrive as a memory-ledger stack trace. TEST RESULTS (venv /spinning/htsglang-gpu/.venv, CUDA_VISIBLE_DEVICES=99, PYTHONPATH=<worktree>/python, pytest --color=no): base 99a4b0a test/registered/unit/mem_ledger/ 1 failed, 437 passed FAILED test_communicator_group_contract_612.py:: TestTheDeclarationNamesEveryGroupTheRuntimeBuilds:: test_no_runtime_group_is_missing_from_the_declaration -> ['flip_dcp', 'flip_pp', 'flip_tp'] != [] here test/registered/unit/mem_ledger/ 444 passed, 0 failed Name-diffed: the base red is gone and the delta is exactly the six new pins in TestThePhaseFlipSecondaryGroupsAreDeclared. No test changed verdict in the other direction.
efschu
added a commit
to efschu/htsglang
that referenced
this pull request
Aug 17, 2026
…unification sgl-project#612: declare the decoupled_kv construction site in RUNTIME_COMMUNICATOR_GROUPS. Declaration completeness only -- the contract checks construction SITES, and initialize_decoupled_kv_group has no production caller yet, which the entry says rather than implies. No behaviour change. sgl-project#584: file both constants the newly-merged ratchet caught, with differentiated verdicts rather than a baseline bump. planner/boot_instruments.py:: _CHAIN_TOLERANCE_MIB is NOT A DEMAND DECISION and the call site was read to say so: it is the rounding slack for verifying the budget-chain identity, reserving nothing. managers/phase_flip_seam_reserve.py::DEFAULT_ARMING_MARGIN_MIB is NEEDS AUDIT: it genuinely gates a VRAM decision, its own comment argues it is an instrument tolerance, and that call belongs to the sgl-project#662-F4 owner. TICKET_702_unify_revisions.md files the decision that stopped fix/602-fill-side: WorldMemory canonical (boot 2 validated it), PhasePoolModel's attention-layer divisor and sgl-project#723 frontier completeness ported as an EXTENSION, never a parallel model. The four mechanical resolutions from that aborted merge are recorded so the next attempt does not re-derive them.
efschu
added a commit
to efschu/htsglang
that referenced
this pull request
Aug 17, 2026
Merged the serving lineage in. Three doc conflicts: exec won two on CONTENT, not category -- its edits correct my own run-card (--hicache-size takes an integer number of gigabytes, so my '5G' would have failed the boot the card exists to drive) and retract a NOTE_545 claim with a real attach/detach run behind it. Docs-keep-mine would have shipped a bad flag value. sgl-project#630 did NOT clear, and the reason is a cross-lane contradiction rather than a missing patch: sgl-project#703 removed the PARSE-TIME blocker because the runtime twin was gone (7336c08), exec restored the runtime twin (90e84ad), and restoring the parse-time one would refuse the very boot this train's own run-card tells F4-r4 to perform. Left failing with the decision named. sgl-project#612 declared, sgl-project#584 both constants filed with differentiated verdicts. New: exec's double-billing fix reds two sgl-project#550 admission tests. Its credit-back is sound only under the invariant its own comment states (registration follows allocation); sgl-project#550's fixture registers without allocating. Not patched -- either the fixture is impossible or the credit-back under-charges, and rewriting one lane's test to match another's model would erase the question. Zero UNEXPLAINED new failures: three remain, each with cause and owner.
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.