mirror of
https://github.com/hasso5703/alzeo.git
synced 2026-12-05 12:24:28 +01:00
cockpit: a GPU cap refused with exit 0 is a refusal, Settings names its launcher, and the small words that were not true
nvidia-smi can write "Setting locked GPU clocks is not supported ..." and exit 0: that read as a cap that holds, and a cap the clock stays above is now said (a GPU at rest reads 208 MHz under driver 595, the texts said otherwise). Settings read "output cap ?" on OpenCode 2. The sheet showed "cockpit diag_bundle" as the exact command, and "200-token" for a smoke of 2,048. The zombie banner named a Restart that Lanes does not have, a stopped transcription warned of the proxy's clients, a copied test call asked 8 tokens, Decide's went to a hard-coded address, two copied calls named files not on the box, the pool guard hid its Mamba share, and the cockpit's own journal was no source. Docs and CAPABILITIES follow the pages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e99cb3bb87
commit
c6e49f40bb
24 files changed
+260
-63
No files matched your search
@@ -1136,7 +1136,7 @@ question you had when you opened the page.
|
||||
| **Image** | Qwen-Image 2.1 or MiniMax-H3-Image, the image lane that serves: generation, editing with up to ten references, native RGBA (Qwen-Image 2.1), up to 16.9 megapixels (MiniMax-H3-Image) | Generate and edit at the model's defaults (**Reset**), start from the sample prompts, follow each stage of a request, copy the matching curl |
|
||||
| **Video** | MiniMax-H3, when it is the serving lane: text to video with joint video-and-audio, first/last-frame conditioning | Generate at the cookbook's defaults (**Reset**), follow the request to completed, play and download the MP4, copy the matching curl |
|
||||
| **Transcription** | NVIDIA Nemotron Transcribe, when it is the serving lane: speech to text from a file or the microphone, through the cockpit's relay with the box's key | Drop or record a wav, mp3 or flac (the formats the lane reads), pick the language or let it detect, copy the transcript or download the `.txt`, copy the matching curl |
|
||||
| **Logs** | Live logs, the last 30 events, recent jobs | Tail or follow a service's log, read what each recent job printed |
|
||||
| **Logs** | Live logs, the last 40 events, recent jobs | Tail or follow a service's log, read what each recent job printed |
|
||||
| **Settings** | The repo itself, opencode integration, whether a newer release is out, a link to the release notes, the cockpit's own settings | Fit opencode's limits to the engine that serves; copy the command that updates the stack, which runs in a terminal because the installer needs an interactive sudo |
|
||||
|
||||
The other screenshots, what each panel does that a terminal does not, how it behaves on a
|
||||
|
||||
@@ -20,17 +20,17 @@ Nothing shells out free-form; every action is a fixed argv template.
|
||||
|---|---|---|
|
||||
| Which lane serves | `systemctl start/stop qwen38-sglang / qwen38-flash / qwen38-image` | Load and Stop on each lane's card in the Lanes view, Load from the rack in Now; the server refuses a second engine while one runs, and every action is confirmed first |
|
||||
| Boot enablement | `systemctl enable/disable` | Each lane's card says whether it starts at boot. "Start at boot" runs its switch alone (it enables the target's unit and disables the others, and nothing stops), "Do not start at boot" disables the boot lane's unit, after which no lane starts with the box |
|
||||
| Keepalive proxy | `systemctl ... qwen38-keepalive` | Its row in the Lanes view: state, whether it starts at boot, the running version and whether it is the repo's copy, Start/Stop |
|
||||
| Keepalive proxy | `systemctl ... qwen38-keepalive` | Its panel in the Lanes view: state, the running version and whether it is the repo's copy, Start/Stop |
|
||||
| Switch target model | `./switch-model.sh <target>` | Switch, a step of a Load when the boot is not on that target yet or the lane lacks a file it needs (a Load that only applies an update to the lane that serves restarts it, with no switch): the confirmation shows the exact command, the job's live output shows what it changes. It writes the target's unit or launcher and never starts, stops or restarts an engine: the Load's next steps do |
|
||||
| Model revisions served | `--revision` in unit/launcher | Revision on the lane card; the Library view's Recipes compare it with the pin, and its Upstream watch compares each pin with Hugging Face's `main` |
|
||||
| Model revisions served | `--revision` in unit/launcher | Revision among the Lanes view's engine facts; the Library view's Recipes compare it with the pin, and its Upstream watch compares each pin with Hugging Face's `main` |
|
||||
| Kill a stuck generation | proxy auto-abort / restart service | "Abort all", confirmed first, on every text lane: through the proxy's `POST /proxy/stop` since v1.40.3 (on vLLM and llama.cpp the proxy closes each connection it relays, and a generation sent to the engine straight goes on until the lane stops), which stops each generation and cuts its client, so an agent retries the request instead of keeping a cut answer for a whole one (to end an agent's turn, stop it in the agent); `POST /abort_request` with `abort_all` to the engine when the proxy does not take it |
|
||||
|
||||
## Observability
|
||||
| capability | shell today | UI |
|
||||
|---|---|---|
|
||||
| Server state | `systemctl status`, `journalctl`, `docker logs` | Logs view: the last 120 lines of an engine container's log or of a unit's journal, re-read every 3 s with follow ticked, with a line filter and Copy (no download) |
|
||||
| Engine internals | `/server_info`, `/v1/loads`, `/health` | Lanes view (model, revision, quantization, window, KV pool, speculative, attention, radix cache, engine version, image) and the Now view's Activity (running, waiting, tokens in KV, accept length) |
|
||||
| Decode telemetry | docker log scheduler lines | Traffic view: KV pool held, KV usage from the engine log, Mamba state slots, accept length |
|
||||
| Engine internals | `/server_info`, `/v1/loads`, `/health` | Lanes view (model, revision, quantization, window, KV pool, speculative, attention, radix cache, engine version, image) and the Now view's Activity (running, waiting, tokens in KV) |
|
||||
| Decode telemetry | docker log scheduler lines | Traffic view: KV pool held, KV usage from the engine log, accept length; the flash lane's Mamba state slots, on the Machine view's pool guard |
|
||||
| Engine counters | `/metrics` (SGLang's Prometheus counters, `--enable-metrics` on its lanes, and vLLM's on the vLLM lanes) | Traffic view, last 5 minutes: requests finished, the share of prompt tokens found in the cache, prefill and decode speed per request, tokens accepted per drafter step (the window's, not the gauge's boot average), queue and first-token waits, tokens per second for all clients, idle share, accepted abandons, and the peaks of pool, running and waiting; on SGLang each request counted once, the cockpit's canary taken out. On the vLLM lanes the same rows but the idle share and the abandons, which vLLM does not count, tokens and latencies counted at every step, and no canary to take out |
|
||||
| Requests through proxy | keepalive proxy request lines | Requests table: start, client, path, bytes, duration, outcome |
|
||||
| Machine | nvidia-smi (power/temp/procs), /proc, df | Machine view: unified memory, page cache and swap, free disk at home and under Docker, GPU power, temperature and processes, CPU load, the safety belts |
|
||||
@@ -55,7 +55,7 @@ Nothing shells out free-form; every action is a fixed argv template.
|
||||
| Server state | `systemctl status opencode-web`, `journalctl -u opencode-web` | chip (ready, starting, stopped, relay waiting), served version, installed binary if newer, Logs view source |
|
||||
| Restart after `opencode upgrade` | `sudo systemctl restart opencode-web` | Restart server button (exact-argv sudoers lines, confirmed like every action) |
|
||||
| Reach it on its own | none | Open in a tab (same relay, same session); Fullscreen inside the cockpit (corner button or Escape to come back, remembered) |
|
||||
| Autonomy (no approval clicks, and opencode's defaults already run shell commands unasked, [agents-and-network](../docs/agents-and-network.md)) | `oc` runs with `--yolo` | `AGENT_AUTO=1` at install (unit sets `OPENCODE_PERMISSION`, this repo's deny rules after its `*`); the view shows the mode the running server applies |
|
||||
| Autonomy (no approval clicks, and opencode's defaults already run shell commands unasked, [agents-and-network](../docs/agents-and-network.md)) | `oc` runs with `--auto` (OpenCode 2; `--yolo` with `./install.sh --opencode 1`) | `AGENT_AUTO=1` at install (unit sets `OPENCODE_PERMISSION`, this repo's deny rules after its `*`); the view shows the mode the running server applies |
|
||||
|
||||
## Explicitly out of scope now (groundwork only)
|
||||
Clusters of more than two boxes, multi-GPU: the collector/action registries carry
|
||||
|
||||
+14
-7
@@ -248,7 +248,8 @@ UNITS = ("qwen38-sglang.service", "qwen38-flash.service", "qwen38-image.service"
|
||||
# none of the engines that take the GPU in turn (lifecycle.ENGINE_UNITS, UNITS above): no Load, no boot to
|
||||
# follow, no restart owed by an engine's inputs. The page shows it since v1.58.0 and starts or stops its unit.
|
||||
SPEECH_UNIT = "qwen38-speech.service"
|
||||
JOURNAL_UNITS = UNITS + (AGENT_UNIT, SPEECH_UNIT) # what the Logs tab may read (UNITS carries the image, video, Kolibri and Nemotron lanes)
|
||||
COCKPIT_UNIT = "qwen38-dashboard.service" # this cockpit's own, whose journal Settings sends to
|
||||
JOURNAL_UNITS = UNITS + (AGENT_UNIT, SPEECH_UNIT, COCKPIT_UNIT) # what the Logs tab may read (UNITS carries the image, video, Kolibri and Nemotron lanes)
|
||||
# The SGLang text engines' containers: what their scheduler lines and their abort contract
|
||||
# are read from (the Liquid AI LFM2.5 24B-A2B lane's too, SGLang on the 27B's image, and the Inkling 2 Mini lane's,
|
||||
# SGLang on its own). The Kolibri and Nemotron lanes' vLLM writes neither, so they are only in CONTAINERS, the list the
|
||||
@@ -672,7 +673,10 @@ def gpu_clock_run(cap: str):
|
||||
out = run(GPU_CLOCK_ARGV[cap], timeout=GPU_CLOCK_TIMEOUT_S, merge_err=True, errors="replace")
|
||||
lines = [ln.rstrip() for ln in str(out).splitlines() if ln.strip()]
|
||||
rc = getattr(out, "rc", None)
|
||||
if answered(out):
|
||||
# nvidia-smi can refuse and exit 0: "Setting locked GPU clocks is not supported for GPU ...", then "Treating as warning
|
||||
# and moving on." (both in its 595 binary; it fails on a warning with -eow alone), which read as a cap that holds
|
||||
refused = next((ln for ln in lines if "is not supported" in ln), None)
|
||||
if answered(out) and not refused:
|
||||
return True, None, ("GPU clock cap lifted: the GPU runs at its own clocks" if cap == "none"
|
||||
else f"GPU clock capped at {gpu_clock_mhz(cap)}"), lines, rc
|
||||
if lines and lines[-1].startswith("sudo:"):
|
||||
@@ -682,7 +686,7 @@ def gpu_clock_run(cap: str):
|
||||
if lines:
|
||||
# its reason, not the warning it adds after it (after every -lgc on the reference box, 2026-11-11:
|
||||
# "Warning: persistence mode is disabled on device ...")
|
||||
said = next((ln for ln in reversed(lines) if not ln.startswith("Warning:")), lines[-1])
|
||||
said = refused or next((ln for ln in reversed(lines) if not ln.startswith("Warning:")), lines[-1])
|
||||
return False, "failed", f"nvidia-smi refused: {said[:200]}", lines, rc
|
||||
# nothing said: the deadline (no exit code), or a call that could not even start, or one that ended silent
|
||||
if rc is None and time.monotonic() - t0 >= GPU_CLOCK_TIMEOUT_S * 0.9:
|
||||
@@ -1679,8 +1683,8 @@ def transcribe_call(payload: dict) -> tuple[int, dict]:
|
||||
if not raw:
|
||||
return 400, {"error": "the audio file is empty"}
|
||||
if len(raw) > TRANSCRIBE_MAX_AUDIO:
|
||||
return 400, {"error": f"the audio file is {len(raw)} bytes ({len(raw) / 1e6:.1f} MB) and the cap is "
|
||||
f"{TRANSCRIBE_MAX_AUDIO} bytes ({TRANSCRIBE_MAX_AUDIO / 1e6:.0f} MB, about 33 minutes "
|
||||
return 400, {"error": f"the audio file is {len(raw)} bytes ({len(raw) / 2 ** 20:.1f} MiB) and the cap is "
|
||||
f"{TRANSCRIBE_MAX_AUDIO} bytes ({TRANSCRIBE_MAX_AUDIO / 2 ** 20:.0f} MiB, about 33 minutes "
|
||||
"at the 16 kHz mono the page records); cut it or convert it first, "
|
||||
"the lane reads wav, mp3 and flac"}
|
||||
language = payload.get("language", "")
|
||||
@@ -2652,7 +2656,7 @@ def collect_opencode():
|
||||
launcher = Path.home() / ".local/bin/oc"
|
||||
out = {"node_id": "local", "enabled": not off.exists(),
|
||||
"off_note": off.read_text(errors="replace").strip()[:100] if off.exists() else None,
|
||||
"launcher": {"present": launcher.exists(), "ours": False, "cap": None},
|
||||
"launcher": {"present": launcher.exists(), "ours": False, "cap": None, "major": None},
|
||||
"real": {"present": real.exists(), "default": None, "limits": {}},
|
||||
"artifact": {"present": art.exists(), "default": None}}
|
||||
if launcher.exists():
|
||||
@@ -2660,6 +2664,8 @@ def collect_opencode():
|
||||
out["launcher"]["ours"] = "dgx-spark-qwen38" in txt
|
||||
m = re.search(r"OUTPUT_TOKEN_MAX[^0-9]*?(\d{4,7})", txt)
|
||||
out["launcher"]["cap"] = int(m.group(1)) if m else None
|
||||
# OpenCode 2's launcher (the default since v1.56.0) lifts no cap and says so: the page read "output cap ?"
|
||||
out["launcher"]["major"] = 2 if "starts OpenCode 2" in txt else 1
|
||||
for key, path in (("real", real), ("artifact", art)):
|
||||
if not path.exists():
|
||||
continue
|
||||
@@ -4039,7 +4045,8 @@ def collect_lifecycle():
|
||||
"image": (containers_now().get(cont) or {}).get("image")})
|
||||
return {"node_id": "local", "engines": engines, "orphans": orphans,
|
||||
"keepalive": states.get("qwen38-keepalive.service", "stopped"),
|
||||
"pool_guard": {"enabled": POOL_GUARD, "threshold": POOL_GUARD_THRESHOLD, **POOL_GUARD_STATE},
|
||||
"pool_guard": {"enabled": POOL_GUARD, "threshold": POOL_GUARD_THRESHOLD,
|
||||
"mamba_threshold": MAMBA_GUARD_THRESHOLD, **POOL_GUARD_STATE},
|
||||
"blocked": blocked, "events": ev}
|
||||
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
<button class="nav" data-view="settings" aria-label="Settings"><svg viewBox="0 0 24 24"><path d="M4 8h10M18 8h2M4 16h4M12 16h8"/><circle cx="16" cy="8" r="2"/><circle cx="10" cy="16" r="2"/></svg><span class="lab">Settings</span><span class="bdg" id="bdg-settings"></span></button>
|
||||
</div>
|
||||
<div class="foot">
|
||||
<p>Every action asks first and shows the exact command it will run. One at a time, from any view or browser.</p>
|
||||
<p>Every action asks first and shows the exact command it runs, when it runs one. One at a time, from any view or browser.</p>
|
||||
<button class="collapse" id="railbtn" type="button" aria-expanded="true"><svg viewBox="0 0 24 24"><path d="M15 6l-6 6 6 6"/></svg><span>Collapse</span></button>
|
||||
</div>
|
||||
</nav>
|
||||
@@ -373,7 +373,7 @@
|
||||
<dt>Clock read</dt><dd class="num" id="gc-mhz">…</dd>
|
||||
<dt>Cap in effect</dt><dd class="wrap" id="gc-state">…</dd>
|
||||
</dl>
|
||||
<p class="faint" id="gc-read" style="font-size:var(--t-13)">The clock nvidia-smi reads can lag behind a change of cap (still the old one 2 s after it on the reference box), then follows the cap within a minute, the GPU idle included: a reading above the cap just after it is set is not a cap that failed.</p>
|
||||
<p class="faint" id="gc-read" style="font-size:var(--t-13)">The clock nvidia-smi reads can lag behind a change of cap, up to a minute (still the old one 2 s after it on the reference box), and a GPU at rest can read its own idle clock whatever the cap (208 MHz under driver 595.99): a reading above the cap just after it is set is not a cap that failed, and one that stays above it is said.</p>
|
||||
<p class="why-off" id="gc-why" hidden></p>
|
||||
</div>
|
||||
<div>
|
||||
@@ -585,7 +585,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="stagebox">
|
||||
<div class="screen" id="vid-screen"><div class="empty"><svg viewBox="0 0 24 24"><rect x="3" y="5" width="13" height="14" rx="2"/><path d="M16 10l5-3v10l-5-3z"/></svg><b>Your video appears here</b><span>A 4 s clip at 480p takes about ten minutes on this box.</span></div></div>
|
||||
<div class="screen" id="vid-screen"><div class="empty"><svg viewBox="0 0 24 24"><rect x="3" y="5" width="13" height="14" rx="2"/><path d="M16 10l5-3v10l-5-3z"/></svg><b>Your video appears here</b><span>A 4 s clip at 480p takes 10 to 13 minutes on this box.</span></div></div>
|
||||
<div class="progress-card" id="vid-prog" hidden>
|
||||
<div class="top"><b id="vid-prog-lab">…</b><span class="eta" id="vid-prog-eta"></span></div>
|
||||
<div class="meter" id="vid-prog-bar"><i style="width:0%"></i></div>
|
||||
@@ -720,7 +720,7 @@
|
||||
<label class="sr" for="log-src">Source</label>
|
||||
<select class="input" id="log-src">
|
||||
<optgroup label="Serving containers"><option value="qwen38-flash">Qwen3.8 Flash-Next container</option><option value="qwen38-sglang">Qwen3.8 27B container</option><option value="qwen38-kolibri">Kolibri-1 container</option><option value="qwen38-nemotron">Nemotron 3.5 Bolt container</option><option value="qwen38-nemotron-super">Nemotron 3.5 Super VL container</option><option value="qwen38-flash-local">Qwen3.8 Flash-Next FP4-Local container</option><option value="qwen38-ornith-122b">Ornith 1.5 122B container</option><option value="qwen38-flash-unsloth">Qwen3.8 Flash-Next Unsloth GGUF container</option><option value="qwen38-transcribe">NVIDIA Nemotron Transcribe container</option><option value="qwen38-lfm25">Liquid AI LFM2.5 24B-A2B container</option><option value="qwen38-lfm3">Liquid AI LFM3 container</option><option value="qwen38-inkling">Inkling 2 Mini container</option></optgroup>
|
||||
<optgroup label="Unit journals"><option value="qwen38-flash.service">Qwen3.8 Flash-Next journal</option><option value="qwen38-sglang.service">Qwen3.8 27B journal</option><option value="qwen38-image.service">Qwen-Image 2.1 journal</option><option value="qwen38-image-h3.service">MiniMax-H3-Image journal</option><option value="qwen38-video.service">MiniMax-H3 journal</option><option value="qwen38-kolibri.service">Kolibri-1 journal</option><option value="qwen38-nemotron.service">Nemotron 3.5 Bolt journal</option><option value="qwen38-nemotron-super.service">Nemotron 3.5 Super VL journal</option><option value="qwen38-flash-local.service">Qwen3.8 Flash-Next FP4-Local journal</option><option value="qwen38-ornith-122b.service">Ornith 1.5 122B journal</option><option value="qwen38-flash-unsloth.service">Qwen3.8 Flash-Next Unsloth GGUF journal</option><option value="qwen38-transcribe.service">NVIDIA Nemotron Transcribe journal</option><option value="qwen38-lfm25.service">Liquid AI LFM2.5 24B-A2B journal</option><option value="qwen38-lfm3.service">Liquid AI LFM3 journal</option><option value="qwen38-inkling.service">Inkling 2 Mini journal</option><option value="qwen38-keepalive.service">proxy journal</option><option value="opencode-web.service" id="log-opt-agent">agent server journal</option><option value="qwen38-speech.service" id="log-opt-speech">Speech lane journal</option></optgroup>
|
||||
<optgroup label="Unit journals"><option value="qwen38-flash.service">Qwen3.8 Flash-Next journal</option><option value="qwen38-sglang.service">Qwen3.8 27B journal</option><option value="qwen38-image.service">Qwen-Image 2.1 journal</option><option value="qwen38-image-h3.service">MiniMax-H3-Image journal</option><option value="qwen38-video.service">MiniMax-H3 journal</option><option value="qwen38-kolibri.service">Kolibri-1 journal</option><option value="qwen38-nemotron.service">Nemotron 3.5 Bolt journal</option><option value="qwen38-nemotron-super.service">Nemotron 3.5 Super VL journal</option><option value="qwen38-flash-local.service">Qwen3.8 Flash-Next FP4-Local journal</option><option value="qwen38-ornith-122b.service">Ornith 1.5 122B journal</option><option value="qwen38-flash-unsloth.service">Qwen3.8 Flash-Next Unsloth GGUF journal</option><option value="qwen38-transcribe.service">NVIDIA Nemotron Transcribe journal</option><option value="qwen38-lfm25.service">Liquid AI LFM2.5 24B-A2B journal</option><option value="qwen38-lfm3.service">Liquid AI LFM3 journal</option><option value="qwen38-inkling.service">Inkling 2 Mini journal</option><option value="qwen38-keepalive.service">proxy journal</option><option value="opencode-web.service" id="log-opt-agent">agent server journal</option><option value="qwen38-speech.service" id="log-opt-speech">Speech lane journal</option><option value="qwen38-dashboard.service" id="log-opt-cockpit">cockpit journal</option></optgroup>
|
||||
</select>
|
||||
<label class="switch"><input type="checkbox" id="log-follow"> Follow</label>
|
||||
<input class="input grow" id="log-filter" type="search" placeholder="Filter lines" aria-label="Filter lines">
|
||||
|
||||
@@ -768,7 +768,7 @@ const EXPLAIN = {
|
||||
abort_all: () => { const u = (servingEngine() || [])[0];
|
||||
return 'Every running or queued generation stops now, and each client is cut: an agent retries its request (end its turn in the agent).'
|
||||
+ (u === KOLIBRI_UNIT || isVllmTable(u) || isLlamacpp(u) ? ` On this lane's engine, ${isLlamacpp(u) ? 'llama.cpp' : 'vLLM'}, the proxy closes each connection it relays: a generation sent to the engine straight goes on.` : ''); },
|
||||
smoke: () => 'One real 200-token generation through the proxy, the way a client uses it.',
|
||||
smoke: () => 'One real generation through the proxy, up to 2,048 tokens, the way a client uses it.',
|
||||
diag_bundle: () => 'Collects logs, state and versions into a tarball in your home; the API key is masked everywhere.',
|
||||
fit_opencode: () => 'Reads the KV pool of the engine serving now and rewrites only opencode’s context and output limits, so a conversation can never outgrow it. A dated backup is written first. If the Agent server runs, it restarts to read them: a reply it is writing then is cut short.',
|
||||
clients: p => `switch-model.sh ${p.target} --clients sets the limits of opencode, pi and claude-local for the window ${LANE_NAME[TARGET_UNIT(p.target)]}’s unit starts with, `
|
||||
@@ -850,6 +850,7 @@ const VERB = {unit: p => cap1(p.verb) + ' ' + (LANE_NAME[p.unit] || laneLabel(p.
|
||||
// where None runs nothing and only forgets the cap kept
|
||||
const argvFor = (name, p) => name === 'unit' ? ['sudo', '-n', '/usr/bin/systemctl', p.verb, p.unit]
|
||||
: name === 'speech_boot' ? ['sudo', '-n', '/usr/bin/systemctl', p.verb, SPEECH_UNIT]
|
||||
: name === 'fit_opencode' ? ['python3', 'oc-fit-limits.py', '--restart-agent']
|
||||
: name === 'boot_off' ? ['sudo', '-n', '/usr/bin/systemctl', 'disable', p.unit]
|
||||
: name === 'switch' ? ['bash', 'switch-model.sh', p.target] : name === 'fetch' ? ['bash', 'switch-model.sh', p.target, '--fetch']
|
||||
: name === 'clients' ? ['bash', 'switch-model.sh', p.target, '--clients']
|
||||
@@ -949,7 +950,10 @@ function askAction(name, params, warns, opts = {}){
|
||||
setText('sh-lede', (EXPLAIN[name] ? EXPLAIN[name](p) : '') + (F.config.dry_run ? '\n\nDry run: nothing will really be executed.' : ''));
|
||||
const w = $('sh-warns'); clear(w); (warns || []).forEach(x => w.append(el('p', null, x))); w.hidden = !(warns && warns.length);
|
||||
$('sh-journey').hidden = true; show('sh-cmd-lbl', true); show('sh-cmd', true);
|
||||
setText('sh-cmd', argvFor(name, p).join(' '));
|
||||
// a job of the cockpit's own runs no command: the sheet showed "cockpit diag_bundle", which is none (found 2026-11-30)
|
||||
const argv = argvFor(name, p), own = argv[0] === 'cockpit';
|
||||
setText('sh-cmd-lbl', own ? 'A job of this cockpit, which runs no command of its own' : 'The exact command');
|
||||
show('sh-cmd', !own); setText('sh-cmd', own ? '' : argv.join(' '));
|
||||
setText('sh-status', ''); $('sh-status').className = 'status';
|
||||
const go = $('sh-go'); go.disabled = false; setText(go, VERB[name] ? VERB[name](p) : 'Run it');
|
||||
go.className = 'btn ' + (opts.danger || (name === 'unit' && p.verb !== 'start') || name === 'abort_all' ? 'danger solid' : 'primary');
|
||||
@@ -1081,7 +1085,7 @@ function laneJourneySteps(target){
|
||||
const pointed = steps.length > switchAt;
|
||||
if (serving && serving[0] !== unit)
|
||||
steps.push({name: 'unit', params: {verb: 'stop', unit: serving[0]}, title: `Stop ${laneLabel(serving[0])}`,
|
||||
desc: isImageLane(serving[0]) || serving[0] === VIDEO_UNIT ? 'A generation in flight is lost.' : `Clients on ${proxyPort()} see the engine unavailable until the next one answers.`});
|
||||
desc: isImageLane(serving[0]) || serving[0] === VIDEO_UNIT ? 'A generation in flight is lost.' : serving[0] === TRANSCRIBE_UNIT ? 'A transcription in flight is lost.' : `Clients on ${proxyPort()} see the engine unavailable until the next one answers.`});
|
||||
// The engine serves what it loaded when it started; a switch since then (a journey that
|
||||
// stopped after its first step, switch-model.sh from a terminal) changed only what the
|
||||
// next start loads, and the restart is still owed. Read against the unit's file alone, the
|
||||
@@ -1428,7 +1432,7 @@ function renderBanners(state, errors){
|
||||
else if (e.state === 'failed') add('err', `${name} failed.`, 'systemd reports the unit failed. Read its journal in Logs, then start it again from Lanes.');
|
||||
// a server alive without its scheduler answers nothing, and systemd sees nothing wrong
|
||||
if (e.zombie) add('err', `${name} lost its scheduler.`, 'Its server process lives on and answers nothing, and systemd sees nothing wrong, so it would never come back by itself. '
|
||||
+ ((F.config || {}).zombie_restart ? (e.zombie_in > 0 ? `The cockpit restarts it in ${fmtDur(e.zombie_in)}.` : 'The cockpit restarts it now.') : 'Restart it from Lanes (COCKPIT_ZOMBIE_RESTART=0 keeps the cockpit from doing it).'));
|
||||
+ ((F.config || {}).zombie_restart ? (e.zombie_in > 0 ? `The cockpit restarts it in ${fmtDur(e.zombie_in)}.` : 'The cockpit restarts it now.') : 'Stop it and start it again from Lanes (COCKPIT_ZOMBIE_RESTART=0 keeps the cockpit from doing it).'));
|
||||
else if (e.state === 'degraded') add('warn', `${name} stopped answering.`, 'It was serving; health probes retry every 2 s. If it stays here, Logs says why.');
|
||||
});
|
||||
// A switch that is not restarted yet: the unit loads one checkpoint at its next start while
|
||||
|
||||
@@ -90,8 +90,11 @@ function s1Curl(){
|
||||
const body = JSON.stringify(s1Payload(), null, 2).split('\n').map((l, i) => i ? ' ' + l : l).join('\n');
|
||||
// the key reaches curl on its standard input (-H @-), never as an argument: any local
|
||||
// process reads a command line in /proc; printf is a builtin of sh, bash, zsh and fish
|
||||
setText('s1-curl', "printf 'Authorization: Bearer %s\\n' \"$(cat ~/.config/qwen38/api-key)\" | "
|
||||
+ "curl -s http://127.0.0.1:30001/v1/systemone \\\n"
|
||||
// where the proxy answers, as Now gives it (its port, TLS, client keys): a hard-coded http://127.0.0.1:30001 and the
|
||||
// box's key met nothing on a box installed otherwise (found 2026-11-30)
|
||||
const d = API.d, at = d ? apiBase(d).base : `http://127.0.0.1${proxyPort()}`;
|
||||
setText('s1-curl', `printf 'Authorization: Bearer %s\\n' "${d && d.client_keys ? '$YOUR_CLIENT_KEY' : `$(cat ${d ? d.key_file : '~/.config/qwen38/api-key'})`}" | `
|
||||
+ `curl -s ${at}/v1/systemone \\\n`
|
||||
+ " -H @- -H 'Content-Type: application/json' -d " + shq(body));
|
||||
s1Sync();
|
||||
}
|
||||
@@ -191,6 +194,7 @@ on('lifecycle', () => {
|
||||
if (k !== s1LaneKey){ s1LaneKey = k; if (activeView === 'decide') s1Probe(); }
|
||||
});
|
||||
onShow('decide', s1Probe);
|
||||
on('api', () => { if (s1Questions.length) s1Curl(); }); // the address of the copied call, once the cockpit has read it
|
||||
// the note's Load follows the box's class, which comes with the machine panel: a probe made before it
|
||||
// offered the flash lane on a 64 GB box until the view was opened again (found in review, 2026-10-24)
|
||||
let s1BoxCls = null;
|
||||
|
||||
@@ -133,8 +133,9 @@ function imgCurl(){
|
||||
// curl reads its own syntax inside a -F value, so the name is double-quoted with \ and "
|
||||
// escaped, and the whole value single-quoted for the shell: a name like x$(cmd).png
|
||||
// must never run cmd for whoever pastes the line
|
||||
const note = IS.refs.length ? '# the references are in this browser: save them on the box first, under these names\n' : '';
|
||||
const refs = (IS.refs.length ? IS.refs : [{name: 'input.png'}]).map(r => ` -F ${shq('image[]=@"' + String(r.name).replace(/[\\"]/g, '\\$&') + '";type=image/png')}`);
|
||||
text = where + `curl -sS ${base}/edits \\\n` + [...fields, ...refs].join(' \\\n');
|
||||
text = where + note + `curl -sS ${base}/edits \\\n` + [...fields, ...refs].join(' \\\n');
|
||||
}
|
||||
setText('img-curl', text);
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ function laneCard(unit){
|
||||
const warns = [];
|
||||
if (TRANSITIONAL.has(e.state) && unit === UFLASH) warns.push('This boot is thrown away: every flash boot writes its 47.7 GiB table from scratch, so the next start takes a whole boot again (' + readyIn(unit) + ').');
|
||||
if (e.state === 'ready') warns.push(isImageLane(unit) ? 'An image being made right now is lost.' : unit === VIDEO_UNIT ? 'A video being made right now is lost: the runtime cancels it as it stops.'
|
||||
: `Clients on ${proxyPort()} get "engine unavailable" until an engine answers again.`);
|
||||
: unit === TRANSCRIBE_UNIT ? 'A transcription being made right now is lost.' : `Clients on ${proxyPort()} get "engine unavailable" until an engine answers again.`);
|
||||
askAction('unit', {verb: 'stop', unit}, warns);
|
||||
});
|
||||
start.addEventListener('click', () => askAction('unit', {verb: 'start', unit}, []));
|
||||
@@ -263,7 +263,7 @@ on('containers', d => {
|
||||
const serving = Object.entries(d.containers || {}).find(([, c]) => c.image);
|
||||
setText('eng-image', serving ? serving[1].image.replace(/@sha256:([0-9a-f]{12})[0-9a-f]+/, '@$1…') : 'no serving container');
|
||||
setTitle('eng-image', serving ? serving[1].image : '');
|
||||
setText('px-cont', serving ? serving[0] : 'none (a diffusion lane runs natively)');
|
||||
setText('px-cont', serving ? serving[0] : imageServing() || videoServing() ? 'none (a diffusion lane runs natively)' : 'none');
|
||||
});
|
||||
on('canary', d => {
|
||||
setText('px-probe', F.canaryTxt || '…');
|
||||
|
||||
@@ -80,7 +80,7 @@ function renderPool(){
|
||||
item('color-mix(in srgb, var(--ok) 45%, transparent)', 'Free', fmtGiB(p.free));
|
||||
if (p.swap > 0.05 * GIB) item('var(--warn)', 'Swap in use', fmtGiB(p.swap));
|
||||
// the spine's gauge
|
||||
setText('minipool-v', `${(p.avail / GIB).toFixed(1)} GiB free`);
|
||||
setText('minipool-v', `${(p.avail / GIB).toFixed(1)} GiB available`);
|
||||
$('mp-used').style.width = (100 * p.inUse / p.total).toFixed(1) + '%';
|
||||
$('mp-used').style.background = s ? `var(--lane-${LANE_META[s[0]].lane})` : 'var(--brand-lane)';
|
||||
$('mp-cache').style.width = (100 * p.cache / p.total).toFixed(1) + '%';
|
||||
@@ -146,7 +146,7 @@ function renderRack(){
|
||||
const pool = e ? lanePool(unit, e) : null;
|
||||
if (pool) fact('KV pool', fmtK(pool));
|
||||
if (seated && e && e.elapsed && (st === 'ready' || st === 'degraded')) fact('up', fmtDur(e.elapsed));
|
||||
if (unit === VIDEO_UNIT) fact('4 s clip', 'about 11 min');
|
||||
if (unit === VIDEO_UNIT) fact('4 s clip', '10 to 13 min');
|
||||
if (unit === IMAGE_UNIT) fact('1024 image', laneTarget(IMAGE_UNIT) === 'image-turbo' ? 'about 7.5 s' : 'about 34 s');
|
||||
if (unit === IMAGE_H3_UNIT) fact('2048 image', 'about 16 s');
|
||||
const en = (F.units[unit] || {}).enabled;
|
||||
@@ -260,9 +260,10 @@ function renderApi(){
|
||||
// tests/test_no_secret_in_argv.py, which caught this command at first)
|
||||
const keyHeader = `@<(printf 'Authorization: Bearer %s\\n' "${d.client_keys ? '$YOUR_CLIENT_KEY' : `$(cat ${d.key_file})`}")`;
|
||||
const m = model || 'MODEL';
|
||||
// 2,048 and not 8: a lane that reasons first spent the 8 on it and answered nothing (the smoke's reason too)
|
||||
// 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 testCmd = `curl -s ${base}/v1/chat/completions -H ${keyHeader} -H 'Content-Type: application/json' -d '{"model":"${m}","messages":[{"role":"user","content":"Say ok."}],"max_tokens":8}'`;
|
||||
const testCmd = `curl -s ${base}/v1/chat/completions -H ${keyHeader} -H 'Content-Type: application/json' -d '{"model":"${m}","messages":[{"role":"user","content":"Say ok."}],"max_tokens":2048}'`;
|
||||
// the transcribe lane serves no text: once it answers (ready or degraded, like the capsule), its own
|
||||
// address is the one to give a client, and the proxy's rows say they do not reach it (review of v1.53.0, 2026-11-19)
|
||||
const tr = transcribeReady() && d.transcribe && d.transcribe.installed ? d.transcribe : null;
|
||||
|
||||
@@ -21,6 +21,7 @@ afterApply(() => {
|
||||
});
|
||||
on('decode', d => {
|
||||
const t = d.decode, u = d.usage || {};
|
||||
F.mamba = u.mamba; // the flash lane's, on the Machine view's pool guard
|
||||
if (!d.lane && (servingEngine() || [])[0] === KOLIBRI_UNIT){
|
||||
// The scheduler lines these read are SGLang's, and the server reads none off the Kolibri lane
|
||||
// (lane null): Kolibri runs no draft model, and its cache's use is vLLM's own count
|
||||
@@ -295,6 +296,8 @@ on('engine_fast', d => {
|
||||
setText('mm-floor', `stops generations under ${f.gib} GiB through the proxy${how}`
|
||||
+ (f.aborts ? `, fired ${f.aborts} time${f.aborts > 1 ? 's' : ''}` : ', never fired'));
|
||||
});
|
||||
// it fires on the flash lane's Mamba state slots too, at their own share, which the page never said (found 2026-11-30)
|
||||
const guardAt = g => `${Math.round(g.threshold * 100)} % held` + (g.mamba_threshold && (servingEngine() || [])[0] === UFLASH ? `, or ${Math.round(g.mamba_threshold * 100)} % of the Mamba state slots` + (F.mamba != null ? ` (${Math.round(100 * F.mamba)} % now)` : '') : '');
|
||||
on('lifecycle', d => {
|
||||
const g = d.pool_guard; if (!g) return;
|
||||
if (kolibriHolds()){ setText('mm-guard', 'not on the Kolibri-1 lane: vLLM has no cache flush route, and evicts its prefix cache by itself'); return; }
|
||||
@@ -302,7 +305,7 @@ on('lifecycle', d => {
|
||||
// llama.cpp's neither: the guard, which flushes SGLang's cache, said "armed" on its lane (found by its test, 2026-11-12)
|
||||
if (llamacppHolds()){ setText('mm-guard', `not on ${llamacppName((servingEngine() || [])[0])}: llama.cpp has no cache flush route, and evicts its prompt cache by itself`); return; }
|
||||
setText('mm-guard', !g.enabled ? 'off (COCKPIT_POOL_GUARD=0)' : g.fails ? `cannot flush since ${clockTime(g.last_fail)}: ${g.last_err}`
|
||||
: g.flushes ? `${g.flushes} flush${g.flushes > 1 ? 'es' : ''}, last ${clockTime(g.last)}, above ${Math.round(g.threshold * 100)} % held` : `armed at ${Math.round(g.threshold * 100)} % held, never fired`);
|
||||
: g.flushes ? `${g.flushes} flush${g.flushes > 1 ? 'es' : ''}, last ${clockTime(g.last)}, above ${guardAt(g)}` : `armed at ${guardAt(g)}, never fired`);
|
||||
});
|
||||
// nvidia-smi silent: no reading, said as such. It read a green "…", a power line falling to
|
||||
// 0 W and "No process on the GPU" (found by the monkey check, 2026-10-02)
|
||||
@@ -422,7 +425,9 @@ on('gpu', d => {
|
||||
: c.error ? 'not set, its last try failed' : 'being set again'}`
|
||||
: unknown ? `not known: ${c.tried === 'none' ? 'the try to lift it' : `the try to cap it at ${gpuCapName(c.tried)}`} did not answer, and may still apply`
|
||||
: lit === 'none' ? (c.set === 'none' ? `none, lifted${when}: the GPU runs at its own clocks` : 'none set from the cockpit')
|
||||
: `${gpuCapName(lit)}, set${c.origin === 'boot' ? ' again at the cockpit’s start' : ''}${when}`);
|
||||
: `${gpuCapName(lit)}, set${c.origin === 'boot' ? ' again at the cockpit’s start' : ''}${when}`
|
||||
// a -lgc taken and without effect was seen on a GB10 (NVIDIA forum 376039, driver 580.159): the reading says it
|
||||
+ (c.at && c.mhz > Number(lit) * 1.03 && Date.now() / 1000 - c.at > 120 ? `, but the clock read, ${fmtN(c.mhz)} MHz, stays above it` : ''));
|
||||
const m = GPU_CAPS.find(x => x.cap === lit);
|
||||
setText('gc-line', m ? `${lit === 'none' ? 'No cap, the factory setting' : gpuCapName(lit)}: ${gpuCapFigures(m)} on the reference box.` : '');
|
||||
// what failed last, and what to do: the server's own sentence (a refused sudo names the installer to run again)
|
||||
@@ -770,7 +775,7 @@ async function tailLog(){
|
||||
function refreshLogSources(){
|
||||
const sel = $('log-src'); if (!sel) return;
|
||||
[...sel.options].forEach(o => {
|
||||
if (o.id === 'log-opt-agent') return;
|
||||
if (o.id === 'log-opt-agent' || o.id === 'log-opt-cockpit') return; // this cockpit's own journal, whatever runs
|
||||
// the speech lane is no lane of the units collector: its own collector says whether it is here (v1.58)
|
||||
if (o.id === 'log-opt-speech'){
|
||||
const has = !!(F.speech && F.speech.installed);
|
||||
@@ -880,13 +885,13 @@ on('opencode', d => {
|
||||
cap('oc-cap', ok === true ? 'follows the lane' : ok === false ? 'differs' : 'on', ok === true ? 'ok' : ok === false ? 'warn' : '');
|
||||
setText('oc-state', 'on, config ' + (d.real.error ? `present but unreadable (${d.real.error})` : d.real.present ? 'present' : 'missing (copy ~/.config/qwen38/opencode.json to ~/.config/opencode/)'));
|
||||
setText('oc-default', (bad || d.real.default || 'none') + ': ' + d.why);
|
||||
setText('oc-launcher', d.launcher.present ? (d.launcher.ours ? `oc, output cap ${d.launcher.cap ? fmtN(d.launcher.cap) : '?'}` : 'a foreign oc, launcher not installed') : 'missing (re-run ./install.sh)');
|
||||
setText('oc-launcher', d.launcher.present ? (!d.launcher.ours ? 'a foreign oc, launcher not installed' : d.launcher.major === 2 ? 'oc, OpenCode 2: an answer goes up to the model’s own output limit' : d.launcher.cap ? `oc, output cap ${fmtN(d.launcher.cap)}` : 'oc') : 'missing (re-run ./install.sh)');
|
||||
const f = d.fit;
|
||||
setText('oc-fit', !f ? 'unknown until an engine serves' : f.ok ? `fits: prompt up to ${fmtN(f.context)} of ${fmtN(f.prompt_cap)}, with the answer ${fmtN(f.worst)} of ${fmtN(f.usable)}`
|
||||
: `too large, ${f.why}: ${fmtN(f.asked)} asked, ${fmtN(f.limit)} servable`);
|
||||
$('oc-fit').className = 'wrap' + (f && !f.ok ? ' warn-t' : '');
|
||||
show('oc-cmd', true);
|
||||
setText('oc-note', 'One command: the launcher lifts the output cap and auto-approves permissions. The default model follows every switch; running sessions keep the model they started with.');
|
||||
setText('oc-note', (d.launcher.major === 2 ? 'One command: the launcher starts OpenCode 2 and approves every tool call no rule denies.' : 'One command: the launcher lifts the output cap and auto-approves permissions.') + ' The default model follows every switch; running sessions keep the model they started with.');
|
||||
badge('settings', ok === false ? '!' : '', 'warn');
|
||||
});
|
||||
// The fit button refuses before the click, with its reason under it, as the actions menu does
|
||||
|
||||
@@ -57,7 +57,7 @@ function trRenderLane(){
|
||||
else if (!e){ sig = laneFits(TRANSCRIBE_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 transcribe lane is not installed. '),
|
||||
el('span', null, sig === 'absent' ? 'On the box: ./install.sh --with-transcribe (about 37 GB of GGUF and 8 of image).'
|
||||
el('span', null, sig === 'absent' ? 'On the box: ./install.sh --with-transcribe (about 37 GB of GGUF and 2.7 of image).'
|
||||
: `It ${NEEDS_128}, and this box is a 64 GB one.`));
|
||||
b.append(d); box.append(b); }; }
|
||||
else if (ready){ sig = 'ready'; build = () => {}; }
|
||||
@@ -108,7 +108,7 @@ async function trLane(){
|
||||
function trProblem(){
|
||||
if (!TRS.audio) return 'Drop an audio file or record one first.';
|
||||
if (TRS.audio.size > TR_MAX_AUDIO)
|
||||
return `The file is ${(TRS.audio.size / 1e6).toFixed(1)} MB and the cap is ${TR_MAX_AUDIO / 1048576} MB (about 33 minutes at the 16 kHz mono this page records). Cut it or convert it first.`;
|
||||
return `The file is ${(TRS.audio.size / 1048576).toFixed(1)} MiB and the cap is ${TR_MAX_AUDIO / 1048576} MiB (about 33 minutes at the 16 kHz mono this page records). Cut it or convert it first.`;
|
||||
return '';
|
||||
}
|
||||
|
||||
@@ -133,7 +133,7 @@ function trPickFiles(files){
|
||||
TRS.touched = true;
|
||||
if (f.size > TR_MAX_AUDIO){
|
||||
TRS.audio = null; trSync();
|
||||
toast(`The file is ${(f.size / 1e6).toFixed(1)} MB and the cap is ${TR_MAX_AUDIO / 1048576} MB, about 33 minutes at the 16 kHz mono this page records. Cut it or convert it first.`, 'warn', 8000);
|
||||
toast(`The file is ${(f.size / 1048576).toFixed(1)} MiB and the cap is ${TR_MAX_AUDIO / 1048576} MiB, about 33 minutes at the 16 kHz mono this page records. Cut it or convert it first.`, 'warn', 8000);
|
||||
return;
|
||||
}
|
||||
if (!TR_EXT_OK.test(f.name || '') && !TR_MIME_OK.test(f.type || '')){
|
||||
@@ -317,6 +317,7 @@ function trCurl(){
|
||||
const a = TRS.audio, lang = trVal('tcr-lang');
|
||||
setText('tcr-curl', [
|
||||
'# run this ON the box: the NVIDIA Nemotron Transcribe lane listens on loopback and checks the box key',
|
||||
...(a ? ['# the file is on the machine of this browser: copy it to the box first'] : []),
|
||||
`curl -sS http://${TRS.host}:${TRS.port}/v1/audio/transcriptions \\`,
|
||||
` -H @<(printf 'Authorization: Bearer %s\\n' "$(head -1 ~/.config/qwen38/api-key)") \\`,
|
||||
` -F file=@${shq(a ? a.name : 'audio.wav')} -F response_format=json` + (lang ? ` -F language=${lang}` : ''),
|
||||
@@ -332,7 +333,7 @@ function wireTranscribe(){
|
||||
['dragleave', 'drop'].forEach(ev => dz.addEventListener(ev, e => { e.preventDefault(); dz.classList.remove('over'); }));
|
||||
dz.addEventListener('drop', e => trPickFiles(e.dataTransfer ? e.dataTransfer.files : null));
|
||||
$('tcr-run').addEventListener('click', trRun);
|
||||
$('tcr-reset').addEventListener('click', () => { TRS.audio = null; TRS.result = null; TRS.touched = false; trShowEmpty(); trCurl(); trSync(); });
|
||||
$('tcr-reset').addEventListener('click', () => { TRS.audio = null; TRS.result = null; TRS.touched = false; $('tcr-lang').value = ''; trShowEmpty(); trCurl(); trSync(); });
|
||||
wireCopyButton($('tcr-copy'), () => TRS.result ? TRS.result.text : '', 'Copy the transcript');
|
||||
$('tcr-dl').addEventListener('click', trDownload);
|
||||
wireCopyButton($('tcr-curl-copy'), () => $('tcr-curl').textContent, 'Copy the command');
|
||||
|
||||
@@ -201,7 +201,7 @@ function vidRenderLane(){
|
||||
// ── the stage: empty, working, or the video ───────────────────────────────────
|
||||
function vidScreenEmpty(){
|
||||
const sc = $('vid-screen'); if (sc.dataset.mode === 'empty') return; sc.dataset.mode = 'empty'; clear(sc); fitScreen(sc);
|
||||
const d = el('div', 'empty'); d.append(el('b', null, 'Your video appears here'), el('span', null, 'A 4 s clip at 480p takes about ten minutes on this box.')); sc.append(d);
|
||||
const d = el('div', 'empty'); d.append(el('b', null, 'Your video appears here'), el('span', null, 'A 4 s clip at 480p takes 10 to 13 minutes on this box.')); sc.append(d);
|
||||
}
|
||||
// While the lane works, the screen shows where it is: a ring filled to the step, the
|
||||
// number of the step, and the phase in words. The lane cannot show a frame before the end.
|
||||
|
||||
@@ -71,6 +71,7 @@ for a in "$@"; do printf '%s\037' "$a"; done >> "$here/calls"; printf '\n' >> "$
|
||||
case "$(cat "$here/mode")" in
|
||||
ok) case "$*" in *-rgc*) echo "All done." ;;
|
||||
*) echo "GPU clocks set to \"(gpuClkMin 0, gpuClkMax ${4#0,})\" for GPU 0000000F:01:00.0"; echo "WARNING" ;; esac ;;
|
||||
warned) echo "Setting locked GPU clocks is not supported for GPU 0000000F:01:00.0."; echo "Treating as warning and moving on."; echo "All done." ;;
|
||||
refuse) echo "sudo: a password is required" >&2; exit 1 ;;
|
||||
refuse-fr) echo "sudo: un mot de passe est nécessaire" >&2; exit 1 ;;
|
||||
fail) echo "Setting locked GPU clocks is not supported for GPU 0000000F:01:00.0."; echo "WARNING"; exit 3 ;;
|
||||
@@ -521,6 +522,16 @@ class EachFailureIsSaid(Base):
|
||||
self.assertEqual((result["error"], result["said"]), ("failed", said))
|
||||
self.assert_said("failed", said, 1)
|
||||
|
||||
def test_a_refusal_turned_into_a_warning_is_a_refusal(self):
|
||||
# nvidia-smi 595 carries both sentences and fails on a warning with -eow alone, which the argv does not pass: exit 0
|
||||
# read as "GPU clock capped at 2,200 MHz" (found 2026-11-30)
|
||||
self.mode("warned")
|
||||
_, ok, _, result = self.job("2200")
|
||||
self.assertFalse(ok)
|
||||
said = "nvidia-smi refused: Setting locked GPU clocks is not supported for GPU 0000000F:01:00.0."
|
||||
self.assertEqual((result["error"], result["said"]), ("failed", said))
|
||||
self.assertIsNone(self.kept())
|
||||
|
||||
def test_a_call_that_never_answers_is_said_after_its_timeout(self):
|
||||
# nvidia-smi runs as root: the cockpit ends its sudo at the deadline, and the nvidia-smi it started may
|
||||
# still set or lift the cap. So neither the cap tried nor the one before is said to hold
|
||||
|
||||
@@ -817,7 +817,9 @@ class ReadRoutes(Base):
|
||||
"qwen38-flash-unsloth.service", "qwen38-image-h3.service", "qwen38-transcribe.service", "qwen38-lfm25.service",
|
||||
"qwen38-lfm3.service", "qwen38-inkling.service", "qwen38-keepalive.service", "opencode-web.service",
|
||||
# the speech lane, on the CPU beside any lane (v1.58.0): its journal is read like the others
|
||||
"qwen38-speech.service"})
|
||||
"qwen38-speech.service",
|
||||
# and this cockpit's own, where Settings sends for why a file of its was not read (2026-11-30)
|
||||
"qwen38-dashboard.service"})
|
||||
|
||||
def test_a_known_log_source_answers_with_bounded_lines(self):
|
||||
cookie = self.login()
|
||||
|
||||
@@ -49,6 +49,18 @@ class TheConfigAsOpencodeReadsIt(unittest.TestCase):
|
||||
out = self.cp.collect_opencode()
|
||||
return out.get("data", out)["real"]
|
||||
|
||||
def test_the_launcher_is_read_as_the_opencode_it_starts(self):
|
||||
# OpenCode 2's launcher, the default since v1.56.0, lifts no cap: the page read "output cap ?" (found 2026-11-30)
|
||||
oc = self.tmp / ".local" / "bin" / "oc"
|
||||
oc.parent.mkdir(parents=True, exist_ok=True)
|
||||
for text, want in (("#!/bin/bash\n# oc launcher installed by dgx-spark-qwen38: ...\n# This one starts OpenCode 2 (...)\n", (True, None, 2)),
|
||||
("#!/bin/bash\n# oc launcher installed by dgx-spark-qwen38\nexport OPENCODE_EXPERIMENTAL_OUTPUT_TOKEN_MAX=200000\n", (True, 200000, 1))):
|
||||
oc.write_text(text)
|
||||
out = self.cp.collect_opencode()
|
||||
got = out.get("data", out)["launcher"]
|
||||
self.assertEqual((got["ours"], got["cap"], got["major"]), want)
|
||||
oc.unlink()
|
||||
|
||||
def test_comments_and_trailing_commas_are_read(self):
|
||||
real = self.collect(COMMENTED)
|
||||
self.assertNotIn("error", real)
|
||||
|
||||
@@ -69,27 +69,27 @@ class NoneIsTheDefaultAndEachCapSaysWhatItCost(unittest.TestCase):
|
||||
self.assertEqual(r["tabs"], [0, -1, -1, -1])
|
||||
self.assertEqual((r["group"], r["named"], r["name"]), ("radiogroup", "gc-label", "Cap"))
|
||||
|
||||
def test_the_clock_read_is_said_to_lag_then_follow_the_cap(self):
|
||||
def test_the_clock_read_is_said_to_lag_and_a_gpu_at_rest_to_read_its_own(self):
|
||||
# Measured on the reference box, 2026-11-11: an idle GPU still read 2,502 MHz two seconds after a cap of
|
||||
# 2,000 was set, and 1,989 MHz just after it was lifted; after 51 to 111 s of rest, idle, it read each
|
||||
# cap (1,989 MHz under 2,000) and 2,411 MHz with none, 51 s after it was lifted. The page said the reading
|
||||
# did not move at idle, then that it lagged "a few seconds", a lag only known to be between 2 and 51 s (the
|
||||
# final review of v1.47.0).
|
||||
# final review of v1.47.0). Under driver 595.99.02 an idle GPU reads 208 MHz whatever the cap (2026-11-30).
|
||||
html = (REPO / "dashboard" / "static" / "index.html").read_text()
|
||||
for wrong in ("Clock now", "last run at", "last ran at", "does not move"):
|
||||
self.assertNotIn(wrong, html)
|
||||
self.assertIn('<dt>Clock read</dt><dd class="num" id="gc-mhz">', html)
|
||||
said = re.search(r'<p class="faint" id="gc-read"[^>]*>([^<]+)</p>', html).group(1)
|
||||
for words in ("lag behind a change of cap", "still the old one 2 s after it on the reference box",
|
||||
"follows the cap within a minute", "idle included",
|
||||
"up to a minute", "208 MHz under driver 595.99",
|
||||
"above the cap just after it is set is not a cap that failed"):
|
||||
self.assertIn(words, said)
|
||||
self.assertNotIn("a few seconds", said)
|
||||
doc = " ".join((REPO / "docs" / "cockpit.md").read_text().split())
|
||||
for wrong in ("last ran at", "does not move", "last run at", "lag a few seconds"):
|
||||
self.assertNotIn(wrong, doc)
|
||||
for words in ("can lag behind a change of cap (still the old one 2 s after it on the reference box), then follows "
|
||||
"the cap within a minute, the GPU idle included",
|
||||
for words in ("can lag behind a change of cap (still the old one 2 s after it on the reference box), up to a minute",
|
||||
"208 MHz at 3.8 W",
|
||||
"a reading above the cap just after it is set is not a cap that failed"):
|
||||
self.assertIn(words, doc)
|
||||
|
||||
@@ -367,7 +367,7 @@ class WhatCannotRunIsOffWithWhy(unittest.TestCase):
|
||||
"it cannot set here: None forgets it.")
|
||||
self.assertEqual(r["focused"], "none", "an arrow moved the focus to a cap that is off")
|
||||
self.assertTrue(r["sheet"]["open"])
|
||||
self.assertEqual(r["sheet"]["cmd"], "cockpit gpu_clock", "the sheet named an nvidia-smi call the job does not make")
|
||||
self.assertEqual(r["sheet"]["cmd"], "", "the sheet named a call the job does not make")
|
||||
self.assertTrue(r["sheet"]["lede"].startswith("This machine has no /usr/bin/nvidia-smi, so nothing is run: the cockpit "
|
||||
"forgets the cap it keeps for its next start (2,400 MHz)"), r["sheet"]["lede"])
|
||||
self.assertEqual(r["forgotten"]["disabled"], [True] * 4, "with nothing kept, None has nothing to do")
|
||||
|
||||
@@ -1830,7 +1830,7 @@ class TheStartGuardAndALostSchedulerAreSaidAsTheyAre(unittest.TestCase):
|
||||
r = self.page("eng('degraded', {zombie: true, zombie_in: 0})", "{zombie_restart: true}")
|
||||
self.assertIn("The cockpit restarts it now.", r["banner"])
|
||||
r = self.page("eng('degraded', {zombie: true, zombie_in: 0})", "{zombie_restart: false}")
|
||||
self.assertIn("Restart it from Lanes", r["banner"])
|
||||
self.assertIn("Stop it and start it again from Lanes", r["banner"])
|
||||
self.assertNotIn("The cockpit restarts it", r["banner"])
|
||||
|
||||
def test_a_plain_degraded_engine_keeps_its_own_words(self):
|
||||
|
||||
@@ -348,5 +348,143 @@ class TheImageView(unittest.TestCase):
|
||||
self.assertEqual(r, 0)
|
||||
|
||||
|
||||
class SettingsSaysItsLauncher(unittest.TestCase):
|
||||
""""Launcher: oc, output cap ?" and "the launcher lifts the output cap" on every box of OpenCode 2, the default since
|
||||
v1.56.0, whose launcher lifts none and says so."""
|
||||
|
||||
def test_each_launcher_by_what_it_does(self):
|
||||
body = r"""
|
||||
feed({config: CONFIG, units: UNITS, opencode: {enabled: true, real: {present: true, default: 'qwen38/qwen3.8-27b', limits: {}}, launcher: %s, follows: true, why: '', fit: null}});
|
||||
report([txt('oc-launcher'), txt('oc-note')]);
|
||||
"""
|
||||
two = run(self, body % "{present: true, ours: true, cap: null, major: 2}")
|
||||
self.assertEqual(two[0], "oc, OpenCode 2: an answer goes up to the model’s own output limit")
|
||||
self.assertIn("starts OpenCode 2 and approves every tool call no rule denies", two[1])
|
||||
one = run(self, body % "{present: true, ours: true, cap: 200000, major: 1}")
|
||||
self.assertEqual(one[0], "oc, output cap 200,000")
|
||||
self.assertIn("lifts the output cap", one[1])
|
||||
|
||||
def test_the_cockpit_reads_which_one_it_is_off_the_installers_own_words(self):
|
||||
src = (pagejs.DASH / "cockpit.py").read_text()
|
||||
self.assertIn('2 if "starts OpenCode 2" in txt else 1', src)
|
||||
self.assertIn("# This one starts OpenCode 2", (REPO / "install.sh").read_text())
|
||||
|
||||
|
||||
class TheSheetShowsACommandWhenThereIsOne(unittest.TestCase):
|
||||
""""Every action shows the exact command it will run": a job of the cockpit's own runs none, and the sheet showed
|
||||
"cockpit diag_bundle", which is not a command."""
|
||||
|
||||
def test_the_fits_command_and_the_jobs_with_none(self):
|
||||
r = run(self, r"""
|
||||
feed({config: CONFIG, units: UNITS, lifecycle: life({'qwen38-sglang.service': eng('ready')})});
|
||||
const out = {};
|
||||
for (const a of ['fit_opencode', 'diag_bundle', 'smoke', 'flush_cache', 'abort_all', 'delete_strays']){
|
||||
askAction(a, {}, []); out[a] = [txt('sh-cmd-lbl'), txt('sh-cmd'), $('sh-cmd').hidden]; closeSheet(); }
|
||||
askAction('unit', {verb: 'stop', unit: U27}, []);
|
||||
report({out, unit: [txt('sh-cmd-lbl'), txt('sh-cmd'), $('sh-cmd').hidden], smoke: EXPLAIN.smoke()});
|
||||
""")
|
||||
self.assertEqual(r["out"].pop("fit_opencode"), ["The exact command", "python3 oc-fit-limits.py --restart-agent", False])
|
||||
for name, said in r["out"].items():
|
||||
self.assertEqual(said, ["A job of this cockpit, which runs no command of its own", "", True], name)
|
||||
self.assertEqual(r["unit"], ["The exact command", "sudo -n /usr/bin/systemctl stop qwen38-sglang.service", False])
|
||||
self.assertIn("up to 2,048 tokens", r["smoke"]) # what job_smoke asks (cockpit.py)
|
||||
self.assertIn("up to 2048 tokens", (pagejs.DASH / "cockpit.py").read_text())
|
||||
|
||||
|
||||
class TheCapTheClockDoesNotFollow(unittest.TestCase):
|
||||
"""A cap whose call was taken and has no effect read "set at 10:00" for good, over the clock read beside it."""
|
||||
|
||||
BODY = r"""
|
||||
const now = Date.now() / 1000;
|
||||
const clock = o => ({gpu: {power_w: 40, temp_c: 60, procs: [], clock: Object.assign({nvidia_smi: true, mhz: 2990, kept: '2400', set: '2400', at: now - 300, origin: 'ui', tried: '2400', error: null}, o)}});
|
||||
feed(Object.assign({config: CONFIG, units: UNITS}, clock(%s))); report(txt('gc-state'));
|
||||
"""
|
||||
|
||||
def test_it_says_the_clock_that_stays_above_it(self):
|
||||
self.assertIn("but the clock read, 2,990 MHz, stays above it", run(self, self.BODY % "{}"))
|
||||
for ok in ("{mhz: 2392}", "{mhz: 2460}", "{mhz: 208}", "{at: now - 60}", "{mhz: null}", "{set: 'none', kept: 'none'}"):
|
||||
self.assertNotIn("stays above it", run(self, self.BODY % ok), ok)
|
||||
|
||||
|
||||
class SmallWordsThatWereNotTrue(unittest.TestCase):
|
||||
def test_the_zombie_banner_names_verbs_the_lanes_view_has(self):
|
||||
r = run(self, r"""
|
||||
feed({config: CONFIG, units: UNITS, lifecycle: life({'qwen38-sglang.service': eng('ready', {zombie: true})})});
|
||||
report({banner: txt('banners'), verbs: [...document.querySelectorAll('#lanes-list button')].map(b => b.textContent).filter(t => /Restart/.test(t))});
|
||||
""")
|
||||
self.assertIn("Stop it and start it again from Lanes", r["banner"])
|
||||
self.assertNotIn("Restart it from Lanes", r["banner"])
|
||||
|
||||
def test_a_copied_test_call_leaves_room_to_reason(self):
|
||||
now = (pagejs.STATIC / "js" / "now.js").read_text()
|
||||
self.assertIn('"max_tokens":2048', now) # 8 were spent on the reasoning: an empty answer
|
||||
|
||||
def test_decides_copied_call_goes_where_the_proxy_is(self):
|
||||
api = r"""
|
||||
feed({config: CONFIG, units: UNITS, api: {known: true, port: 31001, bind: '0.0.0.0', tls: %s, client_keys: %s, key_file: '/home/me/.config/qwen38/api-key', addresses: []}});
|
||||
report(txt('s1-curl'));
|
||||
"""
|
||||
plain = run(self, api % ("false", "false"))
|
||||
self.assertIn('"$(cat /home/me/.config/qwen38/api-key)" | curl -s http://127.0.0.1:31001/v1/systemone', plain)
|
||||
tls = run(self, api % ("true", "true"))
|
||||
self.assertIn('"$YOUR_CLIENT_KEY" | curl -s https://127.0.0.1:31001/v1/systemone', tls)
|
||||
self.assertNotIn("api-key", tls)
|
||||
|
||||
def test_a_copied_call_says_its_files_are_not_on_the_box(self):
|
||||
r = run(self, r"""
|
||||
const before = (trCurl(), txt('tcr-curl'));
|
||||
trAcceptAudio('recording-1.wav', 10, 'audio/wav', 'data:audio/wav;base64,AAAA', 1, true);
|
||||
IS.mode = 'edit'; IS.refs = [{name: 'previous-output.png', dataUrl: 'data:,', w: 1, h: 1}]; imgCurl();
|
||||
report({before, rec: txt('tcr-curl'), img: txt('img-curl')});
|
||||
""")
|
||||
self.assertNotIn("copy it to the box first", r["before"])
|
||||
self.assertIn("copy it to the box first", r["rec"])
|
||||
self.assertIn("save them on the box first", r["img"])
|
||||
|
||||
def test_the_transcription_texts_agree_and_its_reset_resets_the_language(self):
|
||||
r = run(self, r"""
|
||||
$('tcr-lang').value = 'fr'; $('tcr-reset').click();
|
||||
TRS.audio = {name: 'a.wav', size: 80 * 1048576, type: 'audio/wav', dataUrl: 'x'};
|
||||
report({lang: $('tcr-lang').value, problem: trProblem()});
|
||||
""")
|
||||
self.assertEqual(r["lang"], "")
|
||||
self.assertIn("80.0 MiB and the cap is 64 MiB", r["problem"])
|
||||
self.assertIn("/ 2 ** 20:.0f} MiB", (pagejs.DASH / "cockpit.py").read_text()) # the server's, the same 64 MiB
|
||||
self.assertIn("2.7 of image", (pagejs.STATIC / "js" / "transcribe.js").read_text())
|
||||
|
||||
def test_the_lanes_view_says_what_a_stopped_transcription_loses_and_no_container_is_none(self):
|
||||
r = run(self, r"""
|
||||
feed({config: CONFIG, units: UNITS, containers: {containers: {}}, lifecycle: life({'qwen38-transcribe.service': eng('ready', {target: 'transcribe'}), 'qwen38-sglang.service': eng('stopped')})});
|
||||
LCARDS.get('qwen38-transcribe.service').stop.click(); const stop = txt('sh-warns'); closeSheet();
|
||||
const step = laneJourneySteps('stock').find(s => s.params.verb === 'stop').desc;
|
||||
feed({containers: {containers: {}}, lifecycle: life({'qwen38-sglang.service': eng('stopped')})}); feed({containers: {containers: {}}});
|
||||
report({stop, step, none: txt('px-cont')});
|
||||
""")
|
||||
self.assertEqual((r["stop"], r["step"]), ("A transcription being made right now is lost.", "A transcription in flight is lost."))
|
||||
self.assertEqual(r["none"], "none")
|
||||
|
||||
def test_the_pool_guard_says_the_mamba_slots_on_the_flash_lane_alone(self):
|
||||
body = r"""
|
||||
feed({config: CONFIG, units: UNITS, decode: {usage: {tokens: 0.2, mamba: 0.31}, lane: 'x'}, lifecycle: life({%s: eng('ready')}, {pool_guard: {enabled: true, threshold: 0.6, mamba_threshold: 0.5, fails: 0, flushes: 0}})});
|
||||
feed({lifecycle: life({%s: eng('ready')}, {pool_guard: {enabled: true, threshold: 0.6, mamba_threshold: 0.5, fails: 0, flushes: 0}})});
|
||||
report(txt('mm-guard'));
|
||||
"""
|
||||
flash = run(self, body % (("'qwen38-flash.service'",) * 2))
|
||||
self.assertEqual(flash, "armed at 60 % held, or 50 % of the Mamba state slots (31 % now), never fired")
|
||||
self.assertEqual(run(self, body % (("'qwen38-sglang.service'",) * 2)), "armed at 60 % held, never fired")
|
||||
|
||||
def test_the_cockpits_own_journal_is_a_source_and_the_docs_are_the_pages(self):
|
||||
self.assertIn('<option value="qwen38-dashboard.service" id="log-opt-cockpit">', HTML)
|
||||
r = run(self, "feed({config: CONFIG, units: UNITS}); report(document.getElementById('log-opt-cockpit').disabled);")
|
||||
self.assertFalse(r)
|
||||
self.assertIn("the last 40 events", (REPO / "README.md").read_text())
|
||||
self.assertIn("renderEvents($('log-events'), 40)", (pagejs.STATIC / "js" / "ops.js").read_text())
|
||||
for doc in ("image-h3-lane.md", "transcribe-lane.md", "cockpit.md", "video-lane.md"):
|
||||
self.assertNotIn("TODO(", (REPO / "docs" / doc).read_text(), doc)
|
||||
cockpit = (REPO / "docs" / "cockpit.md").read_text()
|
||||
self.assertNotIn("which is not a lane yet", cockpit)
|
||||
self.assertNotIn("- **the measured comparison against the hosted Jev**", cockpit)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main(verbosity=2)
|
||||
@@ -35,7 +35,7 @@ class EveryActionButtonIsWired(unittest.TestCase):
|
||||
const seen = [];
|
||||
for (const b of document.querySelectorAll('[data-act]')){
|
||||
const act = b.dataset.act; b.disabled = false; b.click();
|
||||
seen.push({act, opened: !$('scrim').hidden, title: txt('sh-title'), cmd: txt('sh-cmd')});
|
||||
seen.push({act, opened: !$('scrim').hidden, title: txt('sh-title'), cmd: txt('sh-cmd') || txt('sh-cmd-lbl')});
|
||||
closeSheet();
|
||||
}
|
||||
report(seen);
|
||||
@@ -46,7 +46,8 @@ class EveryActionButtonIsWired(unittest.TestCase):
|
||||
with self.subTest(act=s["act"]):
|
||||
self.assertTrue(s["opened"], f"{s['act']} does nothing when pressed")
|
||||
self.assertNotIn("_", s["title"], "a title of its own, not the action's wire name")
|
||||
self.assertTrue(s["cmd"], "the sheet shows the command")
|
||||
self.assertNotEqual(s["cmd"], "The exact command", "the sheet shows the command, or says it is a job with none")
|
||||
self.assertTrue(s["cmd"], "the sheet shows the command, or says it is a job with none")
|
||||
|
||||
def test_every_action_the_server_knows_has_a_title_a_verb_and_an_explanation(self):
|
||||
base = JS["base.js"]
|
||||
|
||||
+12
-8
@@ -360,11 +360,14 @@ cap (105.87 tok/s, against 105.74 and 105.02 for the two runs without one) for 1
|
||||
GPU and 2.4 °C less at the box's hottest zone; at 2,000 MHz it gave up 2.59 tok/s at 4 streams (2.4 %)
|
||||
for less than half the GPU's watts and 8.2 °C less.
|
||||
|
||||
The clock nvidia-smi reads can lag behind a change of cap (still the old one 2 s after it on the reference box), then
|
||||
follows the cap within a minute, the GPU idle included. On the reference box an idle GPU still read 2,502 MHz two
|
||||
seconds after a cap of 2,000 MHz was set, and still 1,989 MHz just after that cap was lifted; after 51 to 111 s of
|
||||
rest, idle at 7 to 12 W, it read 2,392 MHz under a cap of 2,400, 2,197 under 2,200, 1,989 under 2,000, and 2,411 MHz
|
||||
with no cap (51 s after the cap was lifted). So a reading above the cap just after it is set is not a cap that failed.
|
||||
The clock nvidia-smi reads can lag behind a change of cap (still the old one 2 s after it on the reference box), up to
|
||||
a minute. On the reference box an idle GPU still read 2,502 MHz two seconds after a cap of 2,000 MHz was set, and still
|
||||
1,989 MHz just after that cap was lifted; after 51 to 111 s of rest, idle at 7 to 12 W, it read 2,392 MHz under a cap
|
||||
of 2,400, 2,197 under 2,200, 1,989 under 2,000, and 2,411 MHz with no cap (51 s after the cap was lifted). Under driver
|
||||
595.99.02 a GPU at rest reads its own idle clock instead, whatever the cap: 208 MHz at 3.8 W (2026-11-30). So a reading
|
||||
above the cap just after it is set is not a cap that failed, and the view says one that stays more than 3 % above it two
|
||||
minutes after. nvidia-smi can also refuse a cap and exit 0 ("Setting locked GPU clocks is not supported ...", "Treating
|
||||
as warning and moving on."): that is said as the refusal it is, not as a cap that holds.
|
||||
|
||||
What this does not say yet: one lane was measured, a text one, with one run per cap (None twice,
|
||||
first and last), and the image, video and 27B lanes are not measured. The watts are the GPU's
|
||||
@@ -375,7 +378,7 @@ GPU active with its desktop. The cap set again at the cockpit's start was run fr
|
||||
cockpit, not from a cold boot of the box: if nvidia-smi cannot answer yet when the cockpit starts,
|
||||
that try fails, the view says the kept cap is not set, and a click sets it.
|
||||
|
||||
An image model under study, MiniMax-H3-Image, which is not a lane yet, was measured the same day,
|
||||
MiniMax-H3-Image, not a lane yet then, was measured the same day,
|
||||
one image at a time (10 at 2048x2048 and 3 at 4736x3552 per cap, no cap again at the end): 2,400
|
||||
MHz changed nothing, and 2,000 MHz cost 8 % more time per image (16.86 s against 15.58 s, and 89.15
|
||||
s against 82.87 s) for 28 to 34 % fewer GPU watts and a box's hottest zone at 87.7 °C against 97.0
|
||||
@@ -418,7 +421,8 @@ to see one was curl. The view is the console for it, and it exercises the whole
|
||||
radix cache served
|
||||
- **the same call as a curl** that updates as you type and copies in one click, because the
|
||||
point of the view is the request, not the view
|
||||
- **the measured comparison against the hosted Jev**, task by task, from BENCHMARKS.md
|
||||
|
||||
The measured comparison against the hosted Jev, task by task, is in BENCHMARKS.md.
|
||||
|
||||
The serving key never reaches the page. The browser sends the state and the questions to the
|
||||
cockpit, and the cockpit calls the proxy with the key it already holds; a test asserts that a
|
||||
@@ -457,7 +461,7 @@ lanes. The key is in neither the page nor any answer; a test asserts it.
|
||||
`response_format` but `json` is refused by its server.
|
||||
- **the lane on demand**, like the other lanes: the card in the view says whether it serves, and
|
||||
offers the same Load journey as the Lanes view when it does not.
|
||||
- **a bounded file**: 64 MB of decoded audio (about 33 minutes at the 16 kHz mono the page
|
||||
- **a bounded file**: 64 MiB of decoded audio (about 33 minutes at the 16 kHz mono the page
|
||||
records), refused before it is read, because the cockpit process shares the box's unified memory
|
||||
with the lane; one transcription at a time, as the lane serves one request at a time.
|
||||
|
||||
|
||||
@@ -28,8 +28,8 @@ does it all at install and proves it serves; `--no-image-h3` leaves it out of th
|
||||
and processor: the repository's diffusers copies and its own copy of the text encoder are left out);
|
||||
its text encoder, 66.7 GB, which is MiniMax-H3's `text_encoder/` folder at the revision the video lane
|
||||
pins (42ed227e), the same 23 files as the video lane's partitions, so nothing is downloaded for it on a
|
||||
box whose video lane has its weights; the runtime, about 15 GB with its build (TODO(measure) on the
|
||||
reference box). 84 GB beside the video lane, 151 without it. The installer and the switch check the
|
||||
box whose video lane has its weights; the runtime, about 15 GB with its build (estimated, not measured
|
||||
on the reference box). 84 GB beside the video lane, 151 without it. The installer and the switch check the
|
||||
room before the first byte.
|
||||
- **Memory:** the engine peaked at 92.3 GB on the reference box, and the recipe asks for 106 GiB
|
||||
available at its start (below that, the runtime offloads components and runs slower). It fits beside
|
||||
@@ -66,7 +66,7 @@ end to end, one image at a time:
|
||||
| start, weights from the external SSD | 451 s |
|
||||
|
||||
The hottest zone reached 95 to 97.5 C without a GPU clock cap, and 88 to 93 C at 2,000 MHz for 8 % more
|
||||
time (study G4b). TODO(measure): the same from the lane's own venv and unit, its memory at the peak
|
||||
time (study G4b). Not measured yet: the same from the lane's own venv and unit, its memory at the peak
|
||||
without the recipe's container limit, and its CPU at rest.
|
||||
|
||||
## In the cockpit
|
||||
|
||||
@@ -84,7 +84,7 @@ tokens.
|
||||
| ready | 15 s, 81 GiB available (76 at the lowest) |
|
||||
| French WER | 2.76 % over the 20-excerpt set (291 s of audio), real time factor 0.096, 1.40 s an excerpt on average |
|
||||
| English WER | 0.40 % over 10 excerpts (92 s of audio), real time factor 0.099, 0.90 s an excerpt on average |
|
||||
| four requests in parallel | 8 excerpts, 124 s of audio in 6.0 s, 20.5 x real time |
|
||||
| four requests in parallel (the trial's server; the lane takes one at a time) | 8 excerpts, 124 s of audio in 6.0 s, 20.5 x real time |
|
||||
|
||||
The comparison is the speech lane's own set and its recognizers, measured on the same excerpts: French
|
||||
WER 5.6 % for its best Qwen3-ASR 1.7B and 9.7 % for its default (the [speech lane's page](speech-lane.md)
|
||||
@@ -119,7 +119,7 @@ The **Transcription** view drives the lane when it serves. The browser never tal
|
||||
never holds its key: it sends the audio file to the cockpit's `POST /api/transcribe` (a base64 data
|
||||
URL, the file name, the language), and the cockpit relays it to `/v1/audio/transcriptions` on the
|
||||
lane's port with the box's key read from its file, one file at a time under a lock, with the body
|
||||
capped at 90 MB and the decoded audio at 64 MB before anything is read (about 33 minutes at the
|
||||
capped at 90 MB and the decoded audio at 64 MiB before anything is read (about 33 minutes at the
|
||||
16 kHz mono the page records, and the cockpit process shares the box's unified memory with the
|
||||
lane). `GET /api/transcribe` reports the lane for the view's card, and the lock as `busy` while
|
||||
another transcription runs. A 401 from the lane (its key file changed while it runs) is answered
|
||||
|
||||
+1
-1
@@ -327,7 +327,7 @@ def make_handler(tts, asr_url, default_voice, asr_name, tts_name="kokoro-82m", a
|
||||
mapped = OPENAI_VOICES[voice]
|
||||
voice = mapped if english and mapped and mapped in tts.voices else default_voice
|
||||
if voice not in tts.voices:
|
||||
return self._err(400, f"no voice '{voice}': GET /v1/voices lists the {len(tts.voices)} there are")
|
||||
return self._err(400, f"no voice '{voice}': GET /v1/voices lists the {sum(map(len, by_language.values()))} there are")
|
||||
try:
|
||||
speed = float(req.get("speed", 1.0))
|
||||
except (TypeError, ValueError):
|
||||
|
||||
@@ -220,6 +220,12 @@ class Routes(unittest.TestCase):
|
||||
self.assertEqual(self.call("/v1/audio/speech", b"{not json")[0], 400)
|
||||
self.assertEqual(self.tts.calls, [])
|
||||
|
||||
def test_a_refused_voice_counts_the_voices_the_route_lists(self):
|
||||
# 54 were said, the model's own, where the route lists the 41 this lane speaks with (found 2026-11-30)
|
||||
code, _, body = self.speak(input="x", voice="nobody")
|
||||
listed = len(json.loads(self.call("/v1/voices")[2])["voices"])
|
||||
self.assertIn(f"GET /v1/voices lists the {listed} there are", json.loads(body)["error"]["message"])
|
||||
|
||||
def test_a_body_over_its_cap_is_refused(self):
|
||||
code, _, _ = self.call("/v1/audio/speech", json.dumps({"input": "x" * (ss.MAX_BODY + 10)}).encode())
|
||||
self.assertEqual(code, 413)
|
||||
|
||||
Reference in new issue
Block a user