cockpit: a 64 GB box is offered nothing it cannot hold, and prepare-lane.sh refuses it before a pull

On a 64 GB box the 27B card still offered its FP8 versions, Library its Download of their
checkpoints, and the Image and Video views the ./install.sh --with- command that box refuses. A
Load of an FP8 version went as far as the switch, which refused it, and on a box whose 27B was not
prepared, prepare-lane.sh had pulled the SGLang image and the DFlash2 draft first (found in review,
2026-10-23), against the README's word that each refusal comes before a byte is pulled.

The machine panel carries the switch's targets that fit the box (boxmem.py), the FP8 versions are
shown and not to be picked, Library says such a checkpoint needs a 128 GB DGX Spark instead of
offering it, the Image and Video views say so too, and prepare-lane.sh refuses the flash lane and
an FP8 target on a 64 GB box before it pulls anything. The page's test fails on the old scripts,
and prepare-lane.sh's is run on the new one only (the old one goes on to docker).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Hasan BasbunarandClaude Opus 5.5 committed 2026-10-23 22:08:08 +02:00
1 parent 6aabb40bb4
commit f89a3ed3e3
10 files changed
+78 -15

No files matched your search

+8 -5
View File
@@ -438,9 +438,11 @@ _BOX: dict = {}
def box_info():
"""{cls, name, fits}: the box's memory class (128, 64 or None) and the name its maker sells it
under, as boxmem.py at the root of the repo reads them (loaded the way conformity.py is), and
the lanes' units that fit it. Read once: neither changes while the cockpit runs."""
"""{cls, name, fits, targets}: the box's memory class (128, 64 or None) and the name its maker
sells it under, as boxmem.py at the root of the repo reads them (loaded the way conformity.py
is), the lanes' units that fit it, and the switch's targets that do (the 27B's FP8 ones are
not a 64 GB box's: the page offered them, found in review, 2026-10-23). Read once: none of it
changes while the cockpit runs."""
if "info" not in _BOX:
try:
spec = importlib.util.spec_from_file_location("boxmem_for_cockpit", REPO_DIR / "boxmem.py")
@@ -448,9 +450,10 @@ def box_info():
spec.loader.exec_module(mod)
cls = mod.mem_class()
_BOX["info"] = {"cls": cls, "name": mod.machine()["name"],
"fits": sorted(u for lane, u in UNIT_OF_LANE.items() if mod.fits(lane, cls))}
"fits": sorted(u for lane, u in UNIT_OF_LANE.items() if mod.fits(lane, cls)),
"targets": sorted(t for t in mod.TARGETS if mod.target_fits(t, cls))}
except Exception: # noqa: BLE001 (a box that cannot be read is said as unknown, never a failed panel)
_BOX["info"] = {"cls": None, "name": None, "fits": None}
_BOX["info"] = {"cls": None, "name": None, "fits": None, "targets": None}
return _BOX["info"]
+5
View File
@@ -196,6 +196,11 @@ const laneFits = unit => {
const box = (F.machine || {}).box || {};
return box.cls !== '64' || !Array.isArray(box.fits) || box.fits.includes(unit);
};
// A switch target the same way: the 27B's FP8 ones are not a 64 GB box's (boxmem.py's targets)
const targetFits = target => {
const box = (F.machine || {}).box || {};
return box.cls !== '64' || !Array.isArray(box.targets) || box.targets.includes(target);
};
const NEEDS_128 = 'needs a 128 GB DGX Spark';
const installHint = unit => laneFits(unit) ? `Install it on the box: ${LANE_INSTALL[unit]}`
: `It ${NEEDS_128}, and this box is a 64 GB one.`;
+3 -2
View File
@@ -261,10 +261,11 @@ function imgWatch(on){
function imgRenderLane(){
const box = $('img-lane'), e = engines()[IMAGE_UNIT], s = servingEngine();
const ready = !!e && (e.state === 'ready' || e.state === 'degraded'); IS.available = ready;
const sig = !F.life ? 'wait' : !e ? 'absent' : ready ? 'ready' : TRANSITIONAL.has(e.state) ? 'boot' : 'down:' + (s ? s[0] : '');
const sig = !F.life ? 'wait' : !e ? (laneFits(IMAGE_UNIT) ? 'absent' : 'absent:64') : ready ? 'ready' : TRANSITIONAL.has(e.state) ? 'boot' : 'down:' + (s ? s[0] : '');
if (box.dataset.sig !== sig){
box.dataset.sig = sig; clear(box);
if (sig === 'absent'){ const b = el('div', 'banner info'); b.append(el('span', 'lamp')); const d = el('div'); d.append(el('b', null, 'The image lane is not installed. '), el('span', null, 'On the box: ./install.sh --with-image (46 GB, about 25 min).')); b.append(d); box.append(b); }
// on a 64 GB box the command would be refused: the lane needs a 128 GB one (review, 2026-10-23)
if (sig.startsWith('absent')){ const b = el('div', 'banner info'); b.append(el('span', 'lamp')); const d = el('div'); d.append(el('b', null, 'The image lane is not installed. '), el('span', null, sig === 'absent' ? 'On the box: ./install.sh --with-image (46 GB, about 25 min).' : `It ${NEEDS_128}, and this box is a 64 GB one.`)); b.append(d); box.append(b); }
if (sig === 'boot'){ const card = el('div', 'progress-card'); card.style.marginBottom = 'var(--s-5)'; const top = el('div', 'top'); top.append(el('b', null, 'Loading Qwen-Image'), el('span', 'eta'));
const m = el('div', 'meter'); m.append(el('i')); card.append(top, m); box.append(card); }
if (sig.startsWith('down')){ const card = el('div', 'banner info'); card.style.alignItems = 'center'; card.append(el('span', 'lamp' + (e.state === 'failed' ? ' err' : '')));
+3 -1
View File
@@ -24,7 +24,9 @@ function laneCard(unit){
const opts = LANE_TARGETS[unit].map(t => {
const b = el('button', 'opt', TARGET_SHORT_NAME[t] || TARGET_NAME[t]); b.type = 'button'; b.setAttribute('role', 'radio'); b.dataset.target = t;
b.title = TARGET_NAME[t];
b.addEventListener('click', () => { c.target = t; c.touched = true; renderLanes(); });
// a version a 64 GB box cannot hold is shown, and not to be picked (its Load would stop at the switch)
if (!targetFits(t)){ b.disabled = true; b.title = `${TARGET_NAME[t]}: ${NEEDS_128}`; }
b.addEventListener('click', () => { if (!targetFits(t)) return; c.target = t; c.touched = true; renderLanes(); });
return b;
});
const pickLine = el('p', 'pick-line');
+2 -1
View File
@@ -318,7 +318,8 @@ async function scanRegistry(fresh = true){
// a lane installed on demand and not prepared yet: the download runs in the image or the
// venv its first Load builds, so that Load is what downloads it
const lane = SIDE_LANE[TARGET_UNIT(t.target)], unbuilt = !!lane && (F.lanesReady || {})[lane] === false;
if (t.state !== 'complete' && t.installed && !unbuilt){
if (t.state !== 'complete' && !targetFits(t.target)) st.append(' ', el('span', 'muted', `it ${NEEDS_128}`));
else if (t.state !== 'complete' && t.installed && !unbuilt){
const b4 = el('button', 'btn sm ghost', t.state === 'incomplete' ? 'Finish the download' : 'Download'); b4.type = 'button';
b4.addEventListener('click', () => askAction('fetch', {target: t.target}));
st.append(' ', b4);
+4 -2
View File
@@ -161,9 +161,11 @@ function vidRenderLane(){
if (!ready){ VS.busy = false; VS.foreign = null; if (!VS.inflight){ VS.run = null; VID_NOW.run = null; VID_NOW.label = ''; } }
let sig, build;
if (!F.life){ sig = 'wait'; build = () => {}; }
else if (!e){ sig = 'absent'; build = () => {
else if (!e){ sig = laneFits(VIDEO_UNIT) ? 'absent' : 'absent:64'; build = () => {
const b = el('div', 'banner info'); b.append(el('span', 'lamp'));
const d = el('div'); d.append(el('b', null, 'The video lane is not installed. '), el('span', null, 'On the box: ./install.sh --with-video. It needs about 174 GB of disk and an hour.'));
// on a 64 GB box the command would be refused: the lane needs a 128 GB one (review, 2026-10-23)
const d = el('div'); d.append(el('b', null, 'The video lane is not installed. '), el('span', null, sig === 'absent'
? 'On the box: ./install.sh --with-video. It needs about 174 GB of disk and an hour.' : `It ${NEEDS_128}, and this box is a 64 GB one.`));
b.append(d); box.append(b); }; }
else if (ready){ sig = 'ready'; build = () => {}; }
else if (TRANSITIONAL.has(e.state)){
+4 -2
View File
@@ -57,12 +57,14 @@ class TheBox(unittest.TestCase):
def test_a_64_gb_box_and_the_two_lanes_that_fit_it(self):
self.assertEqual(self.box("64"), {"cls": "64", "name": "ASUS Ascent GX10",
"fits": ["qwen38-nemotron.service", "qwen38-sglang.service"]})
"fits": ["qwen38-nemotron.service", "qwen38-sglang.service"],
"targets": ["nemotron", "stock", "uncensored"]})
def test_a_128_gb_box_and_every_lane(self):
got = self.box("128")
self.assertEqual((got["cls"], got["name"]), ("128", "ASUS Ascent GX10"))
self.assertEqual(set(got["fits"]), set(self.cp.UNIT_OF_LANE.values()))
self.assertIn("fp8", got["targets"])
def test_the_machine_panel_carries_it(self):
self.box("64")
@@ -74,7 +76,7 @@ class TheBox(unittest.TestCase):
self.addCleanup(patch.stop)
self.cp._BOX.clear()
self.addCleanup(self.cp._BOX.clear)
self.assertEqual(self.cp.box_info(), {"cls": None, "name": None, "fits": None})
self.assertEqual(self.cp.box_info(), {"cls": None, "name": None, "fits": None, "targets": None})
self.assertIn("mem", self.cp.collect_machine())
+30 -2
View File
@@ -2261,14 +2261,27 @@ class TheBoxItIs(unittest.TestCase):
'qwen38-nemotron-super.service', 'qwen38-flash-local.service', 'qwen38-ornith-122b.service'];
for (const u of BIG) units.units[u].enabled = '';
const fits = %s === '64' ? ['qwen38-nemotron.service', 'qwen38-sglang.service'] : Object.keys(units.units);
const targets = fits.length === 2 ? ['nemotron', 'stock', 'uncensored'] : Object.keys(TARGET_NAME);
feed({config: CONFIG, units, lifecycle: life({'qwen38-sglang.service': eng('ready')}),
machine: {mem: {MemTotal: %s * GIB, MemAvailable: 20 * GIB, Cached: 2 * GIB, SwapTotal: 0, SwapFree: 0},
box: {cls: %s, name: 'ASUS Ascent GX10', fits}, cpu_pct: {cpu: 1}, load: [0, 0, 0], disks: {}}});
box: {cls: %s, name: 'ASUS Ascent GX10', fits, targets}, cpu_pct: {cpu: 1}, load: [0, 0, 0], disks: {}}});
const notes = BIG.map(u => BAYS.get(u).note.textContent);
showView('lanes');
const install = [...document.querySelectorAll('#view-lanes dt')].filter(d => d.textContent === 'Install').map(d => d.nextSibling.textContent);
BAYS.get('qwen38-flash.service').root.click();
report({notes, install, pool: txt('h-pool'), box: txt('mm-box'), toast: toastText()});
const toast = toastText();
// the 27B card's versions, and the Image and Video views of a box without those lanes
const versions = [...document.querySelectorAll('#view-lanes .opt')].filter(b => ['fp8', 'uncensored-fp8', 'stock'].includes(b.dataset.target))
.map(b => `${b.dataset.target}:${b.disabled}`).filter((v, i, a) => a.indexOf(v) === i);
showView('image'); imgRenderLane(); const image = txt('img-lane');
showView('video'); vidRenderLane(); const video = txt('vid-lane');
// Library's targets: a checkpoint not on the disk yet, its lane installed
__fetch = async url => url.startsWith('/api/registry') ? __response(200, {models: [], targets: [
{target: 'fp8', repo: 'Qwen/Qwen3.8-27B-FP8', state: 'missing', installed: true},
{target: 'stock', repo: 'RadixArk/Qwen3.8-27B-NVFP4', state: 'missing', installed: true}]}) : new Promise(() => {});
showView('library'); await scanRegistry(false); await __settle();
const library = [...$('reg-targets').tBodies[0].rows].map(r => r.textContent);
report({notes, install, pool: txt('h-pool'), box: txt('mm-box'), toast, versions, image, video, library});
"""
def page(self, cls, gib):
@@ -2281,6 +2294,17 @@ class TheBoxItIs(unittest.TestCase):
self.assertEqual(r["pool"], "Unified memory of this ASUS Ascent GX10, 64 GB, shared by CPU and GPU")
self.assertEqual(r["box"], "ASUS Ascent GX10, 64 GB: the lanes that fit it, the others say they need 128 GB")
self.assertIn("is not installed on this box. It needs a 128 GB DGX Spark, and this box is a 64 GB one.", r["toast"])
# the 27B's FP8 versions are shown and not to be picked, Image and Video say the box, and
# Library downloads no FP8 checkpoint (found in review, 2026-10-23)
self.assertEqual(sorted(r["versions"]), ["fp8:true", "stock:false", "uncensored-fp8:true"], r)
self.assertIn("It needs a 128 GB DGX Spark, and this box is a 64 GB one.", r["image"])
self.assertNotIn("--with-image", r["image"])
self.assertIn("It needs a 128 GB DGX Spark, and this box is a 64 GB one.", r["video"])
self.assertNotIn("--with-video", r["video"])
fp8, stock = r["library"]
self.assertIn("it needs a 128 GB DGX Spark", fp8)
self.assertNotIn("Download", fp8)
self.assertIn("Download", stock)
def test_a_128_gb_box_still_names_the_command_that_installs_a_lane_left_out(self):
r = self.page("128", 121.6)
@@ -2289,6 +2313,10 @@ class TheBoxItIs(unittest.TestCase):
self.assertEqual(r["pool"], "Unified memory of this ASUS Ascent GX10, 128 GB, shared by CPU and GPU")
self.assertEqual(r["box"], "ASUS Ascent GX10, 128 GB")
self.assertIn("is not installed on this box. Install it on the box: ./install.sh --with-flash", r["toast"])
self.assertEqual(sorted(r["versions"]), ["fp8:false", "stock:false", "uncensored-fp8:false"], r)
self.assertIn("./install.sh --with-image", r["image"])
self.assertIn("./install.sh --with-video", r["video"])
self.assertTrue(all("Download" in row for row in r["library"]), r["library"])
if __name__ == "__main__":
+7
View File
@@ -183,6 +183,13 @@ case "$1" in
CONFIG_DIR="$HOME/.config/qwen38"; REPO_DIR="$HERE"
# shellcheck source=lanes.sh
. "$HERE/lanes.sh"
# A 64 GB DGX Spark holds neither the flash lane nor the 27B's FP8 targets (boxmem.py): refused
# here before an image or a checkpoint is pulled, as the cockpit's Load runs this before its
# switch, which refused them only after (found in review, 2026-10-23)
if [ "$(box_mem_class)" = 64 ]; then
lane_fits "$1" || die "The $1 lane needs a 128 GB DGX Spark, and this box is a 64 GB one."
[ -z "$TARGET" ] || target_fits "$TARGET" || die "The $TARGET target needs a 128 GB DGX Spark, and this box is a 64 GB one."
fi
# a terminal opened before the account joined the docker group: on with the group (lanes.sh)
docker_session bash "$HERE/${BASH_SOURCE[0]##*/}" "$@"
pins_or_die
+12
View File
@@ -182,6 +182,18 @@ class TheRunSaysIt(unittest.TestCase):
if not ok:
self.assertIn(f"QWEN38_MEMORY_CLASS={cls} is not a memory class: 64 or 128", r.stderr)
def test_prepare_lane_refuses_what_a_64_gb_box_cannot_hold_before_a_pull(self):
# the cockpit's Load runs it before its switch, which refused these only after the image
# and the draft were pulled (found in review, 2026-10-23)
env = {k: v for k, v in os.environ.items() if not k.startswith("QWEN38_")}
for args, said in ((("27b", "fp8"), "The fp8 target needs a 128 GB DGX Spark"),
(("flash",), "The flash lane needs a 128 GB DGX Spark")):
with self.subTest(args), tempfile.TemporaryDirectory(prefix="prep64-") as home:
r = subprocess.run(["bash", str(REPO / "prepare-lane.sh"), *args], capture_output=True, text=True,
timeout=60, env={**env, "HOME": home, "PATH": "/usr/bin:/bin", "QWEN38_MEMORY_CLASS": "64"})
self.assertEqual(r.returncode, 1, r.stderr[-400:])
self.assertIn(said, r.stderr)
def test_the_lanes_that_fit_come_from_boxmem(self):
r = subprocess.run([sys.executable, "-I", str(REPO / "boxmem.py"), "fitting", "--class", "64"],
capture_output=True, text=True)