mirror of
https://github.com/hasso5703/alzeo.git
synced 2026-12-05 12:24:28 +01:00
docs: what an audit of the other usage pages found the code does otherwise
Each finding checked at its source: - opencode: its defaults already run every tool unasked, so dropping --yolo gives no prompt; the way is "*": "ask" in the bash object (as agents-and-network.md says); the installer also merges the shell deny rules and a lean variant into the user's config; CI runs the Agent view on arm64 with install.sh's digest - TESTING: a run whose every step was skipped exits 3; the proxy's coverage floor is 85%; four gates need pip packages; the 139 lifecycle tests are dated (285 now) - CONTRIBUTING: ruff checks every tracked Python file; four gates; the sleep-on-idle gate is the SGLang lanes' - ARCHITECTURE: the SGLang lanes carry --sleep-on-idle; oc-limits.sh has five callers; check-pins.sh also runs daily; the Ornith page listed - MIRROR: check-pins.sh watches the lanes the mirror does not cover yet - CAPABILITIES: a bay per lane; the switch is the Load's first step; the logs view filters and copies; the opencode panel is in Settings; two paired boxes are in since v1.42.0 - extras/gguf: the text lanes run on SGLang and vLLM, and the speech lane's recognizer is a GGUF on llama.cpp - ROADMAP: v1.40 to v1.45 shipped; the coordination ports (v1.40.6) and the metrics panel (v1.22) leave the planned list Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
286f5f788f
commit
199d0270a0
8 files changed
+56
-41
No files matched your search
+4
-4
@@ -50,14 +50,14 @@ launcher in `~/.local/bin`, and the two weight trees (HF cache, PLE dir).
|
||||
| `keepalive-proxy.py` | the only component that reads bytes it does not control | keepalive at SSE event boundaries, zombie abort ordering (`x-override-rid`, abort *before* close, drain otherwise), oversize guard that counts via `/tokenize` and prices images from their headers, corruption tripwire, and since v6.20 a refusal for the request fields SGLang leaves unbounded and dies on rather than rejecting (`top_logprobs`/`logprobs`/`top_logprobs_num` past a ceiling, sglang#40076; `stop_token_ids` and `input_ids` past the vocabulary, learned from the one refusal message that names it; `n` past 128, sglang#31597, whose fixes were closed unmerged); the `v6.x` header is its real version, read live by the cockpit; since v6.19 it answers `POST /v1/systemone` itself (typed decisions read off `top_logprobs`, one single-token branch per question, never `token_ids_logprob`: that path kills this build's scheduler on a mixed batch, sglang#34719; the state is fenced with a start-up token so it cannot write the framing of its own question, the caller's socket is watched so an abandoned fan-out is stopped and aborted, and the request path is decoded once before any check reads it, the way the engine routes it) |
|
||||
| `run.sh` / `switch-model.sh` / `uninstall.sh` / `get.sh` | foreground serving, surgical live switch, read-only-first removal, one-liner bootstrap | the switch never starts, stops or restarts an engine (it restarts opencode-web when the limits change) and never touches images; it stages unit files at fixed paths because the cockpit's sudoers pins that argv exactly |
|
||||
| `install-kolibri.sh`, `install-nemotron.sh`, `install-nemotron-super.sh`, `install-flash-local.sh`, `install-ornith-122b.sh`, `vllm-lane.sh` | the vLLM lanes' installers, each with its pins, its image and its unit, and what the five share in `vllm-lane.sh`: the engine's cache and port, the preflight and the room, the fetch, the service, the uninstall, the proof | each refuses before it downloads what does not fit; a build of an image stays while an installed unit names it (the two Nemotron lanes run one image, `lanes.sh`); a Nemotron lane counts as begun once its own first Load began, not once the other built the image |
|
||||
| `oc-limits.sh` | the one table of opencode limits, three callers | the comment block next to each number *is* the measurement record; the ceiling/threshold/two-thousand-step invariant is CI-held |
|
||||
| `oc-limits.sh` | the one table of opencode limits, five callers (install.sh, switch-model.sh, oc-fit-limits.py, vllm-lane.sh, the cockpit's install-agent.sh) | the comment block next to each number *is* the measurement record; the ceiling/threshold/two-thousand-step invariant is CI-held |
|
||||
| `dashboard/` | the cockpit: state from a real generation canary, not `/health` (a wedged SGLang answers `/health` fine); the vLLM lanes' (Kolibri, the two Nemotron lanes, Flash FP4-Local, Ornith) from vLLM's own `/health`, which generates nothing, and its `/metrics` | `lifecycle.py` is the pure state machine (100% branch coverage, mutation-scored), `recipes.py` derives "what the repo says this lane runs" from the repo's own text, `registry.py` knows the checkpoints, `agent_relay.py` is the browser boundary; every privileged call is exact argv through sudo, every action audited |
|
||||
| `flash-sglang/` | vendored engine overlay, sha256-manifested, provenance in its ATTRIBUTION.md | the record of what upstream replaced (its content is in the served image); nothing builds it since v1.18.7 retired `OVERLAY_FLASH=1`, whose image the launcher of v1.8 did not fit. The 27B lane had one too until v1.14, retired once measurement showed upstream carried all of it |
|
||||
| `bench.sh`, `bench-matrix.sh`, `needle.sh`, `bench-agent.py`, `conc-check.py`, `tools-check.py` | the instruments: single-lane probe, frozen comparable battery, long-context retrieval, the agent-loop shape, the concurrency question, and whether a client can execute what the model emits | the battery is versioned and frozen so numbers stay comparable across years; `bench.sh` asks the engine which model it serves before printing a reference |
|
||||
| `patch-yarn.py`, `patch-template.py`, `build-token-map.py`, `oc-*.py`, `oc-*.sh` | the config surgery, all idempotent, all reversible | patch-yarn has `--restore`/`--check` because a native install coming home from 1m would otherwise crash at load |
|
||||
| `check-pins.sh` | supply-chain availability, over the network, on demand | deliberately not in CI: a green build must not depend on Hugging Face being up |
|
||||
| `check-pins.sh` | supply-chain availability, over the network, daily (`pin-watch.yml`) and on demand | deliberately not in CI: a green build must not depend on Hugging Face being up |
|
||||
| `evals/` | the two quality drivers, MMLU and HumanEval, because the image's own invocations do not run and fail by printing an empty score | the failure modes and the exact docker commands are in its README; gated against a stub sglang so the contracts that make them work cannot rot silently |
|
||||
| `docs/` | one subject per file, everything the README is an entry point to: a page per lane (the 27B's 1M mode, flash, Flash FP4-Local, image, video, Kolibri, Bolt, Super VL, speech), models on an external disk, the cockpit tour, operations, engine restarts, opencode, pi and omp, clients, typed decisions, the memory trap, upstream standing | the README's index table is the map; a section that outgrows the README moves here and leaves a summary and a link behind |
|
||||
| `docs/` | one subject per file, everything the README is an entry point to: a page per lane (the 27B's 1M mode, flash, Flash FP4-Local, image, video, Kolibri, Bolt, Super VL, Ornith, speech), models on an external disk, the cockpit tour, operations, engine restarts, opencode, pi and omp, clients, typed decisions, the memory trap, upstream standing | the README's index table is the map; a section that outgrows the README moves here and leaves a summary and a link behind |
|
||||
| `extras/` | opt-ins that earned their keep on the reference box | CAKE anti-bufferbloat for downloads, opencode auto-continue plugin |
|
||||
|
||||
## Invariants the CI holds (each one exists because it once broke)
|
||||
@@ -74,7 +74,7 @@ launcher in `~/.local/bin`, and the two weight trees (HF cache, PLE dir).
|
||||
4. The opencode limits chain: compaction threshold + one worst step <= the
|
||||
proxy ceiling, table and ceiling from `oc-limits.sh` only, no caller may
|
||||
own a copy of a number.
|
||||
5. Every serving lane carries `--sleep-on-idle`; speculative tiers run
|
||||
5. Every SGLang lane carries `--sleep-on-idle`; speculative tiers run
|
||||
3/1/4 steps; the FP8 path keeps its KV flag and the NVFP4 path does not
|
||||
gain one; flash recipes keep the radix cache and the api-key.
|
||||
6. The proxy's outcome vocabulary is a closed set: adding an outcome fails
|
||||
|
||||
+5
-7
@@ -27,7 +27,7 @@ breaks a build if it is missing.
|
||||
|
||||
## Setting up
|
||||
|
||||
The runtime is stdlib only and stays that way. Three measuring gates need
|
||||
The runtime is stdlib only and stays that way. Four measuring gates need
|
||||
pip packages, once:
|
||||
|
||||
```bash
|
||||
@@ -57,11 +57,9 @@ pushing.
|
||||
|
||||
- `bash -n` and `shellcheck -S warning` on every tracked shell script (found
|
||||
by extension and shebang, so a new one is picked up); `node --check` on the
|
||||
opencode plugin; `ruff --select F,E9` on the Python files its step lists,
|
||||
which takes everything under `tests/` and `dashboard/` by glob while a new
|
||||
script at the root has to be added by hand (at v1.18.7 `engine-inputs.py` and
|
||||
`oc-merge-limits.py` are only byte-compiled), and `py_compile` on the root
|
||||
scripts and the vendored overlay.
|
||||
opencode plugin; `ruff --select F,E9` on every tracked Python file (`git ls-files`, the
|
||||
vendored `flash-sglang/` overlay aside), and `py_compile` on the root scripts
|
||||
and the vendored overlay, from a list kept by hand.
|
||||
- Every `tests/test_*.py` must run standalone (`__main__` block) and CI
|
||||
counts what ran against what the files declare: a suite with tests that
|
||||
never ran once exited 0, so silence is not a pass.
|
||||
@@ -72,7 +70,7 @@ pushing.
|
||||
the odd one out), the sudoers allowlist must match the privileged calls
|
||||
`switch-model.sh` actually makes and carry no wildcard, the pin blocks in
|
||||
`run.sh` and `switch-model.sh` must still select every name they use, the
|
||||
opencode limits table must satisfy the ceiling arithmetic, every serving
|
||||
opencode limits table must satisfy the ceiling arithmetic, every SGLang
|
||||
lane must carry `--sleep-on-idle`, and the proxy's outcome vocabulary is
|
||||
closed (adding an outcome fails CI until someone says what it means).
|
||||
- House typography: no em or en dashes anywhere tracked. Use a comma, or
|
||||
|
||||
@@ -38,9 +38,10 @@ happens to exist.
|
||||
|
||||
No row is a conclusion until this table says one, with a date.
|
||||
|
||||
`check-pins.sh` also watches three pins this script does not copy, since they live on
|
||||
GitHub and PyPI rather than on Hugging Face or a registry: the image lane's SGLang commit
|
||||
and its `sglang` wheel, and opencode's release asset with its digest.
|
||||
`check-pins.sh` also watches pins this script does not copy: those of the lanes this mirror
|
||||
does not cover yet (the vLLM lanes' checkpoints and images, the speech lane's files), and three
|
||||
that live on GitHub and PyPI rather than on Hugging Face or a registry: the image lane's SGLang
|
||||
commit and its `sglang` wheel, and opencode's release asset with its digest.
|
||||
|
||||
## Where the mirror lives
|
||||
|
||||
|
||||
+25
-11
@@ -5,7 +5,31 @@ so that "on the roadmap" means a checkbox with a definition of done, not a
|
||||
mood. Statuses: shipped, in progress, planned, considered (considered items
|
||||
have a reason they are not yet planned, stated here or in an issue).
|
||||
|
||||
## Shipped, current: v1.39
|
||||
## Shipped, current: v1.40 to v1.45
|
||||
|
||||
- **The 64 GB DGX Spark** (v1.40.0): the lanes that fit it, Bolt served by default; a `--no-<lane>`
|
||||
counts for its run only.
|
||||
- **Security** (v1.40.1, v1.40.6, v1.42.1): the image and video lanes' scheduler channel on loopback,
|
||||
`GET /health` that generates nothing, a network peer's headers and body bounded; the engines'
|
||||
coordination ports out of the network's reach (a file rendezvous for the SGLang text lanes, the
|
||||
image and video lanes held to loopback by the kernel, none opened by the vLLM lanes); no client
|
||||
can hide a field from the proxy's guards in UTF-16.
|
||||
- **Every lane says what its prefix cache served** (v1.40.3, #49), and Claude Code's ToolSearch works
|
||||
on the Qwen lanes.
|
||||
- **opencode refuses a shell command that names an Alibaba Cloud host or a cloud metadata address**
|
||||
(v1.40.4).
|
||||
- **On the Ornith lane a long prompt no longer holds up the other requests** (v1.40.7, #61).
|
||||
- **The project is Alzeo** (v1.41.0): github.com/hasso5703/alzeo, `get.alzeo.ai`, the Alzeo cockpit;
|
||||
its site at alzeo.ai (v1.45.3).
|
||||
- **Two boxes, one model** (v1.42.0, v1.43.0): paired in one command behind one endpoint, the other
|
||||
box in the cockpit, a conversation staying on the box that holds it.
|
||||
- **The 27B starts without torch.compile** (v1.44.0), and an answer's end is read as its engine
|
||||
sends it; one page per model (v1.44.1).
|
||||
- **The cockpit names each lane's engine and version by its official name** (v1.45.0) and says where
|
||||
a client sends its requests (v1.45.1).
|
||||
- **A window of 1,048,576 tokens on the Flash-Next FP4-Local lane**, as an option (v1.45.2).
|
||||
|
||||
## Shipped, v1.39
|
||||
|
||||
- **SGLang v0.5.22 for the 27B lane** (v1.39.0): faster at one and four streams
|
||||
in an A/B on the reference box, its draft accepted alike on every boot, with
|
||||
@@ -220,16 +244,6 @@ the cockpit drift panel says so, per lane, until it is.
|
||||
- **Per-client limits on the identity layer**: the v6.16 key map names who;
|
||||
the honest next step is per-label ceilings and a journal-derived quota,
|
||||
designed as an issue with measured motivation, not bolted on.
|
||||
- **The engines' coordination ports off the network**: each engine's PyTorch store
|
||||
listens on every interface whatever its API's bind (SECURITY.md, measured
|
||||
2026-09-30). Done means the docker lanes on a bridge network with only their API
|
||||
published on loopback, the native lanes in a namespace of their own or behind a
|
||||
rule the installer owns, and a bench showing the serving path unchanged on every
|
||||
lane before it becomes the default.
|
||||
- **A cockpit panel that reads the Prometheus endpoint** now that it exists
|
||||
on every text lane: the panel's own canary stays the source of truth for
|
||||
"is this lane alive", the metrics join as history, not as a second
|
||||
opinion about life.
|
||||
- **The speech lane, next steps** (asked for in
|
||||
[discussion #38](https://github.com/hasso5703/alzeo/discussions/38)). It is
|
||||
built, opt-in: `./install-speech.sh` serves Qwen3-ASR and Kokoro-82M on the CPU, beside
|
||||
|
||||
+5
-5
@@ -32,7 +32,7 @@ the machine, and `test_localports.py` fails on a test file that takes a port num
|
||||
it closes. While working, run the gate you care about by name fragment, and the whole thing before
|
||||
pushing.
|
||||
|
||||
The runtime is **stdlib only** and stays that way. Three measuring gates need pip
|
||||
The runtime is **stdlib only** and stays that way. Four measuring gates need pip
|
||||
packages (`coverage`, `hypothesis`); they ask `tests/testpy.sh` for an
|
||||
interpreter that has them, and a developer sets that up once:
|
||||
|
||||
@@ -55,8 +55,8 @@ fixed path in /tmp in any workflow: on a runner, which sets no TMPDIR, that is /
|
||||
step that calls `shellcheck`, `docker` or `gh` when the tool is not installed is reported
|
||||
SKIPPED (a stub records the call), and so is a step whose runner-only `pip install` line names a
|
||||
package this box cannot provide (`ruff` must be on `PATH`; the others are looked for through
|
||||
`tests/testpy.sh`). A skipped gate checked nothing, and a run in which every step was skipped
|
||||
still exits 0: read the last line, and a complete run ends with `0 sautes`
|
||||
`tests/testpy.sh`). A skipped gate checked nothing: a run in which every step it ran was skipped
|
||||
exits 3, but one in which only some were exits 0, so read the last line, and a complete run ends with `0 sautes`
|
||||
(`CI local: N ok, N echecs, N sautes`).
|
||||
|
||||
## The layers
|
||||
@@ -102,7 +102,7 @@ was covered through a hand-built dict. The other five were malformed-timestamp
|
||||
paths, which is exactly what a truncated journal line produces.
|
||||
|
||||
**And `lifecycle.py`, at 100% coverage, has a mutation score of 91.7%**: 17
|
||||
injected faults that its 139 tests do not notice, in code where every branch is
|
||||
injected faults that its 139 tests of 2026-09-10 did not notice (it has 285 now), in code where every branch is
|
||||
executed. That is the whole point. Coverage measures execution; only mutation
|
||||
measures detection.
|
||||
|
||||
@@ -154,7 +154,7 @@ And the root modules, which had no floor at all until 2026-09-10:
|
||||
|
||||
| module | floor | why it is where it is |
|
||||
|---|---|---|
|
||||
| `keepalive-proxy.py` | 83% | the production serving path; the rest is socket teardown |
|
||||
| `keepalive-proxy.py` | 85% | the production serving path; the rest is socket teardown |
|
||||
| `patch-yarn.py` | 90% | it rewrites the config the engine reads |
|
||||
| `oc-fit-limits.py` | 37% | the arithmetic is property-tested, the CLI plumbing is not |
|
||||
| `build-token-map.py` | 35% | the ranking is tested; loading a real tokenizer is not offline work |
|
||||
|
||||
@@ -9,7 +9,7 @@ Nothing shells out free-form; every action is a fixed argv template.
|
||||
| capability | shell today | UI |
|
||||
|---|---|---|
|
||||
| First install / upgrade (converging) | `get.sh` one-liner / `install.sh` | Settings view prints the exact terminal command: the installer needs an interactive sudo that a service cannot give, and a half-applied install is the one failure the cockpit must never cause |
|
||||
| Choose target model | `MODEL_CHOICE=stock/uncensored/fp8/uncensored-fp8/flash/flash-uncensored/flash-nvda` names the lane that serves; every lane is installed by default since v1.20, each but the one that serves on demand (its first Load builds it: `prepare-lane.sh <lane>`), `--no-<lane>` leaves one out | Each lane's checkpoint selector and Load in the Lanes view, and the rack in Now: the seven text targets, Qwen-Image 2.1 and MiniMax-H3, Load running the switch (`switch-model.sh <target>`), the stop and the start as one journey, a job per step |
|
||||
| Choose target model | `MODEL_CHOICE=stock/uncensored/fp8/uncensored-fp8/flash/flash-uncensored/flash-nvda` names the lane that serves; every lane is installed by default since v1.20, each but the one that serves on demand (its first Load builds it: `prepare-lane.sh <lane>`), `--no-<lane>` leaves one out | Each lane's checkpoint selector and Load in the Lanes view, and the rack in Now, a bay per lane: the seven text lanes, Qwen-Image 2.1 and MiniMax-H3, Load running the switch (`switch-model.sh <target>`), the stop and the start as one journey, a job per step |
|
||||
| 1M context mode (27B) | `CONTEXT_MODE=1m` (the default since v1.12.1) or `native` | None: an install choice. The lane card shows the window the engine serves |
|
||||
| Custom port / HF cache / PLE dir | `PORT= HF_CACHE= PLE_DIR=` | None: install-time choices, kept by every re-run |
|
||||
| No-service foreground run | `install.sh --no-service && run.sh` | Documented only (interactive terminal concept), not a UI job |
|
||||
@@ -20,14 +20,14 @@ 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` | No toggle: a switch enables the target's unit and disables the others. Each card says whether its unit starts at boot |
|
||||
| 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 |
|
||||
| Switch target model | `./switch-model.sh <target>` | 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: Start is its own click |
|
||||
| Switch target model | `./switch-model.sh <target>` | Switch, the first step of a Load: 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` |
|
||||
| Kill a stuck generation | proxy auto-abort / restart service | "Abort all", confirmed first, on the SGLang lanes (the cockpit refuses it while a vLLM lane serves: stopping the lane stops its generations): through the proxy's `POST /proxy/stop` since v1.40.3, 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 (no filter, no download) |
|
||||
| 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 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 |
|
||||
@@ -43,7 +43,7 @@ Nothing shells out free-form; every action is a fixed argv template.
|
||||
| Reclaim superseded images | the `docker rmi` lines `install.sh` and `./uninstall.sh` print | None: never run from the page |
|
||||
| Uninstall | `./uninstall.sh [--yes]` | None: a terminal job |
|
||||
| API key | `~/.config/qwen38/api-key` | It is the login. No panel shows or regenerates it; the diagnostics bundle masks it |
|
||||
| opencode | `~/.config/qwen38/opencode.off` marker, `~/.config/opencode/opencode.json`, `~/.local/bin/oc` | State-aware panel in Setup: on/off (the installer's --no-opencode choice), default model, per-lane limits, launcher, whether the limits fit the served pool, and Fit the limits to this engine |
|
||||
| opencode | `~/.config/qwen38/opencode.off` marker, `~/.config/opencode/opencode.json`, `~/.local/bin/oc` | State-aware panel in Settings: on/off (the installer's --no-opencode choice), default model, the 27B's and the flash lane's limits, launcher, whether the limits fit the served pool, and Fit the limits to this engine |
|
||||
| Chat templates | patch-template.py outputs | None: `install.sh` and `switch-model.sh` write them |
|
||||
| Repo state | git status/log/tags | Settings view, Repo: version, branch, head, working tree, the running proxy's version, and whether a newer release is out (a banner too) |
|
||||
|
||||
@@ -57,8 +57,9 @@ Nothing shells out free-form; every action is a fixed argv template.
|
||||
| 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 |
|
||||
|
||||
## Explicitly out of scope now (groundwork only)
|
||||
Multi-node, multi-GPU, clusters: the collector/action registries carry
|
||||
`node_id` and capability flags from day one, UI stays single-node.
|
||||
Clusters of more than two boxes, multi-GPU: the collector/action registries carry
|
||||
`node_id` and capability flags from day one. Two paired boxes are in since v1.42.0: the
|
||||
Now view shows the other box of a pair (docs/pair.md).
|
||||
|
||||
## Recipes (step 4, since 29/08 evening)
|
||||
| capability | shell today | UI |
|
||||
|
||||
+4
-4
@@ -33,8 +33,8 @@ with so that a refusal makes opencode compact instead of failing, and `--yolo` /
|
||||
`OPENCODE_PERMISSION` for the Agent view. So `install.sh` pins the opencode it runs:
|
||||
**1.19.5** (`OPENCODE_VERSION`, with the sha256 GitHub publishes for
|
||||
`opencode-linux-arm64.tar.gz` in `OPENCODE_SHA256`). CI runs the Agent view against that release
|
||||
on an x86_64 runner, so `dashboard/tests/agent-bench.mjs` carries the digest of
|
||||
`opencode-linux-x64.tar.gz` for the same release (`X64_SHA256`): a new pin needs both. 1.18.32 was checked against the
|
||||
on its arm64 runners, with that digest; `dashboard/tests/agent-bench.mjs` also carries the digest of
|
||||
`opencode-linux-x64.tar.gz` for the same release (`X64_SHA256`), for a run on an x86_64 machine: a new pin needs both. 1.18.32 was checked against the
|
||||
1.18.27 the repo was measured on, on 2026-09-23: the same 21 overflow phrases and 3
|
||||
exclusions verbatim, `max_tokens` 182,000 with the launcher's variable and 32,000 without
|
||||
it on both (recorded on a fake endpoint), the same compaction and permission code once the
|
||||
@@ -109,11 +109,11 @@ install.
|
||||
|
||||
## Opting out
|
||||
|
||||
Do not want any of it? `./install.sh --no-opencode` (one-liner: `| bash -s -- --no-opencode`) installs the API only: no generated config, no `oc` launcher, and `switch-model.sh` never touches your opencode default model. The choice is remembered by later runs (marker `~/.config/qwen38/opencode.off`); `./install.sh --with-opencode` turns it back on. Your own `~/.config/opencode/opencode.json` is never rewritten in either mode: when the integration is on, the installer only merges into it the served lane's limits, its compaction block, the provider of a lane installed since, the default model when it is unset or already one of this box's (a default you pointed at another provider is yours, and stays) and, with the version pinned, `"autoupdate": false`, each by a targeted edit that keeps your comments (in every form opencode accepts: `//`, `/* */`, trailing commas), your other providers and your line endings, with a dated backup first (the ten newest of each file are kept) and in one step, so a full disk leaves the file as it was.
|
||||
Do not want any of it? `./install.sh --no-opencode` (one-liner: `| bash -s -- --no-opencode`) installs the API only: no generated config, no `oc` launcher, and `switch-model.sh` never touches your opencode default model. The choice is remembered by later runs (marker `~/.config/qwen38/opencode.off`); `./install.sh --with-opencode` turns it back on. Your own `~/.config/opencode/opencode.json` is never rewritten in either mode: when the integration is on, the installer only merges into it the served lane's limits, its compaction block, the provider of a lane installed since, the default model when it is unset or already one of this box's (a default you pointed at another provider is yours, and stays) and, with the version pinned, `"autoupdate": false`, plus the shell deny rules (a deny holds under `--yolo`) and a `lean` variant for the 27B and flash models, each by a targeted edit that keeps your comments (in every form opencode accepts: `//`, `/* */`, trailing commas), your other providers and your line endings, with a dated backup first (the ten newest of each file are kept) and in one step, so a full disk leaves the file as it was.
|
||||
|
||||
What the shipped config gets right for you:
|
||||
|
||||
1. **The hidden 32K output cap**: opencode sends `max_tokens = min(limit.output, OPENCODE_EXPERIMENTAL_OUTPUT_TOKEN_MAX or 32000)`. Without that env var, a long thinking phase hits 32000 tokens, the turn ends silently (`finish_reason: length`, no text, no tool call) and you have to re-prompt. The installer ships an **`oc` launcher** (`~/.local/bin/oc`, skipped if an unrelated `oc` binary exists) that exports the right value and execs `opencode --yolo`: launch with `oc` instead of `opencode` and the cap sits above every output limit this repo declares, on every target and in either context mode. It is deliberately a ceiling rather than the installed target's own number, because `limit.output` is what follows a model switch: a ceiling copied from the installed target survives the switch and cuts the next lane's turn in the same silence (`./oc-limits.sh --max-out` is where both installers read it). Note that `--yolo` auto-approves every tool action (how the reference box runs); remove it from the launcher file if you prefer per-action prompts.
|
||||
1. **The hidden 32K output cap**: opencode sends `max_tokens = min(limit.output, OPENCODE_EXPERIMENTAL_OUTPUT_TOKEN_MAX or 32000)`. Without that env var, a long thinking phase hits 32000 tokens, the turn ends silently (`finish_reason: length`, no text, no tool call) and you have to re-prompt. The installer ships an **`oc` launcher** (`~/.local/bin/oc`, skipped if an unrelated `oc` binary exists) that exports the right value and execs `opencode --yolo`: launch with `oc` instead of `opencode` and the cap sits above every output limit this repo declares, on every target and in either context mode. It is deliberately a ceiling rather than the installed target's own number, because `limit.output` is what follows a model switch: a ceiling copied from the installed target survives the switch and cuts the next lane's turn in the same silence (`./oc-limits.sh --max-out` is where both installers read it). Note that opencode's defaults already run every tool, the shell included, without asking, and `--yolo` also approves what would ask (how the reference box runs): for a prompt before each shell command, put `"*": "ask"` in the `"bash"` object of your config and start plain `opencode` ([agents and the network](agents-and-network.md)).
|
||||
2. **Limits that can never 400**: the server rejects any request where `input + max_tokens` exceeds the window (no clamping), and the prompt opencode sends can reach its compaction point (`limit.input` minus 20,000) plus one agent step (up to 43,863 tokens measured on this box). So the config ships `context/input 173000, output 64000` in native mode (173,000 - 20,000 + 43,863 + 64,000 = 260,863, under 262,144, whether the 32K cap is lifted or not), `205000/32000` on the flash lane, and `700000/200000` in 1m mode as a starting pair. Until v1.18.7 the native pair was 194048/64000 and the flash one 225000/32000: both fitted a prompt of exactly `context`, not the one a large step brings past compaction, so a request in that band got a 400 that opencode then compacted on. The 1m pair is a starting pair, which the installer then fits to the pool the boot actually got (`oc-fit-limits.py`, after step 9): the pool changes from boot to boot (832,993 to 922,094 tokens over sixteen 27B boots on the reference box), and that pair does not fit the smaller ones. Since v1.18.2 the cockpit does the same fit by itself after a switch and a Start. Both fits hold the same window rule, and on a 262,144 window they never go above the lane's pair above (v1.18.7).
|
||||
3. **Reasoning-effort variants**: the generated config declares `lean`, `low`, `medium` and `xhigh` variants (ctrl+t in the TUI), `lean` first because it is what a turn that picks none gets: the patched template's default since v1.13, measured in [LEAN.md](../LEAN.md) (`LEAN_DEFAULT=0 ./install.sh` keeps Qwen's `xhigh` as the default and still offers `lean`). This works because the patched template accepts `lean` and maps other clients' effort tiers (`max`/`high` → `xhigh`, `minimal` → `low`, [contributed by helge](https://forums.developer.nvidia.com/t/380257/10)); any client sending an unmapped tier would get a 500 on the stock template.
|
||||
4. **Mid-conversation system messages**: some agent clients inject system messages after turn 1, and opencode 1.19.4 sends two before the first user message; the stock template raises `System message must be at the beginning`. Patched to render them as `<system-reminder>` blocks, on every lane whose template raises it: the 27B, the two flash lanes and, since v1.40.2, Ornith.
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# Running a GGUF model on a DGX Spark
|
||||
|
||||
This repo serves SGLang. It has no GGUF lane and this note is not one: it is what the
|
||||
This repo serves its text lanes on SGLang and vLLM. It has no GGUF text lane (the speech lane's
|
||||
recognizer is a GGUF on llama.cpp) and this note is not one: it is what the
|
||||
reference box measured when it did run llama.cpp on this hardware, so that anyone asking
|
||||
"can I serve a GGUF fine-tune on my Spark instead?" can answer it with numbers rather than
|
||||
with a weekend. Asked in [issue #12](https://github.com/hasso5703/alzeo/issues/12).
|
||||
|
||||
Reference in new issue
Block a user