Commit Graph
5 Commits
Author SHA1 Message Date
Hasan BasbunarandClaude Opus 5.5 482c3aa424 patch-template's fixes are chosen on its command line, and the CI check renders as the engines do
The selection of fixes v1.40.2 gave patch-template.py was TEMPLATE_PATCHES, read from the environment
by every caller: one exported in a shell made ./install.sh write the 27B's template without its three
effort fixes, the 27B restarted on it, and it refused Claude Code's "max" and pi's "lean" (found by the
code review on 2026-10-24). It is now --patches=NAMES, which the Ornith lane's installer alone passes;
TEMPLATE_PATCHES reaches nothing. tests/test_patch_template.py exports it and still gets the four.

tests/lane-templates-check.py rendered otherwise than the engines and the installers in three ways,
also found by the review, and each is now theirs:
- a lane's installer patches chat_template.jinja only, so a patched lane without one fails here, as
  its install would have;
- vLLM turns a message's content into a list of parts for a template that loops over it (its own
  reading of the template, vllm/renderers/hf.py) and SGLang leaves strings as they are
  (sglang/srt/parser/jinja_template_utils.py): both readings are ported, and each lane is rendered in
  the content form its engine gives the template, an SGLang lane with lists too where its template
  takes them (what each engine does to a tool's answer and to an empty content came later in this
  release). Rendering lists everywhere would have refused Kolibri's templates, which no engine hands a
  list;
- named templates give tool_use when tools are sent, as transformers picks.
And Hugging Face's 429 and brief 5xx are waited out on a runner's shared addresses, five tries, with
its Retry-After, a body cut short included. On the reference box: 13 targets, 240 renders, 0 refusals,
each identical to transformers 5.12.1's own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 18:41:32 +02:00
Hasan BasbunarandClaude Opus 5.5 d00066ec1e patch-template.py: a lane names the fixes its template needs (TEMPLATE_PATCHES)
The patcher applied its four fixes or none, and stopped on a template without the anchors of
all four: right for the Qwen3.8 27B and flash templates, which carry them, and a dead end for a
checkpoint whose template has no reasoning effort of its own and still refuses a system message
past the first one. TEMPLATE_PATCHES (comma-separated names) picks among the four; unset, all
four, as before. A fix asked for whose anchor is gone still stops the run, and a name that is
no fix is refused with the list. tests/test_patch_template.py fails on the old patcher, which
refuses such a template whatever is asked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 12:45:59 +02:00
Hasan BasbunarandClaude Opus 5.5 917ad94100 install: restart the engine only when something it reads changed
Every ./install.sh restarted the engine, a full boot per update (7 to 8 min
on the 27B, 12 on flash) even when the update touched only the cockpit, the
proxy or opencode. engine-inputs.py finds what the engine reads at start from
its unit (unit, drop-ins, the flash launcher, config files named directly or
through /out, checkpoint configs, image IDs) and tells whether the running
engine already has it. Step 9 keeps the engine when it does, the run changed
none of it by content, and it answers /health; the real smoke test still
runs. RESTART_ENGINE=1 forces a restart, and every restart says why.

The unit, the flash launcher and the patched template are now written only
when their content changes: an identical rewrite dated them after the
engine's start and made every second run restart it.

Reference box: a plain ./install.sh on the serving 27B, 28 s twice in a row,
engine start time unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-23 21:09:53 +02:00
Hasan BasbunarandClaude Opus 5 f01c79882e v1.13.0: lean, a fourth reasoning-effort level, and it is the default
Qwen3.8-27B defaults to xhigh, the most expensive of its three levels, and the
levels are not modes: they are three sentences the chat template prepends to the
system message, measurable as 42, 30 and 0 tokens of prompt. That is the whole
mechanism, which is what makes it addressable with words.

Measured here over 7,008 runs, the shipped default is not only slower, it is
worse. On 364 public problems (HumanEval 164 with the dataset's tests executed,
GSM8K 200 on the exact final number), xhigh costs 3.19x the thinking tokens of
medium [2.73, 3.69] and scores 2.2 points lower on a paired McNemar test
(p=0.057). On HumanEval alone it is 4.3 points lower at p=0.039, and five of its
ten failures there are truncations: it spent the whole 16,000-token budget
thinking and returned nothing. low, the fix the community recommends, loses
significantly (p=0.021) for an 11% saving.

- lean: 74 words, added as a fourth level and made the default. On those same
  364 problems it costs 0.71x the thinking tokens of medium [0.66, 0.77] with no
  detectable quality change (-1.1 points, p=0.344). On 58 deliberately
  underspecified requests, the shape that makes this model spiral, it costs
  0.436x of medium [0.40, 0.47] and 0.047x of xhigh [0.04, 0.06] while producing
  17.2 points more usable answers than xhigh [+10.9, +24.1], with zero empty
  answers and zero truncations against 6.9% and 10.3%.
- Qwen's three levels come out byte-identical. Ask for medium and you get Qwen's
  medium: a repo that quietly redefines a standard level makes every number
  measured with it incomparable with everyone else's.
- LEAN_DEFAULT=0 installs the level without taking the default.

Proxy v6.18: SGLang validates reasoning_effort at the API boundary against an
enum compiled into its own request model, so a level the chat template
understands is refused before the template runs. The same value inside
chat_template_kwargs is not validated and reaches it, which is the door opencode
happens to use. The proxy moves a level SGLang refuses into that field and
touches nothing in SGLang's own enum.

The level also has to reach the config opencode actually reads. install.sh
writes a complete config into CONFIG_DIR but only merged limits into the
operator's own file, so a new level appeared everywhere except where it could be
selected. oc-merge-limits.py --add-variant closes that.

LEAN.md carries the method, the pre-registered falsification criteria, the
three-state functional scoring (the answer's code is run, with "not checkable"
kept separate from "broken"), the fairness replay that tripled the token cap to
show the truncations were not an artefact, and what did not work: an expert
persona (no gain, twice the tokens used alone), a decisiveness instruction
(nothing left to remove, lean already sits at 0.00 backtracking markers per
thousand), Chain of Draft (cheapest, loses quality), and four candidates from an
error analysis that all cost tokens and gained nothing. It also states what was
prepared and not run: a 557-problem held-out set with an identical-twin null
control.

Verified live before shipping: 20 end-to-end checks, and on one open request
990 thinking tokens in 19.0 s for lean against 9,084 in 190.9 s for xhigh.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-15 14:05:59 +02:00
Hasan BasbunarandClaude Fable 5 acb064d532 v1.3: opencode-first, 1M context mode, converging upgrades, revision lock
The release the reference box actually runs: model choice (stock or the
huihui-abliterated NVFP4), CONTEXT_MODE=1m (YaRN 1,010,000 + keepalive proxy
+ mem-fraction 0.70), upgrades that read the installed unit and keep the
operator's choices, the pinned revision passed to the server itself so no
upstream push can change what is served, the opencode provider config and oc
launcher replacing the Claude Code integration, opt-in extras (auto-continue
plugin, CAKE ingress anti-bufferbloat), fixture tests and CI. Validated end
to end on the reference box before tagging; details in the CHANGELOG.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-27 03:05:48 +02:00