From fc70eb4777e893b4825a019461e075ba19fa80fe Mon Sep 17 00:00:00 2001 From: Hasan Basbunar Date: Wed, 2 Dec 2026 01:10:09 +0100 Subject: [PATCH] cockpit: the Load window reads the embeddings lane's size, Inkling's limits in the cockpit's test and opencode's page Co-Authored-By: Claude Opus 5.5 --- dashboard/static/js/base.js | 2 +- dashboard/tests/test_inkling_cockpit.py | 6 +++--- docs/opencode.md | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dashboard/static/js/base.js b/dashboard/static/js/base.js index 6de8cbde..f8823b11 100644 --- a/dashboard/static/js/base.js +++ b/dashboard/static/js/base.js @@ -237,7 +237,7 @@ const TARGET_LINE = { embeddings: 'The one version: 0.6B in float32, 1024 dimensions', clipstral: 'The one version: 1.24B, texts and images in 1024 dimensions'}; const TARGET_NOTE = { - embeddings: 'Perplexity’s pplx-embed-v1-0.6b (MIT), 0.6B in float32 with mean pooling, served by this project’s own server on the CPU, capped by its cgroup and pinned to the A725 cores, its vectors the int8 ones of the ONNX export Perplexity publishes. On the reference box: 735 tokens/s over 16 inputs of 512 tokens, a question of twelve words in 0.11 s, 1 GiB of its own. For texts: documents, code, an index to search with words. The first Load downloads about 2.4 GB, and the Qwen3.8 27B lane’s image on a box without it.', + embeddings: 'Perplexity’s pplx-embed-v1-0.6b (MIT), 0.6B in float32 with mean pooling, served by this project’s own server on the CPU, capped by its cgroup and pinned to the A725 cores, its vectors the int8 ones of the ONNX export Perplexity publishes. On the reference box: 735 tokens/s over 16 inputs of 512 tokens, a question of twelve words in 0.11 s, 1 GiB of its own. For texts: documents, code, an index to search with words. The first Load downloads about 3 GB, and the Qwen3.8 27B lane’s image on a box without it.', clipstral: 'Mistral’s Multimodal Embed 1B (codename Clipstral, Apache-2.0): texts and images in one space, so that a sentence finds the photos it describes, served by this project’s own server on the CPU, its vectors those of the code Mistral publishes. On the reference box: 0.91 s a photo, 1,024 tokens/s of texts when indexing, ready in 7 to 9 s, 6.4 GiB at its highest. Documents, OCR-heavy content and code are out of its scope, by its card. The first Load downloads about 3 GB, and the Qwen3.8 27B lane’s image on a box without it.', stock: 'The NVFP4 quantization this repo pins by default: smallest and fastest of the 27B targets. The first switch downloads about 22 GB.', uncensored: 'The abliterated NVFP4 checkpoint: same size and speed as RadixArk’s NVFP4, refusals removed. The first switch downloads about 22 GB.', diff --git a/dashboard/tests/test_inkling_cockpit.py b/dashboard/tests/test_inkling_cockpit.py index 4ed1068b..2a604676 100644 --- a/dashboard/tests/test_inkling_cockpit.py +++ b/dashboard/tests/test_inkling_cockpit.py @@ -200,15 +200,15 @@ class ItsAgentLimitsAfterABoot(Base): os.environ["OC_INKLING_UNIT"] = str(self.unit) # its pair is read from its installed unit, as on a box self.ck._OC_FIT.clear() try: - fit = {"pool": 900_000, "context": 871_000, "output": 32_000, "worst": 903_000, "ok": False, + fit = {"pool": 900_000, "context": 959_000, "output": 32_000, "worst": 991_000, "ok": False, "served": "inkling-2-mini", "window": 1_048_576} pair = self.ck.autofit_pair(fit, 0) self.assertIsInstance(pair, tuple, pair) self.assertEqual(pair[1], 32_000) - self.assertLess(pair[0], 871_000) + self.assertLess(pair[0], 959_000) # the tool's own rule, the one the Settings button runs, lands on the same pair mod = self.ck._oc_fit() - self.assertEqual(mod.cap_for("inkling-2-mini", 1_048_576), (871_000, 32_000)) + self.assertEqual(mod.cap_for("inkling-2-mini", 1_048_576), (959_000, 32_000)) self.assertEqual(mod.fit(900_000, 0, 1_048_576, mod.cap_for("inkling-2-mini", 1_048_576)), pair) # a lane that keeps no answer budget is still left to its pool past a native window self.assertIsNone(mod.cap_for("qwen3.8-flash-next", 1_048_576)) diff --git a/docs/opencode.md b/docs/opencode.md index f89c4b02..72e6f91f 100644 --- a/docs/opencode.md +++ b/docs/opencode.md @@ -151,7 +151,7 @@ Do not want any of it? `./install.sh --no-opencode` (one-liner: `| bash -s -- -- 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 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 on the Liquid AI LFM3 lane, whose window is the same 262,144), `74000/32000` on the Liquid AI LFM2.5 24B-A2B lane, whose window is 131,072 (74,000 - 20,000 + 43,863 + 32,000 = 129,863), `871000/32000` on the Inkling 2 Mini lane, whose pool of 1,196,960 tokens measured at a window of 1,048,576 decides (959,000 + 32,000 under that pool less the proxy's 8 % and 10 % for a smaller boot, 991,082), 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); on the Inkling 2 Mini lane, whatever its window, the fit keeps its pair's 32,000 of output as a ceiling, as its card recommends limits on output tokens (v1.59.0). +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 on the Liquid AI LFM3 lane, whose window is the same 262,144), `74000/32000` on the Liquid AI LFM2.5 24B-A2B lane, whose window is 131,072 (74,000 - 20,000 + 43,863 + 32,000 = 129,863), `959000/32000` on the Inkling 2 Mini lane, whose pool of 1,196,960 tokens measured at a window of 1,048,576 decides (959,000 + 32,000 under that pool less the proxy's 8 % and 10 % for a smaller boot, 991,082), 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); on the Inkling 2 Mini lane, whatever its window, the fit keeps its pair's 32,000 of output as a ceiling, as its card recommends limits on output tokens (v1.59.0). 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 `` blocks, on every lane whose template raises it: the 27B, the two flash lanes and, since v1.40.2, Ornith. 5. **Vision declared**: `attachment` + `modalities` are set, so image attachments and on-disk image reads work end to end (the model is natively multimodal). The two Liquid AI lanes read no image, and their providers declare text only.