Repository navigation
Conversation
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 16, 2026
…st bypassed. User 16.09.: 'why not replace it everywhere at once and then boot'. Every arena host pool (KV, draft, mamba) is bound eagerly -- at controller init, at every canonical rebind, at the draft-window install, and by the mamba prefetch itself -- and an unbound pool is a named refusal (arena_unbound), never a staging copy: no placeholders, no anchor-slot fallback, no foreign ids in a staging buffer. The staging rows shrink to a fallback id range: KV/draft 0.05 GB (~1.5k rows, was 1 GB per rank), the mamba anchor pool 100 MiB (2 slots, was 13); SGLANG_HICACHE_ARENA_STAGING_GB takes a float, SGLANG_WEG2_MAMBA_ANCHOR_MIB overrides the anchor size (the ledger still prices S=1/M conservatively). Tests: 281 green across arena/mamba/controller/tree/ledger; the three 1386 dry-run tests are red on the live box at the previous tip as well.
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Sep 16, 2026
… L2 arena is priced. The ledger never carried the shm arena files (24.96 GiB KV + 1.56 GiB draft + 11.7 GiB mamba = 37.19 GiB on this model) while it still charged the 1 GB rings and the 600 MiB anchors that sgl-project#1430 shrank to 0.05 GB / 100 MiB: new term arena_gib (in the arm sum and the terms line), rings/anchors priced at their REAL fallback sizes (staging_gb / anchor_mib), all derived by the launcher from config.json and the same environment the ranks get (blob size cross-checked against the arena file: 78,446,592 B). Mamba arena 160 slots so the whole term fits the measured headroom. (2) the L3 return path: a page or blob that left the arena for the disk is read straight into a fresh slot and completed (arena_fill_from_disk), wired into the KV, draft and mamba read sites; before this the arena was a write-only sink and every evicted page was recomputed. Tests: 1432 (2), 1433 (2), 1361, 1235, 1397 wiring, 1427 green.
efschu
pushed a commit
to efschu/htsglang
that referenced
this pull request
Sep 16, 2026
… we have bs6'. Not intended: the front's D-seat gate takes D's mem_pool_host.available_size() as the rows D can still prefetch into (WEG2 D-SEAT-WAIT need=97872 available=1526), and since sgl-project#1430 that was the staging fallback -- so the six parked 100k prompts were admitted one at a time, each waiting for the previous to finish. Bound to the arena, available_size() now answers with the arena's free slots; staging_free() keeps the fallback count and alloc() stays bounded by it. Test pins both.
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.