docs: what pi, omp and opencode offer on the two Liquid AI lanes

docs/pi.md has its line for Liquid AI LFM3 (off and high alone, the proxy's v6.61 translation, omp's high and
minimal) and says what LFM2.5 24B-A2B gets (high alone, no field), read in pi 1.2.0's source with no session run
on either lane yet. docs/opencode.md names the lfm25 and lfm3 providers, their variants and their limits (74,000
and 32,000 at LFM2.5's 131,072 window, the flash lane's pair at LFM3's 262,144), text only.
docs/agents-and-network.md lists the two among the repo's provider names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Hasan BasbunarandClaude Opus 5.5 committed 2026-11-19 15:38:53 +01:00
1 parent 7ad3b8a1d1
commit 4b0668fbc6
3 files changed
+6 -5

No files matched your search

+4 -4
View File
@@ -2,7 +2,7 @@
What the installer writes for [opencode](https://opencode.ai), why each piece is there, and how to opt out.
The installer writes a complete, ready-to-use [opencode](https://opencode.ai) config at `~/.config/qwen38/opencode.json` (the API key is referenced via `{file:...}`, no secret inside). It contains one provider per installed lane (`qwen38` for the 27B, `flashnext` for flash, `flash-local`, `flash-unsloth`, `kolibri`, `nemotron`, `nemotron-super` and `ornith-122b`), the four Qwen ones with `lean` / `low` / `medium` / `xhigh` reasoning-effort variants (no variant = the patched template's default, `lean`, or Qwen's `xhigh` on a box installed with `LEAN_DEFAULT=0`, and on the Qwen3.8 Flash-Next FP4-Local lane installed with `FLASH_LOCAL_EFFORT=xhigh`, its model card's default (that lane's variants list `xhigh` first whatever its default: the order decides no request); the vLLM ones offer `none` / `low` / `medium` / `high`, but Ornith's `none` / `high`, as its template turns reasoning on or off and nothing between), and its default model follows the installed target (`./switch-model.sh` re-points it on every switch):
The installer writes a complete, ready-to-use [opencode](https://opencode.ai) config at `~/.config/qwen38/opencode.json` (the API key is referenced via `{file:...}`, no secret inside). It contains one provider per installed lane (`qwen38` for the 27B, `flashnext` for flash, `flash-local`, `flash-unsloth`, `kolibri`, `nemotron`, `nemotron-super`, `ornith-122b`, `lfm25` and `lfm3`), the four Qwen ones with `lean` / `low` / `medium` / `xhigh` reasoning-effort variants (no variant = the patched template's default, `lean`, or Qwen's `xhigh` on a box installed with `LEAN_DEFAULT=0`, and on the Qwen3.8 Flash-Next FP4-Local lane installed with `FLASH_LOCAL_EFFORT=xhigh`, its model card's default (that lane's variants list `xhigh` first whatever its default: the order decides no request); the vLLM ones offer `none` / `low` / `medium` / `high`, but Ornith's `none` / `high`, as its template turns reasoning on or off and nothing between, and Liquid AI LFM3's `high` / `none` for the same reason, while Liquid AI LFM2.5 24B-A2B's offers none, as its template reasons before every answer and reads no switch and no level), and its default model follows the installed target (`./switch-model.sh` re-points it on every switch):
A box with no opencode config of its own gets this one as `~/.config/opencode/opencode.json`
(since v1.18.4: before, it was printed as a `cp` command, and a first install left opencode,
@@ -10,7 +10,7 @@ A box with no opencode config of its own gets this one as `~/.config/opencode/op
A config you already have is kept: the installer merges the served lane's limits into it,
and adds the provider of a lane installed since (the 27B first, the flash lane later) when
it already has one of this repo's providers. When it has none of them, the installer says
so and leaves it alone: merge this repo's provider blocks (`qwen38`, `flashnext`, `flash-local`, `flash-unsloth`, `kolibri`, `nemotron`, `nemotron-super`, `ornith-122b`) from
so and leaves it alone: merge this repo's provider blocks (`qwen38`, `flashnext`, `flash-local`, `flash-unsloth`, `kolibri`, `nemotron`, `nemotron-super`, `ornith-122b`, `lfm25`, `lfm3`) from
`~/.config/qwen38/opencode.json` into it yourself.
```bash
@@ -114,10 +114,10 @@ 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 `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).
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), 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.
5. **Vision declared**: `attachment` + `modalities` are set, so image attachments and on-disk image reads work end to end (the model is natively multimodal).
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.
On service installs the generated config points at the **keepalive proxy port** (`PORT+1`), not the server directly, and that is deliberate: SGLang buffers tool-call arguments while they stream (127 s of measured silence on one 400-line file write, at native context), and opencode drops a stream after roughly 140-180 s without a real chunk. The proxy (`qwen38-keepalive.service`, vendored `keepalive-proxy.py`) fills those silences with protocol-correct keepalives, at SSE event boundaries only, and makes sure a client that gives up does not leave a generation running (v6.14: it names every request with `x-override-rid` so it can abort one that has not produced anything yet, aborts before closing the socket, and drains the answer where the engine offers no rid to abort with). Since v1.22.5 (proxy v6.31) it also keeps a stream the engine has not started: SGLang sends a stream's headers with its first chunk, after the queue and the prefill, and opencode 1.18.32 gives up on a response whose headers have not come in 300 s (`headerTimeout`, its default) and sends the request again, while the engine keeps the one it gave up on queued. The proxy opens such a stream itself after 10 s and keeps it alive until the engine answers, and a caller that leaves before then has its request ended in the engine. Several agents at once (opencode's sub-agents, or several sessions) share the lane's KV pool, and past it every turn computes its whole prompt again: keep the sum of their contexts under the pool ([flash-lane.md](flash-lane.md#several-agents-at-once-their-contexts-share-one-pool) has the measurements). With `./install.sh --no-service` there is no proxy: the config then points at the server directly, and huge single-file writes may abort. One more caveat, measured: SGLang's `--api-key` only accepts `Authorization: Bearer`, **not** `x-api-key`.