v1.46.3: a room check says GiB where it counts in GiB, and each vLLM lane's installer names its lane by its official name

Every room check of the installers, of a lane's first Load and of the switch holds what df -BG prints (GiB) against a
need counted in GiB, and said both in "GB". They say GiB now, with the parts they name (the Docker image's label, the
video checkpoint's share) and the line that says what is left of the image and video checkpoints to download;
ckpt-fetch.py says each side in its own unit. No check asks for more or for less than it did.

The vLLM lanes' installers, check-pins.sh and three refusals of switch-model.sh name each lane by the title
lane_registry.py gives it (Kolibri-1, Nemotron 3.5 Bolt, Nemotron 3.5 Super VL, Qwen3.8 Flash-Next FP4-Local).

Also: "about 79 GB to download", 33 and 963 GB for the FP4-Local n-gram table in the sums, docs/pi.md and pi-gen.py's
header.

tests/test_room_unit_and_lane_names.py is new (its rule finds 24 lines in v1.46.2 and none now); nine test files
quote the messages in GiB.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Hasan BasbunarandClaude Fable 5.2 committed 2026-11-11 03:57:30 +01:00
1 parent 454750b164
commit ecf0c33deb
29 files changed
+260 -84

No files matched your search

+52
View File
@@ -1,5 +1,57 @@
# Changelog
## v1.46.3 (2026-11-11): a room check says GiB where it counts in GiB, and each vLLM lane's installer names its lane by its official name
**A room check counted in GiB and said GB.** Every room check of the installers, of a lane's first Load and of the
switch holds what `df -BG` prints, which is GiB, against a need counted in GiB, and its refusal said both in "GB":
"Need ~45 GB free for the checkpoints and caches [...] found 44 GB" on a disk that has 47.2 GB free, where the README
gives the same check as 49 GB. v1.46.1 gave each size one figure in its unit and left these messages, which its review
listed. They say GiB now: the five refusals of `install.sh` (the checkpoints and caches, the Docker image, the two on
one disk, the flash lane's PLE table alone and beside the image), the three of `install-image.sh`, the three of
`vllm-lane.sh`, the ones of `install-video.sh` and `install-speech.sh`, a first Load's two (`lanes.sh`,
`prepare-lane.sh`), and the three refusals and the "download failed" line of `switch-model.sh`. So do the parts those
refusals name, "the 31 GiB Docker image" of `install.sh` and the video checkpoint's share in the switch's, and the line
of `install-image.sh` and of `install-video.sh` that says what is left of the checkpoint to download, which they count
in whole GiB. The comments that quoted or described these figures follow them. `ckpt-fetch.py`, which
compares in bytes the free space it is handed in GiB and a need in GB of 10^9 bytes, says each side in its own unit:
"10 GiB free in the cache, and org/model needs about 34 GB more". `ple-table.py` divides bytes by 10^9 and keeps its
GB. No check asks for more or for less than it did: the words change, the numbers do not.
**The vLLM lanes are named by their official names.** The installers of Kolibri-1, Nemotron 3.5 Bolt and Nemotron 3.5
Super VL named their lane "Kolibri", "Nemotron" and "Super VL" in the sentences they share (`VLANE_SHORT` in
`vllm-lane.sh`: a lane that starts at boot and whose new unit mounts what is not there yet, a lane that runs older
files than the ones installed, and the line of `lanes.sh` that gives the boot back to the lane that had it). They name
it as every other line of a run does. The first step of three installers said "Preflight (Bolt:", "(Super VL:" and
"(FP4-Local:", `check-pins.sh` headed three lanes' pins "Kolibri lane", "Nemotron lane" and "Nemotron Super lane", and
three refusals of `switch-model.sh` said "the Kolibri checkpoint" and "the Kolibri unit": the official names there too.
**Three figures and two sentences.** `vllm-lane.sh` said "79 GB to download" of what is left of a lane's pin, which is
rounded up: "about 79 GB to download". The copies of the Qwen3.8 Flash-Next FP4-Local lane's n-gram table are 32.31 GB,
which the README's list of sizes, all rounded up, gave as 32 and the installer's help added as 962 GB for the whole box
with the cache on another disk: 33 and 963, as the lane's own pin says. `docs/pi.md` told a pi user who has a
`models.json` to merge "the `qwen38` and `flashnext` providers" of a file that carries one provider per installed lane,
seven today. `pi-gen.py`'s header said Kolibri alone is sent its effort, where its table sends theirs to Kolibri-1, the
two Nemotron lanes and Ornith 1.5 122B.
**Left as it is, and why.** "about 34 GB" for the image checkpoints (33.13 and 32.49), "about 26 GB" and "about 77 GB"
in the cockpit's notes for Nemotron 3.5 Bolt and Super VL (25.08 and 76.38) are the lanes' pins, rounded up, said with
"about". The Qwen3.8 Flash-Next FP4-Local checkpoint (102.26) stays "102 GB", and its table's seven files (32.31) "32
GB", where the docs and the cockpit say their size: a size is said to the nearest GB, and a sum or a room rounds up
(103 and 33 in the lane's pin). The image lane's "46 GB (34 checkpoint, 12 runtime and its build)"
is the sum of two figures rounded up (33.13 and 11.81), and the help, the README, the lane's page and two tests say
it the same way. The two comments "31 GB of weights" in the image lane's unit template count in GiB: a template's
comment is written into the unit, and changing them would rewrite that unit on every box for two words.
**Tests.** `tests/test_room_unit_and_lane_names.py`, new: no script says "GB" of a figure `df -BG` gave, of a need
held against one, of what is left of a checkpoint counted in GiB or of the Docker image in its label (the rule is shown
to read the old wording and to pass the new: it finds 24 lines in v1.46.2 and none now), the scripts still have their
room messages, each vLLM lane's installer names its lane by the title `lane_registry.py` gives it, as do the first
step of four of them and `check-pins.sh`. Nine test files that quoted the messages quote them in GiB, and one of them
the "about" of a download.
**What an update does.** Scripts, documentation and tests only: no unit template, no file of the proxy and none of the
cockpit changes. The cockpit restarts, as at every release: it reads the release's number in CHANGELOG.md at its start.
## v1.46.2 (2026-11-10): the CI of a push takes a little over nine minutes where it took thirty, and the pass it no longer makes runs every night and before a release
**Thirty minutes, and where they went.** A full run of the CI took 30 minutes on the reference box and 32 on GitHub,
+2 -2
View File
@@ -173,7 +173,7 @@ 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 **930 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 32 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)) and the Ornith 122B lane 78 (its checkpoint; it runs the Qwen3.8 Flash-Next FP4-Local lane's image, 96 without it). 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 **930 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)) and the Ornith 122B lane 78 (its checkpoint; it runs the Qwen3.8 Flash-Next FP4-Local lane's image, 96 without it). 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). 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 763 GB of downloads (about 127 minutes at 100 MB/s). It ends by printing the cockpit URL, and there is nothing left to run by hand.
@@ -260,7 +260,7 @@ Everything below is optional and combinable. Variables ride on the `bash` side o
| Kolibri lane | default, or `--no-kolibri` | on demand: its units, built at its first Load | Aleph Alpha's Kolibri-1 on vLLM, 102 GB (79 checkpoint, 23 image); `--with-kolibri` installs it whole now and proves it (about 10 min) |
| Nemotron lane | default, or `--no-nemotron` | on demand: its units, built at its first Load | NVIDIA's Nemotron 3.5 Bolt on vLLM, 51 GB (26 checkpoint and drafter, 25 image); `--with-nemotron` installs it whole now and proves it |
| 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), 32 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 |
| 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 |
| 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 |
+3 -3
View File
@@ -403,15 +403,15 @@ check_commit sglang-source-video sgl-project/sglang "$VIDEO_PIN"
check_wheel sglang-wheel-video sglang "$VIDEO_WHEEL"
check_cuda_tile cuda-tile-video "$VIDEO_WHEEL"
check_asset opencode anomalyco/opencode "v$OPENCODE_VERSION" opencode-linux-arm64.tar.gz "$OPENCODE_SHA256"
echo "Kolibri lane"
echo "Kolibri-1 lane"
check_model kolibri-fp8 "$KOLIBRI_FP8_REPO" "$KOLIBRI_FP8_REV"
check_model kolibri-nvfp4 "$KOLIBRI_NVFP4_REPO" "$KOLIBRI_NVFP4_REV"
check_wheel kolibri-plugin aleph-alpha-inference "$KOLIBRI_PLUGIN_VERSION" "$KOLIBRI_PLUGIN_URL" "$KOLIBRI_PLUGIN_SHA256"
echo "Nemotron lane"
echo "Nemotron 3.5 Bolt lane"
check_model nemotron-bolt "$NEMOTRON_BOLT_REPO" "$NEMOTRON_BOLT_REV"
check_model nemotron-draft "$NEMOTRON_BOLT_DRAFT_REPO" "$NEMOTRON_BOLT_DRAFT_REV"
check_wheel nemotron-b12x b12x "$NEMOTRON_B12X_VERSION" "$NEMOTRON_B12X_URL" "$NEMOTRON_B12X_SHA256"
echo "Nemotron Super lane"
echo "Nemotron 3.5 Super VL lane"
check_model nemotron-super "$NEMOTRON_SUPER_REPO" "$NEMOTRON_SUPER_REV"
check_model super-draft "$NEMOTRON_SUPER_DRAFT_REPO" "$NEMOTRON_SUPER_DRAFT_REV"
echo "Qwen3.8 Flash-Next FP4-Local lane"
+1 -1
View File
@@ -118,7 +118,7 @@ def room(repo, need_gb, free_gb):
have = sum(e.stat().st_size for e in os.scandir(blobs) if e.is_file()) if os.path.isdir(blobs) else 0
rest = max(need_gb * 10**9 - have, 10**9)
if free_gb * 2**30 < rest:
raise SystemExit(f"{free_gb} GB free in the cache, and {repo} needs about {-(-rest // 10**9)} GB more: "
raise SystemExit(f"{free_gb} GiB free in the cache, and {repo} needs about {-(-rest // 10**9)} GB more: "
"free some space first")
+1 -1
View File
@@ -20,7 +20,7 @@ mkdir -p ~/.pi/agent && cp -n ~/.config/qwen38/pi/*.json ~/.pi/agent/
mkdir -p ~/.omp/agent && cp -n ~/.config/qwen38/omp/*.yml ~/.omp/agent/
```
`cp -n` copies nothing over a file that exists: if you already have a `models.json` or `models.yml` with other providers, merge the `qwen38` and `flashnext` providers into it by hand (each agent reads one such file), and likewise the default model and compaction settings. Copy again after a switch or a fit, and the agent carries the new lane.
`cp -n` copies nothing over a file that exists: if you already have a `models.json` or `models.yml` with other providers, merge the providers of the generated file into it by hand (it carries one per installed lane, for example `qwen38` for the 27B and `flashnext` for the flash lane; each agent reads one such file), and likewise the default model and compaction settings. Copy again after a switch or a fit, and the agent carries the new lane.
## One build, two serializations
+1 -1
View File
@@ -360,7 +360,7 @@ if [ "$MODE" = stage ]; then
exit 0
fi
step "1/5 Preflight (FP4-Local: $MODEL @ ${MODEL_REV:0:12})"
step "1/5 Preflight (Qwen3.8 Flash-Next FP4-Local: $MODEL @ ${MODEL_REV:0:12})"
vlane_preflight engine-preflight.sh engine-secrets.sh vllm_engine_auth.py ckpt-fetch.py patch-template.py seccomp-io-uring.json \
flash-local-files.sh
vlane_room "$FLASH_LOCAL_IMAGE" "$MODEL"
+5 -5
View File
@@ -282,7 +282,7 @@ python3 -c 'import venv, ensurepip' 2>/dev/null || die "python3-venv is missing
# existing: lanes.sh's (the nearest folder of a path that exists)
free_gb(){ { df -BG --output=avail "$(existing "$1")" 2>/dev/null || true; } | tail -1 | tr -dc '0-9'; }
HAVE_B="$({ du -s --apparent-size -B1 "$HF_CACHE/hub/models--${MODEL//\//--}/blobs" 2>/dev/null || true; } | cut -f1)"
# what is left, in whole GB (a complete 30.86 GiB checkpoint is 0 left, not 1)
# what is left, in whole GiB (a complete 30.86 GiB checkpoint is 0 left, not 1)
WEIGHTS_NEED=$(( (WEIGHTS_GB * 1073741824 - ${HAVE_B:-0}) / 1073741824 )); [ "$WEIGHTS_NEED" -ge 0 ] || WEIGHTS_NEED=0
# --prepare builds the runtime only: the checkpoint's room is the switch's to check, as it
# fetches it. --units-only downloads nothing.
@@ -293,12 +293,12 @@ if [ "$MODE" = units ]; then
elif [ "$(stat -L -c %d "$(existing "$HF_CACHE")")" = "$(stat -L -c %d "$(existing "$LANE_DIR")")" ]; then
WANT=$((WEIGHTS_NEED + RUNTIME_GB))
[ "${FREE_W:-0}" -ge "$WANT" ] \
|| die "${FREE_W:-?} GB free on the disk of $HF_CACHE and $LANE_DIR, this needs about $WANT GB ($WEIGHTS_NEED for the checkpoint, $RUNTIME_GB for the runtime and its build). Free some space, or point HF_CACHE or IMAGE_LANE_DIR at a bigger disk."
|| die "${FREE_W:-?} GiB free on the disk of $HF_CACHE and $LANE_DIR, this needs about $WANT GiB ($WEIGHTS_NEED for the checkpoint, $RUNTIME_GB for the runtime and its build). Free some space, or point HF_CACHE or IMAGE_LANE_DIR at a bigger disk."
else
[ "${FREE_W:-0}" -ge "$WEIGHTS_NEED" ] \
|| die "${FREE_W:-?} GB free under HF_CACHE=$HF_CACHE, the checkpoint needs about $WEIGHTS_NEED GB more. Free some space, or point HF_CACHE at a bigger disk."
|| die "${FREE_W:-?} GiB free under HF_CACHE=$HF_CACHE, the checkpoint needs about $WEIGHTS_NEED GiB more. Free some space, or point HF_CACHE at a bigger disk."
[ "${FREE_R:-0}" -ge "$RUNTIME_GB" ] \
|| die "${FREE_R:-?} GB free under $LANE_DIR, the runtime and its build need about $RUNTIME_GB GB. Free some space, or point IMAGE_LANE_DIR at a bigger disk."
|| die "${FREE_R:-?} GiB free under $LANE_DIR, the runtime and its build need about $RUNTIME_GB GiB. Free some space, or point IMAGE_LANE_DIR at a bigger disk."
fi
if [ "$MODE" = units ]; then
echo "OK: $(uname -m), key present; the runtime and the checkpoint come with the lane's first Load"
@@ -309,7 +309,7 @@ if [ "$MODE" = units ]; then
echo " a terminal : ./install-image.sh --prepare, then ./switch-model.sh image and the commands it prints"
exit 0
fi
echo "OK: $(uname -m), key present, checkpoint $([ "$MODE" = prepare ] && echo "left to the Load's switch" || { [ "$WEIGHTS_NEED" -eq 0 ] && echo 'already cached'; } || echo "$WEIGHTS_NEED GB to download") into $HF_CACHE"
echo "OK: $(uname -m), key present, checkpoint $([ "$MODE" = prepare ] && echo "left to the Load's switch" || { [ "$WEIGHTS_NEED" -eq 0 ] && echo 'already cached'; } || echo "$WEIGHTS_NEED GiB to download") into $HF_CACHE"
step "2/6 Runtime ($LANE_DIR)"
mkdir -p "$LANE_DIR"
+1 -1
View File
@@ -81,7 +81,7 @@ docker_session bash "$HERE/${BASH_SOURCE[0]##*/}" "$@"
# service, the preflight and the room, the fetch, the proof
# shellcheck source=vllm-lane.sh
. "$HERE/vllm-lane.sh"
VLANE=kolibri; VLANE_SHORT=Kolibri
VLANE=kolibri; VLANE_SHORT="Kolibri-1"
# The pins, at column 0 like install.sh's: the vLLM image Aleph Alpha's Dockerfile builds on
# (v0.29.0, its arm64 manifest), the plugin's wheel, and the two checkpoints at the
+2 -2
View File
@@ -74,7 +74,7 @@ docker_session bash "$HERE/${BASH_SOURCE[0]##*/}" "$@"
# service, the preflight and the room, the fetch, the proof
# shellcheck source=vllm-lane.sh
. "$HERE/vllm-lane.sh"
VLANE=nemotron-super; VLANE_SHORT="Super VL"
VLANE=nemotron-super; VLANE_SHORT="Nemotron 3.5 Super VL"
# The pins, at column 0 like install.sh's: the model at its revision of 2026-10-15 21:36 UTC, 8a115b9d,
# which holds every file of the revision the reference box measured (82d93699, 2026-10-15 and 16) as
@@ -149,7 +149,7 @@ install_service(){
echo " a terminal : ./switch-model.sh nemotron-super, then the commands it prints"
}
step "1/5 Preflight (Super VL: $MODEL @ ${MODEL_REV:0:12}, drafter $DRAFT @ ${DRAFT_REV:0:12})"
step "1/5 Preflight (Nemotron 3.5 Super VL: $MODEL @ ${MODEL_REV:0:12}, drafter $DRAFT @ ${DRAFT_REV:0:12})"
vlane_preflight engine-preflight.sh engine-secrets.sh vllm_engine_auth.py ckpt-fetch.py install-nemotron.sh
vlane_room "$NEMOTRON_BASE_IMAGE" "$MODEL" "$DRAFT"
if [ "$MODE" = units ]; then
+2 -2
View File
@@ -69,7 +69,7 @@ docker_session bash "$HERE/${BASH_SOURCE[0]##*/}" "$@"
# service, the preflight and the room, the fetch, the proof
# shellcheck source=vllm-lane.sh
. "$HERE/vllm-lane.sh"
VLANE=nemotron; VLANE_SHORT=Nemotron
VLANE=nemotron; VLANE_SHORT="Nemotron 3.5 Bolt"
# The pins, at column 0 like install.sh's: the vLLM nightly NVIDIA's card names (its arm64
# manifest), the b12x wheel, the model and its drafter at the revisions measured on the reference
@@ -158,7 +158,7 @@ install_service(){
echo " a terminal : ./switch-model.sh nemotron, then the commands it prints"
}
step "1/5 Preflight (Bolt: $MODEL @ ${MODEL_REV:0:12}, drafter $DRAFT @ ${DRAFT_REV:0:12})"
step "1/5 Preflight (Nemotron 3.5 Bolt: $MODEL @ ${MODEL_REV:0:12}, drafter $DRAFT @ ${DRAFT_REV:0:12})"
vlane_preflight engine-preflight.sh engine-secrets.sh vllm_engine_auth.py ckpt-fetch.py
vlane_room "$NEMOTRON_BASE_IMAGE" "$MODEL" "$DRAFT"
if [ "$MODE" = units ]; then
+1 -1
View File
@@ -173,7 +173,7 @@ python3 -c 'import venv, ensurepip' 2>/dev/null || die "python3-venv is missing
existing(){ local p="$1"; while [ ! -e "$p" ]; do p="$(dirname "$p")"; done; printf '%s\n' "$p"; }
free_gb(){ { df -BG --output=avail "$(existing "$1")" 2>/dev/null || true; } | tail -1 | tr -dc '0-9'; }
FREE="$(free_gb "$LANE_DIR")"; WANT=$((MODELS_GB + RUNTIME_GB + 1))
[ "${FREE:-0}" -ge "$WANT" ] || die "${FREE:-?} GB free under $LANE_DIR, this lane needs about $WANT GB. Free some space, or point SPEECH_LANE_DIR at a bigger disk."
[ "${FREE:-0}" -ge "$WANT" ] || die "${FREE:-?} GiB free under $LANE_DIR, this lane needs about $WANT GiB. Free some space, or point SPEECH_LANE_DIR at a bigger disk."
# The ports must be ours or free: another service on them would answer the proof.
for p in "$PORT" "$ASR_PORT"; do
if ss -ltnH "sport = :$p" 2>/dev/null | grep -q . && ! systemctl is-active --quiet "$UNIT" 2>/dev/null; then
+3 -3
View File
@@ -278,7 +278,7 @@ fi
# existing: lanes.sh's (the nearest folder of a path that exists)
free_gb(){ { df -BG --output=avail "$(existing "$1")" 2>/dev/null || true; } | tail -1 | tr -dc '0-9'; }
HAVE_B="$({ du -s --apparent-size -B1 "$HF_CACHE/hub/models--${MODEL//\//--}/blobs" 2>/dev/null || true; } | cut -f1)"
# what is left, in whole GB (a complete checkpoint is 0 left, not 1)
# what is left, in whole GiB (a complete checkpoint is 0 left, not 1)
WEIGHTS_NEED=$(( (WEIGHTS_GB * 1073741824 - ${HAVE_B:-0}) / 1073741824 )); [ "$WEIGHTS_NEED" -ge 0 ] || WEIGHTS_NEED=0
# --prepare: the checkpoint is the Load's switch's to fetch, and to measure
[ "$MODE" = prepare ] && WEIGHTS_NEED=0
@@ -296,9 +296,9 @@ for PART in "${PARTS[@]}"; do
done
for DEV in "${!NEED_ON[@]}"; do
[ "${FREE_ON[$DEV]:-0}" -ge "${NEED_ON[$DEV]}" ] \
|| die "${FREE_ON[$DEV]:-?} GB free on one disk, and this lane needs about ${NEED_ON[$DEV]} GB there: ${WHAT_ON[$DEV]}. Free some space, or point HF_CACHE or VIDEO_LANE_DIR at a bigger disk."
|| die "${FREE_ON[$DEV]:-?} GiB free on one disk, and this lane needs about ${NEED_ON[$DEV]} GiB there: ${WHAT_ON[$DEV]}. Free some space, or point HF_CACHE or VIDEO_LANE_DIR at a bigger disk."
done
echo "OK: $(uname -m), key present, checkpoint $([ "$MODE" = prepare ] && echo "left to the Load's switch" || { [ "$WEIGHTS_NEED" -eq 0 ] && echo 'already cached'; } || echo "$WEIGHTS_NEED GB to download") into $HF_CACHE"
echo "OK: $(uname -m), key present, checkpoint $([ "$MODE" = prepare ] && echo "left to the Load's switch" || { [ "$WEIGHTS_NEED" -eq 0 ] && echo 'already cached'; } || echo "$WEIGHTS_NEED GiB to download") into $HF_CACHE"
step "2/6 Runtime ($LANE_DIR)"
mkdir -p "$LANE_DIR"
+10 -10
View File
@@ -584,7 +584,7 @@ other text lane (the flash beside the 27B, its image, checkpoint and PLE table,
Alpha's Kolibri-1, on vLLM, 102), the Nemotron lane (NVIDIA's Nemotron 3.5
Bolt, on vLLM, 51), the Nemotron Super lane (NVIDIA's Nemotron 3.5 Super VL
on vLLM, in the Nemotron lane's image: 77 beside it, else 102), the Flash
FP4-Local lane (NVIDIA's FP4 build of the flash model, on vLLM, 121; 32 more
FP4-Local lane (NVIDIA's FP4 build of the flash model, on vLLM, 121; 33 more
when the HF cache is on another disk than the home directory's, for the copy
of its n-gram table) and 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). The lane that
@@ -644,7 +644,7 @@ without a terminal.
--all-weights install every lane whole now (the flash beside the 27B,
the image, video, Kolibri, both Nemotron, the Flash
FP4-Local and the Ornith lanes), runtime and weights, about
930 GB of disk (962 with the cache on another disk), and prove
930 GB of disk (963 with the cache on another disk), and prove
each new one
(without it, each is prepared at its first Load from
the cockpit; --with-<lane> does the same for that one
@@ -1688,7 +1688,7 @@ fi
# people there while measuring here).
mkdir -p "$HF_CACHE" 2>/dev/null || true
# `|| true` inside: a df that fails (a path it cannot reach) under pipefail ended the
# install at this line, and the "found unknown GB" below never said why (found in review,
# install at this line, and the "found unknown GiB" below never said why (found in review,
# 2026-09-24).
FREE_DISK_GB=$({ df -BG --output=avail "$HF_CACHE" 2>/dev/null || true; } | tail -1 | tr -dc '0-9')
# Fresh installs need ~45 GiB for the 27B stack (checkpoints + caches) and ~180 GiB for
@@ -1703,9 +1703,9 @@ FREE_DISK_GB=$({ df -BG --output=avail "$HF_CACHE" 2>/dev/null || true; } | tail
# the 27B's image is 33.7 GB unpacked and 14.8 GB to download, 45.1 GiB at the peak; the flash
# lane's 34.4 GB and 15.3 GB, 46.3 GiB. It asked for 40 and 35, which a pull on a disk with just
# that free outgrew in either store (found in review, 2026-10-15).
NEED_GB=45; DOCKER_NEED_GB=48; IMG_LABEL="31 GB Docker image"
NEED_GB=45; DOCKER_NEED_GB=48; IMG_LABEL="31 GiB Docker image"
if [ "$LANE" = "flash" ]; then
NEED_GB=180; DOCKER_NEED_GB=49; IMG_LABEL="32 GB Docker image"
NEED_GB=180; DOCKER_NEED_GB=49; IMG_LABEL="32 GiB Docker image"
fi
# What is left to download, not what a checkpoint weighs. huggingface_hub creates the
# snapshot folder before the first byte of the first file (file_download.py, 1.31.0), so a
@@ -1732,13 +1732,13 @@ if [ "$LANE" = "flash" ] && [ "$UNITS_ONLY" -eq 0 ] && ! ls "$PLE_DIR"/ple_table
else
PLE_OWN_DEV="$(stat -L -c %d "$PLE_PARENT")"
PLE_FREE_GB="$({ df -BG --output=avail "$PLE_PARENT" 2>/dev/null || true; } | tail -1 | tr -dc '0-9')"
[ -n "$PLE_FREE_GB" ] && [ "$PLE_FREE_GB" -ge 50 ] || die "Need ~50 GB free under PLE_DIR=$PLE_DIR for the flash lane's PLE table (47.7 GiB, written at every boot); found ${PLE_FREE_GB:-unknown} GB. Free some space or set PLE_DIR to another disk."
[ -n "$PLE_FREE_GB" ] && [ "$PLE_FREE_GB" -ge 50 ] || die "Need ~50 GiB free under PLE_DIR=$PLE_DIR for the flash lane's PLE table (47.7 GiB, written at every boot); found ${PLE_FREE_GB:-unknown} GiB. Free some space or set PLE_DIR to another disk."
fi
fi
# A lane installed on demand takes no room now: its first Load checks the room for what it
# fetches (prepare-lane.sh, then its switch).
[ "$UNITS_ONLY" -eq 0 ] || NEED_GB=0
[ -n "$FREE_DISK_GB" ] && [ "$FREE_DISK_GB" -ge "$NEED_GB" ] || die "Need ~${NEED_GB} GB free for the checkpoints and caches under $HF_CACHE; found ${FREE_DISK_GB:-unknown} GB. Free some space or set HF_CACHE to another disk."
[ -n "$FREE_DISK_GB" ] && [ "$FREE_DISK_GB" -ge "$NEED_GB" ] || die "Need ~${NEED_GB} GiB free for the checkpoints and caches under $HF_CACHE; found ${FREE_DISK_GB:-unknown} GiB. Free some space or set HF_CACHE to another disk."
# Docker from the Snap package, beside the NVIDIA Container Toolkit DGX OS installs on the host, fails to
# start a container with the GPU (canonical/docker-snap#357). Step 3 found it only after the image was
# pulled, and said the toolkit was missing (issue #58, 2026-10-21). Canonical's two ways round it remove
@@ -1763,21 +1763,21 @@ if docker image inspect "$PULL_TARGET" >/dev/null 2>&1; then
DOCKER_NEED_GB=5; IMG_LABEL="container (its image is already here)"
fi
[ "$UNITS_ONLY" -eq 0 ] || DOCKER_NEED_GB=0
[ "${DOCKER_FREE_GB:-0}" -ge "$DOCKER_NEED_GB" ] || die "Need ~${DOCKER_NEED_GB} GB free on $DOCKER_ROOT for the $IMG_LABEL; found ${DOCKER_FREE_GB:-?} GB (docker images live there, not under \$HOME)."
[ "${DOCKER_FREE_GB:-0}" -ge "$DOCKER_NEED_GB" ] || die "Need ~${DOCKER_NEED_GB} GiB free on $DOCKER_ROOT for the $IMG_LABEL; found ${DOCKER_FREE_GB:-?} GiB (docker images live there, not under \$HOME)."
# One disk for both, as on the reference box: the two needs add up there. Checked apart,
# 45 GB free passed a first 27B install that needs 45 for the checkpoints and 40 for the
# image on that same disk (found in review, 2026-09-24).
HF_DEV="$(stat -L -c %d "$HF_CACHE" 2>/dev/null || true)"; DOCKER_DEV="$(stat -L -c %d "$DOCKER_ROOT" 2>/dev/null || true)"
if [ -n "$HF_DEV" ] && [ "$HF_DEV" = "$DOCKER_DEV" ]; then
BOTH_GB=$((NEED_GB + DOCKER_NEED_GB))
[ "${FREE_DISK_GB:-0}" -ge "$BOTH_GB" ] || die "Need ~${BOTH_GB} GB free on the disk that holds both $HF_CACHE and $DOCKER_ROOT (${NEED_GB} for the checkpoints and caches, ${DOCKER_NEED_GB} for the $IMG_LABEL); found ${FREE_DISK_GB:-unknown} GB. Free some space, or set HF_CACHE to another disk."
[ "${FREE_DISK_GB:-0}" -ge "$BOTH_GB" ] || die "Need ~${BOTH_GB} GiB free on the disk that holds both $HF_CACHE and $DOCKER_ROOT (${NEED_GB} for the checkpoints and caches, ${DOCKER_NEED_GB} for the $IMG_LABEL); found ${FREE_DISK_GB:-unknown} GiB. Free some space, or set HF_CACHE to another disk."
fi
# The PLE table and the image on one disk that is not the cache's (the cache on a disk of its
# own): their needs add up there too. Checked apart, 60 GB free passed both (found in review,
# 2026-10-15).
if [ -n "$PLE_OWN_DEV" ] && [ "$PLE_OWN_DEV" = "$DOCKER_DEV" ]; then
PLE_BOTH_GB=$((50 + DOCKER_NEED_GB))
[ "${DOCKER_FREE_GB:-0}" -ge "$PLE_BOTH_GB" ] || die "Need ~${PLE_BOTH_GB} GB free on the disk that holds both PLE_DIR=$PLE_DIR and $DOCKER_ROOT (50 for the flash lane's PLE table, ${DOCKER_NEED_GB} for the $IMG_LABEL); found ${DOCKER_FREE_GB:-unknown} GB. Free some space or set PLE_DIR to another disk."
[ "${DOCKER_FREE_GB:-0}" -ge "$PLE_BOTH_GB" ] || die "Need ~${PLE_BOTH_GB} GiB free on the disk that holds both PLE_DIR=$PLE_DIR and $DOCKER_ROOT (50 for the flash lane's PLE table, ${DOCKER_NEED_GB} for the $IMG_LABEL); found ${DOCKER_FREE_GB:-unknown} GiB. Free some space or set PLE_DIR to another disk."
fi
# A secondary run shares the port with the lane its parent serves, which holds it by
# design: the parent checked both ports, and owns the proxy.
+3 -3
View File
@@ -434,7 +434,7 @@ video_first_start_caches(){
done
}
# The room a text lane's checkpoint asks of its cache's disk, with its caches, whole GB still
# The room a text lane's checkpoint asks of its cache's disk, with its caches, whole GiB still
# needed, as install.sh counts it: 10 when the target is whole in the cache, else 45 for a 27B
# target (its DFlash2 draft in it) and 180 for flash, what the cache holds of the repo off, 10 at
# least. The switch checks it (switch-model.sh), and so does a first Load before its first
@@ -448,7 +448,7 @@ ckpt_room_gb(){ # $1 flash|27b, $2 the HF cache, $3 the repo, $4 its revision
n=$(( n - ${have:-0} / 1073741824 )); [ "$n" -ge 10 ] || n=10
echo "$n"
}
# What a first Load downloads, summed on each disk before the first byte: "path|GB|what" each.
# What a first Load downloads, summed on each disk before the first byte: "path|GiB|what" each.
# Each part checked its own room as it came, so a disk with room for the image and the
# checkpoint and not for the PLE table beside them took 150 GB, then stopped (found in review,
# 2026-10-15); install.sh sums its parts on each disk too. The refusal names the disk by the
@@ -466,7 +466,7 @@ room_per_disk(){
done
for dev in "${!need[@]}"; do
[ "${free[$dev]:-0}" -ge "${need[$dev]}" ] \
|| die "need ~${need[$dev]} GB free on the disk of ${at[$dev]} for this first Load (${what[$dev]}); found ${free[$dev]:-unknown} GB. Free some space, then Load the lane again: what came already is kept."
|| die "need ~${need[$dev]} GiB free on the disk of ${at[$dev]} for this first Load (${what[$dev]}); found ${free[$dev]:-unknown} GiB. Free some space, then Load the lane again: what came already is kept."
done
}
+4 -3
View File
@@ -20,9 +20,10 @@ system prompt as "system": the served template refuses "developer");
pi's settings.json adds the default model,
modelThinkingLevels "off" for the Qwen models (unset sends no effort field: the
installed template's default, lean, or xhigh on a box installed with LEAN_DEFAULT=0
and on the Flash FP4-Local lane) and "high" for Kolibri, which is sent
its effort (EFFORT_FIELD), keepRecentTokens from the artifact's
compaction block and per-lane reserveTokens = the lane's output cap. omp
and on the Qwen3.8 Flash-Next FP4-Local lane) and "high" for Kolibri-1, the two
Nemotron lanes and Ornith 1.5 122B, which are sent their effort (EFFORT_FIELD),
keepRecentTokens from the artifact's compaction block and per-lane reserveTokens =
the lane's output cap. omp
gets the same values re-serialized: the same models array, thinking block
added, inputLimits and pi's compat dropped (its schema has no room for them);
default provider + model id -> modelRoles.default. The thinking block lists
+3 -3
View File
@@ -54,11 +54,11 @@ image_as_the_switch_reads(){ # $1 the launcher or the unit, $2 the image it nam
*) die "$1 names its image as $2, with no tag or digest: the switch reads name:tag or name@sha256:... only (hand-edited? ./install.sh writes it again)" ;;
esac
}
room_or_die(){ # $1 GB, $2 a path on the disk it goes to, $3 what for
room_or_die(){ # $1 GiB (df -BG counts the free space so), $2 a path on the disk it goes to, $3 what for
local free; free="$(free_gb_at "$2")"
[ "${free:-0}" -ge "$1" ] || die "need ~$1 GB free under $2 for $3; found ${free:-unknown} GB. Free some space, then Load the lane again: what came already is kept."
[ "${free:-0}" -ge "$1" ] || die "need ~$1 GiB free under $2 for $3; found ${free:-unknown} GiB. Free some space, then Load the lane again: what came already is kept."
}
pull_image(){ # $1 image, $2 the lane (its local tag), $3 the room its pull needs in GB
pull_image(){ # $1 image, $2 the lane (its local tag), $3 the room its pull needs in GiB
local name="$2"; [ "$2" = 27b ] && name=27B
section "The $name lane's image (${1:0:40})"
if docker image inspect "$1" >/dev/null 2>&1; then
+12 -11
View File
@@ -165,13 +165,13 @@ if [ "$CHOICE" = "kolibri" ] || [ "$CHOICE" = "kolibri-nvfp4" ]; then
-v "$REPO_DIR/ckpt-fetch.py:/opt/qwen38/ckpt-fetch.py:ro" \
-v "$KOL_HF":/hf "$KOL_IMAGE" /opt/qwen38/ckpt-fetch.py "$KOL_MODEL" "$KOL_REV" --offline-first \
--need-gb "$KOL_NEED_GB" --free-gb "$(dl_free_gb "$KOL_HF")" \
|| die "the Kolibri checkpoint could not be verified or fetched (re-run to resume; set HF_TOKEN if it stalls)"
|| die "the Kolibri-1 checkpoint could not be verified or fetched (re-run to resume; set HF_TOKEN if it stalls)"
fetched "$KOL_MODEL @ ${KOL_REV:0:12}"
# The unit names one checkpoint, its revision and its memory share, on one line each; a
# switch rewrites those and nothing else.
KOL_CUR="$(grep -m1 -oE -- "[^ ]+ --revision [0-9a-f]{40}" "$KOLIBRI_UNIT" || true)"
KOL_CUR_GMU="$(grep -m1 -oE -- "--gpu-memory-utilization [0-9.]+" "$KOLIBRI_UNIT" || true)"
[ -n "$KOL_CUR" ] && [ -n "$KOL_CUR_GMU" ] || die "the Kolibri unit names no checkpoint or memory share where this expects it (hand-edited unit?): re-run ./install-kolibri.sh --no-smoke"
[ -n "$KOL_CUR" ] && [ -n "$KOL_CUR_GMU" ] || die "the Kolibri-1 unit names no checkpoint or memory share where this expects it (hand-edited unit?): re-run ./install-kolibri.sh --no-smoke"
KOL_WANT="$KOL_MODEL --revision $KOL_REV"; KOL_WANT_GMU="--gpu-memory-utilization $KOL_GMU"
KOL_REWRITTEN=""
if [ "$KOL_CUR" != "$KOL_WANT" ] || [ "$KOL_CUR_GMU" != "$KOL_WANT_GMU" ]; then
@@ -179,7 +179,7 @@ if [ "$CHOICE" = "kolibri" ] || [ "$CHOICE" = "kolibri-nvfp4" ]; then
KOL_TEXT="${KOL_TEXT//"$KOL_CUR"/"$KOL_WANT"}"
printf '%s\n' "${KOL_TEXT//"$KOL_CUR_GMU"/"$KOL_WANT_GMU"}" > "$KOL_STAGE"
if ! grep -q -- "$KOL_WANT " "$KOL_STAGE" || ! grep -q -- "$KOL_WANT_GMU " "$KOL_STAGE"; then
rm -f "$KOL_STAGE"; die "the Kolibri unit's rewrite to $KOL_MODEL failed (hand-edited unit?): re-run ./install-kolibri.sh --no-smoke"
rm -f "$KOL_STAGE"; die "the Kolibri-1 unit's rewrite to $KOL_MODEL failed (hand-edited unit?): re-run ./install-kolibri.sh --no-smoke"
fi
diff "$KOL_STAGE" "$KOLIBRI_UNIT" || true # show exactly what changes
sudo install -m 644 "$KOL_STAGE" "$KOLIBRI_UNIT"
@@ -805,9 +805,10 @@ if [ "$CHOICE" = "image" ] || [ "$CHOICE" = "image-turbo" ]; then
# The same two lessons the text lanes learned: Xet stalls on this box, and an
# unauthenticated pull gets throttled. ckpt-fetch.py, the one fetch of every lane: the
# cache first, so a complete one answers without touching the network at all; both
# checkpoints of this lane are about 33 GB, refused before the first byte when the room
# is not there. A revision is fetched as such and refs/main pointed at it, because the
# unit runs offline by name, which resolves refs/main: fetched at main, a push upstream
# checkpoints of this lane are about 33 GB (33.13 and 32.49: --need-gb 34 is the larger, rounded
# up), refused before the first byte when the room is not there. A revision is fetched as such
# and refs/main pointed at it, because the unit runs offline by name, which resolves refs/main:
# fetched at main, a push upstream
# would have changed what the lane serves (the same lesson as install-image.sh, 2026-09-24).
HF_HOME="${IMG_HF:-$HF_CACHE}" HF_HUB_DOWNLOAD_TIMEOUT=30 HF_HUB_DISABLE_XET=1 \
HF_HUB_DISABLE_PROGRESS_BARS="$DL_NO_BARS" \
@@ -940,7 +941,7 @@ if [ "$CHOICE" = "video" ]; then
# runtime, before the checkpoint, and this counted the checkpoint alone, so a disk with room
# for each part passed both and filled up at the first start (found in review, 2026-10-15).
dev_of(){ stat -L -c %d "$(existing "$1")"; }
VID_DEV="$(dev_of "${VID_HF:-$HF_CACHE}")"; VID_WHAT="about $VID_WANT_GB GB for the checkpoint"
VID_DEV="$(dev_of "${VID_HF:-$HF_CACHE}")"; VID_WHAT="about $VID_WANT_GB GiB for the checkpoint"
declare -A C_NEED=() C_AT=() C_DIRS=() C_WHAT_ON=()
while IFS='|' read -r C_DIR C_GB C_WHAT; do
[ "$C_GB" -gt 0 ] || continue
@@ -957,11 +958,11 @@ if [ "$CHOICE" = "video" ]; then
for C_DEV in "${!C_NEED[@]}"; do
C_FREE="$(dl_free_gb "${C_AT[$C_DEV]}")"
[ "${C_FREE:-0}" -ge "${C_NEED[$C_DEV]}" ] \
|| die "not enough room for the video lane's first start under ${C_DIRS[$C_DEV]}: ${C_FREE:-?} GB free, about ${C_NEED[$C_DEV]} GB needed (${C_WHAT_ON[$C_DEV]}; nothing was changed). Free some space first."
|| die "not enough room for the video lane's first start under ${C_DIRS[$C_DEV]}: ${C_FREE:-?} GiB free, about ${C_NEED[$C_DEV]} GiB needed (${C_WHAT_ON[$C_DEV]}; nothing was changed). Free some space first."
done
VID_FREE_GB="$(dl_free_gb "${VID_HF:-$HF_CACHE}")"
[ "${VID_FREE_GB:-0}" -ge "$VID_WANT_GB" ] \
|| die "not enough room for $VID_MODEL under HF_HOME=${VID_HF:-$HF_CACHE}: ${VID_FREE_GB:-?} GB free, about $VID_WANT_GB GB needed ($VID_WHAT; nothing was changed). Free some space first, or point HF_HOME at a bigger disk."
|| die "not enough room for $VID_MODEL under HF_HOME=${VID_HF:-$HF_CACHE}: ${VID_FREE_GB:-?} GiB free, about $VID_WANT_GB GiB needed ($VID_WHAT; nothing was changed). Free some space first, or point HF_HOME at a bigger disk."
# ckpt-fetch.py, the one fetch of every lane: the cache first (a full sha resolves straight
# from snapshots/, refs or no refs), then the rest with resumed attempts. refs/main is what
# the offline unit resolves, and a download by sha never writes it: --refs-main fill creates
@@ -1162,7 +1163,7 @@ printf '\n\033[1;36m── Verifying/downloading %s @ %s (resumable)\033[0m\n' "
DL_NEED_GB="$(ckpt_room_gb "$TARGET_LANE" "$HF_CACHE" "$TARGET_REPO" "$TARGET_REV")" # lanes.sh, the first Load's too
DL_FREE_GB="$(dl_free_gb)"
[ "${DL_FREE_GB:-0}" -ge "$DL_NEED_GB" ] \
|| die "not enough room for $TARGET_REPO under HF_CACHE=$HF_CACHE: ${DL_FREE_GB:-?} GB free, about $DL_NEED_GB GB needed (nothing was changed). Free some space first."
|| die "not enough room for $TARGET_REPO under HF_CACHE=$HF_CACHE: ${DL_FREE_GB:-?} GiB free, about $DL_NEED_GB GiB needed (nothing was changed). Free some space first."
DL_TOKEN_ARGS=()
# by name: docker takes the value from its own environment, so the token is not in the
# docker client's argv, which any local user can read in /proc (found in review, 2026-09-24)
@@ -1194,7 +1195,7 @@ docker run --rm --init --network host --user "$(id -u):$(id -g)" \
-v "$REPO_DIR/ckpt-fetch.py:/opt/qwen38/ckpt-fetch.py:ro" \
-v "$HF_CACHE":/hf \
"$DL_IMAGE" /opt/qwen38/ckpt-fetch.py "$TARGET_REPO" "$TARGET_REV" --offline-first --refs-main fill \
|| die "download failed ($(dl_free_gb) GB left under $HF_CACHE; if that is near 0 the disk filled up, otherwise re-run to resume: HuggingFace throttles unauthenticated downloads, set HF_TOKEN=<your token> if it stalls)"
|| die "download failed ($(dl_free_gb) GiB left under $HF_CACHE; if that is near 0 the disk filled up, otherwise re-run to resume: HuggingFace throttles unauthenticated downloads, set HF_TOKEN=<your token> if it stalls)"
fetched "$TARGET_REPO @ ${TARGET_REV:0:12}"
# 2) 1M YaRN patch on the target's cached config.json (27B pair only, and only
+2 -2
View File
@@ -237,7 +237,7 @@ class Room(unittest.TestCase):
def test_no_room_stops_before_the_first_byte(self):
rc, out, err, calls = Box(cached=False).run("--offline-first", "--need-gb", "34", "--free-gb", "10")
self.assertNotEqual(rc, 0)
self.assertIn("10 GB free in the cache, and org/model needs about 34 GB more: free some space first", err)
self.assertIn("10 GiB free in the cache, and org/model needs about 34 GB more: free some space first", err)
self.assertEqual([c["local"] for c in calls], [True], "nothing asked of the network")
def test_what_the_cache_holds_comes_off_the_need(self):
@@ -256,7 +256,7 @@ class Room(unittest.TestCase):
self.assertEqual(rc, 0, err)
rc, out, err, calls = Box(cached=False, blobs_bytes=70 * 10**9).run(
"--offline-first", "--need-gb", "79", "--free-gb", "8")
self.assertIn("8 GB free in the cache, and org/model needs about 9 GB more", err)
self.assertIn("8 GiB free in the cache, and org/model needs about 9 GB more", err)
def test_a_free_space_df_could_not_say_checks_nothing(self):
# dl_free_gb answers "" when df cannot: the copies before took that as no check
+2 -1
View File
@@ -137,7 +137,8 @@ class TheDiskNeedsAreThePreflights(unittest.TestCase):
ple = re.findall(r"NEED_GB=\$\(\(NEED_GB \+ (\d+)\)\)", sh)
self.assertEqual(len(ple), 1, "the PLE table's share moved: fix the pattern")
f_hf += gb(ple[0])
labels = [gb(n) for n in re.findall(r'IMG_LABEL="(\d+) GB Docker image"', sh)]
labels = [gb(n) for n in re.findall(r'IMG_LABEL="(\d+) GiB Docker image"', sh)]
self.assertEqual(len(labels), 2, "the two images' labels moved: fix the pattern")
readme = (REPO / "README.md").read_text()
req = next(line for line in readme.splitlines() if line.startswith("Requirements:"))
for n in (b_hf, b_docker, f_hf, f_docker, b_hf + b_docker, f_hf + f_docker):
+2 -2
View File
@@ -133,8 +133,8 @@ class ThePleTableAndTheImageOnOneDisk(unittest.TestCase):
def test_their_sum_is_asked_on_their_disk(self):
out = self.run_section(98)
self.assertIn("DIE: Need ~99 GB free on the disk that holds both PLE_DIR=", out)
self.assertIn("50 for the flash lane's PLE table, 49 for the 32 GB Docker image", out)
self.assertIn("DIE: Need ~99 GiB free on the disk that holds both PLE_DIR=", out)
self.assertIn("50 for the flash lane's PLE table, 49 for the 32 GiB Docker image", out)
self.assertIn("FITS", self.run_section(99))
+4 -4
View File
@@ -30,7 +30,7 @@ printf 'Disp.\\n %sG\\n' "$FAKE_FREE"
def block() -> str:
text = INSTALL.read_text()
start = text.index("DOCKER_ROOT=$(docker info")
end = text.index("\n", text.index('|| die "Need ~${DOCKER_NEED_GB} GB free on $DOCKER_ROOT', start)) + 1
end = text.index("\n", text.index('|| die "Need ~${DOCKER_NEED_GB} GiB free on $DOCKER_ROOT', start)) + 1
return text[start:end]
@@ -57,17 +57,17 @@ class TheDockerRoomFollowsWhatThereIsToPull(unittest.TestCase):
def test_a_first_pull_still_needs_the_room_for_the_image(self):
out = run("27b", 36, [])
self.assertIn("DIE: Need ~40 GB free on /var/lib/docker for the 39 GB Docker image; found 36 GB", out)
self.assertIn("DIE: Need ~40 GiB free on /var/lib/docker for the 39 GB Docker image; found 36 GiB", out)
def test_even_an_image_in_place_needs_the_containers_room(self):
out = run("27b", 3, ["lmsysorg/sglang@sha256:27b"])
self.assertIn("DIE: Need ~5 GB free on /var/lib/docker for the container (its image is already here)", out)
self.assertIn("DIE: Need ~5 GiB free on /var/lib/docker for the container (its image is already here)", out)
def test_the_flash_lane_looks_for_its_own_image(self):
self.assertIn("PASS need=5 pull=lmsysorg/sglang@sha256:flash",
run("flash", 20, ["lmsysorg/sglang@sha256:flash"]))
# the 27B's image being here says nothing about the flash lane's
self.assertIn("DIE: Need ~35 GB free", run("flash", 20, ["lmsysorg/sglang@sha256:27b"]))
self.assertIn("DIE: Need ~35 GiB free", run("flash", 20, ["lmsysorg/sglang@sha256:27b"]))
+5 -5
View File
@@ -15,7 +15,7 @@ def line(prefix):
class ADfThatFailsSaysSo(unittest.TestCase):
"""A df that fails under pipefail ended the install at its own line, and the
"found unknown GB" message written for exactly that case never showed."""
"found unknown GiB" message written for exactly that case never showed."""
def run_lines(self, *lines):
d = pathlib.Path(tempfile.mkdtemp(prefix="df-fail-"))
@@ -30,12 +30,12 @@ class ADfThatFailsSaysSo(unittest.TestCase):
def test_the_hf_cache_disk(self):
out = self.run_lines(line("FREE_DISK_GB="), line('[ -n "$FREE_DISK_GB" ]'))
self.assertIn("DIE: Need ~45 GB free", out)
self.assertIn("found unknown GB", out)
self.assertIn("DIE: Need ~45 GiB free", out)
self.assertIn("found unknown GiB", out)
def test_the_docker_disk(self):
out = self.run_lines(line("DOCKER_FREE_GB="), line('[ "${DOCKER_FREE_GB:-0}"'))
self.assertIn("DIE: Need ~40 GB free on", out)
self.assertIn("DIE: Need ~40 GiB free on", out)
class TheDownloadHintNamesTheDraftPin(unittest.TestCase):
@@ -242,7 +242,7 @@ class OneDiskForBoth(unittest.TestCase):
return r.stdout
def test_the_sum_is_asked_on_one_disk(self):
self.assertIn("DIE: Need ~85 GB free on the disk that holds both", self.run_block(True, 60))
self.assertIn("DIE: Need ~85 GiB free on the disk that holds both", self.run_block(True, 60))
self.assertIn("FITS", self.run_block(True, 90))
def test_two_disks_are_left_to_their_own_checks(self):
+5 -5
View File
@@ -552,8 +552,8 @@ class TheFlashPreparation(unittest.TestCase):
got, out, calls = b.run("flash")
self.assertEqual(got, rc, out)
if rc:
self.assertIn(f"need ~99 GB free on the disk of {b.t}/docker-root and {b.ple} for this first Load "
"(49 for its image; 50 for its PLE table, 47.7 GiB written at every boot); found 98 GB", out)
self.assertIn(f"need ~99 GiB free on the disk of {b.t}/docker-root and {b.ple} for this first Load "
"(49 for its image; 50 for its PLE table, 47.7 GiB written at every boot); found 98 GiB", out)
self.assertEqual(heads(calls), ["docker image", "docker info"])
(ssd / "hf").rename(ssd / f"hf-{home_free}")
@@ -594,7 +594,7 @@ class TheFlashPreparation(unittest.TestCase):
# the image, the checkpoint and its caches, the PLE table: summed on their one disk
rc, out, calls = self.box(free_gb=20).run("flash")
self.assertEqual(rc, 1, out)
self.assertIn("need ~279 GB free on the disk of ", out)
self.assertIn("need ~279 GiB free on the disk of ", out)
self.assertIn("for this first Load (49 for its image; 180 for its checkpoint and its caches; "
"50 for its PLE table, 47.7 GiB written at every boot)", out)
self.assertEqual(heads(calls), ["docker image", "docker info"])
@@ -604,7 +604,7 @@ class TheFlashPreparation(unittest.TestCase):
# in review, 2026-10-15)
rc, out, calls = self.box(image_here=True, free_gb=200).run("flash")
self.assertEqual(rc, 1, out)
self.assertIn("need ~230 GB free on the disk of ", out)
self.assertIn("need ~230 GiB free on the disk of ", out)
self.assertIn("50 for its PLE table", out)
self.assertNotIn("for its image", out) # what is already here is not listed
self.assertNotIn("switch-model.sh flash", heads(calls)) # nothing fetched
@@ -706,7 +706,7 @@ class TheTwentySevenBPreparation(unittest.TestCase):
self.assertEqual(rc, 1, out)
# the draft in the checkpoint's 45, as install.sh counts them: 5 more for it asked 98 where
# install.sh asks 93 (found in review, 2026-10-15)
self.assertIn("need ~93 GB free on the disk of ", out)
self.assertIn("need ~93 GiB free on the disk of ", out)
self.assertIn("for this first Load (48 for its image; 45 for its checkpoint, its DFlash2 draft and their caches)", out)
self.assertEqual(heads(calls), ["docker image", "docker info"])
+120
View File
@@ -0,0 +1,120 @@
#!/usr/bin/env python3
"""A room message says the unit it counts in, and a vLLM lane is named by its official name (v1.46.3).
Every room check of the installers and the switch holds what `df -BG` prints, which is GiB, against a need
counted in GiB, and said both in "GB": "Need ~45 GB free ...; found 44 GB" on a disk with 47.2 GB free, where
the README gives the same check as 49 GB (v1.46.1 gave each size one figure in its unit, and left these
messages; found on 2026-11-10 by the review of that version). They say GiB now. ple-table.py divides bytes by
10^9 and keeps its GB.
The vLLM lanes' installers named their lane in a sentence by a short name (VLANE_SHORT: "Kolibri", "Nemotron",
"Super VL") where every other line of a run says the official one (decision 1180 of 2026-11-07, lane_title),
and check-pins.sh headed their pins "Kolibri lane", "Nemotron lane" and "Nemotron Super lane".
Run: python3 tests/test_room_unit_and_lane_names.py
"""
import importlib.util
import pathlib
import re
import unittest
REPO = pathlib.Path(__file__).resolve().parents[1]
# what a room message said of a figure df -BG gave, or of a need held against one
GIB_SAID_GB = re.compile(r"\bGB free\b|\bGB left under\b|\bfound \$\{[A-Za-z_]+:-(?:unknown|\?)\} GB\b"
r"|\bGB needed \(|\bneeds? about \$[{(A-Za-z_]+[^ ]* GB\b"
r"|\$\{?[A-Za-z_]*(?:NEED|WANT)[A-Za-z_]*\}? GB\b|IMG_LABEL=\"\d+ GB\b")
def registry():
spec = importlib.util.spec_from_file_location("lane_registry", REPO / "lane_registry.py")
mod = importlib.util.module_from_spec(spec)
spec.loader.exec_module(mod)
return mod
def code_lines(path):
"""(number, line) of the lines of a shell script that are not comments."""
for n, line in enumerate(path.read_text().splitlines(), 1):
if not line.lstrip().startswith("#"):
yield n, line
class ARoomMessageSaysGiB(unittest.TestCase):
def test_the_rule_reads_the_messages_it_is_for(self):
"""The phrases this file looks for are the ones the scripts wrote: each is found in its old wording, and
none in its new one. A rule that matches nothing proves nothing."""
old = ['die "${FREE_W:-?} GB free under HF_CACHE=$HF_CACHE, the checkpoint needs about $WEIGHTS_NEED GB more."',
'die "Need ~${NEED_GB} GB free for the checkpoints; found ${FREE_DISK_GB:-unknown} GB. Free some space"',
'die "not enough room: ${DL_FREE_GB:-?} GB free, about $DL_NEED_GB GB needed (nothing was changed)."',
'die "download failed ($(dl_free_gb) GB left under $HF_CACHE; re-run to resume)"',
'die "${free_d:-?} GiB free under $DOCKER_ROOT, the image needs about $IMAGE_NEED GB."',
'VID_WHAT="about $VID_WANT_GB GB for the checkpoint"',
'NEED_GB=45; DOCKER_NEED_GB=48; IMG_LABEL="31 GB Docker image"',
"""|| echo "$WEIGHTS_NEED GB to download into $HF_CACHE")"."""]
for line in old:
self.assertRegex(line, GIB_SAID_GB)
new = ['die "${FREE_W:-?} GiB free under HF_CACHE=$HF_CACHE, the checkpoint needs about $WEIGHTS_NEED GiB more."',
'die "Need ~${NEED_GB} GiB free for the checkpoints; found ${FREE_DISK_GB:-unknown} GiB. Free some space"',
'die "not enough room: ${DL_FREE_GB:-?} GiB free, about $DL_NEED_GB GiB needed (nothing was changed)."',
'echo "about $dl_gb GB to download"',
'VID_WHAT="about $VID_WANT_GB GiB for the checkpoint"',
'NEED_GB=45; DOCKER_NEED_GB=48; IMG_LABEL="31 GiB Docker image"',
"""|| echo "$WEIGHTS_NEED GiB to download into $HF_CACHE")"."""]
for line in new:
self.assertNotRegex(line, GIB_SAID_GB)
def test_no_script_says_gb_of_what_df_counts_in_gib(self):
said = [f"{path.name}:{n}: {line.strip()[:120]}" for path in sorted(REPO.glob("*.sh"))
for n, line in code_lines(path) if GIB_SAID_GB.search(line)]
self.assertEqual(said, [])
def test_the_scripts_still_have_their_room_messages(self):
"""The rule above passes on a script with no room message at all: these still have theirs, in GiB."""
for name, least in (("install.sh", 5), ("install-image.sh", 3), ("install-video.sh", 1), ("install-speech.sh", 1),
("vllm-lane.sh", 3), ("lanes.sh", 1), ("prepare-lane.sh", 1), ("switch-model.sh", 4)):
n = sum(len(re.findall(r"\bGiB (?:free|left under)\b", line)) for _, line in code_lines(REPO / name))
self.assertGreaterEqual(n, least, name)
def test_the_fetch_says_gib_of_the_free_side_and_gb_of_the_need(self):
"""ckpt-fetch.py is handed df -BG's figure (--free-gb) and a need in GB of 10^9 bytes (--need-gb), which
its room() compares in bytes: each side is said in its own unit."""
text = (REPO / "ckpt-fetch.py").read_text()
self.assertIn('f"{free_gb} GiB free in the cache, and {repo} needs about {-(-rest // 10**9)} GB more: "', text)
self.assertNotIn("GB free in the cache", text.replace("GiB free in the cache", ""))
class AVllmLaneIsNamedOfficially(unittest.TestCase):
def test_each_installer_names_its_lane_by_its_title(self):
reg = registry()
lanes = reg.lanes(engine="vllm")
self.assertGreaterEqual(len(lanes), 5)
for lane in lanes:
text = (REPO / reg.LANES[lane]["installer"]).read_text()
m = re.search(r'^VLANE=([a-z0-9-]+); VLANE_SHORT=("[^"\n]*"|\S+)$', text, re.M)
self.assertIsNotNone(m, lane)
self.assertEqual((m.group(1), m.group(2).strip('"')), (lane, reg.LANES[lane]["title"]))
def test_the_first_step_of_an_installer_names_no_short_name(self):
""" "1/5 Preflight (Bolt: ...", "(Super VL: ..." and "(FP4-Local: ..." were the three short names left."""
reg = registry()
for lane in ("nemotron", "nemotron-super", "flash-local", "ornith-122b"):
text = (REPO / reg.LANES[lane]["installer"]).read_text()
self.assertIn(f'step "1/5 Preflight ({reg.LANES[lane]["title"]}: $MODEL', text, lane)
def test_check_pins_heads_each_vllm_lane_by_its_title(self):
reg = registry()
heads = re.findall(r'^echo "([^"]+ lane)"$', (REPO / "check-pins.sh").read_text(), re.M)
for lane in reg.lanes(engine="vllm"):
self.assertIn(f'{reg.LANES[lane]["title"]} lane', heads, lane)
for short in ("Kolibri lane", "Nemotron lane", "Nemotron Super lane"):
self.assertNotIn(short, heads)
def test_the_switch_names_kolibri_1(self):
text = "\n".join(line for _, line in code_lines(REPO / "switch-model.sh"))
self.assertEqual(re.findall(r'die "the Kolibri (?:checkpoint|unit)', text), [])
self.assertEqual(len(re.findall(r'die "the Kolibri-1 (?:checkpoint|unit)', text)), 3)
if __name__ == "__main__":
unittest.main()
+2 -2
View File
@@ -133,10 +133,10 @@ class TheVideoSwitchChecksForRoomToo(unittest.TestCase):
# 2026-10-15)
out = run_video(free_gb=200, home_disk_gb=16)
self.assertIn("DIE: not enough room for the video lane's first start", out)
self.assertIn("about 17 GB needed", out)
self.assertIn("about 17 GiB needed", out)
# each folder named, not the last one alone (found in review, 2026-10-15)
self.assertIn("/home/.cache/sglang/diffusion/host_spill and ", out)
self.assertIn("/home/.cache/sgl_diffusion/decode_dtype_store: 16 GB free", out)
self.assertIn("/home/.cache/sgl_diffusion/decode_dtype_store: 16 GiB free", out)
self.assertIn("NEED=135", run_video(free_gb=200, home_disk_gb=17))
def test_without_install_video_sh_it_asks_the_same_room(self):
+1 -1
View File
@@ -347,7 +347,7 @@ class TheInstaller(unittest.TestCase):
135 + 11 + 12 + 5 there."""
out = self.room(free_gb=160)
self.assertIn("DIE:", out)
self.assertIn("needs about 163 GB there", out)
self.assertIn("needs about 163 GiB there", out)
self.assertIn("12 for the runtime's transformed weights", out)
self.assertIn("5 for the decoder's converted weights", out)
self.assertIn("ROOM-OK", self.room(free_gb=163))
+4 -4
View File
@@ -58,8 +58,8 @@ class AVllmLaneCountsItsRoomInOneUnit(unittest.TestCase):
out = run(79, 32, 106)
self.assertIn("ROOM-OK", out, out)
out = run(79, 32, 105)
self.assertIn("DIE: 105 GB free on the disk of", out)
self.assertIn("this needs about 106 GB (74 for the checkpoint, 32 for the image)", out)
self.assertIn("DIE: 105 GiB free on the disk of", out)
self.assertIn("this needs about 106 GiB (74 for the checkpoint, 32 for the image)", out)
def test_what_the_cache_holds_comes_off_by_bytes(self):
# 40 GB of the 79 already there: 39 GB, 36.3 GiB, so 37 left to fetch
@@ -70,8 +70,8 @@ class AVllmLaneCountsItsRoomInOneUnit(unittest.TestCase):
def test_the_line_that_says_it_fits_gives_the_download_in_gb(self):
# the check counts 74 GiB, and the line still says what is downloaded: 79 GB, 39 of 40 cached
self.assertIn("checkpoint 79 GB to download into", run(79, 32, 106))
self.assertIn("checkpoint 39 GB to download into", run(79, 32, 106, cached_bytes=40_000_000_000))
self.assertIn("checkpoint about 79 GB to download into", run(79, 32, 106))
self.assertIn("checkpoint about 39 GB to download into", run(79, 32, 106, cached_bytes=40_000_000_000))
self.assertIn("checkpoint already cached into", run(79, 32, 106, cached_bytes=79_000_000_000))
def test_an_image_already_here_needs_no_room(self):
+1 -1
View File
@@ -257,7 +257,7 @@ if [ "$PRIV" -eq 1 ]; then
else
docker rm -f qwen38-sglang-run 2>/dev/null || true # ./run.sh's foreground engine, if one was left
fi
# The image lane's runtime is the user's, not root's: no sudo, and the 31 GB checkpoint
# The image lane's runtime is the user's, not root's: no sudo, and the 31 GiB checkpoint
# stays in the HF cache with every other checkpoint, which this script reports separately.
# Only what install-image.sh put there (venv/ and sglang/): IMAGE_LANE_DIR can be a
# directory shared with other work, and removing it whole took the rest with it (found in
+6 -5
View File
@@ -5,7 +5,8 @@
#
# VLANE the lane (kolibri, nemotron, nemotron-super, flash-local, ornith-122b): its opencode provider, the
# record of the text lane it took the boot from (lanes.sh), its --no-<lane>, its cache folder
# VLANE_SHORT the lane in a sentence (Kolibri, Nemotron, Super VL, Qwen3.8 Flash-Next FP4-Local, Ornith 1.5 122B)
# VLANE_SHORT the lane in a sentence, by its official name (Kolibri-1, Nemotron 3.5 Bolt, Nemotron 3.5 Super VL,
# Qwen3.8 Flash-Next FP4-Local, Ornith 1.5 122B)
# UNIT, INSTALLED, CONTAINER, CONFIG_DIR, HERE; and, for each part below, what it says it reads.
#
# Until v1.35 each installer carried its own copy of all of it, one renamed from the other: a fix
@@ -273,14 +274,14 @@ vlane_room(){ # $1 the base image, $2... the checkpoints' repos
hf_dev="$(existing "$HF_CACHE")"; docker_dev="$(existing "$DOCKER_ROOT")"
if [ "$(stat -L -c %d "$hf_dev")" = "$(stat -L -c %d "$docker_dev")" ]; then
[ "${free_w:-0}" -ge "$((WEIGHTS_NEED + IMAGE_NEED))" ] \
|| die "${free_w:-?} GB free on the disk of $HF_CACHE and $DOCKER_ROOT, this needs about $((WEIGHTS_NEED + IMAGE_NEED)) GB ($WEIGHTS_NEED for the $what, $IMAGE_NEED for the image). Free some space, or ./install.sh --no-$VLANE to leave this lane out."
|| die "${free_w:-?} GiB free on the disk of $HF_CACHE and $DOCKER_ROOT, this needs about $((WEIGHTS_NEED + IMAGE_NEED)) GiB ($WEIGHTS_NEED for the $what, $IMAGE_NEED for the image). Free some space, or ./install.sh --no-$VLANE to leave this lane out."
else
[ "${free_w:-0}" -ge "$WEIGHTS_NEED" ] \
|| die "${free_w:-?} GB free under HF_CACHE=$HF_CACHE, the $what need$([ "$#" -eq 1 ] && echo s) about $WEIGHTS_NEED GB more. Free some space, or ./install.sh --no-$VLANE."
|| die "${free_w:-?} GiB free under HF_CACHE=$HF_CACHE, the $what need$([ "$#" -eq 1 ] && echo s) about $WEIGHTS_NEED GiB more. Free some space, or ./install.sh --no-$VLANE."
[ "${free_d:-0}" -ge "$IMAGE_NEED" ] \
|| die "${free_d:-?} GB free under $DOCKER_ROOT, the image needs about $IMAGE_NEED GB. Free some space, or ./install.sh --no-$VLANE."
|| die "${free_d:-?} GiB free under $DOCKER_ROOT, the image needs about $IMAGE_NEED GiB. Free some space, or ./install.sh --no-$VLANE."
fi
echo "OK: $(uname -m), key present, $what $([ "$MODE" = prepare ] && echo "left to the Load's switch" || { [ "$WEIGHTS_NEED" -eq 0 ] && echo 'already cached'; } || echo "$dl_gb GB to download") into $HF_CACHE, engine on $ENGINE_BIND:$PORT"
echo "OK: $(uname -m), key present, $what $([ "$MODE" = prepare ] && echo "left to the Load's switch" || { [ "$WEIGHTS_NEED" -eq 0 ] && echo 'already cached'; } || echo "about $dl_gb GB to download") into $HF_CACHE, engine on $ENGINE_BIND:$PORT"
}
# ── The checkpoints ──────────────────────────────────────────────────────────────────────────