v1.45.1: the review's fixes to Connect a client, the fit and the installers' names

Code review of v1.45.1:
- with client keys on, the proxy refuses every other key, the cockpit's login included: the panel
  says a client key of the proxy's file is needed, and its copied test asks for one;
- an IPv6 page came with its brackets from location.hostname and read "http://[[::1]]:30001";
- the model of the lane before a switch was said, and asked for by the copied test, until
  engine_info came again (30 s): until it names the lane that serves, the panel says it reads it;
- a unit not read gave port 30001 as a fact: the panel says it is assumed;
- the panel was rebuilt at every tick of the lanes (2 s), losing a selection or a focus: it is
  rebuilt only when what it says changes;
- the proxy's environment files, which systemctl show does not unfold and the docs use for its
  secrets, are read for the three names (a certificate, client keys), and one not readable is said;
- the fit restarted nothing when the merge rewrote the input of an unchanged pair (it can only come
  down to the context): the same pair said again restarts the Agent's server, and the message no
  longer says it runs lower limits when it may not run or only the compaction changed;
- the renaming missed the installers' lane titles ("flash 176B", "Flash FP4-Local", "27B"), the
  button they name (Load on "Flash FP4-Local (NVIDIA)") and switch-model.sh's two messages;
- the new tests sat after unittest.main() and did not run when their file was run alone.

Each has a test that fails on the code before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Hasan BasbunarandClaude Opus 5.5 committed 2026-11-09 10:48:31 +01:00
1 parent 29436fc16d
commit d6e4cbf097
15 files changed
+135 -52

No files matched your search

