mirror of
https://github.com/hasso5703/alzeo.git
synced 2026-12-06 12:54:19 +01:00
install.sh: a new 64 GB box ends its install on Nemotron 3.5 Bolt
On a 64 GB DGX Spark the 27B gets two requests and a small pool: its mamba cache, sized per running request, takes much of what the budget leaves after the weights (measured on a 64 GB budget, 2026-10-24), and SGLang caps the requests at six of its slots each. Bolt, which NVIDIA names first for that box, runs a 262,144-token window there. So a new 64 GB box ends its install on Bolt (Hasan, 2026-10-24): once its 27B has proved itself, Bolt is prepared and loaded as the cockpit's Load does it (prepare-lane.sh, then switch-model.sh, which makes it the boot lane), and the 27B stays a Load away. A Bolt that does not come up leaves the 27B serving, with a note. A box that already boots a lane keeps it, and a run that names a 27B target or leaves Bolt out keeps the 27B. --recommended, what a new box gets, keeps Bolt on such a box. The tests run install.sh's own lines with prepare-lane.sh, switch-model.sh and systemctl stubbed: a new 64 GB box ends on Bolt and a failure keeps the 27B (both fail on the old code), nothing moves otherwise, and --recommended keeps Bolt on 64 GB only (fails on the old code). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d62285c6ea
commit
bef405e567
2 files changed
+73
-1
No files matched your search
+17
-1
@@ -886,9 +886,10 @@ if [ -z "$SECONDARY" ] && systemctl is-enabled --quiet qwen38-nemotron.service 2
|
||||
&& [ "$SGL_ENABLED" -eq 0 ] && [ "$FLASH_ENABLED" -eq 0 ]; then
|
||||
if [ -n "$_ENV_MODEL_CHOICE" ]; then
|
||||
echo "MODEL_CHOICE=$_ENV_MODEL_CHOICE given on a box booting the Nemotron lane: making that text lane the boot lane again."
|
||||
elif [ "$RECOMMENDED" -eq 1 ]; then
|
||||
elif [ "$RECOMMENDED" -eq 1 ] && [ "$MEM_CLASS" != 64 ]; then
|
||||
echo "--recommended on a box booting the Nemotron lane: the 27B lane becomes the boot lane again, as on a new box."
|
||||
else
|
||||
# (a new 64 GB box serves Bolt itself, so --recommended keeps it there)
|
||||
NEMOTRON_BOOT=1
|
||||
echo "The Nemotron lane is this box's boot lane: this run brings the other lanes up to date"
|
||||
echo "without making one of them the boot lane again. Switch from the cockpit when you want another."
|
||||
@@ -3813,6 +3814,21 @@ except Exception as e:
|
||||
lane_line "FP4-Local " "$FLASH_LOCAL_STATE" flash-local flash-local "121 GB" "$FLASH_LOCAL_UNIT_PATH"
|
||||
lane_line "Ornith 122B" "$ORNITH_122B_STATE" ornith-122b ornith-122b "96 GB" "$ORNITH_122B_UNIT_PATH"
|
||||
[ "$LANE" = "27b" ] && echo " Benchmark : ./bench.sh"
|
||||
# A 64 GB DGX Spark serves Nemotron 3.5 Bolt (Hasan, 2026-10-24): there the 27B gets 2 requests
|
||||
# and a pool of 46,700 to 92,415 tokens on a 64 GB budget (measured 2026-10-24, its mamba cache
|
||||
# taking much of what is left), where Bolt runs a 262,144-token window at 140 tok/s on code. A
|
||||
# new box has proved its 27B by now: Bolt is prepared and loaded as the cockpit's Load does it,
|
||||
# and the 27B stays a Load away. A box that already boots a lane keeps it, and a run that
|
||||
# names a 27B target, or leaves Bolt out, keeps the 27B.
|
||||
if [ "$MEM_CLASS" = 64 ] && [ -z "$INSTALLED_CHOICE" ] && [ "$SIDE_BOOT" -eq 0 ] && [ -z "$SECONDARY" ] \
|
||||
&& [ -z "$_ENV_MODEL_CHOICE" ] && [ "$WANT_NEMOTRON" -eq 1 ]; then
|
||||
step "A 64 GB DGX Spark serves Nemotron 3.5 Bolt: preparing it, then switching to it (the 27B stays installed)"
|
||||
if bash "$REPO_DIR/prepare-lane.sh" nemotron && bash "$REPO_DIR/switch-model.sh" nemotron; then
|
||||
echo " Nemotron 3.5 Bolt serves now, and at boot; the 27B is a Load away (the cockpit, or ./switch-model.sh stock)"
|
||||
else
|
||||
echo "NOTE: Bolt did not come up (see above), so the 27B keeps serving. Load Bolt from the cockpit to try again."
|
||||
fi
|
||||
fi
|
||||
record_install full
|
||||
exit 0
|
||||
fi
|
||||
|
||||
@@ -144,6 +144,62 @@ PREPARE_27B_PULL = ' local img_need=48\n'
|
||||
PREPARE_SIDE = ' exec bash "$HERE/install-$1.sh" --prepare ;;\n'
|
||||
|
||||
|
||||
class ANew64GBBoxServesBolt(unittest.TestCase):
|
||||
"""A 64 GB DGX Spark serves Nemotron 3.5 Bolt (Hasan, 2026-10-24): the 27B gets 2 requests and a
|
||||
small pool on that budget. A new box ends its install on Bolt, prepared and loaded as the
|
||||
cockpit's Load does it; a box that boots a lane keeps it. install.sh's own lines run here, with
|
||||
prepare-lane.sh, switch-model.sh and systemctl replaced by stubs that write down their calls."""
|
||||
|
||||
def epilogue(self, cls="64", installed="", side_boot="0", secondary="", env_choice="", want="1", prep_rc=0):
|
||||
d = pathlib.Path(tempfile.mkdtemp(prefix="bolt-first-"))
|
||||
self.addCleanup(shutil.rmtree, d, True)
|
||||
for name, rc in (("prepare-lane.sh", prep_rc), ("switch-model.sh", 0)):
|
||||
(d / name).write_text(f'echo "{name} $*" >> "{d}/calls"\nexit {rc}\n')
|
||||
block = between(INSTALL, ' [ "$LANE" = "27b" ] && echo " Benchmark : ./bench.sh"\n', " record_install full\n")
|
||||
script = ("set -euo pipefail\nstep(){ echo \"== $*\"; }\nrecord_install(){ :; }\n"
|
||||
f'REPO_DIR="{d}"; LANE=27b; MEM_CLASS={cls}; INSTALLED_CHOICE="{installed}"; SIDE_BOOT={side_boot}\n'
|
||||
f'SECONDARY="{secondary}"; _ENV_MODEL_CHOICE="{env_choice}"; WANT_NEMOTRON={want}\n' + block)
|
||||
r = subprocess.run(["bash", "-c", script], capture_output=True, text=True, timeout=30)
|
||||
self.assertEqual(r.returncode, 0, r.stdout + r.stderr)
|
||||
calls = (d / "calls").read_text().splitlines() if (d / "calls").exists() else []
|
||||
return r.stdout, calls
|
||||
|
||||
def test_a_new_64_gb_box_ends_its_install_on_bolt(self):
|
||||
out, calls = self.epilogue()
|
||||
self.assertEqual(calls, ["prepare-lane.sh nemotron", "switch-model.sh nemotron"])
|
||||
self.assertIn("Nemotron 3.5 Bolt serves now, and at boot", out)
|
||||
|
||||
def test_a_bolt_that_does_not_come_up_leaves_the_27b_serving(self):
|
||||
out, calls = self.epilogue(prep_rc=1)
|
||||
self.assertEqual(calls, ["prepare-lane.sh nemotron"])
|
||||
self.assertIn("the 27B keeps serving", out)
|
||||
|
||||
def test_nothing_else_is_moved(self):
|
||||
for kw in ({"cls": "128"}, {"installed": "27b"}, {"side_boot": "1"}, {"secondary": "27b"},
|
||||
{"env_choice": "uncensored"}, {"want": "0"}):
|
||||
with self.subTest(**kw):
|
||||
out, calls = self.epilogue(**kw)
|
||||
self.assertEqual(calls, [])
|
||||
self.assertNotIn("Bolt", out)
|
||||
|
||||
def test_recommended_keeps_bolt_on_a_64_gb_box(self):
|
||||
# --recommended is what a new box gets, and a new 64 GB box serves Bolt
|
||||
d = pathlib.Path(tempfile.mkdtemp(prefix="bolt-rec-"))
|
||||
self.addCleanup(shutil.rmtree, d, True)
|
||||
(d / "systemctl").write_text('#!/bin/sh\ncase "$*" in *qwen38-nemotron.service*) exit 0 ;; esac\nexit 1\n')
|
||||
(d / "systemctl").chmod(0o755)
|
||||
block = between(INSTALL, "# The Nemotron lane is one too", "# And the Nemotron Super lane")
|
||||
for cls, boot, said in (("64", "1", "The Nemotron lane is this box's boot lane"),
|
||||
("128", "0", "the 27B lane becomes the boot lane again")):
|
||||
with self.subTest(cls=cls):
|
||||
script = (f'set -euo pipefail\nPATH="{d}:$PATH"\nSECONDARY=""; SGL_ENABLED=0; FLASH_ENABLED=0\n'
|
||||
f'_ENV_MODEL_CHOICE=""; RECOMMENDED=1; MEM_CLASS={cls}\n' + block + '\necho "BOOT=$NEMOTRON_BOOT"\n')
|
||||
r = subprocess.run(["bash", "-c", script], capture_output=True, text=True, timeout=30)
|
||||
self.assertEqual(r.returncode, 0, r.stdout + r.stderr)
|
||||
self.assertIn(f"BOOT={boot}", r.stdout)
|
||||
self.assertIn(said, r.stdout)
|
||||
|
||||
|
||||
class TheRunSaysIt(unittest.TestCase):
|
||||
"""What install.sh says of a 64 GB box, run from its own lines (found in review, 2026-10-23)."""
|
||||
def too_big_fn(self):
|
||||
|
||||
Reference in new issue
Block a user