Skip to content

Revert "[Minor] Raise exception for wrong import (#1409)" - #1432

Merged
merrymercy merged 1 commit into
mainfrom
revert-1409-ying-minor
Sep 15, 2024
Merged

merrymercy merged 1 commit into
mainfrom
revert-1409-ying-minor

Conversation

@Ying1123

@Ying1123 Ying1123 commented Sep 15, 2024 •

Copy link
Copy Markdown
Contributor

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_server when 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.

@merrymercy
merrymercy merged commit 2abe4f1 into main Sep 15, 2024
@merrymercy
merrymercy deleted the revert-1409-ying-minor branch September 15, 2024 22:22
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants