mirror of
https://github.com/hasso5703/alzeo.git
synced 2026-12-06 04:44:19 +01:00
v1.48.0: what the review of the window commit found: a Load that sets the clients, and exact words
The Load of the FP4-Local lane (since v1.45.2) or of this one as the boot lane only started or restarted its unit: a window chosen at their installer reached the engine and not opencode, pi or claude-local. Back from 1M they kept 840,000 tokens (830,000 here) where the proxy refuses a prompt past 250,000. That Load now sets the clients first, with the step every other Load of the lane has, and a Load that starts nothing adds nothing. Five tests of the page, failing on the code before. ./install.sh says, as switch-model.sh does, when a config edited by hand refuses either lane's pair (a test, failing on the code before). The shared window stopped llama-server in four of the nine runs that used it on 2026-11-12, not each time: the five others ended well. The installer's message, the lane's pages, the README, BENCHMARKS and the CHANGELOG say so. FLASH_UNSLOTH_SHARED is said to be a setting of the installer, the 1M pair's rule is written as computed, the warning on a CTX past 262,144 is back, the unit's comment gives the default's margin again, and a test loses a branch for the refused form. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
39e0314cba
commit
c33ea430e0
11 files changed
+166
-43
No files matched your search
+1
-1
@@ -14,7 +14,7 @@ stock DGX OS), with the page that measured it and gives its date, version and me
|
||||
| Nemotron 3.5 Bolt 24GB · NVIDIA (74B), with its drafter, vLLM nightly 77154ca6 + b12x 1.5.1 | **140 tok/s** rewriting code, one request, reasoning off; 74.8 / 113.4 / 163.6 / 201.2 tok/s at 1 / 4 / 8 / 16 streams | [docs/nemotron-lane.md](docs/nemotron-lane.md) |
|
||||
| Nemotron 3.5 Super VL NVFP4 · NVIDIA (120B), with its drafter, vLLM nightly 77154ca6 + b12x 1.5.1 | **69.5 tok/s** rewriting code, one request, reasoning off; 81.7 tok/s in all at 4 streams | [docs/nemotron-super-lane.md](docs/nemotron-super-lane.md) |
|
||||
| Ornith 1.5 122B NVFP4 · Ornith AI, with its MTP head, at a window of a million, vLLM b12x build 8244d1c | **42.4 tok/s** greedy median (`./bench.sh`); 41.2 / 68.1 / 90.0 tok/s in all at 1 / 4 / 8 streams on five real jobs; GSM8K 98.8 % (250), HumanEval 93.90 % (164), 97.6 % and 95.12 % at its native window | [docs/ornith-lane.md](docs/ornith-lane.md) |
|
||||
| Qwen3.8 Flash-Next UD-Q4_K_XL GGUF · Unsloth, n-gram lookup then DFlash2 draft (ggml-org, Q8_0), llama.cpp b12316, two requests at once with 262,144 tokens each, or one request with 1,048,576 (FLASH_UNSLOTH_CONTEXT=1m) | **51.8 / 56.9 / 31.5 tok/s** in code / reasoning / prose and **123.7** in a rewrite of code, one request at the model card's sampling (its pinned image, 2026-11-12, each text's first pass, the weights copied into the GPU's memory from a USB SSD), against 53.8 / 58.8 / 31.3 / 52.0 with the DFlash2 draft alone and 27.9 / 27.7 / 27.3 / 27.4 with no draft on b12282's image (the median of three passes); 63.2 tok/s in all at two requests at once, a window each, against 54.2 for one (b12291 built on the box); three codes of three found in 255,529 tokens, and in 985,296 in the 1M mode (YaRN at four times, the KV cache in q8_0); a window shared by several requests stopped llama-server under load four times of four (llama.cpp issue 31656), refused for now; GSM8K 98.4 % (250) and HumanEval 99.4 % (164) at the medium effort, temperature 0, and 20 tool calls right out of 20 (b12291 built on the box, the DFlash2 draft alone), MMLU not measured; no continuous load measured. TODO(measure): its quality in the 1M mode | [docs/flash-unsloth-lane.md](docs/flash-unsloth-lane.md) |
|
||||
| Qwen3.8 Flash-Next UD-Q4_K_XL GGUF · Unsloth, n-gram lookup then DFlash2 draft (ggml-org, Q8_0), llama.cpp b12316, two requests at once with 262,144 tokens each, or one request with 1,048,576 (FLASH_UNSLOTH_CONTEXT=1m) | **51.8 / 56.9 / 31.5 tok/s** in code / reasoning / prose and **123.7** in a rewrite of code, one request at the model card's sampling (its pinned image, 2026-11-12, each text's first pass, the weights copied into the GPU's memory from a USB SSD), against 53.8 / 58.8 / 31.3 / 52.0 with the DFlash2 draft alone and 27.9 / 27.7 / 27.3 / 27.4 with no draft on b12282's image (the median of three passes); 63.2 tok/s in all at two requests at once, a window each, against 54.2 for one (b12291 built on the box); three codes of three found in 255,529 tokens, and in 985,296 in the 1M mode (YaRN at four times, the KV cache in q8_0); a window shared by several requests stopped llama-server under load in four runs of nine (llama.cpp issue 31656), refused for now; GSM8K 98.4 % (250) and HumanEval 99.4 % (164) at the medium effort, temperature 0, and 20 tool calls right out of 20 (b12291 built on the box, the DFlash2 draft alone), MMLU not measured; no continuous load measured. TODO(measure): its quality in the 1M mode | [docs/flash-unsloth-lane.md](docs/flash-unsloth-lane.md) |
|
||||
| Qwen-Image 2.1 · Qwen, SGLang Diffusion 0.5.21 | 1024x1024 at 40 steps in **34.3 s**, **7.5 s** with its Turbo | [docs/image-lane.md](docs/image-lane.md) |
|
||||
| MiniMax-H3 · MiniMax, video with sound, SGLang Diffusion 0.5.21 | 4 s at 480P in **622.8 to 632.5 s** at 50 steps, **126.2 to 127.9 s** with the Turbo adapter | [docs/video-lane.md](docs/video-lane.md) |
|
||||
|
||||
|
||||
+18
-6
@@ -9,8 +9,8 @@ box). Tokens are proposed by llama.cpp's n-gram lookup, then by ggml-org's GGUF
|
||||
step, kept from a probability of 0.5 and checked by rejection sampling. It serves on the text port behind the proxy and
|
||||
the box's key as `qwen3.8-flash-next-unsloth`, OpenAI and Anthropic dialects alike, text only, to two requests at once,
|
||||
each with a window of its own of the 262,144 tokens the model was trained for (`-c 524288 -np 2`, the KV cache in f16;
|
||||
Hasan's decision 1318, 2026-11-12), or, with `FLASH_UNSLOTH_CONTEXT=1m` chosen at install as `FLASH_LOCAL_CONTEXT=1m` is
|
||||
the FP4-Local lane's and kept for the Loads after, to one request at a time with a window of 1,048,576 (YaRN at four
|
||||
Hasan's decision 1318, 2026-11-12), or, with `FLASH_UNSLOTH_CONTEXT=1m` given to its installer (`./install-flash-unsloth.sh
|
||||
--units-only`) as `FLASH_LOCAL_CONTEXT=1m` is the FP4-Local lane's, and kept for the Loads after, to one request at a time with a window of 1,048,576 (YaRN at four
|
||||
times, the KV cache in q8_0). Its n-gram table (26.8 GiB) stays on the disk, read row by row as the tokens need it
|
||||
(`--lazy-mode on`): without it the GB10, an integrated GPU, loads the table with the weights, and the box's memory guard
|
||||
stopped the load at 5 GiB free. Its weights are copied into the GPU's memory (`--load-mode none`): read in place in the
|
||||
@@ -25,11 +25,12 @@ code. On b12282's image, measured first, the lookup slowed the draft down (46.9,
|
||||
58.8, 31.3 and 52.0 with the draft alone and 27.9, 27.7, 27.3 and 27.4 with no draft), hence b12316. Two requests at
|
||||
once gave 63.2 tok/s in all, 34.2 each, against 54.2 for one (b12291 built on the box): each has a window of its own, so
|
||||
that neither can make the other fail, and a third waits its turn. A window shared by several requests (`-kvu`) is
|
||||
refused (`FLASH_UNSLOTH_SHARED=1` stops the installer, which says why): meant to serve more requests at once on more
|
||||
context, it stopped llama-server under load four times of four on 2026-11-12, with b12291 built on the box and with the
|
||||
pinned image b12316 ("common/common.cpp:1634: failed to remove sequence N with p0=..., p1=-1", an abort in
|
||||
refused (the installer refuses its setting `FLASH_UNSLOTH_SHARED` at 1 and says why): meant to serve more requests at
|
||||
once on more context, it stopped llama-server under load in four of the nine runs that shared a window on 2026-11-12,
|
||||
with b12291 built on the box and with the pinned image b12316 ("common/common.cpp:1634: failed to remove sequence N with p0=..., p1=-1", an abort in
|
||||
`common_memory::seq_rm` from `post_decode`): llama.cpp's open issue 31656, a draft's rollback on this hybrid model's
|
||||
recurrent state, which a shared window's batches lose. Before it stopped, four requests sharing 524,288 tokens left 22
|
||||
recurrent state, which a shared window's batches lose. The five other runs, salvos of 1, 4 and 8 short requests, ended
|
||||
well: the abort is intermittent. Before it stopped, four requests sharing 524,288 tokens left 22
|
||||
GiB to the box at ready and decoded 72.6 tok/s in all (under a GPU clock cap of 2,200 MHz); four sharing 1,048,576 left
|
||||
the box under 6 GiB. It comes back when llama.cpp fixes it. Four windows with the KV cache in q8_0 left 10 GiB to the
|
||||
box after the probes: not taken. The whole window is read: three codes of three found in a prompt of 255,529 tokens. A
|
||||
@@ -87,6 +88,17 @@ refuses, becomes `enable_thinking` false as on the other Qwen lanes. System One
|
||||
answer it. The pair reads a llama.cpp unit's name, checkpoint and slots from its command (`--alias`, the snapshot of its
|
||||
`-m`, `-np`), as it reads a vLLM unit's.
|
||||
|
||||
**A Load sets the clients for the window it starts.** The FP4-Local lane (since v1.45.2) and this one let a window be
|
||||
chosen at their installer (`FLASH_LOCAL_CONTEXT=1m`, `FLASH_UNSLOTH_CONTEXT=1m`), and switch-model.sh alone sets
|
||||
opencode, pi and `claude-local` for that window. The cockpit's Load of such a lane as the boot lane only started or
|
||||
restarted its unit, so the window reached the engine and not the clients: back from 1M to 262,144 they kept a context
|
||||
of 840,000 tokens (830,000 here) where the proxy refuses a prompt past 250,000, and on the way to 1M they kept 205,000
|
||||
(found in the code review of this version). That Load now sets the clients first, with the step every other Load of
|
||||
the lane already has (it verifies the lane's files and restarts nothing), then starts or restarts the lane. A Load that
|
||||
starts nothing adds nothing, and the other lanes' Loads are as they were. The page's tests cover each state the Load
|
||||
meets, and fail on the code before. `./install.sh` now says, as switch-model.sh does, when a config edited by hand
|
||||
refuses the pair of either lane: it kept the old pair without a word.
|
||||
|
||||
## v1.47.0 (2026-11-12): a GPU clock cap in the cockpit's Machine view: about the same tokens per second for fewer watts and degrees
|
||||
|
||||
**What it is.** The Machine view has a new setting, the GPU clock cap: None, the factory setting and the default, or a
|
||||
|
||||
@@ -638,8 +638,8 @@ quantization (UD-Q4_K_XL: 76.9 GiB of weights), served by llama.cpp's own server
|
||||
pinned by digest, with llama.cpp's n-gram lookup and ggml-org's DFlash2 draft (Q8_0) proposing tokens. The model's
|
||||
n-gram table (26.8 GiB) stays on the disk and is read row by row as the tokens need it (`--lazy-mode on`), so the lane
|
||||
holds 95.3 GiB of the GPU's memory at ready and leaves 20 GiB to the box, with two requests at once, each with a window
|
||||
of its own of 262,144 tokens; `FLASH_UNSLOTH_CONTEXT=1m` at install gives one request at a time a window of 1,048,576
|
||||
tokens instead (YaRN at four times, 16.1 GiB left to the box at ready). It serves on the text port behind the same proxy
|
||||
of its own of 262,144 tokens; `FLASH_UNSLOTH_CONTEXT=1m ./install-flash-unsloth.sh --units-only` gives one request at a
|
||||
time a window of 1,048,576 tokens instead, from its next Load (YaRN at four times, 16.1 GiB left to the box at ready). It serves on the text port behind the same proxy
|
||||
and key, as model `qwen3.8-flash-next-unsloth`, OpenAI or Anthropic dialect alike, text only (the GGUF's vision
|
||||
projector is not loaded). Its chat template is the GGUF's own with the same fixes as the other Qwen lanes', `lean` its
|
||||
default. It needs 117 GB (112 for its files, 4.5 for the image), installed on demand like the others:
|
||||
@@ -661,7 +661,7 @@ The median of three passes, and each text's first pass with the n-grams, whose p
|
||||
image the n-grams slowed the draft down (46.9 / 43.9 / 22.9 / 116.2 tok/s), hence b12316. Two requests at once gave 63.2
|
||||
tok/s in all (34.2 each) against 54.2 for one (llama.cpp b12291 built on the box, the DFlash2 draft alone), each with a
|
||||
window of its own, so that neither can make the other fail. A window shared by several requests (`-kvu`) is refused for
|
||||
now: llama-server stopped itself under load each time requests shared one, four loads of four on 2026-11-12 (llama.cpp's
|
||||
now: llama-server stopped itself under load in four of the nine runs that shared one on 2026-11-12 (llama.cpp's
|
||||
open issue 31656, which the lane page details). The whole window is read: three codes of three found in a prompt of
|
||||
255,529 tokens; with YaRN, 524,288 tokens is an option, and the 1M mode's 1,048,576 too (the KV cache in q8_0: three
|
||||
codes of three in 985,296 tokens). GSM8K 98.4 % (250 questions) and HumanEval 99.4 % (164 problems) at the `medium`
|
||||
|
||||
@@ -196,7 +196,7 @@ const TARGET_NOTE = {
|
||||
'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 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.',
|
||||
'flash-unsloth': 'Unsloth’s dynamic GGUF of the flash model (UD-Q4_K_XL, 76.9 GiB of weights), served by llama.cpp’s own server with its n-gram lookup and ggml-org’s DFlash2 draft (Q8_0), its weights copied into the GPU’s memory and its n-gram (PLE) table (26.8 GiB) read from the disk as the tokens need it: 262,144 tokens of context for each of two requests at once (1,048,576 for one request at a time with FLASH_UNSLOTH_CONTEXT=1m at install), the model card’s sampling (temperature 1.0, top_p 0.95, top_k 20), reasoning on at lean as on the other Qwen lanes unless a request asks for another level. Measured on this box at that sampling, one request, on its image (llama.cpp b12316, 2026-11-12, each text’s first pass): 51.8 tokens/s on code, 56.9 in reasoning, 31.5 on prose and 123.7 on a rewrite of code (27.9, 27.7, 27.3 and 27.4 without the lookup and the draft, on the image before it); two requests at once, 63.2 tokens/s in all. The first switch downloads about 112 GB.'};
|
||||
'flash-unsloth': 'Unsloth’s dynamic GGUF of the flash model (UD-Q4_K_XL, 76.9 GiB of weights), served by llama.cpp’s own server with its n-gram lookup and ggml-org’s DFlash2 draft (Q8_0), its weights copied into the GPU’s memory and its n-gram (PLE) table (26.8 GiB) read from the disk as the tokens need it: 262,144 tokens of context for each of two requests at once (1,048,576 for one request at a time with FLASH_UNSLOTH_CONTEXT=1m given to its installer), the model card’s sampling (temperature 1.0, top_p 0.95, top_k 20), reasoning on at lean as on the other Qwen lanes unless a request asks for another level. Measured on this box at that sampling, one request, on its image (llama.cpp b12316, 2026-11-12, each text’s first pass): 51.8 tokens/s on code, 56.9 in reasoning, 31.5 on prose and 123.7 on a rewrite of code (27.9, 27.7, 27.3 and 27.4 without the lookup and the draft, on the image before it); two requests at once, 63.2 tokens/s in all. The first switch downloads about 112 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:
|
||||
// --with-<lane> installs it beside the lane that serves, which keeps serving. A text lane comes with
|
||||
@@ -784,6 +784,15 @@ const LANE_RUNTIME = {flash: 'its SGLang image (about 16 GB to download), its ch
|
||||
const SIDE_LANE = {[IMAGE_UNIT]: 'image', [VIDEO_UNIT]: 'video', [KOLIBRI_UNIT]: 'kolibri', [NEMOTRON_UNIT]: 'nemotron',
|
||||
[NEMOTRON_SUPER_UNIT]: 'nemotron-super', [FLASH_LOCAL_UNIT]: 'flash-local', [ORNITH_UNIT]: 'ornith-122b',
|
||||
[FLASH_UNSLOTH_UNIT]: 'flash-unsloth', [UFLASH]: 'flash', [U27]: '27b'};
|
||||
// The lanes whose clients follow the window their unit starts with (FLASH_LOCAL_CONTEXT=1m, FLASH_UNSLOTH_CONTEXT=1m):
|
||||
// switch-model.sh sets opencode, pi and claude-local for that window, and nothing else does. The Load of such a lane as
|
||||
// the boot lane started or restarted its unit alone, so a window chosen with --units-only reached the engine and not
|
||||
// the clients: back from 1M they kept a context of 830,000 tokens where the proxy refuses a prompt past 250,000, and
|
||||
// on the way to 1M they kept 205,000 (code review of v1.48.0, 2026-11-12; the FP4-Local lane's since v1.45.2). Its Load
|
||||
// now sets them first, with the step that sets them at every other Load, and a Load that starts nothing adds nothing.
|
||||
const WINDOW_CLIENTS = new Set([FLASH_LOCAL_UNIT, FLASH_UNSLOTH_UNIT]);
|
||||
const clientsStep = (unit, target) => ({name: 'switch', params: {target}, title: `Set the clients for ${LANE_NAME[unit]}’s window`,
|
||||
desc: 'Verifies its files and sets opencode, pi and claude-local for the window its unit starts with. Nothing restarts.'});
|
||||
function laneJourneySteps(target){
|
||||
const unit = TARGET_UNIT(target);
|
||||
const steps = [];
|
||||
@@ -798,7 +807,8 @@ function laneJourneySteps(target){
|
||||
// asked for (found in review, 2026-10-17). The lane's card asks the same of it (lanes.js).
|
||||
const sv0 = servingEngine();
|
||||
if (sv0 && sv0[0] === unit && laneTarget(unit) === target && updateOwed(unit))
|
||||
return steps.concat([{name: 'unit', params: {verb: 'restart', unit}, title: `Restart ${LANE_NAME[unit]} on what the update installed`,
|
||||
return steps.concat(WINDOW_CLIENTS.has(unit) && bootUnit() === unit ? [clientsStep(unit, target)] : [],
|
||||
[{name: 'unit', params: {verb: 'restart', unit}, title: `Restart ${LANE_NAME[unit]} on what the update installed`,
|
||||
desc: `It answers again in ${readyIn(unit)}.` + (unit === IMAGE_UNIT || unit === VIDEO_UNIT ? ' A generation in flight is lost.' : '')}]);
|
||||
const serving = servingEngine();
|
||||
// none enabled: the switch step makes this one the boot lane, as it does from any other
|
||||
@@ -808,6 +818,7 @@ function laneJourneySteps(target){
|
||||
// switch, which fetches and copies them, even as the boot lane already: its Load started it
|
||||
// alone and it failed again on the same missing file (found in review, 2026-10-20)
|
||||
const whole = !lane || (F.lanesStartable || {})[lane] !== false;
|
||||
const switchAt = steps.length;
|
||||
if (enabled !== unit || (curTarget && curTarget !== target) || (!curTarget && LANE_TARGETS[unit].length > 1 && target !== LANE_TARGETS[unit][0])
|
||||
|| !whole)
|
||||
// for a boot lane that lacks a file, the step fetches or copies it: up to 102 GB, not a check
|
||||
@@ -816,6 +827,7 @@ function laneJourneySteps(target){
|
||||
desc: whole ? 'Verifies the checkpoint and makes this lane the one enabled at boot. Nothing restarts.'
|
||||
: 'Fetches what its checkpoint lacks' + (unit === FLASH_LOCAL_UNIT ? ' and copies its n-gram table again (up to 102 GB to fetch, 32 GB to copy)' : '')
|
||||
+ ', and makes this lane the one enabled at boot. Nothing restarts.'});
|
||||
const pointed = steps.length > switchAt;
|
||||
if (serving && serving[0] !== unit)
|
||||
steps.push({name: 'unit', params: {verb: 'stop', unit: serving[0]}, title: `Stop ${laneLabel(serving[0])}`,
|
||||
desc: serving[0] === IMAGE_UNIT || serving[0] === VIDEO_UNIT ? 'A generation in flight is lost.' : 'Clients on :30001 see the engine unavailable until the next one answers.'});
|
||||
@@ -838,6 +850,9 @@ function laneJourneySteps(target){
|
||||
desc: `It answers again in ${readyIn(unit)}.` + (unit === IMAGE_UNIT || unit === VIDEO_UNIT ? ' A generation in flight is lost.' : '')});
|
||||
else if (!serving || serving[0] !== unit)
|
||||
steps.push({name: 'unit', params: {verb: 'start', unit}, title: `Start ${LANE_NAME[unit]}`, desc: `It loads and answers in ${readyIn(unit)}.`});
|
||||
// a boot lane whose clients follow its window, started or restarted: they are set first, where its switch would be
|
||||
if (WINDOW_CLIENTS.has(unit) && !pointed && steps.length && steps[steps.length - 1].params.unit === unit)
|
||||
steps.splice(switchAt, 0, clientsStep(unit, target));
|
||||
return steps;
|
||||
}
|
||||
// What an update owes the engine of this unit, in words, or null (cockpit.py, stale_engines).
|
||||
|
||||
@@ -2074,8 +2074,67 @@ class ALoadBringsBackWhatALaneLacks(unittest.TestCase):
|
||||
self.assertIn("Fetches what its checkpoint lacks and copies its n-gram table again", r["desc"])
|
||||
self.assertNotIn("Verifies", r["desc"])
|
||||
|
||||
def test_a_whole_boot_lane_is_only_started(self):
|
||||
self.assertEqual(self.steps(True), ["unit:start"])
|
||||
def test_a_whole_boot_lane_has_its_clients_set_then_is_started(self):
|
||||
# its clients follow the window its unit starts with: set first (TheLoadOfABootLaneSetsTheClientsForItsWindow)
|
||||
self.assertEqual(self.steps(True), ["switch", "unit:start"])
|
||||
|
||||
|
||||
class TheLoadOfABootLaneSetsTheClientsForItsWindow(unittest.TestCase):
|
||||
"""The FP4-Local and Unsloth GGUF lanes' clients follow the window their unit starts with (FLASH_LOCAL_CONTEXT=1m,
|
||||
FLASH_UNSLOTH_CONTEXT=1m), which switch-model.sh alone sets. The Load of such a lane as the boot lane started or
|
||||
restarted its unit alone, so a window chosen with --units-only reached the engine and not opencode, pi or
|
||||
claude-local: back from 1M they kept 830,000 tokens where the proxy refuses a prompt past 250,000 (code review of
|
||||
v1.48.0, 2026-11-12; the FP4-Local lane's since v1.45.2). Its Load sets them first; a Load that starts nothing adds
|
||||
nothing, and the other lanes' Loads are as they were."""
|
||||
|
||||
def steps(self, unit, target, active, state, owed=False, sglang="stopped"):
|
||||
body = r"""
|
||||
const U = JSON.parse(JSON.stringify(UNITS));
|
||||
U.units['qwen38-sglang.service'] = {active: '@SA@', enabled: 'disabled'};
|
||||
U.units['@U@'] = {active: '@A@', enabled: 'enabled'};
|
||||
feed({units: U, lanes_ready: {'@T@': true}, lanes_startable: {'@T@': true},
|
||||
lifecycle: life({'qwen38-sglang.service': eng('@SS@'), '@U@': eng('@S@', {target: '@T@'})}),
|
||||
update: @UP@});
|
||||
report(laneJourneySteps('@T@').map(s => [s.name + (s.params.verb ? ':' + s.params.verb + ' ' + s.params.unit : ''), s.title]));
|
||||
"""
|
||||
up = "{stale_engines: {'%s': 'Its unit changed (what it runs and how)'}}" % unit if owed else "{}"
|
||||
for k, v in (("@SA@", "active" if sglang == "ready" else "inactive"), ("@SS@", sglang), ("@U@", unit),
|
||||
("@A@", active), ("@T@", target), ("@S@", state), ("@UP@", up)):
|
||||
body = body.replace(k, v)
|
||||
return run(self, body)
|
||||
|
||||
LANES = (("qwen38-flash-local.service", "flash-local", "Qwen3.8 Flash-Next FP4-Local"),
|
||||
("qwen38-flash-unsloth.service", "flash-unsloth", "Qwen3.8 Flash-Next Unsloth GGUF"))
|
||||
|
||||
def test_its_unit_changed_while_it_serves_sets_the_clients_then_restarts_it(self):
|
||||
for unit, target, name in self.LANES:
|
||||
with self.subTest(target=target):
|
||||
r = self.steps(unit, target, "active", "ready", owed=True)
|
||||
self.assertEqual([s for s, _ in r], ["switch", "unit:restart " + unit])
|
||||
self.assertEqual(r[0][1], f"Set the clients for {name}’s window")
|
||||
self.assertEqual(r[1][1], f"Restart {name} on what the update installed")
|
||||
|
||||
def test_stopped_it_sets_the_clients_then_starts_it(self):
|
||||
for unit, target, _ in self.LANES:
|
||||
with self.subTest(target=target):
|
||||
self.assertEqual([s for s, _ in self.steps(unit, target, "inactive", "stopped")],
|
||||
["switch", "unit:start " + unit])
|
||||
|
||||
def test_another_lane_serving_is_stopped_after_the_clients_are_set(self):
|
||||
for unit, target, _ in self.LANES:
|
||||
with self.subTest(target=target):
|
||||
self.assertEqual([s for s, _ in self.steps(unit, target, "inactive", "stopped", sglang="ready")],
|
||||
["switch", "unit:stop qwen38-sglang.service", "unit:start " + unit])
|
||||
|
||||
def test_serving_with_nothing_owed_it_adds_nothing(self):
|
||||
# no restart for nothing: the Load of the lane that serves as installed starts no step
|
||||
for unit, target, _ in self.LANES:
|
||||
with self.subTest(target=target):
|
||||
self.assertEqual(self.steps(unit, target, "active", "ready"), [])
|
||||
|
||||
def test_a_lane_whose_clients_do_not_follow_a_window_is_only_started(self):
|
||||
self.assertEqual([s for s, _ in self.steps("qwen38-kolibri.service", "kolibri", "inactive", "stopped")],
|
||||
["unit:start qwen38-kolibri.service"])
|
||||
|
||||
|
||||
class TheLastFiveMinutesSayTheEnginesCounters(unittest.TestCase):
|
||||
|
||||
@@ -238,11 +238,13 @@ computed again, and the box kept 24 GiB at ready and 16.1 at the lowest (variant
|
||||
### One window shared by several requests: refused for now
|
||||
|
||||
It was meant to serve more requests at once on more context: up to four requests sharing one window (`-kvu`) of
|
||||
524,288 or 1,048,576 tokens by YaRN (Hasan's decisions 1313 to 1317, 2026-11-12). Each time requests shared a window
|
||||
under load, llama-server stopped itself, four loads of four that day, with b12291 built on the box and with the pinned
|
||||
image b12316: "common/common.cpp:1634: failed to remove sequence N with p0=..., p1=-1", an abort in
|
||||
524,288 or 1,048,576 tokens by YaRN (Hasan's decisions 1313 to 1317, 2026-11-12). Of the nine runs where requests
|
||||
shared a window that day, llama-server stopped itself under load in four, with b12291 built on the box and with the
|
||||
pinned image b12316: "common/common.cpp:1634: failed to remove sequence N with p0=..., p1=-1", an abort in
|
||||
`common_memory::seq_rm` called from `post_decode`, after 4 minutes of GSM8K at 8 requests, at a salvo of 8 requests,
|
||||
after 106 s of GSM8K, and on the image after a first salvo of 8 had passed. It is llama.cpp's open issue
|
||||
after 106 s of GSM8K, and on the image after a first salvo of 8 had passed. The five others, salvos of 1, 4 and 8 short requests of 3 to 5
|
||||
minutes each, ended well: the abort is intermittent, and a form that may stop under its users' load is not served. It
|
||||
is llama.cpp's open issue
|
||||
[31656](https://github.com/ggml-org/llama.cpp/issues/31656): a draft's rejected tokens are rolled back from this hybrid
|
||||
model's per-token recurrent snapshots (`llama_memory_recurrent::seq_rm`), which a sequence loses when `find_slot` moves
|
||||
its cell between the parts of a batch, and a shared window splits a batch out of the sequences' order
|
||||
@@ -257,7 +259,8 @@ it stopped, all under the GPU clock cap of 2,200 MHz (the memory does not depend
|
||||
| 1,048,576 by YaRN at four times, the KV cache in q8_0 | 5 to 11 GiB, then under 6 | | | the study's memory guard |
|
||||
| the same, `--cache-ram 1024` | 11.2 GiB, 8.3 | 38.1 tok/s | 59.5 | short probes only |
|
||||
|
||||
The installer refuses `FLASH_UNSLOTH_SHARED=1` and says why. The form comes back when llama.cpp fixes the rollback
|
||||
The installer refuses its setting `FLASH_UNSLOTH_SHARED` at 1 (a line of the installer, as its other settings are:
|
||||
the environment does not set it) and says why. The form comes back when llama.cpp fixes the rollback
|
||||
(its pull request 31669 reworks it), measured again then.
|
||||
|
||||
## Memory
|
||||
@@ -320,8 +323,8 @@ The choice is kept for the Loads after (a Load from the cockpit stages the unit
|
||||
`./install.sh` does not read `FLASH_UNSLOTH_CONTEXT`, and says so.
|
||||
|
||||
At 1M the proxy relays a prompt up to 92 % of the window (964,689 tokens), and the Load gives opencode, pi and
|
||||
`claude-local` a context of 830,000 tokens and 32,000 for the answer (the FP4-Local lane's rule at its 1M: the window
|
||||
less 10 % holds both), and the cockpit's Lanes and Now views say 1M tokens of context. A second request waits until
|
||||
`claude-local` a context of 830,000 tokens and 32,000 for the answer (the FP4-Local lane's rule at its 1M: the proxy's
|
||||
share of the window, 92 %, less 10 % holds both, 830,000 + 32,000 = 862,000 <= 868,220), and the cockpit's Lanes and Now views say 1M tokens of context. A second request waits until
|
||||
the first ends. TODO(measure): the quality of the answers under YaRN at four times.
|
||||
|
||||
## What it does not have
|
||||
|
||||
@@ -20,15 +20,15 @@ lookup and ggml-org's GGUF of the DFlash2 draft, as a lane of its own beside the
|
||||
either, on the image measured before it (b12282).
|
||||
- **63.2 tok/s** in all with two requests at once, each with a window of its own of 262,144 tokens, against 54.2 for one.
|
||||
- The whole window read: three codes of three found in a prompt of 255,529 tokens; with YaRN, 524,288 tokens as an
|
||||
option, and `FLASH_UNSLOTH_CONTEXT=1m` at install for **one request at a time with 1,048,576 tokens** (three codes of
|
||||
option, and `FLASH_UNSLOTH_CONTEXT=1m` given to its installer for **one request at a time with 1,048,576 tokens** (three codes of
|
||||
three in 985,296 tokens, the KV cache in q8_0).
|
||||
- GSM8K **98.4 %** (250 questions) and HumanEval **99.4 %** (164 problems) at the medium effort and temperature 0, and
|
||||
20 tool calls right out of 20 (llama.cpp b12291 built on the box, the DFlash2 draft alone); MMLU not measured.
|
||||
TODO(measure): its quality in its 1M mode.
|
||||
- **95.3 GiB** of the GPU's memory at ready with its two windows and its draft, **20 GiB** left to the box, 14.2 at the
|
||||
lowest under its probes; 98.5 GiB and 16.1 left in its 1M mode.
|
||||
- A window shared by several requests (`-kvu`) is refused for now: llama-server stopped itself under load each time
|
||||
requests shared one (four loads of four, 2026-11-12, llama.cpp's open issue 31656; the lane page has the numbers).
|
||||
- A window shared by several requests (`-kvu`) is refused for now: llama-server stopped itself under load in four
|
||||
of the nine runs that shared one (2026-11-12, llama.cpp's open issue 31656; the lane page has the numbers).
|
||||
- Ready in 35 to 50 s with its files on the internal disk, 50 to 281 s from a USB SSD.
|
||||
- 117 GB on disk: 112 for its GGUF files and their draft, 4.5 for the image.
|
||||
- Measures of minutes, run back to back: no continuous load was measured.
|
||||
|
||||
@@ -151,21 +151,25 @@ FLASH_UNSLOTH_LOAD="none"
|
||||
FLASH_UNSLOTH_SLOTS="2"
|
||||
# How they hold their windows: 0, a window of CTX for each, -c being then CTX times SLOTS, the lane's: no request can
|
||||
# make another fail. 1, one window of CTX they share (-kvu), is refused (decision 1318): it was meant to serve more
|
||||
# requests at once on more context, and llama-server stopped itself under load each time requests shared a window, four
|
||||
# loads of four on 2026-11-12, with b12291 built on the box and with the pinned image b12316 ("common/common.cpp:1634:
|
||||
# failed to remove sequence N with p0=..., p1=-1", an abort in common_memory::seq_rm from post_decode:
|
||||
# nuit-20261112-1412 and -1454, variantes-20261112-1448-places-524-cram4-b12291 and -1501-kvu-image-image-b12316). It is
|
||||
# llama.cpp's open issue 31656: a draft's rejected tokens are rolled back from this hybrid model's recurrent snapshots,
|
||||
# requests at once on more context, and llama-server stopped itself under load in four of the nine runs that shared a
|
||||
# window on 2026-11-12, with b12291 built on the box and with the pinned image b12316 ("common/common.cpp:1634: failed
|
||||
# to remove sequence N with p0=..., p1=-1", an abort in common_memory::seq_rm from post_decode: nuit-20261112-1412 and
|
||||
# -1454, variantes-20261112-1448-places-524-cram4-b12291 and -1501-kvu-image-image-b12316). The five others, salvos of
|
||||
# 1, 4 and 8 short requests (variantes-20261112-0415-flux, -1304 and -1327), ended well: the abort is intermittent. It
|
||||
# is llama.cpp's open issue 31656: a draft's rejected tokens are rolled back from this hybrid model's recurrent snapshots,
|
||||
# which a sequence loses when find_slot moves its cell between the parts of a batch that a shared window splits out of
|
||||
# the sequences' order. Before they stopped: four sharing 524,288 by YaRN at twice, 22 GiB available at ready, 53.2
|
||||
# tok/s for one request and 72.6 in all with four under the clock cap of 2,200 MHz; four sharing 1,048,576, 11 GiB at
|
||||
# ready, then under 6. It comes back when llama.cpp fixes it (docs/flash-unsloth-lane.md).
|
||||
# ready, then under 6. It comes back when llama.cpp fixes it (docs/flash-unsloth-lane.md). A setting of this installer,
|
||||
# as SLOTS and CTX are: the environment does not set it.
|
||||
FLASH_UNSLOTH_SHARED="0"
|
||||
# A request's window, the context the model was trained for (qwen4exp.context_length in the GGUF): past it the server
|
||||
# caps a slot at 262,144 without YaRN. YARN, YaRN's factor over it, empty for none: with 2 (CTX 524288) three codes of
|
||||
# three were found at 250,000 and at 500,000 tokens, the 513,367-token prompt computed at 584.6 tok/s
|
||||
# (variantes-20261112-0429-contexte-b12291), one request alone, the KV cache in f16, 19 GiB available at ready. -c holds
|
||||
# CTX for each request; FLASH_UNSLOTH_CONTEXT=1m (below) gives one request 1,048,576.
|
||||
# CTX for each request: with a CTX past 262,144 set SLOTS to 1, since a second window of 262,144 tokens took 8.7 GiB
|
||||
# more of the GPU's memory (88,693 MiB with one, 97,552 with two, b12291) and two of 524,288 were not measured.
|
||||
# FLASH_UNSLOTH_CONTEXT=1m (below) gives one request 1,048,576.
|
||||
FLASH_UNSLOTH_CTX="262144"
|
||||
FLASH_UNSLOTH_YARN=""
|
||||
# The KV cache's type (-ctk and -ctv): empty for llama.cpp's own f16, the lane's (its GSM8K and HumanEval were measured
|
||||
@@ -253,7 +257,7 @@ render_unit(){
|
||||
case "$FLASH_UNSLOTH_KV" in ''|f16|q8_0) ;; *) die "FLASH_UNSLOTH_KV must be empty, f16 or q8_0 (FP8 is refused for this model), got: $FLASH_UNSLOTH_KV" ;; esac
|
||||
case "$FLASH_UNSLOTH_SHARED" in
|
||||
0) ;;
|
||||
1) die "FLASH_UNSLOTH_SHARED=1 (one window the requests share, -kvu) is refused: llama-server stopped itself under load each time requests shared a window (\"failed to remove sequence\", measured on 2026-11-12 with b12291 and with the image b12316; llama.cpp issue 31656). Set it to 0, a window each." ;;
|
||||
1) die "FLASH_UNSLOTH_SHARED=1 (one window the requests share, -kvu) is refused: llama-server stopped itself under load in four of the nine runs that shared a window (\"failed to remove sequence\", measured on 2026-11-12 with b12291 and with the image b12316; llama.cpp issue 31656). Set it to 0, a window each." ;;
|
||||
*) die "FLASH_UNSLOTH_SHARED must be 0 (a window for each request), got: $FLASH_UNSLOTH_SHARED" ;;
|
||||
esac
|
||||
# FLASH_UNSLOTH_CONTEXT=1m: one request, a window of 1,048,576 by YaRN at four times, its KV cache in q8_0, as measured
|
||||
|
||||
+6
-3
@@ -2856,16 +2856,19 @@ if [ -f "$OC_USER_CFG" ]; then
|
||||
fi
|
||||
# The Qwen3.8 Flash-Next FP4-Local lane's pair follows its unit's window (FLASH_LOCAL_CONTEXT=1m): --add-providers
|
||||
# above adds a missing provider only, and the compaction block is sized from this pair when the lane boots (second
|
||||
# review of v1.45.2)
|
||||
# review of v1.45.2). A config edited by hand that refuses the pair is said, as switch-model.sh says it: the update
|
||||
# kept the old pair without a word (code review of v1.48.0, 2026-11-12)
|
||||
if [ "$OC_FLASH_LOCAL" -eq 1 ] && [ -n "$OC_FLASH_LOCAL_CTX" ]; then
|
||||
python3 "$REPO_DIR/oc-merge-limits.py" "$OC_USER_CFG" flash-local qwen3.8-flash-next-fp4 \
|
||||
"$OC_FLASH_LOCAL_CTX" "$OC_FLASH_LOCAL_OUT" >/dev/null || true
|
||||
"$OC_FLASH_LOCAL_CTX" "$OC_FLASH_LOCAL_OUT" >/dev/null \
|
||||
|| echo "NOTE: could not update the Qwen3.8 Flash-Next FP4-Local limits in $OC_USER_CFG; check them by hand ($OC_FLASH_LOCAL_CTX $OC_FLASH_LOCAL_OUT)"
|
||||
fi
|
||||
# and the Qwen3.8 Flash-Next Unsloth GGUF lane's follows its unit's window the same way (2026-11-12: 262,144 by
|
||||
# default, 1,048,576 in its 1M mode)
|
||||
if [ "${OC_FLASH_UNSLOTH:-0}" -eq 1 ] && [ -n "${OC_FLASH_UNSLOTH_CTX:-}" ]; then
|
||||
python3 "$REPO_DIR/oc-merge-limits.py" "$OC_USER_CFG" flash-unsloth qwen3.8-flash-next-unsloth \
|
||||
"$OC_FLASH_UNSLOTH_CTX" "$OC_FLASH_UNSLOTH_OUT" >/dev/null || true
|
||||
"$OC_FLASH_UNSLOTH_CTX" "$OC_FLASH_UNSLOTH_OUT" >/dev/null \
|
||||
|| echo "NOTE: could not update the Qwen3.8 Flash-Next Unsloth GGUF limits in $OC_USER_CFG; check them by hand ($OC_FLASH_UNSLOTH_CTX $OC_FLASH_UNSLOTH_OUT)"
|
||||
fi
|
||||
fi
|
||||
# The default model and the served entry's picker name follow the install, not
|
||||
|
||||
@@ -25,8 +25,7 @@ ExecStartPre=/bin/bash __HOME__/.config/qwen38/engine-preflight.sh qwen38-flash-
|
||||
# --lazy-mode on: the model's n-gram table (its fourth part, 26.8 GiB in IQ4_NL) is read from the disk row by row
|
||||
# as the tokens need it, instead of being held in memory. Without it, on this GPU (an integrated one, which
|
||||
# llama.cpp's auto mode loads without mmap) the table loads with the weights: at 131,072 tokens of context the
|
||||
# guard stopped the load at 5 GiB free; with it, one request at a window of 1,048,576 tokens left 16 GiB
|
||||
# available at ready.
|
||||
# guard stopped the load at 5 GiB free; with it the lane leaves 20 GiB available at ready with its two windows.
|
||||
# --load-mode, the installer's LOAD (none, 2026-11-12): the weights copied into the GPU's memory, 27.6 tok/s where
|
||||
# mmap, which has the GPU read them in place in the page cache, decoded at 24.9 side by side (the installer has the
|
||||
# numbers). The files are read where the cache keeps them, with no copy and no preload; from a USB SSD a start
|
||||
@@ -37,7 +36,7 @@ ExecStartPre=/bin/bash __HOME__/.config/qwen38/engine-preflight.sh qwen38-flash-
|
||||
# in the GGUF), YaRN's options past it (its YARN), the KV cache's type (its KV, llama.cpp's own f16), and -np, the
|
||||
# requests at once (its SLOTS, 2), each with a window of its own (-c holds them all, and no request can make
|
||||
# another fail); a third request waits for one of them to end. A window the requests share (-kvu) is refused:
|
||||
# llama-server stopped itself under load each time requests shared one (the installer says how).
|
||||
# llama-server stopped itself under load in four of the nine runs that shared one (the installer says how).
|
||||
# FLASH_UNSLOTH_CONTEXT=1m renders one request at a time instead, with a window of 1,048,576 by YaRN at four times
|
||||
# and the KV cache in q8_0. --jinja and
|
||||
# --chat-template-file: the chat template the GGUF carries, Unsloth's, with the fixes the other Qwen lanes'
|
||||
|
||||
@@ -128,9 +128,9 @@ class TheStagedUnit(unittest.TestCase):
|
||||
f"{DRAFT_PATH} ", unit)
|
||||
self.assertIn(f"-v {self.hf}:/root/.cache/huggingface:ro", unit)
|
||||
self.assertIn("--alias qwen3.8-flash-next-unsloth", unit)
|
||||
# -c holds a window for each request, or the one they share (FLASH_UNSLOTH_SHARED)
|
||||
# -c holds a window for each request (a window the requests share is refused, decision 1318)
|
||||
slots, ctx = int(PINS["FLASH_UNSLOTH_SLOTS"]), int(PINS["FLASH_UNSLOTH_CTX"])
|
||||
whole = ctx if PINS["FLASH_UNSLOTH_SHARED"] == "1" or slots == 1 else ctx * slots
|
||||
whole = ctx * slots
|
||||
self.assertIn(f"-c {whole} -np {slots} ", unit)
|
||||
self.assertIn(f"--spec-type {PINS['FLASH_UNSLOTH_SPEC']} --spec-draft-n-max 7 --spec-draft-p-min 0.5 "
|
||||
"--spec-draft-sampling probabilistic", unit)
|
||||
@@ -287,15 +287,15 @@ class TheStagedUnit(unittest.TestCase):
|
||||
PINS["FLASH_UNSLOTH_YARN"], PINS["FLASH_UNSLOTH_KV"]), ("0", "2", "262144", "", ""))
|
||||
|
||||
def test_a_window_the_requests_share_is_refused_and_says_why(self):
|
||||
# SHARED=1 (-kvu): llama-server stopped itself under load each time requests shared a window, four loads of four
|
||||
# on 2026-11-12 with b12291 and with the pinned image b12316 ("common/common.cpp:1634: failed to remove sequence
|
||||
# SHARED=1 (-kvu): llama-server stopped itself under load in four of the nine runs that shared a window, on
|
||||
# 2026-11-12 with b12291 and with the pinned image b12316 ("common/common.cpp:1634: failed to remove sequence
|
||||
# N with p0=..., p1=-1", llama.cpp issue 31656): the render refuses it, says why, and writes no unit
|
||||
for slots in ("4", "2"):
|
||||
with self.subTest(slots=slots):
|
||||
rc, out, cmd = self.staged_with(SHARED="1", SLOTS=slots)
|
||||
self.assertNotEqual(rc, 0, out)
|
||||
self.assertIn("FLASH_UNSLOTH_SHARED=1 (one window the requests share, -kvu) is refused: llama-server "
|
||||
"stopped itself under load", out)
|
||||
"stopped itself under load in four of the nine runs that shared a window", out)
|
||||
self.assertIn("failed to remove sequence", out)
|
||||
self.assertEqual(cmd, "")
|
||||
self.assertFalse(self.out.exists(), "a unit written all the same")
|
||||
@@ -764,6 +764,34 @@ class TheInstallSetsTheUsersOpencodeForTheWindow(unittest.TestCase):
|
||||
self.assertEqual(c["provider"]["flash-unsloth"]["models"]["qwen3.8-flash-next-unsloth"]["limit"],
|
||||
{"context": 830000, "input": 830000, "output": 32000})
|
||||
|
||||
def test_a_config_that_refuses_the_pair_is_said(self):
|
||||
# a config edited by hand whose limit is no object: oc-merge-limits.py refuses it on its stdout, which the block
|
||||
# threw away with "|| true", and the update kept the old pair without a word, for this lane and for FP4-Local's
|
||||
# (code review of v1.48.0, 2026-11-12); switch-model.sh said it, and the install says it now
|
||||
start = self.TEXT.index('if [ -f "$OC_USER_CFG" ]; then\n if [ "${LANE:-27b}" = "flash" ]; then')
|
||||
block = self.TEXT[start:self.TEXT.index("# The default model and the served entry's picker name follow the install", start)]
|
||||
d = pathlib.Path(tempfile.mkdtemp(prefix="flu-install-oc-refused-"))
|
||||
self.addCleanup(shutil.rmtree, d, True)
|
||||
cfg = d / "opencode.json"
|
||||
cfg.write_text(json.dumps({"provider": {
|
||||
"qwen38": {"models": {"qwen3.8-27b": {"limit": {"context": 547000, "input": 547000, "output": 182000}}}},
|
||||
"flash-local": {"models": {"qwen3.8-flash-next-fp4": {"limit": 5}}},
|
||||
"flash-unsloth": {"models": {"qwen3.8-flash-next-unsloth": {"limit": 5}}}}}, indent=2) + "\n")
|
||||
script = "\n".join(["set -uo pipefail", f'REPO_DIR="{REPO}"', f'OC_USER_CFG="{cfg}"', "LANE=27b",
|
||||
"OC_CTX=547000 OC_OUT=182000 OC_KEEP=205000 CONTEXT_MODE=1m _ENV_CONTEXT_MODE= MEM_CLASS=128",
|
||||
f'SGL_UNIT_PATH="{d}/none.service"', "OC_FLASH_LOCAL=1 OC_FLASH_LOCAL_CTX=840000 OC_FLASH_LOCAL_OUT=32000",
|
||||
"OC_FLASH_UNSLOTH=1 OC_FLASH_UNSLOTH_CTX=830000 OC_FLASH_UNSLOTH_OUT=32000", block])
|
||||
r = subprocess.run(["bash", "-c", script], capture_output=True, text=True, timeout=60,
|
||||
env={"PATH": "/usr/bin:/bin", "HOME": str(d)})
|
||||
self.assertEqual(r.returncode, 0, r.stdout + r.stderr)
|
||||
self.assertIn(f"NOTE: could not update the Qwen3.8 Flash-Next Unsloth GGUF limits in {cfg}; check them by hand "
|
||||
"(830000 32000)", r.stdout)
|
||||
self.assertIn(f"NOTE: could not update the Qwen3.8 Flash-Next FP4-Local limits in {cfg}; check them by hand "
|
||||
"(840000 32000)", r.stdout)
|
||||
c = json.loads(cfg.read_text())["provider"]
|
||||
self.assertEqual((c["flash-local"]["models"]["qwen3.8-flash-next-fp4"]["limit"],
|
||||
c["flash-unsloth"]["models"]["qwen3.8-flash-next-unsloth"]["limit"]), (5, 5))
|
||||
|
||||
def test_flash_unsloth_context_is_not_read_by_the_install(self):
|
||||
start = self.TEXT.index('if [ -n "${FLASH_UNSLOTH_CONTEXT+set}" ]; then')
|
||||
block = self.TEXT[start:self.TEXT.index("\nfi\n", start) + 4]
|
||||
|
||||
Reference in new issue
Block a user