mirror of
https://github.com/hasso5703/alzeo.git
synced 2026-12-05 12:24:28 +01:00
v1.46.4: what its review found: the Agent view's server is not restarted, omp follows the choice, the choice is kept with its template
The generated opencode config listed the lane's default first: it changed on every box, and an update restarted the Agent view's server for an order that decides no request. The provider keeps the order it had (xhigh first). pi-gen.py read the lane's template, which an update writes after omp's config: omp stayed at the xhigh of v1.46.3's template. It reads the choice the lane's installer keeps. A level given with a window that was refused left a template without its choice: it is kept with the template that took it. The installer says once that the lane goes from xhigh to lean, with the command that keeps xhigh. The test of a refused certificate names the ends of a connection it takes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
bc1dd74307
commit
ed413863cf
12 files changed
+156
-132
No files matched your search
+51
-48
@@ -5,51 +5,52 @@
|
||||
**At `xhigh`, the lane often answered nothing.** A request that names no reasoning effort got `xhigh` on the Qwen3.8
|
||||
Flash-Next FP4-Local lane, the default its model card ships and the one it served since v1.37.0 (Hasan's choice of
|
||||
2026-10-19), where the 27B and flash lanes give `lean` (LEAN.md). Measured on the reference box on 2026-11-11, through
|
||||
the proxy, 4 requests at a time, at the card's sampling (temperature 1.0, top_p 0.95, top_k 20): asked for a short story
|
||||
of about 800 characters, in English and in French, within 5,000 tokens, the lane answered nothing 12 times of 16 at its
|
||||
default and 12 of 16 with `xhigh` asked by name, 24 of 32 in all, every token spent reasoning, where the model counts
|
||||
the letters one by one; at `lean`, `medium` and `low`, it answered 24 times of 24. A long JSON answer (a drug's
|
||||
the proxy, 4 requests at a time, at the card's sampling (temperature 1.0, top_p 0.95, top_k 20): asked for a short
|
||||
story of about 800 characters, in English and in French, within 5,000 tokens, the lane answered nothing 12 times of 16
|
||||
at its default and 12 of 16 with `xhigh` asked by name, 24 of 32 in all, every token spent reasoning, where the model
|
||||
counts the letters one by one; at `lean`, `medium` and `low`, it answered 24 times of 24. A long JSON answer (a drug's
|
||||
interactions) came back 4 times of 4 at the default, but with 21,260 tokens out in median, 19,145 of them reasoning, in
|
||||
1,007 s; at `lean` 8 times of 8 in readable JSON, with 1,427 tokens, 819 of them reasoning, in 59 s, and in 97 s at
|
||||
`medium`, 87 s at `low`. One limit stays at every level that reasons: a story of exactly 300 characters came back empty
|
||||
13 times of 16 at `xhigh` or at the default, and 11 of 12 at `lean`, `medium` and `low`. The length of a prompt is not
|
||||
the cause: listing the release headings of the first 6,000 to 48,000 characters of this CHANGELOG (1,828 to 13,681
|
||||
tokens of prompt), the lane was right 24 times of 24, 16 at `xhigh` and 8 at `medium`, with 129 to 345 tokens of
|
||||
reasoning.
|
||||
1,007 s, and asked for `xhigh` by name 2 answers of 4 came back empty at 32,000 tokens, 3 of 3 at temperature 0; at
|
||||
`lean` 8 times of 8 in readable JSON, with 1,427 tokens, 819 of them reasoning, in 59 s, and in 97 s at `medium`, 87 s
|
||||
at `low`. One limit stays at every level that reasons: a story of exactly 300 characters came back empty 13 times of 16
|
||||
at `xhigh` or at the default, and 11 of 12 at `lean`, `medium` and `low`. The length of a prompt is not the cause:
|
||||
listing the release headings of the first 6,000 to 48,000 characters of this CHANGELOG (1,828 to 13,681 tokens of
|
||||
prompt), the lane was right 24 times of 24, 16 at `xhigh` and 8 at `medium`, with 129 to 345 tokens of reasoning.
|
||||
|
||||
**`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`.
|
||||
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, by the same function at the same moments (a render that
|
||||
took it, and `--prepare`): a Load from the cockpit writes the template again with none of the user's environment.
|
||||
`--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: it writes the opencode config before it runs the lane's installer. opencode's
|
||||
provider for the lane (`oc-flash-local.py`) lists the four levels in the other Qwen lanes' order, the lane's default
|
||||
first, read from that choice and not from the template, which `install.sh` writes after the opencode config.
|
||||
`pi-gen.py` starts omp at the default of the installed template wherever it is there, and at the level the artifact
|
||||
lists first only where it is not: that level decided first, and the two can differ for a while (an update writes the
|
||||
artifact before the lane's installer writes the template, and a Load keeps an entry already there). 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` keep their numbers and say their level: `bench.sh`'s reference for the lane, a greedy median of
|
||||
55.1 to 55.4 tok/s (2026-10-20), was measured at `xhigh`, and a run of `bench.sh`, which names no level, now measures
|
||||
`lean` and says it compares with that reference only on a box that keeps `xhigh`. The lane's measures at `lean` (47.4
|
||||
tok/s alone and 106.6 in all at 8 requests on real text, GSM8K and HumanEval) are its default's again.
|
||||
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
|
||||
(`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`
|
||||
keep their numbers and say their level: `bench.sh`'s reference for the lane, a greedy median of 55.1 to 55.4 tok/s
|
||||
(2026-10-20), was measured at `xhigh`, and a run of `bench.sh`, which names no level, now measures `lean` and says it
|
||||
compares with that reference only on a box that keeps `xhigh`. The lane's measures at `lean` (47.4 tok/s alone and
|
||||
106.6 in all at 8 requests on real text, GSM8K and HumanEval) are its default's again.
|
||||
|
||||
**Tests.** `tests/test_flash_local_stage.py`: the template a stage writes has `lean` as its default, and a
|
||||
`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`); `--units-only` keeps the choice before the checkpoint is in the cache, for the Load that writes the template,
|
||||
and `--prepare` keeps it too; the provider a Load adds lists the level kept first. `tests/test_install_oc_artifact.py`:
|
||||
the generator of `install.sh` lists `lean` first, `xhigh` where the choice is kept. `tests/test_pi_gen.py`: omp starts
|
||||
at the installed template's level whatever the artifact lists first, and at the level it lists first before the
|
||||
template is there. `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`. `install.sh` unsets
|
||||
`FLASH_LOCAL_EFFORT` and names the command. 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; `--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.
|
||||
|
||||
**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
|
||||
@@ -59,22 +60,24 @@ be 0 before each read: with a generation counted 0.5 s longer, the test as it wa
|
||||
passes. The other waited for "refused this box's certificate" in the journal of a box whose certificate the other box
|
||||
refuses. Under TLS 1.3 the refusal comes after this box's side of the handshake, and when the other box had closed the
|
||||
connection before the request went out, this box said "does not answer (EOF occurred in violation of protocol)": the
|
||||
request ran here either way, as it must. The test takes either line and still refuses a box said to have had the
|
||||
request. Saying the refusal in that case too is left to a version that changes the proxy.
|
||||
request ran here either way, as it must. The test takes the alert or the end of the connection (that EOF, a reset, a
|
||||
broken pipe) and still refuses a box said to have had the request. Saying the refusal in that case too is left to a
|
||||
version that changes the proxy.
|
||||
|
||||
**What an update does.** The lane's chat template is written again with `lean` as its default where its checkpoint is
|
||||
in the cache (elsewhere its first 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 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`. A client can always name a level per request (`reasoning_effort`). The
|
||||
generated opencode config lists `lean` first for the lane; an entry already in the user's own opencode config keeps
|
||||
its order, which changes no request: a turn that picks no variant names no level. omp, whose config an update writes
|
||||
before the lane's template, starts the lane at `lean` from its next Load at the latest, the one that starts its new
|
||||
template. The proxy does not change; the cockpit restarts, as at every release, and its note on the lane says `lean`.
|
||||
in the cache, and the installer says so once (elsewhere, and on a box updated with `--no-flash-local`, the lane's next
|
||||
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
|
||||
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`.
|
||||
|
||||
## 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
|
||||
|
||||
|
||||
@@ -250,7 +250,7 @@ Everything below is optional and combinable. Variables ride on the `bash` side o
|
||||
| Model | `MODEL_CHOICE=stock`, `uncensored`, `fp8`, `uncensored-fp8`, `flash`, `flash-uncensored`, `flash-nvda` | `stock` | Qwen3.8 27B in NVFP4 (RadixArk's build, or edp1096's abliterated one), the same pair in FP8 (Qwen's own, or edp1096's abliterated one), or Qwen3.8 Flash-Next in one of three NVFP4 builds (RadixArk, dealignai's abliterated one, NVIDIA) (see the seven targets) |
|
||||
| Reduced draft vocabulary | `SPEC_TOKEN_MAP_SIZE=65536`, or `0` to serve without it | `65536` | flash only: hands the speculative draft the target's `lm_head` sliced to that many rows, which is 14 to 25% of decode and cannot change what the model may say |
|
||||
| Flash serving tier | `FLASH_TIER=context`, `concurrency`, `throughput` | **`concurrency`** since 2026-09-30 | flash only: 8 concurrent requests with 2 states per path (default; pool measured 477,056 tokens, so a full 262K prompt fits at 8 too, and opencode gets 205,000 tokens of context and 32,000 of output on it as on `context`), 4 requests so that long sessions queue less, or 24 without speculation |
|
||||
| Reasoning effort | `lean` (default), `xhigh`, `medium`, `low` | **`lean`** | the level this repo adds and defaults to: 74 words in the chat template that cost 0.71x the thinking tokens of `medium` on 364 public problems and 0.436x on 58 underspecified requests, with no measured quality cost. Qwen's three levels are left byte-identical. `LEAN_DEFAULT=0 ./install.sh` installs it without taking the default (the 27B and flash lanes; the Qwen3.8 Flash-Next FP4-Local lane's setting is `FLASH_LOCAL_EFFORT=xhigh`, [docs/flash-local-lane.md](docs/flash-local-lane.md)). Numbers, method and negative results in [LEAN.md](LEAN.md) |
|
||||
| Reasoning effort | `lean` (default), `xhigh`, `medium`, `low` | **`lean`** | the level this repo adds and defaults to: 74 words in the chat template that cost 0.71x the thinking tokens of `medium` on 364 public problems and 0.436x on 58 underspecified requests, with no measured quality cost. Qwen's three levels are left byte-identical. `LEAN_DEFAULT=0 ./install.sh` installs it without taking the default (the 27B and flash lanes; the Qwen3.8 Flash-Next FP4-Local lane's is its own installer's, `FLASH_LOCAL_EFFORT=xhigh ./install-flash-local.sh --units-only`, [docs/flash-local-lane.md](docs/flash-local-lane.md)). Numbers, method and negative results in [LEAN.md](LEAN.md) |
|
||||
| Context mode (27B) | `CONTEXT_MODE=native` or `1m` | **`1m`** since v1.12.1 | 1,010,000 window via YaRN, mem-fraction 0.76, proxy required, limits fitted to the real pool at the end of the install (see the 1M section). The flash lane and `--no-service` are native either way, with no refusal, except `--no-service` on a box whose installed unit serves 1m: that is refused with both ways out, since it would leave the unit on configs it cannot start from (and a 64 GB DGX Spark refuses `--no-service` whatever the mode). A re-run keeps whatever is already installed, both directions |
|
||||
| systemd service | default, or `--no-service` | service | `--no-service`: foreground with `./run.sh`, no sudo, 27B native only; refused on a 64 GB DGX Spark, as `./run.sh` is |
|
||||
| Start now | default, or `--no-start` | starts | install and enable the engine and the proxy without starting them (`sudo systemctl start` later, as the installer prints); that path installs the other text lane too, and skips the smoke test, the fit of the 1M limits, the cockpit with its Agent view, and the image, video, Kolibri, both Nemotron, Qwen3.8 Flash-Next FP4-Local and Ornith lanes |
|
||||
|
||||
@@ -184,7 +184,7 @@ const TARGET_NOTE = {
|
||||
'kolibri-nvfp4': 'The same model with its routed experts in 4-bit NVFP4 (Quantinine), attention and everything else the official FP8 bit for bit: 53 tokens/s alone and 248 at 8 requests, in 42.8 GiB instead of 73.6. English and German text score level with the FP8; French measurably lower (about 4 % of perplexity). The first switch downloads about 46 GB.',
|
||||
nemotron: 'NVIDIA’s Nemotron 3.5 Bolt, its experts in 2 bits, served as its model card says: vLLM nightly with b12x, its LiLiCorr drafter, 262,144 tokens of context, temperature 1.0, top_p 0.95, reasoning on (off, efficient or full per request). It reads images and video. Measured on this box: 140 tokens/s alone on code, 50 on prose, 201 in all at 16 requests, 24 requests at the full window. The first switch downloads about 26 GB.',
|
||||
'nemotron-super': 'NVIDIA’s Nemotron 3.5 Super VL in NVFP4, served as its model card says for a DGX Spark: its LiLiCorr drafter, a window of 1,048,576 tokens, the Mamba state in float16 with stochastic rounding, temperature 1.0, top_p 0.95, reasoning on (off, efficient or full per request), in the Nemotron 3.5 Bolt lane’s vLLM image. It reads images and video. Measured on this box: 70 tokens/s alone on code, 31 on prose, its whole window 1.1 to 1.3 times over in its cache. The first switch downloads about 77 GB.',
|
||||
'flash-local': 'NVIDIA’s own FP4 build of the flash model, served as its model card says for a DGX Spark: vLLM with b12x, its experts and its n-gram table in NVFP4 after a quantization-aware distillation from the full precision (GPQA Diamond 91.5 % against 92.2 % on NVIDIA’s card), an MTP head drafting 4 tokens, 262,144 tokens of context and a KV cache of about 920,000 tokens, reasoning on at lean as on the other Qwen lanes unless a request asks another level (xhigh by default with FLASH_LOCAL_EFFORT=xhigh). Its table is read at every token: with the HF cache on another disk, its first Load copies the table’s files (32 GB) beside your home directory. The first boot tunes b12x’s kernels for this GPU, about 17 min; the next ones take about 6. The first switch downloads about 102 GB.',
|
||||
'flash-local': 'NVIDIA’s own FP4 build of the flash model, served as its model card says for a DGX Spark: vLLM with b12x, its experts and its n-gram table in NVFP4 after a quantization-aware distillation from the full precision (GPQA Diamond 91.5 % against 92.2 % on NVIDIA’s card), an MTP head drafting 4 tokens, 262,144 tokens of context and a KV cache of about 920,000 tokens, reasoning on at lean as on the other Qwen lanes unless a request asks for another level (xhigh by default with FLASH_LOCAL_EFFORT=xhigh). Its table is read at every token: with the HF cache on another disk, its first Load copies the table’s files (32 GB) beside your home directory. The first boot tunes b12x’s kernels for this GPU, about 17 min; the next ones take about 6. The first switch downloads about 102 GB.',
|
||||
'ornith-122b': 'Ornith AI’s Ornith 1.5 122B (MIT) in its authors’ NVFP4 build, served by vLLM with b12x in the Qwen3.8 Flash-Next FP4-Local lane’s image: its experts and output head in NVFP4, its projections in FP8, an MTP head drafting 2 tokens, 1,048,576 tokens of context (its own 262,144 stretched four times with YaRN), temperature 0.6, top_p 0.95, top_k 20, reasoning on (off with effort none or minimal). It reads images and video. The first switch downloads about 78 GB.'};
|
||||
// What installs a lane this box does not have. Since v1.20 a plain ./install.sh installs
|
||||
// every lane, so one missing here was left out (a --no-<lane> on the last run) or did not fit:
|
||||
|
||||
@@ -272,9 +272,10 @@ cd ~/dgx-spark-qwen38 && FLASH_LOCAL_EFFORT=lean ./install-flash-local.sh --unit
|
||||
`--units-only` writes the choice, and the lane's chat template when its checkpoint is in the cache, and
|
||||
downloads and starts nothing: a lane that serves answers at its new default once it starts again, at its
|
||||
next Load. The choice is kept for the Loads and the updates after (a Load from the cockpit runs with none
|
||||
of your environment), in `~/.config/qwen38/flash-local-effort`. opencode's generated config lists the
|
||||
lane's default level first from the next `./install.sh`, and omp starts at its template's (`pi-gen.py`, which
|
||||
a Load runs again). `LEAN_DEFAULT`, the 27B and flash lanes' setting, does not reach this lane.
|
||||
of your environment), in `~/.config/qwen38/flash-local-effort`. opencode's generated config keeps the
|
||||
order of the lane's four levels (`xhigh` first), which decides no request: a turn that picks no level names
|
||||
none. omp, which names its level with every request, starts at the level chosen (`pi-gen.py`, which an update
|
||||
and a Load run again). `LEAN_DEFAULT`, the 27B and flash lanes' setting, does not reach this lane.
|
||||
|
||||
## Installing, loading, removing
|
||||
|
||||
|
||||
+1
-1
@@ -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`, `kolibri`, `nemotron`, `nemotron-super` and `ornith-122b`), the three 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, which that lane's variants then list first; 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`, `kolibri`, `nemotron`, `nemotron-super` and `ornith-122b`), the three 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):
|
||||
|
||||
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,
|
||||
|
||||
+20
-4
@@ -235,13 +235,28 @@ fi
|
||||
TEMPLATE="$CONFIG_DIR/chat-template-flash-local.jinja"
|
||||
TEMPLATE_FIXES=(LEAN_DEFAULT=1)
|
||||
if [ "$FLASH_LOCAL_EFFORT" = xhigh ]; then TEMPLATE_FIXES=(LEAN_DEFAULT=0); fi
|
||||
lane_template(){ vlane_template "$TEMPLATE" "${TEMPLATE_FIXES[@]}"; }
|
||||
# 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(){
|
||||
[ "$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"
|
||||
}
|
||||
# The level given, kept with the template that took it: a run refused after its template was written (a window refused)
|
||||
# left a template at xhigh that the Load after wrote back at lean (found in review of v1.46.4).
|
||||
keep_effort(){
|
||||
[ -n "$EFFORT_GIVEN" ] || return 0
|
||||
if [ "$FLASH_LOCAL_EFFORT" = xhigh ]; then mkdir -p "$CONFIG_DIR" && echo xhigh > "$EFFORT_CHOICE"; else rm -f "$EFFORT_CHOICE"; fi
|
||||
}
|
||||
lane_template(){
|
||||
effort_note
|
||||
vlane_template "$TEMPLATE" "${TEMPLATE_FIXES[@]}"
|
||||
keep_effort
|
||||
}
|
||||
# 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(){
|
||||
if [ -n "$EFFORT_GIVEN" ]; then
|
||||
if [ "$FLASH_LOCAL_EFFORT" = xhigh ]; then mkdir -p "$CONFIG_DIR" && echo xhigh > "$EFFORT_CHOICE"; else rm -f "$EFFORT_CHOICE"; fi
|
||||
fi
|
||||
keep_effort
|
||||
[ -n "$CONTEXT_GIVEN" ] || return 0
|
||||
if [ "$FLASH_LOCAL_CONTEXT" = 1m ]; then mkdir -p "$CONFIG_DIR" && echo 1m > "$CONTEXT_CHOICE"; else rm -f "$CONTEXT_CHOICE"; fi
|
||||
}
|
||||
@@ -397,6 +412,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[@]}"
|
||||
install_service
|
||||
step "Done: the Qwen3.8 Flash-Next FP4-Local lane is installed; its first Load prepares it"
|
||||
|
||||
+8
-24
@@ -9,35 +9,19 @@ Usage: oc-flash-local.py <base_url> <api-key file> <ctx> <out> <name>
|
||||
prints {"provider": {"flash-local": ...}}, the shape oc-merge-limits.py --add-providers reads.
|
||||
"""
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
|
||||
# The checkpoint's chat template is the Qwen3.8 one the flash lane serves, byte for byte, patched
|
||||
# the same way (patch-template.py), so the same four levels, in the order install.sh lists the other
|
||||
# Qwen lanes' but with the level a request that names none gets first, as a picker lists it: lean, as
|
||||
# on the other Qwen lanes since v1.46.4, or xhigh, its model card's default, on a box whose installer
|
||||
# was run with FLASH_LOCAL_EFFORT=xhigh. Fixed at xhigh until v1.46.3, the lane's default then.
|
||||
LEVELS = ("lean", "low", "medium", "xhigh")
|
||||
# The choice the lane's installer keeps beside the box's key (install-flash-local.sh), read here and
|
||||
# not from the template: install.sh writes the opencode config before it runs the lane's installer,
|
||||
# which writes the template again, and that template takes the choice.
|
||||
EFFORT_FILE = "flash-local-effort"
|
||||
|
||||
|
||||
def default_effort(config_dir):
|
||||
"""The level the lane's template defaults to, read as its installer reads its kept choice."""
|
||||
try:
|
||||
with open(os.path.join(config_dir, EFFORT_FILE), encoding="utf-8", errors="replace") as f:
|
||||
return "xhigh" if f.readline().rstrip("\n") == "xhigh" else "lean"
|
||||
except OSError:
|
||||
return "lean"
|
||||
# the same way (patch-template.py), so the same four levels. Their order is the one this lane's
|
||||
# provider has had since v1.37.0, xhigh first, its default then: the default is lean since v1.46.4
|
||||
# (install-flash-local.sh), and the order stays, as opencode sends no level when none is picked, so
|
||||
# it 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.
|
||||
LEVELS = ("xhigh", "lean", "low", "medium")
|
||||
|
||||
|
||||
def provider(base_url, key_file, ctx, out, name):
|
||||
"""The provider block. The model reads images, as the flash lane's does. Both callers hand the
|
||||
box's key in the config directory, where the lane's installer keeps its level."""
|
||||
first = default_effort(os.path.dirname(key_file))
|
||||
levels = (first,) + tuple(lvl for lvl in LEVELS if lvl != first)
|
||||
"""The provider block. The model reads images, as the flash lane's does."""
|
||||
return {
|
||||
"npm": "@ai-sdk/openai-compatible",
|
||||
"name": "Qwen3.8-Flash-Next FP4-Local (DGX Spark)",
|
||||
@@ -45,7 +29,7 @@ def provider(base_url, key_file, ctx, out, name):
|
||||
"models": {"qwen3.8-flash-next-fp4": {
|
||||
"name": name,
|
||||
"limit": {"context": ctx, "input": ctx, "output": out},
|
||||
"variants": {lvl: {"chat_template_kwargs": {"reasoning_effort": lvl}} for lvl in levels},
|
||||
"variants": {lvl: {"chat_template_kwargs": {"reasoning_effort": lvl}} for lvl in LEVELS},
|
||||
"attachment": True,
|
||||
"modalities": {"input": ["text", "image"], "output": ["text"]},
|
||||
}},
|
||||
|
||||
@@ -30,8 +30,7 @@ added, inputLimits and pi's compat dropped (its schema has no room for them);
|
||||
default provider + model id -> modelRoles.default. The thinking block lists
|
||||
the template's own tiers (the artifact's variants, lean included, what pi's
|
||||
fixed enum cannot offer) with defaultLevel the installed template's default (lean, or xhigh on a
|
||||
box installed with LEAN_DEFAULT=0 and on the FP4-Local lane with FLASH_LOCAL_EFFORT=xhigh; xhigh
|
||||
too when no template is there yet and the artifact lists xhigh first); compat carries
|
||||
box installed with LEAN_DEFAULT=0 and on the FP4-Local lane with FLASH_LOCAL_EFFORT=xhigh); compat carries
|
||||
thinkingFormat qwen-chat-template, qwenTemplateReasoningEffort and a
|
||||
reasoningEffortMap, which route the pick onto
|
||||
chat_template_kwargs.reasoning_effort alone, what the patched template reads
|
||||
@@ -251,8 +250,20 @@ LANE_TEMPLATE = {"qwen38": "chat-template-sglang.jinja", "flashnext": "chat-temp
|
||||
TEMPLATE_DEFAULT = re.compile(r"reasoning_effort\s*\|\s*default\(\s*['\"]([a-z]+)['\"]\s*\)")
|
||||
|
||||
|
||||
# The FP4-Local lane's default is its installer's to choose (FLASH_LOCAL_EFFORT, install-flash-local.sh): lean, or the
|
||||
# xhigh it keeps in a file beside these configs. Read there and not in its template: an update runs this before the
|
||||
# lane's installer writes the template again, and a lane that serves reads its template at its next start only, so omp
|
||||
# stayed at the xhigh of the template of v1.46.3 (found in review of v1.46.4).
|
||||
EFFORT_CHOICE = {"flash-local": "flash-local-effort"}
|
||||
|
||||
|
||||
def template_default(out_dir, prov):
|
||||
"""The installed template's default effort for a provider's lane; None when unknown."""
|
||||
"""The default effort of a provider's lane: its installer's kept choice where it keeps one, else the installed
|
||||
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()
|
||||
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 "")
|
||||
return m.group(1) if m else None
|
||||
@@ -276,13 +287,10 @@ def omp_thinking(tiers, default_effort=None):
|
||||
compat = {"thinkingFormat": "qwen-chat-template"}
|
||||
if not levels:
|
||||
return None, compat
|
||||
# The installed template decides where it is there, the first tier only where it is not: install.sh writes the
|
||||
# opencode config before the FP4-Local lane's installer writes its template again, and a Load keeps the variants of
|
||||
# an entry already there, so the artifact can list first another level than the one the template serves (v1.46.4).
|
||||
# The lane's default decides, never the order of the tiers: the FP4-Local lane's provider lists xhigh first as it
|
||||
# has since v1.37.0, and its default is lean since v1.46.4 (template_default reads its installer's choice).
|
||||
if default_effort == "xhigh" and "xhigh" in levels:
|
||||
default = "xhigh" # Qwen's own default, kept by the template (LEAN_DEFAULT=0, FLASH_LOCAL_EFFORT=xhigh)
|
||||
elif default_effort is None and tiers and tiers[0] == "xhigh":
|
||||
default = "xhigh" # no template there yet: its provider lists its default first (oc-flash-local.py)
|
||||
default = "xhigh" # Qwen's own default, kept by the template (LEAN_DEFAULT=0) or chosen for the lane
|
||||
elif "lean" in tiers and "minimal" in levels:
|
||||
default = "minimal" # the patched Qwen template's own default
|
||||
elif "none" in tiers and "high" in levels:
|
||||
|
||||
@@ -403,6 +403,21 @@ class TheMillionTokenWindow(unittest.TestCase):
|
||||
self.assertNotEqual(rc, 0, out)
|
||||
self.assertIn("native (262,144 tokens, the default) or 1m", out)
|
||||
|
||||
def test_a_level_given_with_a_window_refused_is_kept_with_its_template(self):
|
||||
# the template is written before the window is checked: refused there, the run left a template at xhigh with no
|
||||
# choice kept, and the Load after wrote it back at lean (found in review of v1.46.4)
|
||||
moved = json.loads(json.dumps(self.CONFIG))
|
||||
moved["text_config"]["rope_parameters"]["mrope_section"] = [16, 24, 24]
|
||||
(self.snap / "config.json").write_text(json.dumps(moved))
|
||||
cfg = self.box.home / ".config" / "qwen38"
|
||||
rc, out = self.box.stage(FLASH_LOCAL_PLE_DIR="none", FLASH_LOCAL_CONTEXT="1m", FLASH_LOCAL_EFFORT="xhigh")
|
||||
self.assertNotEqual(rc, 0, out)
|
||||
self.assertIn("reasoning_effort|default('xhigh')", (cfg / "chat-template-flash-local.jinja").read_text())
|
||||
self.assertEqual((cfg / "flash-local-effort").read_text(), "xhigh\n")
|
||||
rc, out = self.box.stage(FLASH_LOCAL_PLE_DIR="none") # the Load after: the level kept, not the window
|
||||
self.assertEqual(rc, 0, out)
|
||||
self.assertIn("reasoning_effort|default('xhigh')", (cfg / "chat-template-flash-local.jinja").read_text())
|
||||
|
||||
def test_a_refused_choice_is_not_kept_and_the_refusal_says_how_to_go_back(self):
|
||||
# the choice was kept before its overrides were checked: one refused try left every Load after it refused,
|
||||
# and nothing said how to go back (code review of v1.45.2)
|
||||
@@ -611,6 +626,12 @@ class TheEffortARequestThatNamesNoneGets(unittest.TestCase):
|
||||
rc, out = self.box.stage(FLASH_LOCAL_PLE_DIR="none") # the update's run, or the lane's next Load
|
||||
self.assertEqual((rc, self.default()), (0, "lean"), out)
|
||||
self.assertFalse(self.choice.exists())
|
||||
# said once, with the command that keeps xhigh: the run after finds a template at lean
|
||||
self.assertIn("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", out)
|
||||
rc, out = self.box.stage(FLASH_LOCAL_PLE_DIR="none")
|
||||
self.assertEqual((rc, self.default()), (0, "lean"), out)
|
||||
self.assertNotIn("from now on", out)
|
||||
|
||||
def run_lines(self, mode, tail, **env):
|
||||
"""The installer's own lines from the end of its --uninstall to the render (the template, the choices kept, the
|
||||
@@ -715,11 +736,12 @@ class TheLoadSetsTheClientsForTheWindow(unittest.TestCase):
|
||||
self.assertEqual(c["compaction"]["preserve_recent_tokens"], keep)
|
||||
self.assertLess(keep, ctx - 20000, "a compaction keeps less than its threshold")
|
||||
|
||||
def test_the_provider_a_load_adds_lists_first_the_level_its_template_serves(self):
|
||||
# lean since v1.46.4, or xhigh where the lane's installer keeps FLASH_LOCAL_EFFORT=xhigh beside the key: a picker
|
||||
# lists first what a request that names no level gets
|
||||
def test_the_provider_a_load_adds_keeps_the_order_of_its_levels(self):
|
||||
# xhigh first, as since v1.37.0, whatever the lane's default (lean since v1.46.4, or the xhigh its installer
|
||||
# keeps): 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
|
||||
choice = self.cfg / "flash-local-effort"
|
||||
for kept, first in ((None, "lean"), ("xhigh", "xhigh")):
|
||||
for kept, first in ((None, "xhigh"), ("xhigh", "xhigh")):
|
||||
with self.subTest(kept=kept):
|
||||
for c in self.configs:
|
||||
d = json.loads(c.read_text())
|
||||
|
||||
@@ -33,10 +33,8 @@ PINS = "\n".join(line for line in INSTALL.read_text().splitlines()
|
||||
def generate(lane, mode, unit_ctx=None, flash_unit=False, model="RadixArk/Qwen3.8-27B-NVFP4",
|
||||
pair=None, names=False, flash_running=None, kolibri_unit=False, kolibri_boot=False, doc=False,
|
||||
nemotron_unit=False, nemotron_boot=False, super_unit=False, super_boot=False,
|
||||
flocal_unit=False, flocal_boot=False, ornith_unit=False, ornith_boot=False, flocal_effort=None):
|
||||
flocal_unit=False, flocal_boot=False, ornith_unit=False, ornith_boot=False):
|
||||
t = pathlib.Path(tempfile.mkdtemp(prefix="oc-art-"))
|
||||
if flocal_effort: # what install-flash-local.sh keeps of FLASH_LOCAL_EFFORT, in the config directory
|
||||
(t / "flash-local-effort").write_text(flocal_effort + "\n")
|
||||
kolibri = t / "qwen38-kolibri.service"
|
||||
if kolibri_unit:
|
||||
kolibri.write_text("ExecStart=... Aleph-Alpha/Kolibri-1 --revision 258cae8f ...\n")
|
||||
@@ -266,9 +264,8 @@ 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, its template's default
|
||||
first: lean since v1.46.4, as on the other Qwen lanes, or xhigh where its installer keeps
|
||||
FLASH_LOCAL_EFFORT=xhigh (xhigh always until then, Hasan's choice of 2026-10-19)."""
|
||||
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)."""
|
||||
|
||||
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"),
|
||||
@@ -282,23 +279,10 @@ class ABoxBootingFlashLocal(unittest.TestCase):
|
||||
self.assertEqual(m["name"], "Qwen3.8-Flash-Next FP4-Local NVIDIA + MTP (local, 262K)")
|
||||
self.assertTrue(m["attachment"])
|
||||
self.assertEqual(m["modalities"]["input"], ["text", "image"])
|
||||
self.assertEqual(list(m["variants"]), ["lean", "low", "medium", "xhigh"])
|
||||
self.assertEqual(list(m["variants"]), ["xhigh", "lean", "low", "medium"])
|
||||
self.assertEqual(m["variants"]["lean"], {"chat_template_kwargs": {"reasoning_effort": "lean"}})
|
||||
self.assertEqual(d["provider"]["flash-local"]["name"], "Qwen3.8-Flash-Next FP4-Local (DGX Spark)")
|
||||
|
||||
def test_its_levels_list_first_the_one_its_installer_keeps(self):
|
||||
# read from the choice its installer keeps, not from its template: this block runs before install.sh runs the
|
||||
# lane's installer, which writes the template again (v1.46.4)
|
||||
d = generate("27b", "1m", unit_ctx=1010000, pair=("551000", "160000"), flocal_unit=True, flocal_effort="xhigh",
|
||||
doc=True)
|
||||
m = d["provider"]["flash-local"]["models"]["qwen3.8-flash-next-fp4"]
|
||||
self.assertEqual(list(m["variants"]), ["xhigh", "lean", "low", "medium"])
|
||||
self.assertEqual(m["variants"]["xhigh"], {"chat_template_kwargs": {"reasoning_effort": "xhigh"}})
|
||||
d = generate("27b", "1m", unit_ctx=1010000, pair=("551000", "160000"), flocal_unit=True, flocal_effort="medium",
|
||||
doc=True)
|
||||
self.assertEqual(list(d["provider"]["flash-local"]["models"]["qwen3.8-flash-next-fp4"]["variants"])[0], "lean",
|
||||
"a choice the installer would not have kept is not one")
|
||||
|
||||
def test_its_pair_is_the_flash_lanes_and_fits_its_window(self):
|
||||
ctx, out, *_ = subprocess.run([str(REPO / "oc-limits.sh"), "flash-local"], capture_output=True,
|
||||
text=True, check=True).stdout.split()
|
||||
|
||||
+19
-15
@@ -214,12 +214,12 @@ class PiGen(unittest.TestCase):
|
||||
self.assertEqual(level("lean"), "minimal")
|
||||
self.assertEqual(level(None), "minimal") # no template there: the patched default
|
||||
|
||||
def test_the_flash_local_lane_starts_in_omp_at_the_level_its_template_serves(self):
|
||||
# its template's default is lean since v1.46.4, as on the other Qwen lanes, or Qwen's xhigh where its installer
|
||||
# keeps FLASH_LOCAL_EFFORT=xhigh, and its provider lists that level first. omp took "lean" in its tiers for the
|
||||
# patched template's default and started an xhigh lane at minimal, sent as lean (found in review, 2026-10-20);
|
||||
# the template decides where it is there, as install.sh writes the artifact before the lane's installer writes
|
||||
# the template, and a Load keeps an entry already there (v1.46.4)
|
||||
def test_the_flash_local_lane_starts_in_omp_at_the_level_its_installer_chose(self):
|
||||
# the lane's default is lean since v1.46.4, as on the other Qwen lanes, or Qwen's xhigh where its installer
|
||||
# keeps FLASH_LOCAL_EFFORT=xhigh beside these configs. omp took "lean" in its tiers for the patched template's
|
||||
# default and started an xhigh lane at minimal, sent as lean (found in review, 2026-10-20); and it read the
|
||||
# lane's template, which an update writes after these configs, so it stayed at the xhigh of v1.46.3's (found
|
||||
# in review of v1.46.4): the installer's kept choice decides
|
||||
import importlib.util
|
||||
spec = importlib.util.spec_from_file_location("oc_flash_local", REPO / "oc-flash-local.py")
|
||||
ocf = importlib.util.module_from_spec(spec)
|
||||
@@ -257,15 +257,19 @@ class PiGen(unittest.TestCase):
|
||||
self.assertEqual(omp_models["providers"]["qwen38"]["models"][0]["thinking"]["defaultLevel"], "minimal",
|
||||
"the patched template's default, lean, for the lanes that keep it")
|
||||
return entry["thinking"]
|
||||
lean_first, xhigh_first = ["minimal", "low", "medium", "xhigh"], ["xhigh", "minimal", "low", "medium"]
|
||||
self.assertEqual(omp("lean", None), {"mode": "effort", "efforts": lean_first, "defaultLevel": "minimal"})
|
||||
self.assertEqual(omp("xhigh", "xhigh"), {"mode": "effort", "efforts": xhigh_first, "defaultLevel": "xhigh"})
|
||||
# an artifact that lists first the level the template served before: the template decides
|
||||
self.assertEqual(omp("lean", None, listed=["xhigh", "lean", "low", "medium"])["defaultLevel"], "minimal")
|
||||
self.assertEqual(omp("xhigh", None, listed=["lean", "low", "medium", "xhigh"])["defaultLevel"], "xhigh")
|
||||
# installed and never loaded, no template yet: the level its provider lists first, its installer's choice
|
||||
self.assertEqual(omp(None, None), {"mode": "effort", "efforts": lean_first, "defaultLevel": "minimal"})
|
||||
self.assertEqual(omp(None, "xhigh"), {"mode": "effort", "efforts": xhigh_first, "defaultLevel": "xhigh"})
|
||||
listed = ["xhigh", "minimal", "low", "medium"] # the provider's order, xhigh first as since v1.37.0
|
||||
self.assertEqual(omp("lean", None), {"mode": "effort", "efforts": listed, "defaultLevel": "minimal"})
|
||||
self.assertEqual(omp("xhigh", "xhigh"), {"mode": "effort", "efforts": listed, "defaultLevel": "xhigh"})
|
||||
# the installer's choice decides, not the template: an update runs this before the lane's installer writes the
|
||||
# template again (still at the xhigh of v1.46.3), and a choice made is in the template at its next write only
|
||||
self.assertEqual(omp("xhigh", None)["defaultLevel"], "minimal")
|
||||
self.assertEqual(omp("lean", "xhigh")["defaultLevel"], "xhigh")
|
||||
# nor the order of the artifact's levels
|
||||
self.assertEqual(omp("lean", None, listed=["lean", "low", "medium", "xhigh"])["defaultLevel"], "minimal")
|
||||
self.assertEqual(omp(None, "xhigh", listed=["lean", "low", "medium", "xhigh"])["defaultLevel"], "xhigh")
|
||||
# installed and never loaded, no template yet
|
||||
self.assertEqual(omp(None, None), {"mode": "effort", "efforts": listed, "defaultLevel": "minimal"})
|
||||
self.assertEqual(omp(None, "xhigh"), {"mode": "effort", "efforts": listed, "defaultLevel": "xhigh"})
|
||||
|
||||
def test_nemotron_is_sent_its_effort_starts_at_high_and_takes_images(self):
|
||||
# Bolt reasons at its full depth unasked, as Kolibri does at high; the proxy turns the effort
|
||||
|
||||
@@ -654,10 +654,12 @@ class TwoBoxesServeOneModel(PairFixture, unittest.TestCase):
|
||||
self.assertEqual(Peer.seen, [])
|
||||
# what this box says of it: the alert read ("refused this box's certificate"), or, when that box had closed the
|
||||
# connection before this box's request went out, the end of the connection ("does not answer (EOF occurred in
|
||||
# violation of protocol"): under TLS 1.3 the refusal comes after this box's side of the handshake, and which
|
||||
# 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 (")
|
||||
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
|
||||
while not any(s in self.journal_of("spark1-tls") for s in said) and time.monotonic() < by:
|
||||
time.sleep(0.1)
|
||||
|
||||
Reference in new issue
Block a user