mirror of
https://github.com/hasso5703/alzeo.git
synced 2026-12-05 12:24:28 +01:00
install.sh: a 64 GB box refuses --no-service, whose run.sh serves a 128 GB box's settings
--no-service prepares ./run.sh, which runs the 27B with the native unit's memory settings, the very ones the 64 GB unit exists to change (found in review, 2026-10-23): on a 64 GB box it would have failed to start, or started with a pool too small to use. The run refuses it there before anything moves and says the service's unit is the one sized for the box. The new test fails on the old code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3c8995c1a1
commit
6aabb40bb4
3 files changed
+15
-4
No files matched your search
@@ -223,8 +223,9 @@ a 64 GB box it installs what fits it, and nothing else:
|
||||
|
||||
Each refusal comes before a byte is fetched or pulled: in `install.sh`, in each lane's installer, in
|
||||
`switch-model.sh`, and so in the cockpit's Load, where a lane a 64 GB box cannot hold says it needs
|
||||
a 128 GB DGX Spark. The cockpit names the box over its pool, from its DMI ("ASUS Ascent GX10,
|
||||
64 GB"). Measured [how: on the reference box with 64 GiB held aside, N runs, the median].
|
||||
a 128 GB DGX Spark. `--no-service` is refused there too, as `./run.sh` serves a 128 GB box's
|
||||
settings: the service's unit is the one sized for 64 GB. The cockpit names the box over its pool,
|
||||
from its DMI ("ASUS Ascent GX10, 64 GB"). Measured [how: on the reference box with 64 GiB held aside, N runs, the median].
|
||||
|
||||
### Your choices, and how they combine
|
||||
|
||||
|
||||
@@ -1252,6 +1252,9 @@ fi
|
||||
# A 64 GB box serves neither the flash lane (its checkpoint alone is 135.3 GB) nor the 1M window,
|
||||
# whose KV pool is more memory than the box has.
|
||||
if [ "$MEM_CLASS" = 64 ]; then
|
||||
# run.sh serves the native unit's settings, the ones the 64 GB unit exists to change (found in
|
||||
# review, 2026-10-23): a 64 GB box gets the 27B as a service, its unit sized for it
|
||||
[ "$NO_SERVICE" -eq 0 ] || die "--no-service prepares ./run.sh, which runs the 27B with the memory settings of a 128 GB DGX Spark, and this box is a 64 GB one. Drop --no-service: the service's unit is sized for this box."
|
||||
[ "$LANE" != flash ] || die "The flash lane needs a 128 GB DGX Spark (its checkpoint alone is 135.3 GB), and this box is a 64 GB one. MODEL_CHOICE=stock ./install.sh serves the 27B, sized for it."
|
||||
# custom is a 27B unit serving a model of its own, whose size boxmem.py cannot know: kept, as on
|
||||
# any box (it read as an FP8 target, and the box could not be updated, found in review, 2026-10-23)
|
||||
|
||||
@@ -157,14 +157,21 @@ class TheRunSaysIt(unittest.TestCase):
|
||||
self.assertEqual((rc, out.strip()), (0, "the flash lane needs a 128 GB DGX Spark, and this box is a 64 GB one"), err)
|
||||
|
||||
def test_a_27b_unit_serving_a_model_of_its_own_still_updates(self):
|
||||
block = between(INSTALL, 'if [ "$MEM_CLASS" = 64 ]; then\n [ "$LANE" != flash ]', "\nfi\n")
|
||||
block = between(INSTALL, 'if [ "$MEM_CLASS" = 64 ]; then\n # run.sh serves', "\nfi\n")
|
||||
for choice, goes in (("custom", True), ("stock", True), ("fp8", False)):
|
||||
with self.subTest(choice):
|
||||
rc, out, err = bash(f"MEM_CLASS=64\nLANE=27b\nCONTEXT_MODE=\nMODEL_CHOICE={choice}\n{block}"
|
||||
rc, out, err = bash(f"MEM_CLASS=64\nNO_SERVICE=0\nLANE=27b\nCONTEXT_MODE=\nMODEL_CHOICE={choice}\n{block}"
|
||||
'echo "went on"', "64")
|
||||
self.assertEqual(rc == 0 and out == "went on\n", goes, err)
|
||||
self.assertNotIn("invalid choice", err)
|
||||
|
||||
def test_no_service_is_refused_as_run_sh_serves_a_128_gb_box(self):
|
||||
block = between(INSTALL, 'if [ "$MEM_CLASS" = 64 ]; then\n # run.sh serves', "\nfi\n")
|
||||
rc, out, err = bash(f"MEM_CLASS=64\nNO_SERVICE=1\nLANE=27b\nCONTEXT_MODE=\nMODEL_CHOICE=stock\n{block}"
|
||||
'echo "went on"', "64")
|
||||
self.assertEqual(rc, 1, err)
|
||||
self.assertIn("--no-service prepares ./run.sh, which runs the 27B with the memory settings of a 128 GB DGX Spark", err)
|
||||
|
||||
def test_a_forced_class_that_is_no_class_is_refused_by_its_name(self):
|
||||
for cls, ok in (("64", True), ("128", True), ("", True), ("64GB", False), ("96", False)):
|
||||
with self.subTest(cls):
|
||||
|
||||
Reference in new issue
Block a user