Repository navigation
[Event] Add public meeting invite to README - #1458
Merged
Merged
Conversation
zhyncs
approved these changes
Sep 18, 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
Sep 17, 2026
… rank -- CTRL-RECV at intake, SLEEP-CHUNK pause, GROUP-FENCE join Boot weg2xsn214: the sleep-kv stage stays at ~860 ms although no rank zeroes any more (sgl-project#1457/b) -- PP0 joins the KV-release fence after 789 ms waiting for PP1/PP2, whose second-granular logs only say ':28'. Every Weg-2 control request (FlushCache / Release / Resume) now logs its arrival per rank with t=%.3f, and the pause and fence lines carry t= too, so the next boot names the wait (chain forwarding, the row-chain gate, or the handler itself).
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Sep 17, 2026
…ward, the follower's gate verdict, a blocked chain receive Boot weg2xsn215 (sgl-project#1458): PP1/PP2 received the quiesce FlushCache and the KV ReleaseMemoryOccupation ~0.9 s after PP0 handled them (PP0 fence 924 ms). The chain's stall timeout is 0 by default and the follower's recv is gated by _pp_row_chain_pending/_pp_row_any_proxy_signal, so the wait sits either in PP0's async send commit or in the follower's gate. Three stamps name it: sgl-project#1460 CTRL-FWD (PP0 puts a control request on the chain), sgl-project#1460 FOLLOWER-GATE (the follower's verdict, at most every 250 ms) and sgl-project#1460 CHAIN-RECV blocked (a blocking chain receive >= 50 ms).
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Oct 2, 2026
…ke RPC never queues behind a long prompt (N5a ep7, CTRL-RECV +720 ms) Measured (N5a b49f028 1002_114540, D->P flip ep7, legs 2036 ms against ~1400): the front posted /weg2/ple_prefetch_hint for a 110k-token prompt to P 0.13 s before the flip (`WEG2 PLE-HINT ... ms=1366`). P's HTTP server ran build_ple_prefetch_hint -- chat template + tokenizer over the whole prompt, synchronous work inside the async handler -- ON its event loop, so P's resume RPC for the flip reached PP0's scheduler 720 ms after the front issued it (sgl-project#1458 CTRL-RECV); every other D->P flip of N4p/N4q/N5a: 1-3 ms. The D depositors then waited 715-873 ms on credit. On the 27B (no PLE gather on P) the hint is a no-op in the scheduler, so the stall was pure cost. Change (way (b) of the order: P works the hint off its control path): * ple_admit_hint: build_ple_prefetch_hint_sync (the old body, synchronous), build_ple_prefetch_hint (the old coroutine form, unchanged behaviour), and build_ple_prefetch_hint_off_loop -> (hint, ms, off_loop): the build in a worker thread (asyncio.to_thread). SGLANG_WEG2_PLE_HINT_OFF_LOOP (unset = on, 0 = on the loop as before). * http_server /weg2/ple_prefetch_hint uses it and prints `WEG2-PLE-HINT-BUILD rid= tokens= ms= off_loop=yes|no` per hint. A hint is a prefetch: one that now lands after the wake costs its gain at most, never the wake. The dispatch to the scheduler is unchanged. Expected (computed): the CTRL-RECV latency of P's resume stays at 1-3 ms also when a hint is being tokenized; a flip of the ep7 shape -0.7 s (D->P). The check on the metal: per D->P flip, front `WEG2-RPC ISSUED leg=wake group=P path=/resume_memory_occupation` against PP0 `sgl-project#1458 CTRL-RECV kind=ResumeMemoryOccupationReqInput t=` (tool legs_ana/ple.py), and the `WEG2-PLE-HINT-BUILD ... off_loop=yes` lines. Tests (CUDA_VISIBLE_DEVICES="", flock pytest.lock, systemd-run MemoryMax=4G, nice 19, ionice c3, -n 1): new test_weg2_ple_hint_off_loop_1002.py (5: the loop keeps ticking under a 0.6 s tokenization stand-in, same hint, switch off = on-loop, endpoint wiring) + ple_hint_anthropic_0929 + models/ qwen4_exp_ple_admit_h43: base cd27e98 5 failed (all new) / 29 passed, this commit 34 passed.
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Oct 16, 2026
…emo-lite, FLUSH-UNBACKED named The P->D quiesce of 11:29:08 (boot ..._1f4b3e73d4_1016_103428): 24 /flush_cache polls code=400, 14278 ms (WEG2-QUIESCE-PENDING first_pending_to_200_ms=14127), every refusal "not-idle because: hicache_backup(1)" / hicache_write_through, blocking_rank 1 (and 0). In the window 11:29:08-11:29:22: PP0 130 PUBLISH-SWEEP against 26 sgl-project#1470 FLUSH-PUBLISH, PP1 23 / 0, PP2 24 / 0 -- a follower never runs flush_cache per poll (CTRL-RECV -> CTRL-FWD, answer through the sgl-project#1268 lap), so EVERY follower sweep and most of PP0's came from the bubble publisher (a sweep per 0.2 s of idle loop, max 16), and their write-throughs, acks and #106S sidecar store writes were the blockers the vote saw. Also 29 #1427r CLAIM-RELEASE site=claim_refused (13/9/7) and 70 sgl-project#1421 BACKUP-REFUSED why=arena_claim: each sweep's first claim on the full arena was a real one, partially taken and given back. Correction recorded: every write-back the window issued had room for its whole need (alloc_write issues only on a full claim); the 14 s are real writing into an almost full arena -- the room is F1's (shared slot spill, ae3675d). (a) While a quiesce is open -- from the first poll a rank receives (request_receiver sgl-project#1458 intake, every rank; also flush_cache) until the sleep leg (ReleaseMemoryOccupation), the flush's reset, or a launched batch -- the bubble publisher issues no sweep; publishing belongs to the sgl-project#1470 loop alone (max_issue 256, up to 64 rounds per poll), no node is lost. Switch SGLANG_WEG2_BUBBLE_QUIESCE_PAUSE (default on). (b) MEMO-LITE: a node whose last claim was refused for arena room is asked the room question (_weg2_full_arena_refuses -> claim_would_refuse) before any claim, also as a sweep's first claim; a memo skip engages the sweep's SWEEP-FULL-ARENA mode. Remembered until a claim of it succeeds (bounded 4096). Switch SGLANG_WEG2_SWEEP_REFUSED_MEMO (default on). (c) sgl-project#1470 FLUSH-UNBACKED site= nodes= tokens= pending= ids= before the flush's reset: device KV neither on the host nor in the store that the reset drops -- measured, never silent (planner: do we lose tokens today?). The NF-W3-DRAIN invariant (an un-acked store backup blocks the vote) is untouched; its test stays green unchanged. No strict per-quiesce memo (planner decision: no token loss for a faster flip). Files: managers/weg2_bubble_publish.py (quiesce_begin/end, pause), scheduler_components/request_receiver.py (every rank opens at the poll, the sleep leg closes), managers/scheduler.py (flush_cache opens, names, closes at the reset), mem_cache/unified_radix_cache.py (memo-lite in publish_unbacked_sweep; _w3_arena_spill / _weg2_evict_spill_room / host_only_spill untouched), managers/weg2_flush_nonblock.py (unbacked_census, note_unbacked_at_reset). Tests (pytest_gedeckelt): 45 passed in one turn: test_weg2_quiesce_publish_f5_1016.py (6), the UNCHANGED invariant test_weg2_backup_ack_drain_on_vote_1014.py, test_sweep_full_arena_skip_1007.py, test_weg2_bubble_publish_1406.py, test_weg2_flush_publish_join_1470.py, test_flush_sweep_memo_1403.py, test_weg2_idle_lap_own_work_1470_0929.py, plus the mutant aggregate. RED: mutant F5r (bubble pause off) -- the 11:29:08 window runs ~56 opportunistic sweeps in 14 s. Mutants KILLED: F5a the quiesce never opens, F5b a launched batch does not end it, F5c memo-lite never consulted, F5d never records, F5e a memo skip does not engage the full-arena mode, F5f the census counts backed nodes, F5g a follower's intake does not open the quiesce. Re-applied on top of the F3/F2 review fixes 7e22656 (cherry-pick of 9dd5b7c3cf; the mutant script merged: the review list plus the F5 constants and entries). On this integrated tip: 69 passed in one turn -- the F5 test, the UNCHANGED invariant test_weg2_backup_ack_drain_on_vote_1014.py, test_sweep_full_arena_skip_1007.py, test_weg2_bubble_publish_1406.py, test_weg2_flush_publish_join_1470.py, test_flush_sweep_memo_1403.py, test_weg2_idle_lap_own_work_1470_0929.py, test_weg2_room_arbiter_1016.py, test_weg2_room_verdicts_1016.py; mutants F5r (RED), F5a-F5g, F3r, F2r all KILLED.
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.