Repository navigation
Revert "[Minor] Raise exception for wrong import (#1409)" - #1432
Merged
Merged
Conversation
This reverts commit 9a903a8.
5 tasks done
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
… 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
…; --pin-ledger-arm-m defaults to 600; test_weg2_hicache_disabled_1386 runs the boot form (ring off, authoritative) * choose_host_ledger charged the 33.6 GiB arena (sgl-project#1432) on hicache-off boots too; the term is now conditional on hicache_disabled at the kwargs site (charge_terms already zeroes it, but the arm line printed 33.60). * the default pin 2400 predates the arena in the ledger; 600 is what every arm has pinned since (M=600 funds at excess -1.2 GiB on this box). * test_weg2_hicache_disabled_1386: _main_argv carries --weg2-weights-cpu-backup off --weg2-xchg-inject authoritative -- the boot form -- so the fixture's ring-era evidence no longer arms a 42.96 GiB host ring beside the arena. 22 passed (was 2 sockel-red).
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.
This reverts commit 9a903a8.
It prevents Python programs that use SGL to be adjacent to the SGL root dir.
But it also raises an exception for
python -m slang.launch_serverwhen run adjacent to SGL root dir, which previously looked into lib instead.I'm not sure if we still want the exception or not, or if there is a better way.