mirror of
https://github.com/hasso5703/alzeo.git
synced 2026-12-05 12:24:28 +01:00
v1.49.0: UD-IQ3_XXS is the Unsloth GGUF lane's default, and a box on UD-Q4_K_XL by v1.48's default moves to it
FLASH_UNSLOTH_DEFAULT="flash-unsloth-iq3" (decision 1376), its sizes and measures in the pages, the cockpit's base.js. conformity.py knows the lane's target (FLASH_UNSLOTH_TARGET, read from the folder of the unit's -m, its comments left out) and its old default UD-Q4_K_XL (v1.49.0). install.sh hands the lane's installer FLASH_UNSLOTH_TARGET when conformity.py classes the unit's UD-Q4_K_XL as an old default, names the handed target in the clients' entry, records a given one (--chose) and refuses an unknown one; switch-model.sh records the target as chosen, as Kolibri's; the cockpit names the setting. Tests: the move, what stays, the entry, the box rendered with the lane, the oc artifact's fake unit on a Q4 GGUF. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0de9a5b7e7
commit
e5afafbbc9
16 files changed
+309
-71
No files matched your search
+1
-1
@@ -23,7 +23,7 @@ CI keeps true.
|
||||
├── Nemotron lane: qwen38-nemotron(.service) vLLM nightly + NVIDIA's b12x, Bolt 74B + LiLiCorr draft
|
||||
├── Nemotron Super lane: qwen38-nemotron-super(.service) the same image, Super VL 120B NVFP4 + LiLiCorr draft, 1M window
|
||||
├── Ornith lane: qwen38-ornith-122b(.service) the Flash FP4-Local lane's image, Ornith 1.5 122B NVFP4 + MTP
|
||||
└── Unsloth GGUF lane: qwen38-flash-unsloth(.service) llama.cpp's server, 176B UD-Q4_K_XL or UD-IQ3_XXS GGUF + n-grams and DFlash2, its table read from the disk
|
||||
└── Unsloth GGUF lane: qwen38-flash-unsloth(.service) llama.cpp's server, 176B UD-IQ3_XXS or UD-Q4_K_XL GGUF + n-grams and DFlash2, its table read from the disk
|
||||
HF cache (weights, pinned revisions) ~/flashnext-ple (176B N-gram table)
|
||||
~/flash-local-ple (FP4-Local table's copies, cache on another disk)
|
||||
|
||||
|
||||
@@ -175,9 +175,9 @@ The engine answers `/health` even when it is wedged, so the cockpit runs a real
|
||||
|
||||
## Quickstart
|
||||
|
||||
Requirements: DGX Spark or other GB10 machine (128 GB unified, or a 64 GB DGX Spark with the lanes that fit it, [below](#on-a-64-gb-dgx-spark)), stock DGX OS (its Docker CE and NVIDIA Container Toolkit: Docker from the Snap package cannot start a GPU container beside that toolkit, and the installer stops on it before it pulls any image). What a new box lacks, the installer puts in itself: DGX OS's first-boot setup leaves the account it creates out of the `docker` group, and leaves out Python's headers and ffmpeg, which the image and video lanes build and run with. The installer adds the account to the group, saying so and why before it runs `sudo`, and goes on in the same terminal, with no need to log out. It installs `python3-dev` and `ffmpeg` (and `python3-venv` where it is missing), naming them as it does. Free disk for the whole box: about **1047 GB** (GB of 10^9 bytes, rounded up), as the lanes measure on the reference box: the 27B lane 58 GB (22 checkpoint, 2 draft, 34 image), the flash lane 223 (136 checkpoint, 35 image, 52 for the PLE table it rewrites at every boot), the image lane 46 (34 checkpoint, 12 runtime and its build), the video lane 174 (145 checkpoint and its Turbo adapter, 12 runtime and its build, 17 for the runtime's own caches), the Kolibri lane 102 (79 checkpoint, 23 image), the Nemotron lane 51 (26 checkpoint and drafter, 25 image), the Nemotron Super lane 77 (its checkpoint and drafter; it runs the Nemotron lane's image, 102 without it), the Qwen3.8 Flash-Next FP4-Local lane 121 (102.3 checkpoint, 18.2 image, and 33 more for the copy of its n-gram table when the cache is on another disk than the home directory's, [docs/external-disk.md](docs/external-disk.md)) the Ornith 122B lane 78 (its checkpoint; it runs the Qwen3.8 Flash-Next FP4-Local lane's image, 96 without it) and the Qwen3.8 Flash-Next Unsloth GGUF lane 117 (112 for its GGUF files and their draft, 4.5 image, [docs/flash-unsloth-lane.md](docs/flash-unsloth-lane.md)). Each lane checks its own room before it downloads anything (a lane on demand, at its first Load), and a lane installed whole that does not fit is left out and named at the end, with the command that adds it later, while the rest installs. What the text lanes check, in detail: for a 27B target, **49 GB** on the disk of `HF_CACHE` (`~/.cache/huggingface` by default) for the checkpoints and caches, and **52 GB** on the disk of Docker's images (`/var/lib/docker` on a stock box) for its 34 GB image (a pull's peak: Docker's containerd image store keeps the download beside the image); for a flash target, **248 GB** on the disk of `HF_CACHE` (194 for the checkpoint and its caches, 54 for the 52 GB PLE table the lane rewrites at every boot, counted on the disk of `PLE_DIR` instead when that is another one) and **53 GB** there for its 35 GB image. When both are one disk, as on a stock box, the installer asks for the sum there: **101 GB** for a 27B target, **301 GB** for a flash one. What the cache already holds of a checkpoint comes off its share (a checkpoint that is all there needs 11 GB of working room instead), and an image already pulled needs 6 GB instead of its own size. Caching the other 27B targets adds ~22 GB per NVFP4 target and ~31 GB per FP8 one.
|
||||
Requirements: DGX Spark or other GB10 machine (128 GB unified, or a 64 GB DGX Spark with the lanes that fit it, [below](#on-a-64-gb-dgx-spark)), stock DGX OS (its Docker CE and NVIDIA Container Toolkit: Docker from the Snap package cannot start a GPU container beside that toolkit, and the installer stops on it before it pulls any image). What a new box lacks, the installer puts in itself: DGX OS's first-boot setup leaves the account it creates out of the `docker` group, and leaves out Python's headers and ffmpeg, which the image and video lanes build and run with. The installer adds the account to the group, saying so and why before it runs `sudo`, and goes on in the same terminal, with no need to log out. It installs `python3-dev` and `ffmpeg` (and `python3-venv` where it is missing), naming them as it does. Free disk for the whole box: about **1020 GB** (GB of 10^9 bytes, rounded up), as the lanes measure on the reference box: the 27B lane 58 GB (22 checkpoint, 2 draft, 34 image), the flash lane 223 (136 checkpoint, 35 image, 52 for the PLE table it rewrites at every boot), the image lane 46 (34 checkpoint, 12 runtime and its build), the video lane 174 (145 checkpoint and its Turbo adapter, 12 runtime and its build, 17 for the runtime's own caches), the Kolibri lane 102 (79 checkpoint, 23 image), the Nemotron lane 51 (26 checkpoint and drafter, 25 image), the Nemotron Super lane 77 (its checkpoint and drafter; it runs the Nemotron lane's image, 102 without it), the Qwen3.8 Flash-Next FP4-Local lane 121 (102.3 checkpoint, 18.2 image, and 33 more for the copy of its n-gram table when the cache is on another disk than the home directory's, [docs/external-disk.md](docs/external-disk.md)) the Ornith 122B lane 78 (its checkpoint; it runs the Qwen3.8 Flash-Next FP4-Local lane's image, 96 without it) and the Qwen3.8 Flash-Next Unsloth GGUF lane 90 (85 for its GGUF files and their draft, 4.5 image, 83 more for UD-Q4_K_XL's, [docs/flash-unsloth-lane.md](docs/flash-unsloth-lane.md)). Each lane checks its own room before it downloads anything (a lane on demand, at its first Load), and a lane installed whole that does not fit is left out and named at the end, with the command that adds it later, while the rest installs. What the text lanes check, in detail: for a 27B target, **49 GB** on the disk of `HF_CACHE` (`~/.cache/huggingface` by default) for the checkpoints and caches, and **52 GB** on the disk of Docker's images (`/var/lib/docker` on a stock box) for its 34 GB image (a pull's peak: Docker's containerd image store keeps the download beside the image); for a flash target, **248 GB** on the disk of `HF_CACHE` (194 for the checkpoint and its caches, 54 for the 52 GB PLE table the lane rewrites at every boot, counted on the disk of `PLE_DIR` instead when that is another one) and **53 GB** there for its 35 GB image. When both are one disk, as on a stock box, the installer asks for the sum there: **101 GB** for a 27B target, **301 GB** for a flash one. What the cache already holds of a checkpoint comes off its share (a checkpoint that is all there needs 11 GB of working room instead), and an image already pulled needs 6 GB instead of its own size. Caching the other 27B targets adds ~22 GB per NVFP4 target and ~31 GB per FP8 one.
|
||||
|
||||
One command, first install and updates alike. It clones or updates `~/dgx-spark-qwen38`, then runs the pinned installer, which installs the 27B, which serves, the keepalive proxy with its typed-decision endpoint, the opencode wiring, the cockpit and its Agent view, and every other lane **on demand**: their units now, and each one prepared at its first Load from the cockpit, as you, with no sudo, then its weights (Flash-Next 176B beside the 27B: 223 GB; images 46, video 174, Kolibri 102, Nemotron 51, Nemotron Super 77 beside it, 102 alone, Qwen3.8 Flash-Next FP4-Local 121, Ornith 122B 78 beside it, 96 alone, Qwen3.8 Flash-Next Unsloth GGUF 117). The 27B proves it serves before the run ends; each other lane is built and started by its first Load. A new box downloads about 39 GB for the 27B (about 6 to 7 minutes at 100 MB/s). `--all-weights` installs the whole box now instead, as every run did before: about an hour and a half of work (92 minutes measured at v1.29.0, before the two Nemotron lanes, the weights cached), plus about 878 GB of downloads (about 146 minutes at 100 MB/s). It ends by printing the cockpit URL, and there is nothing left to run by hand.
|
||||
One command, first install and updates alike. It clones or updates `~/dgx-spark-qwen38`, then runs the pinned installer, which installs the 27B, which serves, the keepalive proxy with its typed-decision endpoint, the opencode wiring, the cockpit and its Agent view, and every other lane **on demand**: their units now, and each one prepared at its first Load from the cockpit, as you, with no sudo, then its weights (Flash-Next 176B beside the 27B: 223 GB; images 46, video 174, Kolibri 102, Nemotron 51, Nemotron Super 77 beside it, 102 alone, Qwen3.8 Flash-Next FP4-Local 121, Ornith 122B 78 beside it, 96 alone, Qwen3.8 Flash-Next Unsloth GGUF 90). The 27B proves it serves before the run ends; each other lane is built and started by its first Load. A new box downloads about 39 GB for the 27B (about 6 to 7 minutes at 100 MB/s). `--all-weights` installs the whole box now instead, as every run did before: about an hour and a half of work (92 minutes measured at v1.29.0, before the two Nemotron lanes, the weights cached), plus about 878 GB of downloads (about 146 minutes at 100 MB/s). It ends by printing the cockpit URL, and there is nothing left to run by hand.
|
||||
|
||||
**Updating a box adds the lanes it does not have yet, on demand.** A lane a box never had (the flash beside the 27B, images, video, Kolibri, the two Nemotron lanes, Qwen3.8 Flash-Next FP4-Local, Ornith 122B, Qwen3.8 Flash-Next Unsloth GGUF) gets its units, and its first Load from the cockpit prepares it; a lane already on the box (installed whole, from any version, or begun by a first Load) is updated whole, as before. `--all-weights` builds the new ones now and proves them, and `--with-<lane>` does it for one lane. To leave a lane out, pass its flag on each run that should leave it out (a `--no-<lane>` counts for the run that passes it only): `--no-kolibri`, `--no-nemotron`, `--no-nemotron-super`, `--no-flash-local`, `--no-ornith-122b`, `--no-flash-unsloth`, `--no-flash` (or `--no-27b` on a flash box), `--no-image`, `--no-video`, after `bash -s --` on the one-liner.
|
||||
|
||||
@@ -264,7 +264,7 @@ Everything below is optional and combinable. Variables ride on the `bash` side o
|
||||
| Nemotron Super lane | default, or `--no-nemotron-super` | on demand: its units, built at its first Load | NVIDIA's Nemotron 3.5 Super VL on vLLM, in the Nemotron lane's image: 77 GB of checkpoint and drafter, 102 with the image when the Nemotron lane is not there; `--with-nemotron-super` installs it whole now and proves it |
|
||||
| Qwen3.8 Flash-Next FP4-Local lane | default, or `--no-flash-local` | on demand: its units, built at its first Load | NVIDIA's FP4-Local build of Qwen3.8-Flash-Next on vLLM, 121 GB (102.3 checkpoint, 18.2 image, rounded up), 33 more for the copy of its n-gram table when the cache is on another disk. `--with-flash-local` installs it whole now and proves it |
|
||||
| Ornith 122B lane | default, or `--no-ornith-122b` | on demand: its units, built at its first Load | Ornith AI's Ornith 1.5 122B on vLLM, in the Qwen3.8 Flash-Next FP4-Local lane's image: 78 GB of checkpoint, 96 with the image when the Qwen3.8 Flash-Next FP4-Local lane is not there; `--with-ornith-122b` installs it whole now and proves it |
|
||||
| Qwen3.8 Flash-Next Unsloth GGUF lane | default, or `--no-flash-unsloth` | on demand: its units, built at its first Load | Unsloth's UD-Q4_K_XL GGUF of Qwen3.8-Flash-Next on llama.cpp, with an n-gram lookup and ggml-org's DFlash2 draft: 117 GB (112 GGUF files and draft, 4.5 image, rounded up), and 55 more for its UD-IQ3_XXS when it is loaded; `--with-flash-unsloth` installs it whole now and proves it |
|
||||
| Qwen3.8 Flash-Next Unsloth GGUF lane | default, or `--no-flash-unsloth` | on demand: its units, built at its first Load | Unsloth's UD-IQ3_XXS GGUF of Qwen3.8-Flash-Next on llama.cpp, with an n-gram lookup and ggml-org's DFlash2 draft: 90 GB (85 GGUF files and draft, 4.5 image, rounded up), and 83 more for its UD-Q4_K_XL when it is loaded; `--with-flash-unsloth` installs it whole now and proves it |
|
||||
| opencode integration | default, or `--no-opencode` | on | on = ready config + `oc` launcher + default model following every switch; off = none of that, your own opencode config is never touched. `--with-opencode` turns it back on |
|
||||
| Ports | `PORT=`, `PROXY_PORT=` | 30000, 30001 | agent clients use the proxy port |
|
||||
| Storage | `HF_CACHE=`, `PLE_DIR=`, `FLASH_LOCAL_PLE_DIR=` | `~/.cache/huggingface`, `~/flashnext-ple`, `~/flash-local-ple` when the cache is on another disk | checkpoints, the 52 GB flash PLE backing file, and the copies of the Qwen3.8 Flash-Next FP4-Local lane's n-gram table (32 GB, none with `none`, which reads it where the cache is), and each choice holds for the runs after |
|
||||
@@ -634,8 +634,9 @@ Every number, the engines tried and why this one: **[docs/ornith-lane.md](docs/o
|
||||
## Qwen3.8 Flash-Next Unsloth GGUF: the flash model on llama.cpp
|
||||
|
||||
Since v1.48 a plain install includes a tenth lane, the first on [llama.cpp](https://github.com/ggml-org/llama.cpp):
|
||||
[Unsloth's GGUF](https://huggingface.co/unsloth/Qwen3.8-Flash-Next-GGUF) of Qwen3.8-Flash-Next in its dynamic 4-bit
|
||||
quantization (UD-Q4_K_XL: 76.9 GiB of weights), served by llama.cpp's own server from the image its project publishes,
|
||||
[Unsloth's GGUF](https://huggingface.co/unsloth/Qwen3.8-Flash-Next-GGUF) of Qwen3.8-Flash-Next, in its 3-bit
|
||||
UD-IQ3_XXS since v1.49 (51.1 GiB of weights) or its dynamic 4-bit UD-Q4_K_XL (76.9, the lane's own in v1.48, whose
|
||||
figures follow), served by llama.cpp's own server from the image its project publishes,
|
||||
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 12.8 to 19.6 GiB to the box (measured as it ships), with two requests at once, each with a window
|
||||
@@ -643,12 +644,12 @@ of its own of 262,144 tokens; `FLASH_UNSLOTH_CONTEXT=1m ./install-flash-unsloth.
|
||||
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:
|
||||
default. It needs 90 GB (85 for its files, 4.5 for the image; 83 more for UD-Q4_K_XL's), installed on demand like the others:
|
||||
`--with-flash-unsloth` or `--all-weights` does it at install, `--no-flash-unsloth` leaves it out.
|
||||
|
||||
On the cockpit's Lanes view, pick **Qwen3.8 Flash-Next Unsloth GGUF** and press **Load** (35 to 50 s to answer with its
|
||||
files on the internal disk, 50 to 281 s from a USB disk, the first answers slower after a slow start). From a terminal,
|
||||
`./prepare-lane.sh flash-unsloth` the first time, then `./switch-model.sh flash-unsloth`. Measured on the reference box
|
||||
`./prepare-lane.sh flash-unsloth` the first time, then `./switch-model.sh flash-unsloth-iq3`. Measured on the reference box
|
||||
with llama.cpp's images in the lane's load mode, its files on the USB SSD, one request at a time at the model card's
|
||||
sampling, on 2026-11-12:
|
||||
|
||||
@@ -671,12 +672,15 @@ alone); MMLU not measured; in its 1M mode, GSM8K 98.0 % (250 questions) and Huma
|
||||
the box's hottest zone at 88 to 95.5 °C; 75 min of continuous load through the proxy took it to 94.4 °C (2026-11-13). Every number and the settings measured:
|
||||
**[docs/flash-unsloth-lane.md](docs/flash-unsloth-lane.md)**.
|
||||
|
||||
Two quantizations, one lane, as Kolibri's two checkpoints (v1.49): `./switch-model.sh flash-unsloth-iq3` serves
|
||||
Unsloth's UD-IQ3_XXS instead, its experts in 3-bit (51.1 GiB of weights, the same n-gram table), under the same model
|
||||
name, four requests at once with 262,144 tokens each (its KV cache in q8_0) and the same 1M mode; 85 GB of files, 55
|
||||
beside UD-Q4_K_XL's. One request at temperature 0, each text's first pass: 69.4 / 76.4 / 37.7 / 171.7 tok/s in code,
|
||||
Two quantizations, one lane, as Kolibri's two checkpoints (v1.49): UD-IQ3_XXS, `flash-unsloth-iq3`, is the lane's
|
||||
default, its experts in 3-bit (51.1 GiB of weights, the same n-gram table), under the same model name, four requests at
|
||||
once with 262,144 tokens each (its KV cache in q8_0) and the same 1M mode; `./switch-model.sh flash-unsloth` serves
|
||||
UD-Q4_K_XL instead. One request at temperature 0, each text's first pass: 69.4 / 76.4 / 37.7 / 171.7 tok/s in code,
|
||||
reasoning, prose and a rewrite of code, against 55.6 / 60.5 / 32.0 / 129.8 for UD-Q4_K_XL (2026-11-14, one measure
|
||||
each). TODO(measure): its quality against UD-Q4_K_XL; until then `flash-unsloth`, UD-Q4_K_XL, stays the lane's default.
|
||||
each). On the same bench (llama.cpp b12291 built on the box, four requests at once): GSM8K 98.8 % (250 questions,
|
||||
98.4 % for UD-Q4_K_XL) and HumanEval 98.2 % (164 problems, 99.4 %), and the box kept 28.7 GiB available at the lowest
|
||||
under GSM8K's four requests (37 at ready); eight windows ran it down to the memory guard. MMLU not measured. A box that
|
||||
served UD-Q4_K_XL because v1.48 installed it moves to UD-IQ3_XXS at its update; one whose owner chose it keeps it.
|
||||
|
||||
## Speech: Qwen3-ASR and Kokoro, on the CPU, beside any lane
|
||||
|
||||
|
||||
+28
-4
@@ -41,10 +41,11 @@ FIRST_RELEASE = "v1.36.0"
|
||||
# drafter as a whole (repository, quantization, depth), because the old default is the three
|
||||
# together: the same repository at depth 16 was somebody's choice. The side lanes' checkpoints
|
||||
# are compared too (2026-10-17): install.sh hands KOLIBRI_VARIANT, IMAGE_MODEL and VIDEO_VARIANT
|
||||
# to their installers, which keep the unit's otherwise.
|
||||
# to their installers, which keep the unit's otherwise, and FLASH_UNSLOTH_TARGET, the Unsloth GGUF
|
||||
# lane's quantization (v1.49.0), the same way.
|
||||
KNOBS = ("target.27b", "target.flash", "DRAFT2", "CONTEXT_MODE", "ENGINE_BIND", "PROXY_BIND",
|
||||
"PORT", "PROXY_PORT", "HF_CACHE", "PLE_DIR", "FLASH_TIER", "SPEC_TOKEN_MAP_SIZE",
|
||||
"FLASH_REPLAYSSM_SPEC", "KOLIBRI_VARIANT", "IMAGE_MODEL", "VIDEO_VARIANT")
|
||||
"FLASH_REPLAYSSM_SPEC", "KOLIBRI_VARIANT", "IMAGE_MODEL", "VIDEO_VARIANT", "FLASH_UNSLOTH_TARGET")
|
||||
# Settings that belong to the site rather than to a release: where the checkpoints live, which
|
||||
# ports clients were given. Listed apart and never moved by an update (decided 2026-10-16).
|
||||
SITE = ("PORT", "PROXY_PORT", "HF_CACHE", "PLE_DIR")
|
||||
@@ -70,6 +71,11 @@ OLD_DEFAULTS = (
|
||||
# FLASH_TIER:-context until v1.18.7
|
||||
OldDefault("FLASH_TIER", "context", "v1.19.0",
|
||||
"2026-10-01T02:07:06+02:00", "`FLASH_TIER` defaults to `concurrency`"),
|
||||
# the Unsloth GGUF lane's UD-Q4_K_XL, its one quantization in v1.48.x; UD-IQ3_XXS since v1.49.0
|
||||
# (decision 1376). Every box that has the lane was installed by v1.48.0 or later and so has an
|
||||
# installed.json: the instant (the day of the release, as the others' days are) decides nothing there.
|
||||
OldDefault("FLASH_UNSLOTH_TARGET", "flash-unsloth", "v1.49.0",
|
||||
"2026-11-15T12:00:00+01:00", "UD-IQ3_XXS is the lane's default"),
|
||||
)
|
||||
|
||||
|
||||
@@ -125,6 +131,10 @@ SIDE = {
|
||||
"KOLIBRI_VARIANT": ("install-kolibri.sh", r'^\s*""\)\s*VARIANT=([a-z0-9]+);'),
|
||||
"IMAGE_MODEL": ("install-image.sh", r'^IMAGE_MODEL_PIN="([^"]+)"'),
|
||||
"VIDEO_VARIANT": ("install-video.sh", r'VARIANT="\$\{VARIANT:-([a-z0-9]+)\}"'),
|
||||
"FLASH_UNSLOTH_TARGET": ("install-flash-unsloth.sh", r'^FLASH_UNSLOTH_DEFAULT="([a-z0-9-]+)"'),
|
||||
# the folder of each target's first part in Unsloth's repository, which the unit's -m names
|
||||
"flash-unsloth": ("install-flash-unsloth.sh", r'^FLASH_UNSLOTH_PART1="([^/"]+)/'),
|
||||
"flash-unsloth-iq3": ("install-flash-unsloth.sh", r'^FLASH_UNSLOTH_IQ3_PART1="([^/"]+)/'),
|
||||
"fp8": ("install-kolibri.sh", r'^KOLIBRI_FP8_REPO="([^"]+)"'),
|
||||
"nvfp4": ("install-kolibri.sh", r'^KOLIBRI_NVFP4_REPO="([^"]+)"'),
|
||||
}
|
||||
@@ -171,7 +181,8 @@ def recommended(repo_dir=REPO, home=None):
|
||||
"FLASH_TIER": val("FLASH_TIER"),
|
||||
"SPEC_TOKEN_MAP_SIZE": val("SPEC_TOKEN_MAP_SIZE"),
|
||||
"FLASH_REPLAYSSM_SPEC": val("FLASH_REPLAYSSM_SPEC"),
|
||||
**{knob: _side(repo_dir, *SIDE[knob]) for knob in ("KOLIBRI_VARIANT", "IMAGE_MODEL", "VIDEO_VARIANT")},
|
||||
**{knob: _side(repo_dir, *SIDE[knob]) for knob in ("KOLIBRI_VARIANT", "IMAGE_MODEL", "VIDEO_VARIANT",
|
||||
"FLASH_UNSLOTH_TARGET")},
|
||||
}
|
||||
|
||||
|
||||
@@ -261,6 +272,18 @@ def observe(units_dir=UNITS, config_dir=None, lane="27b", repo_dir=REPO):
|
||||
video = _read(Path(units_dir) / "qwen38-video.service")
|
||||
if video is not None:
|
||||
out["VIDEO_VARIANT"] = _first(r"--model-variant ([a-z0-9]+)", video) or _side(repo_dir, *SIDE["VIDEO_VARIANT"])
|
||||
# the Unsloth GGUF lane's target by the folder of its -m, as install-flash-unsloth.sh reads it back
|
||||
# (lanes.sh flash_unsloth_target), in the unit's lines, its comments left out (the unit's header says "-m
|
||||
# naming"); a -m in neither folder names no target of this release
|
||||
unsloth = _read(Path(units_dir) / "qwen38-flash-unsloth.service")
|
||||
if unsloth is not None:
|
||||
unsloth = "\n".join(line for line in unsloth.splitlines() if not line.lstrip().startswith("#"))
|
||||
model = _first(r"(?<![\w-])-m ([^ ]+)", unsloth) if unsloth is not None else None
|
||||
if model:
|
||||
for target in ("flash-unsloth-iq3", "flash-unsloth"):
|
||||
if f"/{_side(repo_dir, *SIDE[target])}/" in model:
|
||||
out["FLASH_UNSLOTH_TARGET"] = target
|
||||
break
|
||||
return out
|
||||
|
||||
|
||||
@@ -430,7 +453,8 @@ def plan(config_dir, lane, chose=None, repo_dir=REPO, units_dir=UNITS, home=None
|
||||
|
||||
# The settings that are no variable of their own, as the list names them.
|
||||
PLAN_NAMES = {"target.27b": "27B target", "target.flash": "flash target", "DRAFT2": "27B drafter",
|
||||
"KOLIBRI_VARIANT": "Kolibri-1 checkpoint", "IMAGE_MODEL": "image model", "VIDEO_VARIANT": "video variant"}
|
||||
"KOLIBRI_VARIANT": "Kolibri-1 checkpoint", "IMAGE_MODEL": "image model", "VIDEO_VARIANT": "video variant",
|
||||
"FLASH_UNSLOTH_TARGET": "Unsloth GGUF target"}
|
||||
|
||||
|
||||
def plan_lines(items, release):
|
||||
|
||||
@@ -127,7 +127,7 @@ const LANE_META = {
|
||||
[NEMOTRON_UNIT]: {title: 'Nemotron 3.5 Bolt', kind: 'Text, images and video, 262K tokens', desc: 'NVIDIA’s mixture of experts, 74B with 9B active in 2 bits, served by vLLM with its drafter. Reasoning, tool calls and vision.', view: 'agent', lane: 'nemotron', maker: 'nvidia'},
|
||||
[NEMOTRON_SUPER_UNIT]: {title: 'Nemotron 3.5 Super VL', kind: 'Text, images and video, 1M tokens', desc: 'NVIDIA’s mixture of experts, 120B with 12B active in NVFP4, served by vLLM with its drafter. Reasoning, tool calls and vision over a 1M window.', view: 'agent', lane: 'nemotron-super', maker: 'nvidia'},
|
||||
[ORNITH_UNIT]: {title: 'Ornith 1.5 122B', kind: 'Text, images and video, 1M tokens', desc: 'Ornith AI’s mixture of experts, 122B with 8 of its 256 experts active, in its authors’ NVFP4 build, served by vLLM with b12x and its MTP head. Reasoning, tool calls and vision.', view: 'agent', lane: 'ornith-122b', maker: 'ornith'},
|
||||
[FLASH_UNSLOTH_UNIT]: {title: 'Qwen3.8 Flash-Next Unsloth GGUF', kind: 'Text, 262K tokens of context', desc: 'The same 176B model in Unsloth’s dynamic GGUF (UD-Q4_K_XL or UD-IQ3_XXS), served by llama.cpp with an n-gram lookup and a DFlash2 draft, its n-gram (PLE) table read from the disk. Reasoning and tool calls.', view: 'agent', lane: 'flash-unsloth', maker: 'unsloth'},
|
||||
[FLASH_UNSLOTH_UNIT]: {title: 'Qwen3.8 Flash-Next Unsloth GGUF', kind: 'Text, 262K tokens of context', desc: 'The same 176B model in Unsloth’s dynamic GGUF (UD-IQ3_XXS or UD-Q4_K_XL), served by llama.cpp with an n-gram lookup and a DFlash2 draft, its n-gram (PLE) table read from the disk. Reasoning and tool calls.', view: 'agent', lane: 'flash-unsloth', maker: 'unsloth'},
|
||||
[IMAGE_UNIT]: {title: 'Qwen-Image 2.1', kind: 'Images', desc: 'Create, edit with up to ten references, cut out with a real alpha channel.', view: 'image', lane: 'image', maker: 'qwen'},
|
||||
[VIDEO_UNIT]: {title: 'MiniMax-H3', kind: 'Video with sound', desc: 'Video and audio made together, from a prompt or from keyframes.', view: 'video', lane: 'video', maker: 'minimax'}};
|
||||
// a lane's maker's mark, as an image the stylesheet sizes (the marks belong to their owners, img/logos/NOTICE.md)
|
||||
@@ -147,7 +147,7 @@ const TARGET_UNIT = t => t === 'image' || t === 'image-turbo' ? IMAGE_UNIT : t =
|
||||
const LANE_TARGETS = {[U27]: ['stock', 'uncensored', 'fp8', 'uncensored-fp8', 'arete'], [UFLASH]: ['flash', 'flash-uncensored', 'flash-nvda'],
|
||||
[FLASH_LOCAL_UNIT]: ['flash-local'],
|
||||
[KOLIBRI_UNIT]: ['kolibri', 'kolibri-nvfp4'], [NEMOTRON_UNIT]: ['nemotron'], [NEMOTRON_SUPER_UNIT]: ['nemotron-super'],
|
||||
[ORNITH_UNIT]: ['ornith-122b'], [FLASH_UNSLOTH_UNIT]: ['flash-unsloth', 'flash-unsloth-iq3'], [IMAGE_UNIT]: ['image', 'image-turbo'],
|
||||
[ORNITH_UNIT]: ['ornith-122b'], [FLASH_UNSLOTH_UNIT]: ['flash-unsloth-iq3', 'flash-unsloth'], [IMAGE_UNIT]: ['image', 'image-turbo'],
|
||||
[VIDEO_UNIT]: ['video']};
|
||||
// Each version's official name: the model, its precision, and who publishes it, read off the repository its
|
||||
// installer pins (decisions 1180 and 1185: "abliterated", the word of those builds' own makers, never "uncensored"
|
||||
@@ -182,7 +182,7 @@ const TARGET_LINE = {
|
||||
'flash-local': 'The one version: NVIDIA’s FP4 build and its MTP head',
|
||||
'ornith-122b': 'The one version: its authors’ NVFP4 build and its MTP head',
|
||||
'flash-unsloth': 'Unsloth’s dynamic 4-bit GGUF, with an n-gram lookup and a DFlash2 draft: two requests at once',
|
||||
'flash-unsloth-iq3': 'Its experts in 3-bit: faster, and four requests at once'};
|
||||
'flash-unsloth-iq3': 'The default: its experts in 3-bit, faster, four requests at once'};
|
||||
const TARGET_NOTE = {
|
||||
stock: 'The NVFP4 quantization this repo pins by default: smallest and fastest of the 27B targets.',
|
||||
uncensored: 'The abliterated NVFP4 checkpoint: same size and speed as RadixArk’s NVFP4, refusals removed.',
|
||||
@@ -202,7 +202,7 @@ const TARGET_NOTE = {
|
||||
'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 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.',
|
||||
'flash-unsloth-iq3': 'Unsloth’s UD-IQ3_XXS GGUF of the same model, served the same way (llama.cpp’s own server, its n-gram lookup and ggml-org’s DFlash2 draft, the same chat template and sampling): its experts in 3-bit, 51.1 GiB of weights where UD-Q4_K_XL has 76.9, and the same n-gram (PLE) table, read from the disk. The room it leaves goes to more requests at once: 262,144 tokens of context for each of four, the KV cache in q8_0 (1,048,576 for one request at a time with FLASH_UNSLOTH_CONTEXT=1m given to its installer). Measured on this box, one request at temperature 0 on its image (llama.cpp b12316, 2026-11-14, each text’s first pass, two windows of 262,144 for both quantizations, the GPU capped at 2,400 MHz): 69.4 tokens/s on code, 76.4 in reasoning, 37.7 on prose and 171.7 on a rewrite of code, where UD-Q4_K_XL gave 55.6, 60.5, 32.0 and 129.8; with its four windows, 66.2 tokens/s for one request and 71.5 in all with four (the GPU capped at 2,000 MHz). Its quality against UD-Q4_K_XL is measured before it may become the lane’s default. The first switch downloads about 85 GB, 55 when UD-Q4_K_XL is there (the n-gram table is one file for the two).'};
|
||||
'flash-unsloth-iq3': 'Unsloth’s UD-IQ3_XXS GGUF of the same model, served the same way (llama.cpp’s own server, its n-gram lookup and ggml-org’s DFlash2 draft, the same chat template and sampling): its experts in 3-bit, 51.1 GiB of weights where UD-Q4_K_XL has 76.9, and the same n-gram (PLE) table, read from the disk. The room it leaves goes to more requests at once: 262,144 tokens of context for each of four, the KV cache in q8_0 (1,048,576 for one request at a time with FLASH_UNSLOTH_CONTEXT=1m given to its installer). Measured on this box, one request at temperature 0 on its image (llama.cpp b12316, 2026-11-14, each text’s first pass, two windows of 262,144 for both quantizations, the GPU capped at 2,400 MHz): 69.4 tokens/s on code, 76.4 in reasoning, 37.7 on prose and 171.7 on a rewrite of code, where UD-Q4_K_XL gave 55.6, 60.5, 32.0 and 129.8; with its four windows, 66.2 tokens/s for one request and 71.5 in all with four (the GPU capped at 2,000 MHz). At the medium effort and temperature 0, four requests at once (llama.cpp b12291 built on this box, 2026-11-14): GSM8K 98.8 % (250 questions; 98.4 % for UD-Q4_K_XL on the same bench) and HumanEval 98.2 % (164 problems; 99.4 %), the box keeping 28.7 GiB available at the lowest. The lane’s default since v1.49.0. The first switch downloads about 85 GB, 55 when UD-Q4_K_XL is there (the n-gram table is one file for the two).'};
|
||||
// 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
|
||||
@@ -1124,7 +1124,8 @@ function applyBusy(){
|
||||
// The settings conformity.py compares that are no variable of their own, as the page names them
|
||||
// (v1.36.0): the same names install.sh's list gives them.
|
||||
const CF_NAME = {'target.27b': '27B target', 'target.flash': 'flash target', DRAFT2: '27B drafter',
|
||||
KOLIBRI_VARIANT: 'Kolibri-1 checkpoint', IMAGE_MODEL: 'image model', VIDEO_VARIANT: 'video variant'};
|
||||
KOLIBRI_VARIANT: 'Kolibri-1 checkpoint', IMAGE_MODEL: 'image model', VIDEO_VARIANT: 'video variant',
|
||||
FLASH_UNSLOTH_TARGET: 'Unsloth GGUF target'};
|
||||
const cfName = i => CF_NAME[i.knob] || i.knob;
|
||||
function wedgeNext(){
|
||||
const c = F.config || {};
|
||||
|
||||
+1
-1
@@ -126,7 +126,7 @@ served on it: the endpoint says which lanes serve it.
|
||||
The Qwen3.8 Flash-Next Unsloth GGUF lane (llama.cpp, [docs/flash-unsloth-lane.md](flash-unsloth-lane.md)) serves the
|
||||
flash model with its GGUF's template and the Qwen lanes' fixes: the same levels, `lean` by default, `none` turning the
|
||||
reasoning off, and its reasoning in `reasoning_content`. It takes text only. Its window is 262,144 tokens for each of
|
||||
two requests at once, four on its UD-IQ3_XXS target (1,048,576 for one request at a time with
|
||||
four requests at once on UD-IQ3_XXS, its default, and two on UD-Q4_K_XL (1,048,576 for one request at a time with
|
||||
`FLASH_UNSLOTH_CONTEXT=1m`). `/v1/systemone` is not served on it.
|
||||
|
||||
The Nemotron lanes (vLLM, [docs/nemotron-lane.md](nemotron-lane.md) and
|
||||
|
||||
+21
-10
@@ -1,8 +1,9 @@
|
||||
# The Qwen3.8 Flash-Next Unsloth GGUF lane: the flash model on llama.cpp
|
||||
|
||||
`unsloth/Qwen3.8-Flash-Next-GGUF` is Unsloth's GGUF of Qwen3.8-Flash-Next, every quantization of the model in one
|
||||
repository. This lane serves its dynamic 4-bit one, UD-Q4_K_XL, by default, and its 3-bit UD-IQ3_XXS as a second
|
||||
target ([below](#its-second-target-ud-iq3_xxs-flash-unsloth-iq3)), with llama.cpp's own server, `llama-server`, from the
|
||||
repository. This lane serves two of them: its 3-bit UD-IQ3_XXS, the default since v1.49
|
||||
([below](#its-second-target-ud-iq3_xxs-flash-unsloth-iq3)), and its dynamic 4-bit UD-Q4_K_XL, v1.48's, which most of
|
||||
this page measured, with llama.cpp's own server, `llama-server`, from the
|
||||
image the llama.cpp project publishes for arm64 with CUDA, pinned by digest, with llama.cpp's n-gram lookup and then
|
||||
ggml-org's GGUF of the DFlash2 draft of the model (Q8_0) proposing tokens. It serves on the text lanes' port, behind the same proxy and key, as model
|
||||
`qwen3.8-flash-next-unsloth`, OpenAI or Anthropic dialect alike, and, as on the other Qwen lanes, `lean` is the reasoning
|
||||
@@ -68,11 +69,21 @@ with two windows of 262,144 (2026-11-14, one measure each, the GPU capped at 2,4
|
||||
| prose | 37.7 | 32.0 |
|
||||
| a rewrite of code | 171.7 | 129.8 |
|
||||
|
||||
TODO(measure): its quality against UD-Q4_K_XL (GSM8K, HumanEval, MMLU), its lowest memory under load at four requests
|
||||
and `bench.sh`'s median on freshly started engines. The lane's default stays UD-Q4_K_XL until then: it is one line of
|
||||
the installer, `FLASH_UNSLOTH_DEFAULT`, which a new install serves (an update keeps the target the unit serves, and
|
||||
`./install.sh --recommended` brings the default back). Its forms are `FLASH_UNSLOTH_IQ3_SLOTS` and
|
||||
`FLASH_UNSLOTH_IQ3_KV` beside it.
|
||||
Its answers and its memory, measured on 2026-11-14 on the bench UD-Q4_K_XL's were measured on (llama.cpp b12291 built
|
||||
on the box, its four windows in q8_0, four requests at once, the medium effort, temperature 0):
|
||||
|
||||
| | UD-IQ3_XXS | UD-Q4_K_XL (2026-11-12) |
|
||||
|---|---|---|
|
||||
| GSM8K, 250 questions | 98.8 % | 98.4 % |
|
||||
| HumanEval, 164 problems | 98.2 % | 99.4 % |
|
||||
| memory available under GSM8K's four requests | 28.7 GiB at the lowest, 37 at ready | |
|
||||
|
||||
MMLU and `bench.sh`'s median were not measured. On these numbers it is the lane's default since v1.49.0 (decision
|
||||
1376): one line of the installer, `FLASH_UNSLOTH_DEFAULT`, which a new install serves. An update keeps the target the
|
||||
unit serves, but for a unit that serves UD-Q4_K_XL only because v1.48 installed it by default, which moves to UD-IQ3_XXS
|
||||
(`conformity.py`, as the other old defaults move); `FLASH_UNSLOTH_TARGET=flash-unsloth ./install.sh`, or a switch to
|
||||
`flash-unsloth`, records UD-Q4_K_XL as your choice, and `./install.sh --recommended` brings the default back. Its forms
|
||||
are `FLASH_UNSLOTH_IQ3_SLOTS` and `FLASH_UNSLOTH_IQ3_KV` beside it.
|
||||
|
||||
```bash
|
||||
./switch-model.sh flash-unsloth-iq3 # UD-IQ3_XXS; its first switch fetches what it lacks
|
||||
@@ -406,9 +417,9 @@ the Quality section).
|
||||
## Installing, loading, removing
|
||||
|
||||
A plain install puts the lane's unit in, and its first Load from the cockpit pulls its image (4.5 GB, 2.7 to download)
|
||||
and fetches its files (112 GB; 85 for UD-IQ3_XXS), then starts it; `--with-flash-unsloth` or `--all-weights` does all
|
||||
and fetches its files (85 GB; 112 for UD-Q4_K_XL), then starts it; `--with-flash-unsloth` or `--all-weights` does all
|
||||
of it at install and proves it serves, `--no-flash-unsloth` leaves it out of that run. From a terminal:
|
||||
`./prepare-lane.sh flash-unsloth`, then `./switch-model.sh flash-unsloth` (or `flash-unsloth-iq3`);
|
||||
`./switch-model.sh flash-unsloth --fetch` fetches its files alone. A 64 GB DGX Spark
|
||||
`./prepare-lane.sh flash-unsloth`, then `./switch-model.sh flash-unsloth-iq3` (or `flash-unsloth`);
|
||||
`./switch-model.sh flash-unsloth-iq3 --fetch` fetches its files alone. A 64 GB DGX Spark
|
||||
does not hold it, and refuses it. `./install-flash-unsloth.sh --uninstall` removes its unit and its container, gives the
|
||||
boot back to the text lane it took it from, and keeps its files and its image, said, for you to delete.
|
||||
@@ -13,8 +13,8 @@ from [BENCHMARKS.md](../../BENCHMARKS.md) and the lane pages it links, nothing h
|
||||
| Nemotron 3.5 Super VL NVFP4 · NVIDIA | vLLM nightly 77154ca6 + b12x 1.5.1 | [nemotron-35-super-vl.md](nemotron-35-super-vl.md) | `./switch-model.sh nemotron-super` | 69.5 tok/s on code alone, a 1M window with images and video |
|
||||
| Kolibri-1 FP8 · Aleph Alpha (German) | vLLM 0.29.0 + Aleph Alpha plugin 1.0.0 | [kolibri-1.md](kolibri-1.md) | `./switch-model.sh kolibri` | 48 tok/s alone, German-first |
|
||||
| Ornith 1.5 122B NVFP4 · Ornith AI | vLLM b12x build 8244d1c | [ornith-122b.md](ornith-122b.md) | `./switch-model.sh ornith-122b` | 42.4 tok/s, vision, a 1M window |
|
||||
| Qwen3.8 Flash-Next UD-IQ3_XXS GGUF · Unsloth | llama.cpp b12316 | [qwen38-flash-next-unsloth-gguf.md](qwen38-flash-next-unsloth-gguf.md) | `./switch-model.sh flash-unsloth-iq3` | the lane's default: 69.4 tok/s on code alone against 55.6 for UD-Q4_K_XL, GSM8K 98.8 %, four requests at once |
|
||||
| Qwen3.8 Flash-Next UD-Q4_K_XL GGUF · Unsloth | llama.cpp b12316 | [qwen38-flash-next-unsloth-gguf.md](qwen38-flash-next-unsloth-gguf.md) | `./switch-model.sh flash-unsloth` | 51.8 tok/s on code and 123.7 on a rewrite of code at the card's sampling |
|
||||
| Qwen3.8 Flash-Next UD-IQ3_XXS GGUF · Unsloth | llama.cpp b12316 | [qwen38-flash-next-unsloth-gguf.md](qwen38-flash-next-unsloth-gguf.md) | `./switch-model.sh flash-unsloth-iq3` | 69.4 tok/s on code alone against 55.6 for UD-Q4_K_XL at temperature 0, and four requests at once |
|
||||
| Qwen-Image 2.1 · Qwen | SGLang Diffusion 0.5.21 | [qwen-image-21.md](qwen-image-21.md) | `./switch-model.sh image` | 1024x1024 in 7.5 s with its Turbo |
|
||||
| MiniMax-H3 · MiniMax, video with sound | SGLang Diffusion 0.5.21 | [minimax-h3.md](minimax-h3.md) | `./switch-model.sh video` | 4 s of 480P in about 127 s with its Turbo |
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# Qwen3.8 Flash-Next in Unsloth's GGUF on a DGX Spark (llama.cpp)
|
||||
|
||||
`unsloth/Qwen3.8-Flash-Next-GGUF`, Unsloth's GGUF of Qwen3.8-Flash-Next, in its dynamic 4-bit quantization UD-Q4_K_XL:
|
||||
76.9 GiB of weights and the model's n-gram (PLE) table in IQ4_NL, 26.8 GiB, which stays on the disk and is read as the
|
||||
tokens need it; or in its 3-bit UD-IQ3_XXS, the lane's second target (below). This stack serves it with llama.cpp's
|
||||
`unsloth/Qwen3.8-Flash-Next-GGUF`, Unsloth's GGUF of Qwen3.8-Flash-Next, in its 3-bit UD-IQ3_XXS by default since
|
||||
v1.49 (51.1 GiB of weights, below) or its dynamic 4-bit UD-Q4_K_XL (76.9 GiB, v1.48's, whose figures come first), and
|
||||
the model's n-gram (PLE) table in IQ4_NL, 26.8 GiB, which stays on the disk and is read as the tokens need it. This stack serves it with llama.cpp's
|
||||
own server (the project's arm64 CUDA image, b12316), its n-gram lookup and ggml-org's GGUF of the DFlash2 draft, as a
|
||||
lane of its own beside the [flash lane](qwen38-flash-next.md) (SGLang) and the
|
||||
[FP4-Local lane](qwen38-flash-next-fp4-local.md) (vLLM), which serve the same model.
|
||||
@@ -10,7 +10,7 @@ lane of its own beside the [flash lane](qwen38-flash-next.md) (SGLang) and the
|
||||
## One command
|
||||
|
||||
```bash
|
||||
./switch-model.sh flash-unsloth # or: flash-unsloth-iq3
|
||||
./switch-model.sh flash-unsloth-iq3 # or: flash-unsloth, UD-Q4_K_XL
|
||||
```
|
||||
|
||||
## Measured on our box (ASUS Ascent GX10, 128 GB)
|
||||
@@ -32,21 +32,23 @@ lane of its own beside the [flash lane](qwen38-flash-next.md) (SGLang) and the
|
||||
- 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.
|
||||
- 117 GB on disk for UD-Q4_K_XL: 112 for its GGUF files and their draft, 4.5 for the image (90 for UD-IQ3_XXS: 85 and
|
||||
4.5).
|
||||
- Measures of minutes, run back to back: no continuous load was measured.
|
||||
- `flash-unsloth-iq3`, the same lane on Unsloth's **UD-IQ3_XXS** (its experts in 3-bit, 51.1 GiB of weights against
|
||||
76.9, the same n-gram table), serves **four requests at once** with 262,144 tokens each, its KV cache in q8_0, and its
|
||||
- `flash-unsloth-iq3`, the lane's default since v1.49, on Unsloth's **UD-IQ3_XXS** (its experts in 3-bit, 51.1 GiB of
|
||||
weights against 76.9, the same n-gram table), serves **four requests at once** with 262,144 tokens each, its KV cache in q8_0, and its
|
||||
1M mode as above. One request at temperature 0, each text's first pass, both quantizations with two windows
|
||||
(2026-11-14, one measure each): **69.4 / 76.4 / 37.7 / 171.7 tok/s** in code, reasoning, prose and a rewrite of code,
|
||||
against 55.6 / 60.5 / 32.0 / 129.8 for UD-Q4_K_XL; with its four windows, 66.2 tok/s for one request and 71.5 in all
|
||||
with four, 39 GiB left to the box at ready; with eight windows, the box's memory guard stopped the engine under
|
||||
GSM8K's eight requests.
|
||||
TODO(measure): its quality (GSM8K, HumanEval, MMLU) against UD-Q4_K_XL, its lowest memory under load, and `bench.sh`'s
|
||||
median; until then UD-Q4_K_XL stays the lane's default. 85 GB of files, 55 beside UD-Q4_K_XL's.
|
||||
GSM8K's eight requests. At the medium effort and temperature 0, four requests at once on its four windows (llama.cpp
|
||||
b12291 built on the box, 2026-11-14): GSM8K **98.8 %** (250 questions; 98.4 % for UD-Q4_K_XL on the same bench) and
|
||||
HumanEval **98.2 %** (164 problems; 99.4 %), and the box kept 28.7 GiB available at the lowest under GSM8K (37 at
|
||||
ready). MMLU and `bench.sh`'s median not measured. 85 GB of files, 55 beside UD-Q4_K_XL's.
|
||||
|
||||
## What it is good at
|
||||
|
||||
The flash model as a GGUF on llama.cpp, in about half the flash lane's disk (117 GB against 223): a reference for
|
||||
The flash model as a GGUF on llama.cpp, in under half the flash lane's disk (90 GB against 223): a reference for
|
||||
whoever runs the model that way, and the lane that follows Unsloth's and llama.cpp's releases. The two other flash
|
||||
lanes are ahead on a long prompt (llama.cpp computes one about 2.6 times slower than the FP4-Local lane) and on several
|
||||
requests at once.
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
# flash-unsloth installs FILE
|
||||
#
|
||||
# TWO QUANTIZATIONS, ONE LANE (v1.49). Unsloth's repository holds every quantization of the model, and the lane serves
|
||||
# two, each a switch target under the one name clients ask for: UD-Q4_K_XL (flash-unsloth) and UD-IQ3_XXS
|
||||
# (flash-unsloth-iq3), its experts in 3-bit, 51.1 GiB of weights, the same n-gram table. FLASH_UNSLOTH_DEFAULT below
|
||||
# two, each a switch target under the one name clients ask for: UD-IQ3_XXS (flash-unsloth-iq3), its experts in 3-bit,
|
||||
# 51.1 GiB of weights, the default since v1.49.0, and UD-Q4_K_XL (flash-unsloth), 76.9, the same n-gram table. FLASH_UNSLOTH_DEFAULT below
|
||||
# is the one a new install serves; an update keeps the one its unit names; ./switch-model.sh flash-unsloth-iq3 (or
|
||||
# flash-unsloth) moves the lane to the other, and its first switch downloads what it lacks.
|
||||
#
|
||||
@@ -31,8 +31,8 @@
|
||||
#
|
||||
# install.sh puts this lane's unit in on every plain install, like the other lanes, and its first Load from the
|
||||
# cockpit pulls its image and fetches its files; ./install.sh --no-flash-unsloth leaves it out of the run that passes
|
||||
# it. It takes 112 GB of GGUF files on UD-Q4_K_XL (the model's four parts, 111.3 GB, and the draft, 0.7), 85 on
|
||||
# UD-IQ3_XXS (55 more beside UD-Q4_K_XL's, whose n-gram table it shares), and an image of 4.5 GB (2.7 to download):
|
||||
# it. It takes 85 GB of GGUF files on UD-IQ3_XXS (the model's four parts, 83.6 GB, and the draft, 0.7), 112 on
|
||||
# UD-Q4_K_XL (83 more beside UD-IQ3_XXS's, whose n-gram table it shares), and an image of 4.5 GB (2.7 to download):
|
||||
# when the disk does not have the room, this refuses before downloading anything.
|
||||
#
|
||||
# WHY A LANE OF ITS OWN. The flash lane serves the same model on SGLang, from NVFP4 checkpoints, and the FP4-Local lane
|
||||
@@ -120,10 +120,12 @@ FLASH_UNSLOTH_IQ3_PART4="UD-IQ3_XXS/Qwen3.8-Flash-Next-UD-IQ3_XXS-00004-of-00004
|
||||
# THE LANE'S DEFAULT TARGET, the one place it is set: flash-unsloth (UD-Q4_K_XL, FLASH_UNSLOTH_PART1 to 4) or
|
||||
# flash-unsloth-iq3 (UD-IQ3_XXS, the four parts just above). A new install serves it, and so do an update of a unit that
|
||||
# names neither and ./install.sh --recommended; an update keeps the target its unit names, and FLASH_UNSLOTH_TARGET,
|
||||
# which ./switch-model.sh gives this installer, names another. UD-Q4_K_XL as v1.48.0 shipped it: UD-IQ3_XXS decodes
|
||||
# about 25 % faster at a first pass (69.4 tok/s in code against 55.6, 2026-11-14, one measure each), and takes its place
|
||||
# once its quality is proven (decision 1359).
|
||||
FLASH_UNSLOTH_DEFAULT="flash-unsloth"
|
||||
# which ./switch-model.sh gives this installer, names another (install.sh gives it too, to move a unit that serves
|
||||
# UD-Q4_K_XL because v1.48 installed it by default: conformity.py's OLD_DEFAULTS). UD-IQ3_XXS since v1.49.0 (decision
|
||||
# 1376), UD-Q4_K_XL before it: UD-IQ3_XXS decodes about 25 % faster at a first pass (69.4 tok/s in code against 55.6,
|
||||
# 2026-11-14, one measure each) and serves four requests at once where UD-Q4_K_XL serves two, with GSM8K at 98.8 % (98.4
|
||||
# for UD-Q4_K_XL on the same bench) and HumanEval at 98.2 % (99.4), as the lane page says.
|
||||
FLASH_UNSLOTH_DEFAULT="flash-unsloth-iq3"
|
||||
# The draft, ggml-org's GGUF of the DFlash2 head of incoai (Q8_0): measured against the MTP head and the DFlash2 head
|
||||
# in Q4_0, the one that decodes fastest at the model card's sampling (docs/flash-unsloth-lane.md).
|
||||
FLASH_UNSLOTH_DRAFT_REPO="ggml-org/Qwen3.8-Flash-Next-GGUF"
|
||||
|
||||
+27
-4
@@ -108,6 +108,7 @@ if [ -n "${FLASH_UNSLOTH_CONTEXT+set}" ]; then
|
||||
fi
|
||||
# the side lanes' checkpoints, which their installers read from the environment (2026-10-17)
|
||||
_ENV_KOLIBRI_VARIANT="${KOLIBRI_VARIANT:-}"; _ENV_IMAGE_MODEL="${IMAGE_MODEL:-}"; _ENV_VIDEO_VARIANT="${VIDEO_VARIANT:-}"
|
||||
_ENV_FLASH_UNSLOTH_TARGET="${FLASH_UNSLOTH_TARGET:-}"
|
||||
# A run installs the text lane that does not serve as well, beside the one it serves: it
|
||||
# starts this script again for that lane, with QWEN38_SECONDARY naming it (27b or flash).
|
||||
# That run converges on that lane's own installed choices, installs its unit without
|
||||
@@ -620,7 +621,7 @@ when the HF cache is on another disk than the home directory's, for the copy
|
||||
of its n-gram table), the Ornith 122B lane (Ornith AI's Ornith 1.5 122B,
|
||||
on vLLM, in the Qwen3.8 Flash-Next FP4-Local lane's image: 78 beside it, else 96)
|
||||
and the Qwen3.8 Flash-Next Unsloth GGUF lane (Unsloth's GGUF of the flash
|
||||
model, on llama.cpp, 117). The lane that serves proves it serves before the run ends; on a new box the 27B takes 58 GB
|
||||
model, on llama.cpp, 90). The lane that serves proves it serves before the run ends; on a new box the 27B takes 58 GB
|
||||
of disk, about 39 GB of
|
||||
downloads (about 6 to 7 minutes at 100 MB/s). A lane installed whole (--all-weights, --with-<lane>)
|
||||
that does not fit on the disk is left out and named at the end, with the
|
||||
@@ -673,7 +674,7 @@ without a terminal.
|
||||
--no-ornith-122b leave the Ornith 1.5 122B lane (vLLM, 96 GB) out of this
|
||||
run, the same way (./install-ornith-122b.sh --uninstall)
|
||||
--with-ornith-122b install it whole now and prove it
|
||||
--no-flash-unsloth leave the Qwen3.8 Flash-Next Unsloth GGUF lane (llama.cpp, 117 GB)
|
||||
--no-flash-unsloth leave the Qwen3.8 Flash-Next Unsloth GGUF lane (llama.cpp, 90 GB)
|
||||
out of this run, the same way (./install-flash-unsloth.sh --uninstall)
|
||||
--with-flash-unsloth install it whole now and prove it
|
||||
--all-weights install every lane whole now (the flash beside the 27B,
|
||||
@@ -773,6 +774,10 @@ done
|
||||
[ "$PLAN_ONLY" -eq 0 ] || [ "$NO_SERVICE" -eq 0 ] \
|
||||
|| die "--plan lists what a run does to the box's services; --no-service writes none."
|
||||
case "$RECOMMENDED" in 0|1) ;; *) die "QWEN38_RECOMMENDED takes 0 or 1 (got: $RECOMMENDED)" ;; esac
|
||||
case "$_ENV_FLASH_UNSLOTH_TARGET" in
|
||||
""|flash-unsloth|flash-unsloth-iq3) ;;
|
||||
*) die "FLASH_UNSLOTH_TARGET takes flash-unsloth (UD-Q4_K_XL) or flash-unsloth-iq3 (UD-IQ3_XXS), got: $_ENV_FLASH_UNSLOTH_TARGET" ;;
|
||||
esac
|
||||
# A terminal opened before its account joined the docker group has none of the group's rights: the
|
||||
# run goes on with them from here, where it has printed and exported nothing yet (lanes.sh). An
|
||||
# account outside the group is added at step 1, after every refusal that comes before it.
|
||||
@@ -1509,6 +1514,20 @@ if [ -z "$SECONDARY" ]; then
|
||||
lane_wanted ornith-122b "$NO_ORNITH_122B" "$WITH_ORNITH_122B"; WANT_ORNITH_122B="$WANT"
|
||||
lane_wanted flash-unsloth "$NO_FLASH_UNSLOTH" "$WITH_FLASH_UNSLOTH"; WANT_FLASH_UNSLOTH="$WANT"
|
||||
fi
|
||||
# The Unsloth GGUF lane's target: its installer keeps the one its unit serves, and UD-Q4_K_XL (flash-unsloth) is what
|
||||
# v1.48 installed by default. Such a unit moves to the default since v1.49.0, UD-IQ3_XXS (decision 1376), as an old
|
||||
# default does (old_default_moves above), handed to the installer as FLASH_UNSLOTH_TARGET; one given on the command
|
||||
# line, or ./install.sh --recommended (the installer's default whatever the unit names), decides instead.
|
||||
if [ "$WANT_FLASH_UNSLOTH" -eq 1 ] && [ -z "$_ENV_FLASH_UNSLOTH_TARGET" ] && [ "$RECOMMENDED" -eq 0 ]; then
|
||||
_fu_cur="$(flash_unsloth_target "$FLASH_UNSLOTH_UNIT_PATH" "$REPO_DIR/install-flash-unsloth.sh")"
|
||||
_fu_def="$(sed -n 's/^FLASH_UNSLOTH_DEFAULT="\([a-z0-9-]*\)"$/\1/p' "$REPO_DIR/install-flash-unsloth.sh" 2>/dev/null || true)"
|
||||
if [ -n "$_fu_cur" ] && [ -n "$_fu_def" ] && [ "$_fu_cur" != "$_fu_def" ] && old_default_moves FLASH_UNSLOTH_TARGET "$_fu_cur"; then
|
||||
echo "Moving the Unsloth GGUF lane from $_fu_cur to $_fu_def, the default since $MOVED_TAG: $_fu_cur is what installs"
|
||||
echo " before it got, not a choice this box recorded. To keep it: FLASH_UNSLOTH_TARGET=$_fu_cur ./install.sh"
|
||||
export FLASH_UNSLOTH_TARGET="$_fu_def"
|
||||
fi
|
||||
unset _fu_cur _fu_def
|
||||
fi
|
||||
too_big(){ local l; for l in ${TOO_BIG[@]+"${TOO_BIG[@]}"}; do [ "$l" = "$1" ] && return 0; done; return 1; } # $1 a lane
|
||||
if [ "${#TOO_BIG[@]}" -gt 0 ]; then
|
||||
# the lanes that fit, as boxmem.py decides them, rather than a second list of them here (review,
|
||||
@@ -1647,6 +1666,7 @@ collect_choices() {
|
||||
if [ -n "$_ENV_KOLIBRI_VARIANT" ]; then CHOSE+=(--chose "KOLIBRI_VARIANT=$_ENV_KOLIBRI_VARIANT"); fi
|
||||
if [ -n "$_ENV_IMAGE_MODEL" ]; then CHOSE+=(--chose "IMAGE_MODEL=$_ENV_IMAGE_MODEL"); fi
|
||||
if [ -n "$_ENV_VIDEO_VARIANT" ]; then CHOSE+=(--chose "VIDEO_VARIANT=$_ENV_VIDEO_VARIANT"); fi
|
||||
if [ -n "$_ENV_FLASH_UNSLOTH_TARGET" ]; then CHOSE+=(--chose "FLASH_UNSLOTH_TARGET=$_ENV_FLASH_UNSLOTH_TARGET"); fi
|
||||
return 0
|
||||
}
|
||||
# This box against what this release recommends, in one list before anything changes
|
||||
@@ -2484,9 +2504,12 @@ OC_FLASH_UNSLOTH_CTX=""; OC_FLASH_UNSLOTH_OUT=""; OC_FLASH_UNSLOTH_NAME=""; OC_F
|
||||
if [ "$OC_FLASH_UNSLOTH" -eq 1 ]; then
|
||||
# its unit's window, the -c its llama-server takes, and the pair of that window: 262,144 for each request, 1,048,576
|
||||
# with FLASH_UNSLOTH_CONTEXT=1m (decisions 1316 and 1318, 2026-11-12); and the target the unit serves, which the
|
||||
# entry's name says (lanes.sh), its installer's default for a unit that names neither of its two (v1.49)
|
||||
# entry's name says (lanes.sh), its installer's default for a unit that names neither of its two (v1.49); the one
|
||||
# this run hands its installer (FLASH_UNSLOTH_TARGET, given or moved above) when it installs the lane, as the unit
|
||||
# it renders later in the run serves that one
|
||||
OC_FLASH_UNSLOTH_WINDOW="$(llamacpp_window "$FLASH_UNSLOTH_UNIT_PATH")"
|
||||
OC_FLASH_UNSLOTH_TARGET="$(flash_unsloth_target "$FLASH_UNSLOTH_UNIT_PATH" "$REPO_DIR/install-flash-unsloth.sh")"
|
||||
[ "$WANT_FLASH_UNSLOTH" -ne 1 ] || [ -z "${FLASH_UNSLOTH_TARGET:-}" ] || OC_FLASH_UNSLOTH_TARGET="$FLASH_UNSLOTH_TARGET"
|
||||
[ -n "$OC_FLASH_UNSLOTH_TARGET" ] \
|
||||
|| OC_FLASH_UNSLOTH_TARGET="$(sed -n 's/^FLASH_UNSLOTH_DEFAULT="\([a-z0-9-]*\)"$/\1/p' "$REPO_DIR/install-flash-unsloth.sh")"
|
||||
OC_FLASH_UNSLOTH_PAIR="$("$REPO_DIR/oc-limits.sh" "$OC_FLASH_UNSLOTH_TARGET" --from "$FLASH_UNSLOTH_UNIT_PATH")" \
|
||||
@@ -4054,7 +4077,7 @@ except Exception as e:
|
||||
lane_line "Super VL " "$NEMOTRON_SUPER_STATE" nemotron-super nemotron-super "102 GB" "$NEMOTRON_SUPER_UNIT_PATH"
|
||||
lane_line "FP4-Local " "$FLASH_LOCAL_STATE" flash-local flash-local "121 GB" "$FLASH_LOCAL_UNIT_PATH"
|
||||
lane_line "Ornith 122B" "$ORNITH_122B_STATE" ornith-122b ornith-122b "96 GB" "$ORNITH_122B_UNIT_PATH"
|
||||
lane_line "Unsloth " "$FLASH_UNSLOTH_STATE" flash-unsloth flash-unsloth "117 GB" "$FLASH_UNSLOTH_UNIT_PATH"
|
||||
lane_line "Unsloth " "$FLASH_UNSLOTH_STATE" flash-unsloth flash-unsloth "90 GB" "$FLASH_UNSLOTH_UNIT_PATH"
|
||||
[ "$LANE" = "27b" ] && echo " Benchmark : ./bench.sh"
|
||||
# A 64 GB DGX Spark serves Nemotron 3.5 Bolt (Hasan, 2026-10-24): there the 27B gets two requests
|
||||
# and a pool of 59,625 tokens (measured on a 64 GB budget, 2026-10-24, its Mamba cache taking much
|
||||
|
||||
@@ -836,6 +836,10 @@ if [ "$CHOICE" = "flash-unsloth" ] || [ "$CHOICE" = "flash-unsloth-iq3" ]; then
|
||||
systemctl is-active --quiet "$u" 2>/dev/null && RUNNING="$u"
|
||||
done
|
||||
printf '\n\033[1;32mSwitch queued: %s, %s (%s)\033[0m\n' "$FLASH_UNSLOTH_REPO" "$CHOICE" "$FLASH_UNSLOTH_UNIT_NAME"
|
||||
# The target is the operator's choice from here, as the Kolibri lane's checkpoint (v1.49.0): recorded in an
|
||||
# installed.json that exists, erased when it is the recommended one, so an update moves no chosen UD-Q4_K_XL.
|
||||
python3 "$REPO_DIR/conformity.py" choose --config-dir "$CONFIG_DIR" --repo-dir "$REPO_DIR" \
|
||||
FLASH_UNSLOTH_TARGET "$CHOICE" || true
|
||||
if [ -n "$RUNNING" ]; then
|
||||
echo "Effective after: sudo systemctl stop $RUNNING && sudo systemctl start $FLASH_UNSLOTH_UNIT_NAME (or next reboot)"
|
||||
elif systemctl is-active --quiet "$FLASH_UNSLOTH_UNIT_NAME" 2>/dev/null; then
|
||||
|
||||
@@ -82,7 +82,8 @@ def box(context="1m", host="127.0.0.1", port="30000", hf=None, target27="RadixAr
|
||||
"modelopt_fp4", "16"),
|
||||
flash=True, flash_target="RadixArk/Qwen3.8-Flash-Next-NVFP4", tier="concurrency", replay="1",
|
||||
token_map="65536", ple=None, proxy_bind="0.0.0.0", proxy_port="30001", key_at=None, record=None,
|
||||
side=True, kolibri="Aleph-Alpha/Kolibri-1", image_model="Qwen/Qwen-Image-2.1", video_variant="fl2va"):
|
||||
side=True, kolibri="Aleph-Alpha/Kolibri-1", image_model="Qwen/Qwen-Image-2.1", video_variant="fl2va",
|
||||
unsloth="UD-IQ3_XXS/Qwen3.8-Flash-Next-UD-IQ3_XXS-00001-of-00004.gguf"):
|
||||
"""(units dir, config dir) of a box whose units are the templates rendered with these values
|
||||
(the recommended ones by default). key_at: the mtime of its API key (None: no key);
|
||||
record: installed.json, as a dict or as raw text; side: the Kolibri, image and video units."""
|
||||
@@ -118,6 +119,11 @@ def box(context="1m", host="127.0.0.1", port="30000", hf=None, target27="RadixAr
|
||||
**common, "VIDEO_BIND": host, "VIDEO_IP_DENY": ip_deny(host), "VIDEO_IP_ALLOW": "localhost" if ip_deny(host) else "", "VIDEO_PORT": "30022", "VIDEO_LANE_DIR": f"{lanes}/qwen38-video",
|
||||
"VIDEO_VENV": f"{lanes}/qwen38-video/venv", "VIDEO_MODEL": "MiniMaxAI/MiniMax-H3",
|
||||
"VIDEO_VARIANT": video_variant}))
|
||||
snap = "/root/.cache/huggingface/hub/models--unsloth--Qwen3.8-Flash-Next-GGUF/snapshots/" + "f" * 40
|
||||
(units / "qwen38-flash-unsloth.service").write_text(render("qwen38-flash-unsloth.service.template", {
|
||||
**common, "PORT": "30028", "IMAGE": "ghcr.io/ggml-org/llama.cpp@sha256:" + "a" * 64, "MODEL": f"{snap}/{unsloth}",
|
||||
"DRAFT": "/root/draft.gguf", "FILES": "", "CTX": "524288", "SLOTS": "-np 4", "KV": "-ctk q8_0 -ctv q8_0",
|
||||
"YARN": "", "LOAD": "none", "SPEC": "ngram-mod,draft-dflash", "ENGINE_BIND": host}))
|
||||
if key_at is not None:
|
||||
(cfg / "api-key").write_text("not-a-key\n")
|
||||
t = datetime.datetime.fromisoformat(key_at).timestamp()
|
||||
@@ -168,6 +174,8 @@ class WhatTheBoxServes(unittest.TestCase):
|
||||
({"token_map": "0"}, "SPEC_TOKEN_MAP_SIZE", "0"),
|
||||
({"token_map": "32768"}, "SPEC_TOKEN_MAP_SIZE", "32768"),
|
||||
({"replay": "0"}, "FLASH_REPLAYSSM_SPEC", "0"),
|
||||
({"unsloth": "UD-Q4_K_XL/Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf"}, "FLASH_UNSLOTH_TARGET",
|
||||
"flash-unsloth"),
|
||||
)
|
||||
for kw, knob, want in cases:
|
||||
with self.subTest(**{knob: want}):
|
||||
@@ -206,14 +214,16 @@ class AnOldDefaultOnABoxWithoutInstalledJson(unittest.TestCase):
|
||||
|
||||
def test_older_than_the_change_it_is_an_old_default(self):
|
||||
for knob, kw in (("ENGINE_BIND", {"host": "0.0.0.0"}), ("CONTEXT_MODE", {"context": "native"}),
|
||||
("FLASH_TIER", {"tier": "context"}), ("DRAFT2", {"draft": ZLAB})):
|
||||
("FLASH_TIER", {"tier": "context"}), ("DRAFT2", {"draft": ZLAB}),
|
||||
("FLASH_UNSLOTH_TARGET", {"unsloth": "UD-Q4_K_XL/Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf"})):
|
||||
with self.subTest(knob=knob):
|
||||
units, cfg = box(key_at=shift(OLD[knob].instant, -60), **kw)
|
||||
self.assertEqual(classes(units, cfg)[knob], ("old-default", "box-before"))
|
||||
|
||||
def test_younger_than_the_change_it_is_a_choice(self):
|
||||
for knob, kw in (("ENGINE_BIND", {"host": "0.0.0.0"}), ("CONTEXT_MODE", {"context": "native"}),
|
||||
("FLASH_TIER", {"tier": "context"}), ("DRAFT2", {"draft": ZLAB})):
|
||||
("FLASH_TIER", {"tier": "context"}), ("DRAFT2", {"draft": ZLAB}),
|
||||
("FLASH_UNSLOTH_TARGET", {"unsloth": "UD-Q4_K_XL/Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf"})):
|
||||
with self.subTest(knob=knob):
|
||||
units, cfg = box(key_at=shift(OLD[knob].instant, 60), **kw)
|
||||
self.assertEqual(classes(units, cfg)[knob], ("choice", "box-after"))
|
||||
@@ -267,6 +277,13 @@ class OnceInstalledJsonExists(unittest.TestCase):
|
||||
record=a_record(ENGINE_BIND="0.0.0.0"))
|
||||
self.assertEqual(classes(units, cfg)["ENGINE_BIND"], ("choice", "recorded"))
|
||||
|
||||
def test_a_recorded_unsloth_q4_stays_a_choice(self):
|
||||
"""UD-Q4_K_XL chosen by a switch (installed.json) is not moved by v1.49.0's default."""
|
||||
units, cfg = box(unsloth="UD-Q4_K_XL/Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf",
|
||||
key_at=shift(OLD["FLASH_UNSLOTH_TARGET"].instant, -60),
|
||||
record=a_record(FLASH_UNSLOTH_TARGET="flash-unsloth"))
|
||||
self.assertEqual(classes(units, cfg)["FLASH_UNSLOTH_TARGET"], ("choice", "recorded"))
|
||||
|
||||
def test_an_unrecorded_old_default_is_an_old_default_even_on_a_young_box(self):
|
||||
units, cfg = box(host="0.0.0.0", key_at=NOW, record=a_record())
|
||||
self.assertEqual(classes(units, cfg)["ENGINE_BIND"], ("old-default", "not-recorded"))
|
||||
|
||||
@@ -112,9 +112,9 @@ class TheRecommendedState(unittest.TestCase):
|
||||
|
||||
|
||||
class TheOldDefaults(unittest.TestCase):
|
||||
def test_the_four_kept_as_choices_are_listed(self):
|
||||
def test_the_five_kept_as_choices_are_listed(self):
|
||||
self.assertEqual({o.knob for o in conformity.OLD_DEFAULTS},
|
||||
{"ENGINE_BIND", "CONTEXT_MODE", "FLASH_TIER", "DRAFT2"})
|
||||
{"ENGINE_BIND", "CONTEXT_MODE", "FLASH_TIER", "DRAFT2", "FLASH_UNSLOTH_TARGET"})
|
||||
|
||||
def test_each_has_its_release_its_date_and_its_words_in_the_changelog(self):
|
||||
for old in conformity.OLD_DEFAULTS:
|
||||
|
||||
@@ -94,6 +94,10 @@ def exec_command(unit: str) -> str:
|
||||
|
||||
|
||||
class TheStagedUnit(unittest.TestCase):
|
||||
# UD-Q4_K_XL's unit, named by its target: the lane's default is UD-IQ3_XXS since v1.49.0 (decision 1376), whose
|
||||
# own forms TheSecondTarget holds; a stage that names a target of its own keeps it, and None names none
|
||||
TARGET = "flash-unsloth"
|
||||
|
||||
def setUp(self):
|
||||
self.t = pathlib.Path(tempfile.mkdtemp(prefix="unsloth-stage-"))
|
||||
self.home = self.t / "home"
|
||||
@@ -116,7 +120,7 @@ class TheStagedUnit(unittest.TestCase):
|
||||
|
||||
def stage(self, **env):
|
||||
e = {"PATH": "/usr/bin:/bin", "HOME": str(self.home), "HF_CACHE": str(self.hf),
|
||||
"LANES_UNIT_DIR": str(self.units), **env}
|
||||
"LANES_UNIT_DIR": str(self.units), **({"FLASH_UNSLOTH_TARGET": self.TARGET} if self.TARGET else {}), **env}
|
||||
r = subprocess.run(["bash", str(REPO / "install-flash-unsloth.sh"), "--stage", str(self.out)],
|
||||
capture_output=True, text=True, env=e, timeout=120)
|
||||
return r.returncode, r.stdout + r.stderr
|
||||
@@ -280,7 +284,7 @@ class TheStagedUnit(unittest.TestCase):
|
||||
(repo / "install-flash-unsloth.sh").write_text(text)
|
||||
self.out.unlink(missing_ok=True)
|
||||
e = {"PATH": "/usr/bin:/bin", "HOME": str(self.home), "HF_CACHE": str(self.hf), "LANES_UNIT_DIR": str(self.units),
|
||||
**(env or {})}
|
||||
**({"FLASH_UNSLOTH_TARGET": self.TARGET} if self.TARGET else {}), **(env or {})}
|
||||
r = subprocess.run(["bash", str(repo / "install-flash-unsloth.sh"), "--stage", str(self.out)], capture_output=True,
|
||||
text=True, env=e, timeout=120)
|
||||
return r.returncode, r.stdout + r.stderr, exec_command(self.out.read_text()) if self.out.exists() else ""
|
||||
@@ -352,6 +356,7 @@ class TheWindowChosenAtInstall(unittest.TestCase):
|
||||
available at the lowest). The choice is kept for the Loads after, which stage the unit with none of the user's
|
||||
environment, by the render that takes it and by --prepare, and the uninstall takes it away."""
|
||||
setUp, tearDown, stage = TheStagedUnit.setUp, TheStagedUnit.tearDown, TheStagedUnit.stage
|
||||
TARGET = TheStagedUnit.TARGET
|
||||
NATIVE = r"-c 524288 -np 2\s+-md "
|
||||
ONE = r"-c 1048576 -np 1 -ctk q8_0 -ctv q8_0 --rope-scaling yarn --yarn-orig-ctx 262144 --rope-scale 4\s+-md "
|
||||
|
||||
@@ -449,6 +454,7 @@ class TheSecondTarget(unittest.TestCase):
|
||||
setUp, tearDown, stage, staged_with = (TheStagedUnit.setUp, TheStagedUnit.tearDown, TheStagedUnit.stage,
|
||||
TheStagedUnit.staged_with)
|
||||
IQ3 = {"FLASH_UNSLOTH_TARGET": "flash-unsloth-iq3"}
|
||||
TARGET = None # the installer's own choice: the default, or the unit's
|
||||
|
||||
def read(self, fn):
|
||||
"""lanes.sh's fn of the staged unit: its window, or its target."""
|
||||
@@ -526,13 +532,18 @@ class TheSecondTarget(unittest.TestCase):
|
||||
self.assertEqual((rc, self.read("flash_unsloth_target")), (0, PINS["FLASH_UNSLOTH_DEFAULT"]), out)
|
||||
|
||||
def test_the_default_is_one_line_of_the_installer(self):
|
||||
# UD-Q4_K_XL until UD-IQ3_XXS's quality is proven (decision 1359): FLASH_UNSLOTH_DEFAULT alone moves it
|
||||
self.assertEqual(PINS["FLASH_UNSLOTH_DEFAULT"], "flash-unsloth")
|
||||
# UD-IQ3_XXS since v1.49.0 (decision 1376: GSM8K 98.8 % and HumanEval 98.2 % on UD-Q4_K_XL's bench, four requests
|
||||
# at once): FLASH_UNSLOTH_DEFAULT alone sets it, and a stage that names no target and finds no unit serves it
|
||||
self.assertEqual(PINS["FLASH_UNSLOTH_DEFAULT"], "flash-unsloth-iq3")
|
||||
self.assertEqual(len(re.findall(r"^FLASH_UNSLOTH_DEFAULT=", TEXT, re.M)), 1)
|
||||
rc, out, cmd = self.staged_with(DEFAULT="flash-unsloth-iq3")
|
||||
rc, out = self.stage()
|
||||
self.assertEqual((rc, self.read("flash_unsloth_target")), (0, "flash-unsloth-iq3"), out)
|
||||
self.assertRegex(exec_command(self.out.read_text()),
|
||||
rf"-np {PINS['FLASH_UNSLOTH_IQ3_SLOTS']} -ctk {PINS['FLASH_UNSLOTH_IQ3_KV']} ")
|
||||
rc, out, cmd = self.staged_with(DEFAULT="flash-unsloth")
|
||||
self.assertEqual(rc, 0, out)
|
||||
self.assertIn(f"/{IQ3_PART1_PATH} ", cmd)
|
||||
self.assertRegex(cmd, rf"-np {PINS['FLASH_UNSLOTH_IQ3_SLOTS']} -ctk {PINS['FLASH_UNSLOTH_IQ3_KV']} ")
|
||||
self.assertIn(f"/{PART1_PATH} ", cmd)
|
||||
self.assertRegex(cmd, rf"-c 524288 -np {PINS['FLASH_UNSLOTH_SLOTS']}\s+-md ")
|
||||
rc, out, cmd = self.staged_with(DEFAULT="iq3")
|
||||
self.assertNotEqual(rc, 0)
|
||||
self.assertIn("FLASH_UNSLOTH_DEFAULT must be flash-unsloth or flash-unsloth-iq3, got: iq3", out)
|
||||
|
||||
@@ -36,7 +36,9 @@ def generate(lane, mode, unit_ctx=None, flash_unit=False, model="RadixArk/Qwen3.
|
||||
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, unsloth_unit=False,
|
||||
unsloth_boot=False, unsloth_slots="-c 524288 -np 2", unsloth_model="x.gguf"):
|
||||
unsloth_boot=False, unsloth_slots="-c 524288 -np 2",
|
||||
unsloth_model="snapshots/" + "d" * 40 + "/UD-Q4_K_XL/Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf",
|
||||
unsloth_want=False, unsloth_handed=""):
|
||||
t = pathlib.Path(tempfile.mkdtemp(prefix="oc-art-"))
|
||||
kolibri = t / "qwen38-kolibri.service"
|
||||
if kolibri_unit:
|
||||
@@ -77,7 +79,10 @@ def generate(lane, mode, unit_ctx=None, flash_unit=False, model="RadixArk/Qwen3.
|
||||
f'FLASH_LOCAL_UNIT_PATH="{flocal}"; FLASH_LOCAL_BOOT={1 if flocal_boot else 0}\n'
|
||||
f'ORNITH_122B_UNIT_PATH="{ornith}"; ORNITH_122B_BOOT={1 if ornith_boot else 0}\n'
|
||||
f'FLASH_UNSLOTH_UNIT_PATH="{unsloth}"; FLASH_UNSLOTH_BOOT={1 if unsloth_boot else 0}\n'
|
||||
f'MODEL_CHOICE={"flash" if lane == "flash" else "stock"}\n'
|
||||
# whether this run installs the Unsloth lane, and the target it hands its installer (given or moved, v1.49)
|
||||
f'WANT_FLASH_UNSLOTH={1 if unsloth_want else 0}\n'
|
||||
+ (f'export FLASH_UNSLOTH_TARGET={unsloth_handed}\n' if unsloth_handed else "")
|
||||
+ f'MODEL_CHOICE={"flash" if lane == "flash" else "stock"}\n'
|
||||
# the box's class, which install.sh reads before this block: the block reads it since
|
||||
# e65a364, and with no class here every generation stopped on an unbound variable
|
||||
# (found by the CI, 2026-10-24)
|
||||
@@ -441,6 +446,18 @@ class ABoxBootingFlashUnsloth(unittest.TestCase):
|
||||
self.assertEqual(m["name"], f"Qwen3.8-Flash-Next Unsloth UD-IQ3_XXS + DFlash2 (local, {said})")
|
||||
self.assertEqual(d["model"], "flash-unsloth/qwen3.8-flash-next-unsloth")
|
||||
|
||||
def test_a_target_handed_to_its_installer_is_the_one_its_entry_names(self):
|
||||
# a UD-Q4_K_XL unit this run moves to UD-IQ3_XXS (an old default, v1.49.0), or a target given on the command
|
||||
# line: the installer renders that unit later in the run, so the entry is named for it now; a run that does
|
||||
# not install the lane names what its unit serves
|
||||
for want, handed, said in ((True, "flash-unsloth-iq3", "UD-IQ3_XXS"), (False, "flash-unsloth-iq3", "UD-Q4_K_XL"),
|
||||
(True, "", "UD-Q4_K_XL")):
|
||||
with self.subTest(want=want, handed=handed):
|
||||
d = generate("27b", "1m", unit_ctx=1010000, pair=("551000", "160000"), unsloth_unit=True,
|
||||
unsloth_boot=True, unsloth_want=want, unsloth_handed=handed, doc=True)
|
||||
m = d["provider"]["flash-unsloth"]["models"]["qwen3.8-flash-next-unsloth"]
|
||||
self.assertTrue(m["name"].startswith(f"Qwen3.8-Flash-Next Unsloth {said} + DFlash2"), m["name"])
|
||||
|
||||
def test_serving_at_boot_its_entry_is_pointed_at_under_the_name_of_its_target(self):
|
||||
# install.sh's own lines that point opencode's default at the lane that boots, and name its entry: the name of
|
||||
# the target its unit serves, UD-IQ3_XXS's (v1.49), where they named UD-Q4_K_XL's whatever the unit served
|
||||
|
||||
@@ -0,0 +1,122 @@
|
||||
#!/usr/bin/env python3
|
||||
"""A box whose Unsloth GGUF lane serves UD-Q4_K_XL because v1.48 installed it by default moves to
|
||||
UD-IQ3_XXS, the default since v1.49.0 (decision 1376), at its update; chosen, it stays.
|
||||
|
||||
The lane's installer keeps the target its unit names (install-flash-unsloth.sh), so install.sh
|
||||
hands it FLASH_UNSLOTH_TARGET when conformity.py classes the unit's UD-Q4_K_XL as an old default:
|
||||
on a box older than v1.49.0 with no installed.json, or one whose installed.json does not record
|
||||
it. Recorded (a switch to flash-unsloth records it), on a younger box, given on the command line,
|
||||
or with --recommended (the installer's default whatever the unit names), nothing is handed over.
|
||||
This runs install.sh's own lines, with lanes.sh's reading of the unit."""
|
||||
import os
|
||||
import pathlib
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
import unittest
|
||||
|
||||
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
||||
import installer_wall as wall # noqa: E402
|
||||
|
||||
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
|
||||
import conformity # noqa: E402
|
||||
|
||||
REPO = pathlib.Path(__file__).resolve().parents[1]
|
||||
TEXT = (REPO / "install.sh").read_text()
|
||||
START = TEXT.index("# The Unsloth GGUF lane's target: its installer keeps")
|
||||
BLOCK = TEXT[START:TEXT.index("\nfi\n", START) + 4]
|
||||
_MS = TEXT.index("old_default_moves() {")
|
||||
MOVES = 'MOVED_TAG=""\n' + TEXT[_MS:TEXT.index("\n}\n", _MS) + 3]
|
||||
OLD = conformity.old_default_of("FLASH_UNSLOTH_TARGET")
|
||||
SNAP = "/root/.cache/huggingface/hub/models--unsloth--Qwen3.8-Flash-Next-GGUF/snapshots/" + "f" * 40
|
||||
Q4 = f"{SNAP}/UD-Q4_K_XL/Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf"
|
||||
IQ3 = f"{SNAP}/UD-IQ3_XXS/Qwen3.8-Flash-Next-UD-IQ3_XXS-00001-of-00004.gguf"
|
||||
|
||||
|
||||
def shift(minutes):
|
||||
import datetime
|
||||
return (datetime.datetime.fromisoformat(OLD.instant) + datetime.timedelta(minutes=minutes)).isoformat()
|
||||
|
||||
|
||||
def run_block(model, key_at=None, record=None, want="1", recommended="0", given=""):
|
||||
"""(output, FLASH_UNSLOTH_TARGET after the block) for a unit whose -m is `model` (none when None)."""
|
||||
d = pathlib.Path(tempfile.mkdtemp(prefix="unsloth-target-"))
|
||||
unit = d / "qwen38-flash-unsloth.service"
|
||||
if model is not None:
|
||||
# its header comment names "-m" too, as the real unit's does: the reading leaves comments out
|
||||
unit.write_text("# Unsloth's GGUF, -m naming the first part\n[Service]\nExecStart=/usr/bin/docker run x \\\n"
|
||||
f" -m {model} \\\n --alias qwen3.8-flash-next-unsloth\n")
|
||||
cfg = pathlib.Path(wall.box_home(key_at=key_at, record=record)) / ".config/qwen38"
|
||||
script = ("set -euo pipefail\n" + f'. "{REPO}/lanes.sh"\n'
|
||||
+ f'REPO_DIR="{REPO}"; CONFIG_DIR="{cfg}"; FLASH_UNSLOTH_UNIT_PATH="{unit}"\n'
|
||||
+ f'WANT_FLASH_UNSLOTH={want}; RECOMMENDED={recommended}; _ENV_FLASH_UNSLOTH_TARGET="{given}"\n'
|
||||
+ (f'export FLASH_UNSLOTH_TARGET="{given}"\n' if given else "unset FLASH_UNSLOTH_TARGET\n")
|
||||
+ MOVES + BLOCK + '\necho "TARGET=${FLASH_UNSLOTH_TARGET:-}"\n')
|
||||
r = subprocess.run(["bash", "-c", script], capture_output=True, text=True, timeout=30,
|
||||
env={"PATH": "/usr/bin:/bin", "HOME": str(cfg.parents[1])})
|
||||
line = [ln for ln in r.stdout.splitlines() if ln.startswith("TARGET=")]
|
||||
assert line, r.stdout + r.stderr
|
||||
assert "command not found" not in r.stderr, r.stderr
|
||||
return r.stdout + r.stderr, line[0].split("=", 1)[1]
|
||||
|
||||
|
||||
class TheOldDefaultMoves(unittest.TestCase):
|
||||
def test_on_a_box_older_than_v1_49_it_moves_to_iq3_and_says_how_to_keep_it(self):
|
||||
out, target = run_block(Q4, key_at=shift(-60))
|
||||
self.assertEqual(target, "flash-unsloth-iq3")
|
||||
self.assertIn("Moving the Unsloth GGUF lane from flash-unsloth to flash-unsloth-iq3, the default since v1.49.0", out)
|
||||
self.assertIn("To keep it: FLASH_UNSLOTH_TARGET=flash-unsloth ./install.sh", out)
|
||||
|
||||
def test_an_installed_json_that_does_not_record_it_moves_it_whatever_the_age(self):
|
||||
_, target = run_block(Q4, key_at=shift(60), record={})
|
||||
self.assertEqual(target, "flash-unsloth-iq3")
|
||||
|
||||
|
||||
class WhatStays(unittest.TestCase):
|
||||
def test_recorded_as_a_choice_it_stays(self):
|
||||
out, target = run_block(Q4, key_at=shift(-60), record={"FLASH_UNSLOTH_TARGET": "flash-unsloth"})
|
||||
self.assertEqual(target, "")
|
||||
self.assertNotIn("Moving", out)
|
||||
|
||||
def test_on_a_box_younger_than_v1_49_it_stays(self):
|
||||
_, target = run_block(Q4, key_at=shift(60))
|
||||
self.assertEqual(target, "")
|
||||
|
||||
def test_a_box_whose_age_cannot_be_told_keeps_it(self):
|
||||
_, target = run_block(Q4)
|
||||
self.assertEqual(target, "")
|
||||
|
||||
def test_given_on_the_command_line_it_decides(self):
|
||||
out, target = run_block(Q4, key_at=shift(-60), given="flash-unsloth")
|
||||
self.assertEqual(target, "flash-unsloth")
|
||||
self.assertNotIn("Moving", out)
|
||||
|
||||
def test_recommended_leaves_it_to_the_installer(self):
|
||||
_, target = run_block(Q4, key_at=shift(-60), recommended="1")
|
||||
self.assertEqual(target, "")
|
||||
|
||||
def test_a_run_that_does_not_install_the_lane_hands_nothing(self):
|
||||
_, target = run_block(Q4, key_at=shift(-60), want="0")
|
||||
self.assertEqual(target, "")
|
||||
|
||||
def test_a_unit_on_the_default_or_none_hands_nothing(self):
|
||||
for model in (IQ3, None, "/elsewhere/own.gguf"):
|
||||
with self.subTest(model=model):
|
||||
out, target = run_block(model, key_at=shift(-60))
|
||||
self.assertEqual(target, "")
|
||||
self.assertNotIn("Moving", out)
|
||||
|
||||
|
||||
class TheClientsNameIt(unittest.TestCase):
|
||||
def test_the_entry_names_the_target_handed_to_the_installer(self):
|
||||
"""The clients' block runs before the installer renders the unit: it names the target the run
|
||||
hands over (given or moved), not the one the unit still serves."""
|
||||
i = TEXT.index(' OC_FLASH_UNSLOTH_TARGET="$(flash_unsloth_target "$FLASH_UNSLOTH_UNIT_PATH"')
|
||||
nxt = TEXT[i:TEXT.index("\n", TEXT.index("\n", i) + 1)]
|
||||
self.assertIn('[ "$WANT_FLASH_UNSLOTH" -ne 1 ] || [ -z "${FLASH_UNSLOTH_TARGET:-}" ] '
|
||||
'|| OC_FLASH_UNSLOTH_TARGET="$FLASH_UNSLOTH_TARGET"', nxt)
|
||||
self.assertLess(START, i, "the move is decided before the clients' block reads it")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user