+17 -3
View File
@@ -3078,9 +3078,23 @@ def collect_api() -> dict:
to give a client, plain and in sight, for whoever reads nothing else). Only these four are taken from the unit,
whose environment holds keys: nothing else of it leaves this function. The host is the page's to add, the address
the browser reached the cockpit by, the one that works from there."""
show = run(["systemctl", "show", "qwen38-keepalive.service", "-p", "ExecStart", "-p", "Environment"], timeout=5) or ""
show = run(["systemctl", "show", "qwen38-keepalive.service", "-p", "ExecStart", "-p", "Environment",
"-p", "EnvironmentFiles"], timeout=5) or ""
port = re.search(r"keepalive-proxy\.py (\d+)", show)
env = dict(re.findall(r"(?<![A-Za-z0-9_])(PROXY_BIND|QWEN38_TLS_CERT|QWEN38_CLIENT_KEYS_FILE)=(\S*)", show))
names = r"(?<![A-Za-z0-9_])(PROXY_BIND|QWEN38_TLS_CERT|QWEN38_CLIENT_KEYS_FILE)="
env = dict(re.findall(names + r"(\S*)", show))
# and the files the unit reads its environment from, which systemctl show does not unfold: the docs put the
# proxy's secrets there, a certificate or client keys among them (review of v1.45.1). The three names only; a file
# this user cannot read is said, as what it sets is then unknown
unread = False
for path, optional in re.findall(r"^EnvironmentFiles=(\S+)(?: \(ignore_errors=(yes|no)\))?", show, re.M):
try:
text = Path(path).read_text(errors="replace")
except OSError:
unread = unread or optional != "yes"
continue
for k, v in re.findall(r"^\s*(?:export\s+)?" + names + r"[\"']?([^\"'\s#]*)", text, re.M):
env[k] = v
# the box's addresses another machine can reach it by, the tailnet's first: the page opened on the box itself
# (127.0.0.1) has no other to offer (captures of 2026-11-09). Container bridges are no one's way in
addrs = []
@@ -3092,7 +3106,7 @@ def collect_api() -> dict:
return {"node_id": "local", "known": bool(port), "port": int(port.group(1)) if port else 30001,
"bind": env.get("PROXY_BIND") or "0.0.0.0", "tls": bool(env.get("QWEN38_TLS_CERT")),
"client_keys": bool(env.get("QWEN38_CLIENT_KEYS_FILE")), "key_file": str(CONFIG_DIR / "api-key"),
"addresses": addrs}
"env_unread": unread, "addresses": addrs}
def collect_engine_table() -> dict:
+30 -13
View File
@@ -220,16 +220,17 @@ function renderServing(){
// ── connect a client: the address, the model and the key, ready to copy ───────
// Hasan (2026-10-18): the address to give a client, plain and in sight, for whoever reads nothing else. The proxy
// listens where its unit says (api, read every 30 s); everywhere, it answers on the address this page was reached by.
const API = {d: null, model: ''};
const API = {d: null, model: '', target: null, said: ''};
on('api', d => { API.d = d; renderApi(); });
on('engine_info', d => { API.model = (d.info || {}).served_model_name || ''; renderApi(); });
on('engine_info', d => { API.model = (d.info || {}).served_model_name || ''; API.target = d.served_target || null; renderApi(); });
on('lifecycle', () => renderApi());
const LOOPBACK = ['127.0.0.1', 'localhost', '::1'];
const apiUrl = (d, host) => `${d.tls ? 'https' : 'http'}://${host.includes(':') ? '[' + host + ']' : host}:${d.port}`;
function apiBase(d){
// a proxy on every interface answers on the address this page was reached by; one bound to an address, on that one
// a proxy on every interface answers on the address this page was reached by; one bound to an address, on that one.
// An IPv6 address comes in brackets from location.hostname: unwrapped, or "[[::1]]" (review of v1.45.1)
const any = !d.bind || d.bind === '0.0.0.0' || d.bind === '::';
const host = any ? location.hostname : d.bind;
const host = any ? location.hostname.replace(/^\[(.*)\]$/, '$1') : d.bind;
return {host, base: apiUrl(d, host)};
}
function renderApi(){
@@ -240,19 +241,35 @@ function renderApi(){
// the box (127.0.0.1) said a proxy on every interface listened on the box only (captures of 2026-11-09)
const boxOnly = LOOPBACK.includes(d.bind);
const others = !boxOnly && LOOPBACK.includes(host) ? (d.addresses || []).map(a => `${apiUrl(d, a.addr)}/v1 (${a.iface})`) : [];
const model = textReady() && API.model ? API.model : '';
setText('api-aside', boxOnly ? 'from this box only' : 'OpenAI and Anthropic APIs');
facts(box, [['OpenAI API', `${base}/v1`, 'wrap'], ['Anthropic API', base, 'wrap'],
['Model', model || (servingEngine() ? 'no text lane serves now' : 'nothing serves now')],
['Key', `the cockpit's login, in ${d.key_file} on the box` + (d.client_keys ? ', or a client key of yours' : ''), 'wrap'],
boxOnly ? ['Other machines', `the proxy listens on this box only (PROXY_BIND=${d.bind}): PROXY_BIND=0.0.0.0 ./install.sh opens it, the key still the gate`, 'wrap']
: others.length ? ['From another machine', others.join('\n'), 'wrap lines'] : [null, null]]);
clear(row);
// the model of the lane that serves now: engine_info is read every 30 s, the lanes' states every 2, and just after a
// switch it still named the lane before, which a copied test then asked for (review of v1.45.1)
const s = servingEngine(), fresh = !!s && !!API.target && s[1].target === API.target;
const model = textReady() && fresh && API.model ? API.model : '';
const modelSaid = model || (!servingEngine() ? 'nothing serves now' : !textReady() ? 'no text lane serves now' : 'reading the lane that serves…');
// with client keys, the proxy refuses every other key, the cockpit's login included (keepalive-proxy.py, its wall)
const keySaid = d.client_keys ? "a client key of yours, from the proxy's keys file: it refuses any other, the cockpit's login included"
: `the cockpit's login, in ${d.key_file} on the box`;
const keyArg = d.client_keys ? '$YOUR_CLIENT_KEY' : `$(cat ${d.key_file})`;
const rows = [['OpenAI API', `${base}/v1`, 'wrap'], ['Anthropic API', base, 'wrap'], ['Model', modelSaid], ['Key', keySaid, 'wrap'],
boxOnly ? ['Other machines', `the proxy listens on this box only (PROXY_BIND=${d.bind}): PROXY_BIND=0.0.0.0 ./install.sh opens it, the key still the gate`, 'wrap']
: others.length ? ['From another machine', others.join('\n'), 'wrap lines'] : [null, null],
// part of the proxy's settings in a file the cockpit cannot read: what it sets is not known here (review of v1.45.1)
d.env_unread ? ['Not read', "the proxy's environment file: if it sets a certificate the address is https, and with client keys only those are taken", 'wrap'] : [null, null]];
const m = model || 'MODEL';
// claude-local sets Claude Code up for the lane that serves (proxy, key, model, budgets: docs/clients.md); the test
// reads the key from its file, on the box, and never shows it
const items = [['Copy the address', `${base}/v1`], ['Copy for Claude Code, on the box', 'claude-local'],
['Copy a test', `curl -s ${base}/v1/chat/completions -H "Authorization: Bearer $(cat ${d.key_file})" -H 'Content-Type: application/json' -d '{"model":"${m}","messages":[{"role":"user","content":"Say ok."}],"max_tokens":8}'`]];
['Copy a test', `curl -s ${base}/v1/chat/completions -H "Authorization: Bearer ${keyArg}" -H 'Content-Type: application/json' -d '{"model":"${m}","messages":[{"role":"user","content":"Say ok."}],"max_tokens":8}'`]];
// the unit not read: the proxy's usual port, said as a guess (review of v1.45.1)
const aside = !d.known ? 'its port not read: 30001 assumed' : boxOnly ? 'from this box only' : 'OpenAI and Anthropic APIs';
// built again only when what it says changed: rebuilt at every tick of the lanes (2 s), a selection or a focus on
// it was lost within two seconds (review of v1.45.1)
const said = JSON.stringify([rows, items, aside]);
if (said === API.said) return;
API.said = said;
setText('api-aside', aside);
facts(box, rows);
clear(row);
items.forEach(([label, text]) => { const b = el('button', 'btn sm', label); b.type = 'button'; b.addEventListener('click', () => copyText(text)); row.append(b); });
const a = el('a', 'btn sm ghost', 'Every client, step by step'); a.href = 'https://github.com/hasso5703/alzeo/blob/main/docs/clients.md';
a.target = '_blank'; a.rel = 'noopener'; row.append(a);
+20 -4
View File
@@ -1934,10 +1934,6 @@ class TheVllmLanesCountersAreReadToo(Base):
self.assertIsNone(out["aborted"], "vLLM counts no client that left: not counted, which is not none")
if __name__ == "__main__":
unittest.main(verbosity=2)
class WhereAClientSendsItsRequests(Base):
"""Hasan (2026-10-18): the address to give a client, plain and in sight. collect_api reads the keepalive unit as
systemd runs it, whose environment holds keys: four fields leave it, nothing else."""
@@ -1966,6 +1962,22 @@ class WhereAClientSendsItsRequests(Base):
self.assertTrue(d["key_file"].endswith("api-key"))
self.assertNotIn("sekret", json.dumps(d)) # the unit's keys never reach the page
def test_the_environment_files_for_three_names_and_one_not_readable(self):
# the docs put the proxy's secrets in an EnvironmentFile, which systemctl show does not unfold (review of v1.45.1)
f = self.tmp / "proxy.env"
f.write_text("QWEN38_UPSTREAM_API_KEY=sekret-456\nexport QWEN38_TLS_CERT='/etc/ssl/box.pem'\n"
"QWEN38_CLIENT_KEYS_FILE=/home/u/keys # client keys\n")
show = ("ExecStart={ argv[]=/usr/bin/python3 /x/keepalive-proxy.py 30001 ; }\nEnvironment=PROXY_BIND=0.0.0.0\n"
f"EnvironmentFiles={f} (ignore_errors=no)\n")
self.box({"show qwen38-keepalive.service": show})
d = self.cp.collect_api()
self.assertEqual((d["tls"], d["client_keys"], d["env_unread"]), (True, True, False))
self.assertNotIn("sekret", json.dumps(d))
self.box({"show qwen38-keepalive.service": show.replace(str(f), "/nonexistent/proxy.env")})
self.assertTrue(self.cp.collect_api()["env_unread"])
self.box({"show qwen38-keepalive.service": show.replace(str(f), "/nonexistent/proxy.env").replace("=no)", "=yes)")})
self.assertFalse(self.cp.collect_api()["env_unread"], "an optional file that is not there sets nothing")
def test_a_proxy_on_its_defaults_and_a_unit_not_read(self):
self.box({"show qwen38-keepalive.service": "ExecStart={ argv[]=/usr/bin/python3 /x/keepalive-proxy.py 30011 ; }\nEnvironment=\n"})
d = self.cp.collect_api()
@@ -1973,3 +1985,7 @@ class WhereAClientSendsItsRequests(Base):
self.box({})
d = self.cp.collect_api()
self.assertEqual((d["known"], d["port"], d["bind"]), (False, 30001, "0.0.0.0"))
if __name__ == "__main__":
unittest.main(verbosity=2)
+35 -4
View File
@@ -994,10 +994,6 @@ class LoadingALaneIsOneJourney(unittest.TestCase):
self.assertEqual(r["names"], ["switch:video", "unit:stop", "unit:start"])
if __name__ == "__main__":
unittest.main()
class AClientIsToldWhereToSendItsRequests(unittest.TestCase):
"""Hasan (2026-10-18): the address to give a client, plain and in sight, for whoever reads nothing else. The Now
view says it with the model that serves and where the key is, ready to copy, and never shows the key."""
@@ -1030,6 +1026,37 @@ class AClientIsToldWhereToSendItsRequests(unittest.TestCase):
r = run(self, self.BODY % ("'box.example.ts.net'", "'0.0.0.0'", "true"))
self.assertIn("OpenAI APIhttps://box.example.ts.net:30001/v1", r["facts"])
def test_the_reviews_cases(self):
# review of v1.45.1: client keys refuse the cockpit's login; an IPv6 page; the model of the lane before a switch;
# a port not read; a file not read; the panel rebuilt at every tick of the lanes lost a selection
r = run(self, r"""
let copied = null; copyText = t => { copied = t; };
location.hostname = '[fd7a:115c::1]';
const api = (o) => Object.assign({known: true, port: 30001, bind: '0.0.0.0', tls: false, client_keys: false,
key_file: '/home/u/.config/qwen38/api-key', addresses: []}, o);
feed({config: CONFIG, units: UNITS, lifecycle: life({'qwen38-sglang.service': eng('ready')}),
engine_info: {served_target: 'stock', info: {served_model_name: 'qwen3.8-27b'}}, api: api({client_keys: true})});
const v6 = txt('api-facts');
[...$('api-copy').children].find(b => b.textContent === 'Copy a test').click();
const test = copied;
const dd = $('api-facts').querySelector('dd');
feed({lifecycle: life({'qwen38-sglang.service': eng('ready', {elapsed: 602})})});
const same = $('api-facts').querySelector('dd') === dd;
feed({lifecycle: life({'qwen38-sglang.service': eng('ready', {target: 'uncensored'})})});
const switched = txt('api-facts');
feed({api: api({known: false, env_unread: true})});
report({v6, test, same, switched, aside: txt('api-aside'), unread: txt('api-facts')});
""")
self.assertIn("OpenAI APIhttp://[fd7a:115c::1]:30001/v1", r["v6"])
self.assertIn("a client key of yours", r["v6"])
self.assertIn("the cockpit's login included", r["v6"])
self.assertIn("Bearer $YOUR_CLIENT_KEY", r["test"])
self.assertNotIn("api-key", r["test"])
self.assertTrue(r["same"], "rebuilt though nothing it says changed")
self.assertIn("Modelreading the lane that serves", r["switched"])
self.assertEqual(r["aside"], "its port not read: 30001 assumed")
self.assertIn("Not readthe proxy's environment file", r["unread"])
def test_a_page_opened_on_the_box_gives_its_other_addresses(self):
# a proxy on every interface, the page on 127.0.0.1: it said the proxy listened on the box only, with
# PROXY_BIND=0.0.0.0 to open it (captures of 2026-11-09)
@@ -1038,3 +1065,7 @@ class AClientIsToldWhereToSendItsRequests(unittest.TestCase):
self.assertNotEqual(r["aside"], "from this box only")
self.assertIn("From another machinehttp://100.101.102.103:30001/v1 (tailscale0)\nhttp://192.168.1.20:30001/v1 (enP7s7)",
r["facts"])
if __name__ == "__main__":
unittest.main()
+4 -4
View File
@@ -87,7 +87,7 @@ docker_session bash "$HERE/${BASH_SOURCE[0]##*/}" "$@"
# the preflight and the room, the fetch, the proof
# shellcheck source=vllm-lane.sh
. "$HERE/vllm-lane.sh"
VLANE=flash-local; VLANE_SHORT="Flash FP4-Local"
VLANE=flash-local; VLANE_SHORT="Qwen3.8 Flash-Next FP4-Local"
# The pins, at column 0 like install.sh's: the checkpoint at its revision of 2026-10-15 19:45 UTC,
# the last one (checked on 2026-10-20: every revision since the weights came, on 2026-10-08, changes
@@ -240,7 +240,7 @@ install_service(){
vlane_put_unit "$RENDER" "$CONFIG_DIR/seccomp-io-uring.json" "$TEMPLATE"
# Installed, not switched to: the lane this box serves stays the lane it serves.
echo "installed as a lane of its own. Switch to it like any lane:"
echo " the cockpit: Load on Flash FP4-Local (NVIDIA) in the Lanes view"
echo " the cockpit: Load on Qwen3.8 Flash-Next FP4-Local in the Lanes view"
echo " a terminal : ./switch-model.sh flash-local, then the commands it prints"
}
@@ -284,7 +284,7 @@ if [ "$MODE" = units ]; then
vlane_template_if_cached "$TEMPLATE" "${TEMPLATE_FIXES[@]}"
install_service
step "Done: the Qwen3.8 Flash-Next FP4-Local lane is installed; its first Load prepares it"
echo " the cockpit: Load on Flash FP4-Local (NVIDIA) in the Lanes view pulls its image (about 18 GB, 10 to"
echo " the cockpit: Load on Qwen3.8 Flash-Next FP4-Local in the Lanes view pulls its image (about 18 GB, 10 to"
echo " download), fetches its checkpoint (about $WEIGHTS_GB GB), then starts it"
echo " a terminal : ./install-flash-local.sh --prepare, then ./switch-model.sh flash-local and the commands it prints"
exit 0
@@ -324,5 +324,5 @@ VLANE_PARSERS="the qwen3_xml parser is"; VLANE_BOOT="about 6 min, 17 at its firs
vlane_prove
step "Done: the Qwen3.8 Flash-Next FP4-Local lane is installed and proved it serves on $ENGINE_BIND:$PORT"
echo " switch to it : Load on Flash FP4-Local (NVIDIA) in the cockpit, or ./switch-model.sh flash-local"
echo " switch to it : Load on Qwen3.8 Flash-Next FP4-Local in the cockpit, or ./switch-model.sh flash-local"
echo " clients : the proxy on :30001 with the box's key, model qwen3.8-flash-next-fp4 (OpenAI and Anthropic APIs)"
+1 -1
View File
@@ -20,7 +20,7 @@
# does not have the room, this refuses before downloading anything.
#
# WHY THIS IMAGE. The checkpoint mixes NVFP4 experts read as W4A16 and FP8 projections, which
# ModelOpt calls MIXED_PRECISION: the community b12x vLLM build NVIDIA's Flash FP4-Local card names
# ModelOpt calls MIXED_PRECISION: the community b12x vLLM build NVIDIA's Qwen3.8 Flash-Next FP4-Local card names
# for a DGX Spark reads it with the b12x kernels and loader it serves FP4-Local with, and served this
# model right on every test (docs/ornith-lane.md says what was measured). The two lanes pull it once.
#
+5 -5
View File
@@ -611,7 +611,7 @@ without a terminal.
--no-video leave the MiniMax-H3 video lane out of this run (174 GB),
the same way (./install-video.sh --uninstall)
--with-video install it whole now and prove it
--no-flash leave the flash 176B lane out of this run when it is not
--no-flash leave the Qwen3.8 Flash-Next lane out of this run when it is not
the one serving (223 GB), the same way
--with-flash install it whole now beside the lane that serves
--no-27b leave the 27B lane out of this run when it is not the
@@ -1393,9 +1393,9 @@ fi
# or not prepared (issue #57, below: LEFT_OUT).
lane_title(){ # $1 a lane, by its flag's name: the name a run says
case "$1" in
27b) echo "27B" ;; flash) echo "flash 176B" ;; image) echo "image (Qwen-Image 2.1)" ;;
27b) echo "Qwen3.8 27B" ;; flash) echo "Qwen3.8 Flash-Next" ;; image) echo "image (Qwen-Image 2.1)" ;;
video) echo "video (MiniMax-H3)" ;; kolibri) echo "Kolibri-1" ;; nemotron) echo "Nemotron 3.5 Bolt" ;;
nemotron-super) echo "Nemotron 3.5 Super VL" ;; flash-local) echo "Flash FP4-Local" ;;
nemotron-super) echo "Nemotron 3.5 Super VL" ;; flash-local) echo "Qwen3.8 Flash-Next FP4-Local" ;;
ornith-122b) echo "Ornith 1.5 122B" ;; *) echo "$1" ;;
esac
}
@@ -1655,7 +1655,7 @@ fi
# above: none of its downloads, nothing started, the box's port, cache and binds kept, read from that
# same lane; named (--with-<lane>), or with --all-weights, it is updated whole. The other text lane
# follows its own rule (step 6, whole only once prepared), and the rest of the box is updated.
# Issue #57 (2026-10-21): a box booting Flash FP4-Local fetched the flash lane it had left out again,
# Issue #57 (2026-10-21): a box booting Qwen3.8 Flash-Next FP4-Local fetched the flash lane it had left out again,
# 35 and 136 GB, under "Leaving the flash lane out". A --no-<lane> no longer outlives its run, so a
# lane not prepared is what keeps those downloads off the next one too.
LEFT_OUT=0; LEFT_WHY=""
@@ -3303,7 +3303,7 @@ else
[ "$KOLIBRI_BOOT" -eq 1 ] && SERVING_LANE="Kolibri"
[ "$NEMOTRON_BOOT" -eq 1 ] && SERVING_LANE="Nemotron"
[ "$NEMOTRON_SUPER_BOOT" -eq 1 ] && SERVING_LANE="Nemotron Super"
[ "$FLASH_LOCAL_BOOT" -eq 1 ] && SERVING_LANE="Flash FP4-Local"
[ "$FLASH_LOCAL_BOOT" -eq 1 ] && SERVING_LANE="Qwen3.8 Flash-Next FP4-Local"
[ "$ORNITH_122B_BOOT" -eq 1 ] && SERVING_LANE="Ornith 1.5 122B"
if [ -n "$ATS_CANNOT" ]; then
step "Done: this box is up to date, and its flash lane, which this GPU cannot start, was not started"
+1 -1
View File
@@ -325,7 +325,7 @@ pin_untag() { # $1 lane: its tags go (its uninstall); the image is then merely
local tag id left unit other
pin_tags_of "$1" | while read -r tag id; do
docker rmi "$tag" >/dev/null 2>&1 || continue
# The Flash FP4-Local and Ornith lanes pin one image, each with its own tag: the other lane's
# The Qwen3.8 Flash-Next FP4-Local and Ornith lanes pin one image, each with its own tag: the other lane's
# tag keeps it, and no prune reclaims it while that lane is installed.
left="$(docker image inspect "$id" --format '{{range .RepoTags}}{{println .}}{{end}}' 2>/dev/null | grep -m1 '^qwen38-pinned:' || true)"
if [ -n "$left" ]; then
+9 -5
View File
@@ -271,9 +271,12 @@ def main(argv: list[str]) -> int:
merged = True
changed = changed or "unchanged" not in said
m = re.search(r"limits: (\d+)/(\d+) -> (\d+)/(\d+)", said)
# a pair it did not have before ("limits: none -> ..."), or one that came down
lowered = lowered or ("unchanged" not in said and (not m or int(m.group(3)) < int(m.group(1))
or int(m.group(4)) < int(m.group(2))))
# a pair it did not have before ("limits: None/None -> ..."), one that came down, or the same pair said again,
# which means another key of the block was rewritten: its input, which can only come down to the context (the
# merge sets input to it), unseen in this line (review of v1.45.1)
if "unchanged" not in said:
a, b, c, d = (int(g) for g in m.groups()) if m else (0, 0, 0, 0)
lowered = lowered or not m or c < a or d < b or (c, d) == (a, b)
if keep.isdigit() and int(keep) > 0:
out = subprocess.run([sys.executable, str(REPO_DIR / "oc-merge-limits.py"), str(target),
"--compaction", keep], capture_output=True, text=True)
@@ -293,8 +296,9 @@ def main(argv: list[str]) -> int:
print("opencode now asks for no more than this engine can serve")
print(restart_agent())
elif rc == 0 and restart_lowered:
print("opencode now asks for no more than this engine can serve; the Agent tab's server keeps the limits it "
"runs, which are lower and still fit: it reads the new ones at its next start")
# said as it is: the server may not run, and the change may be the compaction block alone (review of v1.45.1)
print("opencode now asks for no more than this engine can serve; the Agent tab's server, if it runs, keeps "
"what it read at its start, which still fits: it reads the new settings at its next start")
elif rc == 0:
print("opencode now asks for no more than this engine can serve; "
"restart opencode to pick the new limits up")
+2 -2
View File
@@ -1,8 +1,8 @@
#!/usr/bin/env bash
# The heavy half of a lane installed on demand, as the user, with no sudo: what the cockpit's
# first Load of the lane runs before its switch. The image and video lanes' runtime (a venv and
# SGLang Diffusion, the video lane's Turbo adapter) and the Kolibri, Nemotron, Flash FP4-Local and Ornith
# lanes' images (one image for the two Nemotron lanes, one for Flash FP4-Local and Ornith), each by its own
# SGLang Diffusion, the video lane's Turbo adapter) and the Kolibri, Nemotron, Qwen3.8 Flash-Next FP4-Local and Ornith
# lanes' images (one image for the two Nemotron lanes, one for Qwen3.8 Flash-Next FP4-Local and Ornith), each by its own
# installer's --prepare; their
# checkpoint comes with the Load's switch, as for any Load. The
# other text lane, beside the lane that serves: the image its launcher (flash) or unit (27B)
+2 -2
View File
@@ -519,11 +519,11 @@ if [ "$CHOICE" = "flash-local" ]; then
-v "$REPO_DIR/ckpt-fetch.py:/opt/qwen38/ckpt-fetch.py:ro" \
-v "$FLL_HF":/hf "$FLASH_LOCAL_IMAGE" /opt/qwen38/ckpt-fetch.py "$FLASH_LOCAL_REPO" "$FLASH_LOCAL_REV" --offline-first \
--need-gb "$FLASH_LOCAL_GB" --free-gb "$(dl_free_gb "$FLL_HF")" \
|| die "the Flash FP4-Local checkpoint could not be verified or fetched (re-run to resume; set HF_TOKEN if it stalls)"
|| die "the Qwen3.8 Flash-Next FP4-Local checkpoint could not be verified or fetched (re-run to resume; set HF_TOKEN if it stalls)"
fetched "$FLASH_LOCAL_REPO @ ${FLASH_LOCAL_REV:0:12}"
# its chat template, its n-gram table where the engine reads it, and its unit for this checkpoint
HF_CACHE="$FLL_HF" bash "$REPO_DIR/install-flash-local.sh" --stage "$FLL_STAGE" \
|| { rm -f "$FLL_STAGE"; die "the Flash FP4-Local unit could not be prepared (the lines above say why)"; }
|| { rm -f "$FLL_STAGE"; die "the Qwen3.8 Flash-Next FP4-Local unit could not be prepared (the lines above say why)"; }
FLL_REWRITTEN=""
if ! cmp -s "$FLL_STAGE" "$FLASH_LOCAL_UNIT"; then
diff "$FLL_STAGE" "$FLASH_LOCAL_UNIT" || true # show exactly what changes
+3 -3
View File
@@ -761,9 +761,9 @@ class TheWholeScripts(unittest.TestCase):
copy.write_text(copy.read_text().replace("/proc/meminfo", str(mem)))
r, out, record = self.run_install(box, str(copy), QWEN38_MEMINFO=str(mem))
self.assertIn(wall.WALL, out, out[-800:])
self.assertIn("This box is a 64 GB DGX Spark: the lanes that fit it are the 27B and Nemotron 3.5 Bolt here", out)
self.assertIn("Left out, as they need a 128 GB one: image (Qwen-Image 2.1), video (MiniMax-H3), flash 176B, Kolibri-1, "
"Nemotron 3.5 Super VL, Flash FP4-Local, Ornith 1.5 122B.", out)
self.assertIn("This box is a 64 GB DGX Spark: the lanes that fit it are the Qwen3.8 27B and Nemotron 3.5 Bolt here", out)
self.assertIn("Left out, as they need a 128 GB one: image (Qwen-Image 2.1), video (MiniMax-H3), Qwen3.8 Flash-Next, Kolibri-1, "
"Nemotron 3.5 Super VL, Qwen3.8 Flash-Next FP4-Local, Ornith 1.5 122B.", out)
self.assertIn("Context mode: native (262144 tokens), the one a 64 GB DGX Spark holds.", out)
self.assertNotIn("needs a ~121 GB", out)
+3 -3
View File
@@ -108,7 +108,7 @@ class ALaneLeftOutGetsItsUnitsOnly(unittest.TestCase):
r = resolved(self, out)
self.assertEqual((r["LANE"], r["UNITS_ONLY"], r["LEFT_OUT"]), ("flash", "1", "1"))
self.assertIn("Your earlier --no-flash is no longer remembered (left out with ./install.sh --no-flash on "
"2026-10-20T08:00Z): a --no-flash counts for the run that passes it only now, so the flash 176B lane is "
"2026-10-20T08:00Z): a --no-flash counts for the run that passes it only now, so the Qwen3.8 Flash-Next lane is "
"back in this run. Pass --no-flash on each run to keep it out.", out)
self.assertIn("NOTE: the flash lane is not prepared on this box: its units only, none of its downloads, and this "
"run starts nothing.", out)
@@ -206,7 +206,7 @@ class ALaneLeftOutGetsItsUnitsOnly(unittest.TestCase):
with self.subTest(args):
rc, out = box_run("qwen38-sglang.service", off=("27b",), args=args)
self.assertIn("Your earlier --no-27b is no longer remembered (left out with ./install.sh --no-27b on "
"2026-10-20T08:00Z): a --no-27b counts for the run that passes it only now, so the 27B lane "
"2026-10-20T08:00Z): a --no-27b counts for the run that passes it only now, so the Qwen3.8 27B lane "
"is back in this run. Pass --no-27b on each run to keep it out.", out)
self.assertNotIn("the 27b lane", out)
@@ -266,7 +266,7 @@ class ItsEndSaysSo(unittest.TestCase):
other = "27b" if lane == "flash" else "flash"
why = why or f"left out (--no-{lane})"
script = ('step(){ echo "STEP $*"; }\n'
f'LANE={lane}; SERVING_LANE="Flash FP4-Local"; LEFT_OUT=1; LEFT_WHY="{why}"; COCKPIT={cockpit}; '
f'LANE={lane}; SERVING_LANE="Qwen3.8 Flash-Next FP4-Local"; LEFT_OUT=1; LEFT_WHY="{why}"; COCKPIT={cockpit}; '
f'MODEL_CHOICE={choice or ("stock" if lane == "27b" else "flash")}\n'
f'SECOND_LANE={other}; SECOND_STATE={second}; SECOND_CANNOT="the GPU\'s addressing mode is None"\n'
'if false; then :\n' + text[start:end] + "fi\n")
+1
View File
@@ -129,6 +129,7 @@ def main() -> None:
("qwen38/qwen3.8-27b limits: 498000/166000 -> 555000/185000 (backup x)", 0),
("qwen38/qwen3.8-27b limits: 600000/166000 -> 555000/185000 (backup x)", 1),
("qwen38/qwen3.8-27b limits: None/None -> 555000/185000 (backup x)", 1),
("qwen38/qwen3.8-27b limits: 555000/185000 -> 555000/185000 (backup x)", 1),
("qwen38/qwen3.8-27b limits already 567000/189000: unchanged", 0)):
restarts.clear()
+2 -2
View File
@@ -5,7 +5,7 @@
#
# VLANE the lane (kolibri, nemotron, nemotron-super, flash-local, ornith-122b): its opencode provider, the
# record of the text lane it took the boot from (lanes.sh), its --no-<lane>, its cache folder
# VLANE_SHORT the lane in a sentence (Kolibri, Nemotron, Super VL, Flash FP4-Local, Ornith 1.5 122B)
# VLANE_SHORT the lane in a sentence (Kolibri, Nemotron, Super VL, Qwen3.8 Flash-Next FP4-Local, Ornith 1.5 122B)
# UNIT, INSTALLED, CONTAINER, CONFIG_DIR, HERE; and, for each part below, what it says it reads.
#
# Until v1.35 each installer carried its own copy of all of it, one renamed from the other: a fix
@@ -164,7 +164,7 @@ vlane_service_files(){ # $1... the lane's cache folders
# The checkpoint's own chat template with this lane's fixes (patch-template.py), written to $1: again at
# every install and every switch, and left as it is, mtime included, when nothing changed. The rest is
# the lane's TEMPLATE_FIXES: VAR=value for patch-template.py's environment, --options for its command
# line. One function for the vLLM lanes that patch their template (Flash FP4-Local, Ornith), which had
# line. One function for the vLLM lanes that patch their template (Qwen3.8 Flash-Next FP4-Local, Ornith), which had
# the same lines each (code review, 2026-10-24).
vlane_template(){ # $1 the file, then the lane's TEMPLATE_FIXES
local out="$1" a envs=() opts=()