1,045 lines, one door, and the only way to find anything was to scroll. It is 509 now: what this is, the seven targets with their measured headline, how to install it, what speed and quality to expect, the targets and the switch, the tools, the cockpit in short, and an index table naming every other file and the question it answers. Seven sections moved out whole, each to its own file under docs/, each leaving a summary and a link behind: the 1M context mode, the flash lane, the cockpit tour, operations and upgrades, the opencode integration, the GB10 memory trap in full, and where each lane stands against upstream. The split was checked line by line against the file it came from. Of 1,045 lines, the only ones with no verbatim equivalent in the new README or in one of those files are the 32 rewritten on purpose, and each of those is a correction: - the headline said 65 tok/s for the 27B lane, which is the v1.9 figure. v1.14.0 measured 71.4 on the release image this lane has served since 2026-09-17, in the same campaign that measured 69.8 on the image it replaced. Title, target table and speed section now say 71.4 and name the campaign behind each number. - the memory section read as though the installed fraction were 0.50, which is the native-mode and ./run.sh value. The 1m mode has been the default since v1.12.1 and runs 0.76. Both are stated now, each with its mode. - the KV pool comparison published three boots against two. The engine journal has eleven for that day, six and five: 517,184 to 566,016 against 482,560 to 510,592. The ranges still do not overlap, by 6,592 tokens at their closest, but the gap on the means is 9.6% and not the 6% published from the subset. README, BENCHMARKS and the v1.14.1 entry all carry the full set now. - two citations pointed at text that is not there: the README claimed a flat-memory result was "quoted elsewhere in this README" when it lives in BENCHMARKS.md, and keepalive-proxy.py justified its 92% usable share by quoting a README line about a 178,560-token pool that no longer exists anywhere. Both now name where the number actually is. Neither was caused by this release; both survived because nothing checks a quoted section title. - the flash lane's quality is in the README as measured rather than as adjectives: GSM8K 97.41% over all 1,319 questions, MMLU 500 at 90.8%, HumanEval 164 pass@1 at 95.73%, tool calling 15/15 with reasoning off and on, needle 2/2 at 120K and 200K, conc-check 40/40 serial and 80/80 at four concurrent. evals/ ships the two drivers, because two of those numbers could not be reproduced from this repo. The image's run_eval --eval-name mmlu shells out to an sgl-eval binary it does not ship, and its HumanEval path needs a package that is not there and then dies in os.fork against the image's filelock. Six gates hold what makes them work, with a stub sglang and no network: the score line a caller greps, the dataset MMLU is measured against, spawn rather than fork, and one sample per task instead of the harness default of five, which at temperature 0 is the same answer five times. ARCHITECTURE.md gains the two directories it did not describe and tools-check.py in its table of instruments. TESTING.md gains a 2026-09-19 column counted mechanically on both commits: 34 test files against 20, 587 test functions against 442, 55 CI steps against 38. docs/flash-lane.md records the one boot in thirteen that died at CUDA graph capture on 2026-09-18, because a failure that costs twelve minutes and explains nothing belongs written down even when it happened once. Local CI: 56 steps, 55 ok, the socket gate failing on this serving box because other processes cycle ephemeral listeners during the suite, which is the case its own message describes. Both suites green: 223 and 370. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
4.7 KiB
opencode integration
What the installer writes for opencode, why each piece is there, and how to opt out. Moved out of the README in v1.14.2.
The installer writes a complete, ready-to-use opencode config at ~/.config/qwen38/opencode.json (the API key is referenced via {file:...}, no secret inside). It contains one provider per installed engine (qwen38 for the 27B pair, flashnext for flash), each with low / medium / xhigh reasoning-effort variants (no variant = the template's own default, xhigh), and its default model follows the installed target (./switch-model.sh re-points it on every switch):
# no opencode config yet? use it as-is:
mkdir -p ~/.config/opencode && cp ~/.config/qwen38/opencode.json ~/.config/opencode/opencode.json
# already have one? merge the "qwen38" (and/or "flashnext") provider block into it
opencode
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: the installer only merges the served lane's limits into it when the integration is on.
What the shipped config gets right for you:
- 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 anoclauncher (~/.local/bin/oc, skipped if an unrelatedocbinary exists) that exports the right value and execsopencode --yolo: launch withocinstead ofopencodeand 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, becauselimit.outputis 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-outis where both installers read it). Note that--yoloauto-approves every tool action (how the reference box runs); remove it from the launcher file if you prefer per-action prompts. - Limits that can never 400: the server rejects any request where
input + max_tokensexceeds the window (no clamping), so the config shipscontext/input 194048, output 64000in native mode (258048 worst case, a 4096 margin under 262144, whether the 32K cap is lifted or not) and700000/200000in 1m mode (worst case 880000, under the worst measured KV pool). - Reasoning-effort variants: the generated config declares
mediumandlowvariants (ctrl+t in the TUI); the default is the model'sxhigh. This works because the patched template accepts and maps effort tiers (max/high→xhigh,minimal→low, contributed by helge); any client sending an unmapped tier would get a 500 on the stock template. - Mid-conversation system messages: some agent clients inject system messages after turn 1; the stock template raises
System message must be at the beginning. Patched to render them as<system-reminder>blocks. - Vision declared:
attachment+modalitiesare set, so image attachments and on-disk image reads work end to end (the model is natively multimodal).
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). 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.