v1.46.4: what its second review found: --units-only keeps the level with its template, and the note is for a run that names none

--units-only wrote the template apart from lane_template, so its choice was kept by the render after it only: given
with a window that was refused, the level was in the template and not in its file, and the Load after wrote lean
back. It goes through lane_template when the checkpoint is in the cache. The note of the lane going to lean was said
to a run that asked for lean by name, and at each --units-only with no checkpoint: it is said to a run that names no
level, where the template is written. pi-gen.py reads the kept choice as the installer does (its first line, as it
is). docs/pi.md and the CHANGELOG say what omp reads and when.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Hasan BasbunarandClaude Fable 5.2 committed 2026-11-11 13:24:36 +01:00
1 parent ed413863cf
commit 8f309a3e03
8 files changed
+78 -34

No files matched your search

+27 -23
View File
@@ -20,19 +20,20 @@ prompt), the lane was right 24 times of 24, 16 at `xhigh` and 8 at `medium`, wit
**`lean` by default, `xhigh` an option.** `install-flash-local.sh` writes the lane's chat template with `lean` as its
default, as on the other Qwen lanes, and says so to the patcher (`LEAN_DEFAULT=1`): left unset, `patch-template.py`
keeps the default of the template already installed, and every box would have stayed at `xhigh`. Where a template that
defaulted to `xhigh` is about to default to `lean`, the installer says it once, with the command that keeps `xhigh`.
`FLASH_LOCAL_EFFORT=xhigh` gives the template the card's `xhigh` back, `lean` or empty the default, and any other value
is refused with the two it takes. The choice is kept for the runs after in `~/.config/qwen38/flash-local-effort`, as
the window of `FLASH_LOCAL_CONTEXT` is in a file of its own: a Load from the cockpit writes the template again with
none of the user's environment. It is kept with the template that took it, so a run refused after its template was
written (a window refused) does not leave a template without its choice, and by `--units-only` and `--prepare`, which
write no template before the checkpoint is there. `--uninstall` removes it with the lane's other files. `./install.sh`
does not read the variable, says so and names the command, as it does for the window. opencode's provider for the lane
(`oc-flash-local.py`) keeps the order of its four levels, `xhigh` first as since v1.37.0: opencode sends no level when
none is picked, so the order decides no request, and another one would have rewritten the generated config and
restarted the Agent view's server on every box at its update. `pi-gen.py` starts omp, which sends its level with every
request, at the lane's default as its installer chose it (`lean`, or the `xhigh` kept), read in that choice and not in
the template, which an update writes after omp's config. The CI's check of every lane's template
defaulted to `xhigh` is about to default to `lean`, the installer says it once, with the command that keeps `xhigh`,
and says nothing to a run that names a level. `FLASH_LOCAL_EFFORT=xhigh` gives the template the card's `xhigh` back,
`lean` or empty the default, and any other value is refused with the two it takes. The choice is kept for the runs
after in `~/.config/qwen38/flash-local-effort`, as the window of `FLASH_LOCAL_CONTEXT` is in a file of its own: a Load
from the cockpit writes the template again with none of the user's environment. It is kept with the template that took
it, by a stage and by `--units-only` alike, so a run refused after its template was written (a window refused) does not
leave a template without its choice, and where no template is written (`--prepare`, and `--units-only` before the
checkpoint is in the cache) by the render of the unit. `--uninstall` removes it with the lane's other files.
`./install.sh` does not read the variable, says so and names the command, as it does for the window. opencode's
provider for the lane (`oc-flash-local.py`) keeps the order of its four levels, `xhigh` first as since v1.37.0:
opencode sends no level when none is picked, so the order decides no request, and another one would have rewritten the
generated config and restarted the Agent view's server on every box at its update. `pi-gen.py` starts omp, which sends
its level with every request, at the lane's default as its installer chose it (`lean`, or the `xhigh` kept), read in
that choice and not in the template, which an update writes after omp's config. The CI's check of every lane's template
(`tests/lane-templates-check.py`) renders this one at `lean`. The lane's page, its model page, the README,
BENCHMARKS.md, `docs/clients.md`, `docs/opencode.md`, `docs/pi.md` and the cockpit's note on the lane say `lean` where
they said `xhigh`, and the lane's page has a section on the level, with these measures. The figures measured at `xhigh`
@@ -45,12 +46,14 @@ compares with that reference only on a box that keeps `xhigh`. The lane's measur
`LEAN_DEFAULT=0` left in the shell does not change it; `FLASH_LOCAL_EFFORT=xhigh` writes `xhigh`, kept for the stage
after with no variable, and `lean` or empty takes it back; an unknown value is refused and changes neither the template
nor the choice; a template written as v1.46.3 wrote it goes to `lean` at the next run (the patcher alone keeps it at
`xhigh`), which says so once; a level given with a window that is refused is kept with its template; `--units-only`
keeps the choice before the checkpoint is in the cache, and `--prepare` keeps it too; the provider a Load adds keeps
the order of its levels; `install.sh` unsets `FLASH_LOCAL_EFFORT` and names the command. `tests/test_pi_gen.py`: omp
starts at the level the lane's installer chose, whatever the template installed says and whatever order the artifact
lists. `tests/test_flash_local_uninstall.py`: `--uninstall` removes the choice. `tests/test_lane_templates_check.py`:
the check reads the lane at `LEAN_DEFAULT=1`. Each of these tests, new or changed, fails on v1.46.3 and passes here.
`xhigh`), which says so once; a level given with a window that is refused is kept with its template, by a stage and by
`--units-only`; a run that names a level is not told the lane went to `lean`; `--units-only` keeps the choice before
the checkpoint is in the cache, and `--prepare` keeps it too; the provider a Load adds keeps the order of its levels;
`install.sh` unsets `FLASH_LOCAL_EFFORT` and names the command. `tests/test_pi_gen.py`: omp starts at the level the
lane's installer chose, whatever the template installed says and whatever order the artifact lists.
`tests/test_flash_local_uninstall.py`: `--uninstall` removes the choice. `tests/test_lane_templates_check.py`: the
check reads the lane at `LEAN_DEFAULT=1`. Each of these tests, new or changed, fails on v1.46.3 and passes here, but
the one of the order, which guards what v1.46.3 did.
**Two tests of the pair, steadied.** The first run of `main` on v1.46.3 failed on two tests of
`tests/test_proxy_pair_one_model_inprocess.py` that had passed eleven minutes earlier. One sends two requests in a row
@@ -69,15 +72,16 @@ in the cache, and the installer says so once (elsewhere, and on a box updated wi
Load writes it), and its unit is written again for one comment, which named `xhigh`. A vLLM lane that serves is not
restarted by an update: it serves the template it started with, `xhigh` by default, until its next start, which the
installer says ("NOTE: Qwen3.8 Flash-Next FP4-Local runs older files than the ones installed now (its unit, its runtime
or its start scripts); it runs these after: sudo systemctl restart qwen38-flash-local.service (or Load it again from
or its start scripts); it runs these after: sudo systemctl restart qwen38-flash-local.service (or Load it again from
the cockpit)") and the cockpit shows. `FLASH_LOCAL_EFFORT=xhigh ./install-flash-local.sh --units-only`, then a Load of
the lane, keeps the card's level, and an update keeps the level chosen. A box installed with `LEAN_DEFAULT=0` keeps
`xhigh` on the 27B and flash lanes; that setting never reached this lane, whose own is `FLASH_LOCAL_EFFORT`, and it
goes to `lean` there too. A client can always name a level per request (`reasoning_effort`). The generated opencode
config does not change, so the Agent view's server is not restarted for this lane, and a turn that picks no variant
names no level, as before. omp's config is written with `lean` for the lane at the update itself: omp names its level
with every request, so its turns are at `lean` from then on, on a lane that still serves its old template too. The
proxy does not change; the cockpit restarts, as at every release, and its note on the lane says `lean`.
names no level, as before. omp's generated config is written with `lean` for the lane at the update itself: omp names
its level with every request, so its turns are at `lean` once that config is copied again where omp reads it
(docs/pi.md), on a lane that still serves its old template too. The proxy does not change; the cockpit restarts, as at
every release, and its note on the lane says `lean`.
## v1.46.3 (2026-11-11): a room check says GiB where it counts in GiB, and each vLLM lane's installer names its lane by its official name
+2 -1
View File
@@ -257,7 +257,8 @@ time, at the card's sampling (temperature 1.0, top_p 0.95, top_k 20):
- **Exactly 300 characters**: no answer at every level that reasons, 13 times of 16 at `xhigh` and 11 of
12 at `lean`, `medium` and `low`. A limit of the model that no level lifts.
- **A long JSON answer** (a drug's interactions): at the lane's default, `xhigh` then, 4 answers of 4, but
21,260 tokens out in median, 19,145 of them reasoning, in 1,007 s; at `lean`, 8 of 8 in readable JSON,
21,260 tokens out in median, 19,145 of them reasoning, in 1,007 s, and with `xhigh` asked by name 2
answers of 4 empty at 32,000 tokens, 3 of 3 at temperature 0; at `lean`, 8 of 8 in readable JSON,
1,427 tokens, 819 of them reasoning, in 59 s; at `medium` 97 s, at `low` 87 s.
- **What the level does not change**: listing the release headings of the first 6,000 to 48,000
characters of this repository's CHANGELOG (1,828 to 13,681 tokens of prompt), right 24 times of 24, 16
+1 -1
View File
@@ -34,7 +34,7 @@ The patched template reads `reasoning_effort`: `lean` is its default (`xhigh` on
- **Kolibri.** Its template reads `none`, `low`, `medium` or `high`, and vLLM hands it the top-level field: pi sends it, with `thinkingLevelMap` taking `off` to `none` (with no field Kolibri reasons at `high`), `minimal` to `low` and `xhigh` to `high`, and its level starts at `high`, what Kolibri does unasked. omp offers `none` as `minimal` (`reasoningEffortMap`), and starts at `high` too.
- **Nemotron** (Bolt, and Super VL, whose template reads the same two). Its template reads `enable_thinking` and `medium_effort`, and no effort level: pi sends the top-level field as for Kolibri (`thinkingLevelMap` taking `off` to `none`, `minimal` to `low` and `xhigh` to `high`), its level starts at `high`, Bolt's full reasoning, and the proxy says each level in the template's words (v6.40): `none` and `minimal` turn the reasoning off, `low` and `medium` ask its shorter one, `high` its default. omp sends its pick in `chat_template_kwargs.reasoning_effort`, which the proxy translates the same way.
- **Ornith 1.5 122B.** Its template reads `enable_thinking` alone, and no effort level: pi sends the top-level field, `thinkingLevelMap` taking `off` to `none` and its other levels as they are, its level starts at `high`, the full reasoning Ornith does unasked, and the proxy says each level in the template's words (v6.45): `none` and `minimal` turn the reasoning off, every other level keeps it whole. omp offers `high` and `minimal`, its `minimal` sent as `none` (`reasoningEffortMap`), starts at `high`, and sends its pick in `chat_template_kwargs.reasoning_effort`, which the proxy translates the same way.
- **omp.** Its picker goes through the same enum, and `compat.reasoningEffortMap` translates the pick for the provider: the generator gives it `efforts: [minimal, low, medium, xhigh]` with `minimal` mapped to `lean`, and as its default the installed template's own: `minimal` (`lean`), or `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` (pi-gen.py reads it beside the configs it writes, and the level the artifact lists first while a lane has no template yet; omp sends its default level on every request), the same ladder (`lean/low/medium/xhigh`) the artifact's `variants` declare; `off` lands on `lean`, and a level the list does not hold on the nearest one below it (`high` on `medium`, `max` on `xhigh`). `compat.qwenTemplateReasoningEffort` routes the mapped level onto `chat_template_kwargs.reasoning_effort` (it ships on by default for Qwen 3.8+ ids on LM Studio, llama.cpp discovery and vLLM only, none of them this proxy's provider id: without it the picker moved and nothing was sent), and `compat.thinkingFormat: qwen-chat-template`, omp's dialect for vLLM and SGLang, sends it there alone: omp's default dialect also sent a top-level `lean`, a 400 on every request at the default level until the proxy dropped that copy (v6.30, v1.22.1; checked with omp in its default dialect, a 400 through v6.29 and an answer through v6.30).
- **omp.** Its picker goes through the same enum, and `compat.reasoningEffortMap` translates the pick for the provider: the generator gives it `efforts: [minimal, low, medium, xhigh]` with `minimal` mapped to `lean`, and as its default the installed template's own: `minimal` (`lean`), or `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` (pi-gen.py reads the template beside the configs it writes and, for that lane, the choice its installer keeps there; omp sends its default level on every request), the same ladder (`lean/low/medium/xhigh`) the artifact's `variants` declare; `off` lands on `lean`, and a level the list does not hold on the nearest one below it (`high` on `medium`, `max` on `xhigh`). `compat.qwenTemplateReasoningEffort` routes the mapped level onto `chat_template_kwargs.reasoning_effort` (it ships on by default for Qwen 3.8+ ids on LM Studio, llama.cpp discovery and vLLM only, none of them this proxy's provider id: without it the picker moved and nothing was sent), and `compat.thinkingFormat: qwen-chat-template`, omp's dialect for vLLM and SGLang, sends it there alone: omp's default dialect also sent a top-level `lean`, a 400 on every request at the default level until the proxy dropped that copy (v6.30, v1.22.1; checked with omp in its default dialect, a 400 through v6.29 and an answer through v6.30).
`images.autoResize` (on) plus a generated 1568×1568 / 512 KiB per-model `resize` cap keep an attachment from blowing the prompt past the lane. Compaction follows the artifact: `keepRecentTokens` = opencode's `preserve_recent_tokens`, and each lane's `reserveTokens` = that lane's output cap.
+12 -3
View File
@@ -238,6 +238,7 @@ if [ "$FLASH_LOCAL_EFFORT" = xhigh ]; then TEMPLATE_FIXES=(LEAN_DEFAULT=0); fi
# Said where a template that defaulted to xhigh (v1.37.0 to v1.46.3) is about to default to lean: once, as the template
# written after it says lean.
effort_note(){
[ -z "$EFFORT_GIVEN" ] || return 0 # a level asked for by name needs no telling
[ "$FLASH_LOCAL_EFFORT" = lean ] || return 0
grep -q "reasoning_effort|default('xhigh')" "$TEMPLATE" 2>/dev/null || return 0
echo "NOTE: Qwen3.8 Flash-Next FP4-Local answers at the lean effort by default from now on (xhigh until v1.46.3): FLASH_LOCAL_EFFORT=xhigh ./install-flash-local.sh --units-only, then a Load of the lane, keeps xhigh"
@@ -253,6 +254,15 @@ lane_template(){
vlane_template "$TEMPLATE" "${TEMPLATE_FIXES[@]}"
keep_effort
}
# The same when the units alone are installed (--units-only), if the pinned checkpoint is in the cache already
# (vlane_template_if_cached's own condition): with its note and its choice, as --units-only is the command the note
# and the lane's page give, and its template written apart left the choice to the render after it, which a window
# refused never reached (found in the second review of v1.46.4). Without the checkpoint, nothing is written or said
# here: the lane's first Load writes the template, and --units-only keeps the choice for it (keep_choice).
lane_template_if_cached(){
[ -f "$HF_CACHE/hub/models--${MODEL//\//--}/snapshots/$MODEL_REV/chat_template.jinja" ] || return 0
lane_template
}
# The choices given, kept for the runs after (a Load stages the unit with none of the user's environment): by the render
# that takes them, after the template, and by --prepare, which renders nothing. A refused one is not kept (render_unit).
keep_choice(){
@@ -313,7 +323,7 @@ lane_table(){ # $1 copy: make the copies whole first; mounts: only name the cop
# The unit, rendered for this box: written to $1. Its start checks what the engine reads before it runs: the
# checkpoint's index at the pinned revision, and each copy of the table its mounts name.
refuse_window(){
die "the 1M window's overrides could not be written (the line above says why). Nothing was changed: the lane keeps" \
die "the 1M window's overrides could not be written (the line above says why). The unit was not changed: the lane keeps" \
"its window, and FLASH_LOCAL_CONTEXT=native ./install-flash-local.sh --units-only sets the native one"
}
render_unit(){
@@ -412,8 +422,7 @@ if [ "$MODE" = units ]; then
echo "OK: $(uname -m), key present; the image and the checkpoint come with the lane's first Load"
# a checkpoint already in the cache (an install.sh run after a Load) keeps the table's mounts
lane_table mounts
effort_note
vlane_template_if_cached "$TEMPLATE" "${TEMPLATE_FIXES[@]}"
lane_template_if_cached
install_service
step "Done: the Qwen3.8 Flash-Next FP4-Local lane is installed; its first Load prepares it"
echo " the cockpit: Load on Qwen3.8 Flash-Next FP4-Local in the Lanes view pulls its image (about 18 GB, 10 to"
+1 -1
View File
@@ -262,7 +262,7 @@ def template_default(out_dir, prov):
template's; None when unknown."""
choice = EFFORT_CHOICE.get(prov)
if choice:
kept = (read_text(os.path.join(out_dir, choice)) or "").split("\n", 1)[0].strip()
kept = (read_text(os.path.join(out_dir, choice)) or "").split("\n", 1)[0] # as the installer's head -1
return "xhigh" if kept == "xhigh" else "lean"
name = LANE_TEMPLATE.get(prov)
m = TEMPLATE_DEFAULT.search((read_text(os.path.join(out_dir, name)) if name else None) or "")
+30 -2
View File
@@ -649,11 +649,39 @@ class TheEffortARequestThatNamesNoneGets(unittest.TestCase):
env={"PATH": "/usr/bin:/bin", "HOME": str(self.box.home), **env})
return r.returncode, r.stdout + r.stderr
def units_lines(self):
"""--units-only's own lines for the template, as the installer has them, then the render of its unit."""
text = (REPO / "install-flash-local.sh").read_text()
start = text.index(" lane_table mounts\n", text.index("the image and the checkpoint come with the lane's first Load"))
lines = text[start + len(" lane_table mounts\n"):text.index(" install_service\n", start)]
self.assertIn("lane_template_if_cached", lines)
return lines + f'render_unit "{self.box.t}/units-only.service"'
def test_units_only_keeps_a_level_given_with_a_window_that_is_refused(self):
# the command the note and the lane's page give: its template was written apart from lane_template, and its
# choice kept by the render after it only, which a window refused never reached (second review of v1.46.4)
moved = json.loads(json.dumps(TheMillionTokenWindow.CONFIG))
moved["text_config"]["rope_parameters"]["mrope_section"] = [16, 24, 24]
(self.box.hf / "hub" / HUB / "snapshots" / PINS["FLASH_LOCAL_REV"] / "config.json").write_text(json.dumps(moved))
rc, out = self.run_lines("units", self.units_lines(), FLASH_LOCAL_EFFORT="xhigh", FLASH_LOCAL_CONTEXT="1m")
self.assertNotEqual(rc, 0, out)
self.assertEqual((self.default(), self.choice.read_text()), ("xhigh", "xhigh\n"), out)
rc, out = self.box.stage(FLASH_LOCAL_PLE_DIR="none") # the Load after: the level kept
self.assertEqual((rc, self.default()), (0, "xhigh"), out)
def test_a_level_asked_for_by_name_is_not_told_the_lane_went_to_lean(self):
# the note is for a box that asked nothing: FLASH_LOCAL_EFFORT=lean on a lane kept at xhigh said "(xhigh until
# v1.46.3) ... keeps xhigh" (second review of v1.46.4)
rc, out = self.box.stage(FLASH_LOCAL_PLE_DIR="none", FLASH_LOCAL_EFFORT="xhigh")
self.assertEqual((rc, self.default()), (0, "xhigh"), out)
rc, out = self.box.stage(FLASH_LOCAL_PLE_DIR="none", FLASH_LOCAL_EFFORT="lean")
self.assertEqual((rc, self.default()), (0, "lean"), out)
self.assertNotIn("from now on", out)
def test_units_only_and_prepare_keep_the_choice_for_the_load(self):
# FLASH_LOCAL_EFFORT=xhigh ./install-flash-local.sh --units-only: its lines (the template when the checkpoint is
# in the cache, then the unit), before the checkpoint is there and once it is, then --prepare's
units = ('vlane_template_if_cached "$TEMPLATE" "${TEMPLATE_FIXES[@]}"\n'
f'render_unit "{self.box.t}/units-only.service"')
units = self.units_lines()
source = self.box.hf / "hub" / HUB / "snapshots" / PINS["FLASH_LOCAL_REV"] / "chat_template.jinja"
source.rename(source.with_name("away.jinja"))
rc, out = self.run_lines("units", units, FLASH_LOCAL_EFFORT="xhigh")
+3 -2
View File
@@ -264,8 +264,9 @@ class ABoxBootingNemotronSuper(unittest.TestCase):
class ABoxBootingFlashLocal(unittest.TestCase):
"""The Qwen3.8 Flash-Next FP4-Local lane, its own provider (its own served model): serving at boot it is
opencode's default, its compaction sized from its window; installed beside another lane it is
offered; with no unit, absent. Its levels are the flash lane's Qwen levels, xhigh first: its
template's default (Hasan's choice, 2026-10-19)."""
offered; with no unit, absent. Its levels are the flash lane's Qwen levels, xhigh first as since
v1.37.0, whatever the lane's default (lean since v1.46.4): the order decides no request, and the
generated config stays as it was."""
def test_the_default_the_compaction_and_the_provider_are_flash_locals(self):
d = generate("27b", "1m", unit_ctx=1010000, flash_unit=True, pair=("551000", "160000"),
+2 -1
View File
@@ -657,7 +657,8 @@ class TwoBoxesServeOneModel(PairFixture, unittest.TestCase):
# violation of protocol", or the reset or the broken pipe of a connection closed there): under TLS 1.3 the refusal comes after this box's side of the handshake, and which
# of the two this box meets first is a race (the second on GitHub, main, 2026-11-11). Never a box that "had
# the request": that one is bound there, and this request ran here
said = ("refused this box's certificate", "pair: spark2 does not answer (EOF occurred in violation of protocol",
said = ("refused this box's certificate",
"pair: spark2 does not answer (EOF occurred in violation of protocol",
"pair: spark2 does not answer ([Errno 104] Connection reset by peer",
"pair: spark2 does not answer ([Errno 32] Broken pipe")
by = time.monotonic() + 8