run.sh: a 64 GB box is refused, as the --no-service that prepares it is

6aabb40 refused ./install.sh --no-service on a 64 GB DGX Spark because
./run.sh runs the 27B with a 128 GB box's memory settings, but run.sh
itself still ran there: after an install, stopping the service and
running ./run.sh, the A/B path its header gives, started the 128 GB
settings (100g, a fraction of 0.50, 96 mamba slots, 8 requests) on a
box with half the memory, and took MODEL_CHOICE=fp8 too (found in
review, 2026-10-23). It asks boxmem.py for the class first and refuses
a 64 GB box, naming the service that runs the 27B sized for it.

The test runs the real run.sh with a throwaway HOME and docker fenced:
a 64 GB box is refused with stock and with fp8 (both fail on the old
code), and a 128 GB one is not.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Hasan BasbunarandClaude Opus 5.5 committed 2026-10-24 00:01:32 +02:00
1 parent 252720b493
commit 6f6ef5e356
2 files changed
+18

No files matched your search

+5
View File
@@ -25,6 +25,11 @@ unset _v
# must still break if the name disappears, which is what this line is for.
grep -qE '^CONTEXT_MODE=' "$REPO_DIR/install.sh" \
|| die "install.sh no longer defines CONTEXT_MODE (repo layout changed?)"
# A 64 GB DGX Spark: this runs the 27B with a 128 GB box's memory settings, where its own unit
# (qwen38-sglang-64.service.template) has settings sized for it, and it took the FP8 targets too.
# Refused there, as ./install.sh --no-service is, which prepares it (found in review, 2026-10-23).
[ "$(python3 -I "$REPO_DIR/boxmem.py" class 2>/dev/null)" != 64 ] \
|| die "./run.sh runs the 27B with the memory settings of a 128 GB DGX Spark, and this box is a 64 GB one. Its service, which ./install.sh installs, runs the 27B with settings sized for it."
# run.sh is the foreground path, which serves the native window by definition.
# An explicit CONTEXT_MODE=1m from the environment survives this and is refused
# by name below, which is the behaviour that path has always had.
+13
View File
@@ -224,6 +224,19 @@ class TheRunSaysIt(unittest.TestCase):
self.assertNotIn("needs a 128 GB DGX Spark", r.stderr)
self.assertEqual(wall.reached(record), [])
def test_run_sh_refuses_a_64_gb_box(self):
# it runs the 27B with a 128 GB box's memory settings and took MODEL_CHOICE=fp8: refused there,
# as --no-service, which prepares it, is (found in review, 2026-10-23). Its throwaway HOME holds
# no key, so a run that went on stops at that, and docker is fenced
said = "./run.sh runs the 27B with the memory settings of a 128 GB DGX Spark, and this box is a 64 GB one."
for cls, choice in (("64", "stock"), ("64", "fp8"), ("128", "stock")):
with self.subTest(cls=cls, choice=choice):
env, record = wall.fenced_env(QWEN38_MEMORY_CLASS=cls, MODEL_CHOICE=choice)
r = subprocess.run(["bash", str(REPO / "run.sh")], capture_output=True, text=True, timeout=60, env=env)
self.assertEqual(r.returncode, 1, r.stderr[-400:])
(self.assertIn if cls == "64" else self.assertNotIn)(said, r.stderr)
self.assertEqual(wall.reached(record), [])
def test_prepare_lane_says_a_side_lane_needs_128_gb_not_an_install(self):
# its unit is never there on a 64 GB box, and ./install.sh leaves the lane out: the old
# answer sent the owner round in a circle (found in review, 2026-10-23). Walled before the