mirror of
https://github.com/hasso5703/alzeo.git
synced 2026-12-05 12:24:28 +01:00
v1.59: the Inkling 2 Mini lane (inkling), on SGLang's own image for it, in every lane list
install-inkling.sh serves Thinking Machines' Inkling 2 Mini (thinkingmachines/Inkling-2-Mini at its pinned revision, Apache-2.0: a looped mixture of experts, 26.4B parameters with 3.4B active, text and images in) with the DSpark draft head its checkpoint carries, on the text port behind the proxy, as model inkling-2-mini. The engine is SGLang from the image its cookbook gives the model (lmsysorg/sglang:inkling-2-mini, by the digest of its arm64 build), with the cookbook's DGX Spark recipe and its DSpark arm word for word, as the reference box measured it on 2026-11-22: a static share of 0.45, FA4, bfloat16, pages of 128, 8 draft tokens verified per step, MAX_JOBS=4 and the four SGLANG_OPT_* variables, xgrammar, images on, the inkling reasoning and inkling2 tool-call parsers; the model's window of 1,048,576 tokens and the 48 requests SGLang set itself, said so that no later default moves them; and what every SGLang lane of this box passes besides (the key by --config, the scheduler parked when idle, the metrics, the cache report). Its fetch pins refs/main, through which SGLang reads the draft head by the model's name. Its caches keep the kernels its engine compiles at its first start. The lane in every list: the registry, boxmem (refused on a 64 GB box: measured on a 128 GB one only), every engine unit's Conflicts= and After=, the proxy's hold units and its pair's lane names, install.sh (--with-inkling, --no-inkling, on demand by default, its boot kept by an update, its proof, its summary line), switch-model.sh (target inkling), prepare-lane.sh, uninstall.sh (its image is its own: the uninstall takes its tag and a prune reclaims it), check-pins.sh, the cockpit's sudoers lines, the CI's lists and gates, and lane-templates-check.py (its template as published, rendered for every client shape as SGLang hands them). The cockpit follows it as an SGLang text lane (the canary, the pool guard and the autoheal are its own), with its card, its names, its note with the reference box's measures, its engine, its boot default (222 s measured), its journal and its container; its mark is a plain badge of Thinking Machines' initials, no icon set having one. Its clients: opencode's provider inkling (oc-inkling.py), images in, five variants each a level its template reads by name, a pair of 374,000 and 32,000 that fits the pool measured at its window, and oc-fit-limits.py keeping that output as its ceiling whatever its window (ANSWER_CAPPED), as its card recommends limits on output tokens. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f41ce9e63c
commit
b73eac92df
78 files changed
+1703
-250
No files matched your search
@@ -490,15 +490,16 @@ jobs:
|
||||
# (--with-ornith-122b), and `flash-unsloth` and `flash-unsloth-iq3`, the Qwen3.8
|
||||
# Flash-Next Unsloth GGUF lane's two quantizations (--with-flash-unsloth), and the MiniMax-H3-Image
|
||||
# lane's `image-h3` (--with-image-h3), the NVIDIA Nemotron Transcribe lane's `transcribe`
|
||||
# (--with-transcribe), the Liquid AI LFM2.5 24B-A2B lane's `lfm25` (--with-lfm25) and the Liquid AI
|
||||
# LFM3 lane's `lfm3` (--with-lfm3), each
|
||||
# (--with-transcribe), the Liquid AI LFM2.5 24B-A2B lane's `lfm25` (--with-lfm25), the Liquid AI
|
||||
# LFM3 lane's `lfm3` (--with-lfm3) and the Inkling 2 Mini lane's `inkling` (--with-inkling), each
|
||||
# switched to like any other, and none a MODEL_CHOICE (none has a recipe; Kolibri, the Nemotron
|
||||
# lanes, Flash FP4-Local and Ornith serve text from vLLM, the Unsloth GGUF lane from llama.cpp,
|
||||
# and the LFM2.5 lane from SGLang, under their own installers). Both sets are asserted, so a
|
||||
# and the LFM2.5 and Inkling lanes from SGLang, under their own installers). Both sets are asserted, so a
|
||||
# target added to the switcher and forgotten in the cockpit's enum is
|
||||
# still caught.
|
||||
FLAG_LANES = ["image", "image-turbo", "video", "kolibri", "kolibri-nvfp4", "nemotron", "nemotron-super", "flash-local",
|
||||
"ornith-122b", "flash-unsloth", "flash-unsloth-iq3", "image-h3", "transcribe", "lfm25", "lfm3"]
|
||||
"ornith-122b", "flash-unsloth", "flash-unsloth-iq3", "image-h3", "transcribe", "lfm25", "lfm3",
|
||||
"inkling"]
|
||||
ref = choices
|
||||
switch_ref = sorted(ref + FLAG_LANES)
|
||||
text_lists = {"install.sh MODEL_CHOICE": choices, "recipes BUILTIN_IDS": sorted(builtins)}
|
||||
@@ -596,6 +597,14 @@ jobs:
|
||||
read -r C O _ <<<"$(l lfm3)"
|
||||
[ $(( C - 20000 + 43863 + O )) -le 262144 ] || { echo "lfm3: past its 262,144 window"; exit 1; }
|
||||
[ $(( C + 25000 + O )) -le 262144 ] || { echo "lfm3: past its window by oc-fit-limits.py's rule"; exit 1; }
|
||||
# The Inkling 2 Mini lane, at its window of 1,048,576 tokens, which its pool decides (490,496 tokens measured at
|
||||
# the cookbook's share): the pair fits that pool less 10 %, and the window the prompt at opencode's compaction
|
||||
# point, one agent step and the answer
|
||||
[ "$(l inkling)" = "374000 32000 local, 1M" ] || { echo "inkling drifted"; exit 1; }
|
||||
read -r C O _ <<<"$(l inkling)"
|
||||
LOW=$(( 490496 * 92 / 100 * 90 / 100 ))
|
||||
[ $(( C + O )) -le "$LOW" ] || { echo "inkling: $C + $O passes $LOW, its pool less 10 %"; exit 1; }
|
||||
[ $(( C - 20000 + 43863 + O )) -le 1048576 ] || { echo "inkling: past its 1,048,576 window"; exit 1; }
|
||||
# Nonsense is refused rather than defaulted, or a typo silently serves
|
||||
# the wrong budget.
|
||||
! l banana native 2>/dev/null || { echo "an unknown target must be refused"; exit 1; }
|
||||
@@ -868,7 +877,7 @@ jobs:
|
||||
# so the flag is a gate now, not a habit.
|
||||
for f in qwen38-sglang.service.template qwen38-sglang-1m.service.template \
|
||||
qwen38-flash-launch.sh.template run.sh qwen38-image-h3.service.template \
|
||||
qwen38-lfm25.service.template; do
|
||||
qwen38-lfm25.service.template qwen38-inkling.service.template; do
|
||||
grep -q -- '--sleep-on-idle' "$f" || { echo "$f does not park its scheduler when idle"; exit 1; }
|
||||
done
|
||||
# The image and video lanes' runtime (v0.5.21) has no such flag: their scheduler-idle-poll
|
||||
@@ -884,7 +893,8 @@ jobs:
|
||||
# unnoticed, and its exposure is stated (unauthenticated on a port whose
|
||||
# whole surface already assumes a trusted network: SECURITY.md).
|
||||
for f in qwen38-sglang.service.template qwen38-sglang-1m.service.template \
|
||||
qwen38-flash-launch.sh.template run.sh qwen38-lfm25.service.template; do
|
||||
qwen38-flash-launch.sh.template run.sh qwen38-lfm25.service.template \
|
||||
qwen38-inkling.service.template; do
|
||||
grep -q -- '--enable-metrics' "$f" || { echo "$f exports no metrics"; exit 1; }
|
||||
done
|
||||
|
||||
@@ -1039,12 +1049,12 @@ jobs:
|
||||
script = pathlib.Path("switch-model.sh").read_text()
|
||||
alw = pathlib.Path("dashboard/sudoers-cockpit.template").read_text()
|
||||
allowed = {m.strip() for m in re.findall(r"NOPASSWD:\s*(.+)$", alw, re.M)}
|
||||
stage = dict(re.findall(r'^(STAGE_UNIT|STAGE_CEIL|IMG_STAGE|KOL_STAGE|NEM_STAGE|NSV_STAGE|FLL_STAGE|ORN_STAGE|FLU_STAGE|VID_STAGE|H3_STAGE|TRANSCRIBE_STAGE|LFM25_STAGE|LFM3_STAGE)="\$CONFIG_DIR/([^"]+)"', script, re.M))
|
||||
stage = dict(re.findall(r'^(STAGE_UNIT|STAGE_CEIL|IMG_STAGE|KOL_STAGE|NEM_STAGE|NSV_STAGE|FLL_STAGE|ORN_STAGE|FLU_STAGE|VID_STAGE|H3_STAGE|TRANSCRIBE_STAGE|LFM25_STAGE|LFM3_STAGE|INKLING_STAGE)="\$CONFIG_DIR/([^"]+)"', script, re.M))
|
||||
units = {"qwen38-sglang.service", "qwen38-flash.service"}
|
||||
engines = units | {"qwen38-image.service", "qwen38-video.service", "qwen38-kolibri.service", "qwen38-nemotron.service",
|
||||
"qwen38-nemotron-super.service", "qwen38-flash-local.service", "qwen38-ornith-122b.service",
|
||||
"qwen38-flash-unsloth.service", "qwen38-image-h3.service", "qwen38-transcribe.service",
|
||||
"qwen38-lfm25.service", "qwen38-lfm3.service"}
|
||||
"qwen38-lfm25.service", "qwen38-lfm3.service", "qwen38-inkling.service"}
|
||||
values = {
|
||||
"TEXT_UNIT_NAME": engines, "TARGET_UNIT_NAME": units, "OTHER_UNIT_NAME": engines,
|
||||
"IMAGE_UNIT_NAME": {"qwen38-image.service"},
|
||||
@@ -1059,6 +1069,7 @@ jobs:
|
||||
"TRANSCRIBE_UNIT_NAME": {"qwen38-transcribe.service"},
|
||||
"LFM25_UNIT_NAME": {"qwen38-lfm25.service"},
|
||||
"LFM3_UNIT_NAME": {"qwen38-lfm3.service"},
|
||||
"INKLING_UNIT_NAME": {"qwen38-inkling.service"},
|
||||
"TARGET_UNIT": {re.search(r'^SGL_UNIT="([^"]+)"', script, re.M).group(1)},
|
||||
"IMAGE_UNIT": {re.search(r'^IMAGE_UNIT="([^"]+)"', script, re.M).group(1)},
|
||||
"VIDEO_UNIT": {re.search(r'^VIDEO_UNIT="([^"]+)"', script, re.M).group(1)},
|
||||
@@ -1072,6 +1083,7 @@ jobs:
|
||||
"TRANSCRIBE_UNIT": {re.search(r'^TRANSCRIBE_UNIT="([^"]+)"', script, re.M).group(1)},
|
||||
"LFM25_UNIT": {re.search(r'^LFM25_UNIT="([^"]+)"', script, re.M).group(1)},
|
||||
"LFM3_UNIT": {re.search(r'^LFM3_UNIT="([^"]+)"', script, re.M).group(1)},
|
||||
"INKLING_UNIT": {re.search(r'^INKLING_UNIT="([^"]+)"', script, re.M).group(1)},
|
||||
"STAGE_UNIT": {"__HOME__/.config/qwen38/" + stage["STAGE_UNIT"]},
|
||||
"STAGE_CEIL": {"__HOME__/.config/qwen38/" + stage["STAGE_CEIL"]},
|
||||
"IMG_STAGE": {"__HOME__/.config/qwen38/" + stage["IMG_STAGE"]},
|
||||
@@ -1086,6 +1098,7 @@ jobs:
|
||||
"TRANSCRIBE_STAGE": {"__HOME__/.config/qwen38/" + stage["TRANSCRIBE_STAGE"]},
|
||||
"LFM25_STAGE": {"__HOME__/.config/qwen38/" + stage["LFM25_STAGE"]},
|
||||
"LFM3_STAGE": {"__HOME__/.config/qwen38/" + stage["LFM3_STAGE"]},
|
||||
"INKLING_STAGE": {"__HOME__/.config/qwen38/" + stage["INKLING_STAGE"]},
|
||||
}
|
||||
seen, bad = 0, []
|
||||
for raw in script.splitlines():
|
||||
@@ -1240,6 +1253,13 @@ jobs:
|
||||
m = re.search(r'^LFM3_IMAGE="([^"]+)"', pathlib.Path("install-lfm3.sh").read_text(), re.M)
|
||||
if not m or m.group(1) not in un.split('BASE_IMAGES="', 1)[-1].split('"', 1)[0].split():
|
||||
bad.append("install-lfm3.sh LFM3_IMAGE")
|
||||
# and the Inkling 2 Mini lane's checkpoint, and its image, SGLang's own for it, by its digest
|
||||
m = re.search(r'^INKLING_REPO="([^"]+)"', pathlib.Path("install-inkling.sh").read_text(), re.M)
|
||||
if not m or m.group(1) not in un.split('HF_REPOS="', 1)[-1].split('"', 1)[0].split():
|
||||
bad.append("install-inkling.sh INKLING_REPO")
|
||||
m = re.search(r'^INKLING_IMAGE="([^"]+)"', pathlib.Path("install-inkling.sh").read_text(), re.M)
|
||||
if not m or m.group(1) not in un.split('BASE_IMAGES="', 1)[-1].split('"', 1)[0].split():
|
||||
bad.append("install-inkling.sh INKLING_IMAGE")
|
||||
# and the NVIDIA Nemotron Transcribe lane's GGUF repository
|
||||
m = re.search(r'^TRANSCRIBE_REPO="([^"]+)"', pathlib.Path("install-transcribe.sh").read_text(), re.M)
|
||||
if not m or m.group(1) not in un.split('HF_REPOS="', 1)[-1].split('"', 1)[0].split():
|
||||
|
||||
@@ -959,7 +959,7 @@ native context, or watch host `MemAvailable` if you run it at 1M.
|
||||
The flash target is Qwen3.8-Flash-Next (Qwen4-generation preview: 176B hybrid
|
||||
MoE, 6B active, QSA sparse attention, multimodal) in RadixArk's NVFP4, served
|
||||
by SGLang with the model's own NEXTN/MTP speculative head and a working radix
|
||||
(prefix) cache. The ten text units publish the same port and are never enabled
|
||||
(prefix) cache. The eleven text units publish the same port and are never enabled
|
||||
together: switching targets flips which unit starts at boot, the API surface
|
||||
and the keepalive proxy stay put.
|
||||
|
||||
|
||||
@@ -32,10 +32,12 @@ MIN_64_GIB = 48
|
||||
# (docs/image-h3-lane.md); the NVIDIA Nemotron Transcribe lane was measured on a 128 GB box only
|
||||
# (2026-11-14): no 64 GB run, so none is claimed; nor was the Liquid AI LFM2.5 24B-A2B lane, which left 24 GiB
|
||||
# available at its lowest on a 128 GB box (2026-11-14), nor the Liquid AI LFM3 lane, whose share of 0.75 of the memory
|
||||
# the engine sees is about 91 GiB on a 128 GB box: no 64 GB share was measured.
|
||||
# the engine sees is about 91 GiB on a 128 GB box: no 64 GB share was measured; nor the Inkling 2 Mini lane, which held
|
||||
# 53.1 GiB of GPU memory at its peak on a 128 GB box (2026-11-22) with the static share SGLang's cookbook gives a DGX
|
||||
# Spark (0.45): no 64 GB run was made, so no 64 GB share is claimed.
|
||||
FITS_64 = ("27b", "nemotron", "speech")
|
||||
LANES = ("27b", "flash", "image", "video", "kolibri", "nemotron", "nemotron-super", "flash-local",
|
||||
"ornith-122b", "flash-unsloth", "image-h3", "transcribe", "lfm25", "lfm3", "speech")
|
||||
"ornith-122b", "flash-unsloth", "image-h3", "transcribe", "lfm25", "lfm3", "inkling", "speech")
|
||||
# Each target switch-model.sh and MODEL_CHOICE name, and its lane.
|
||||
TARGETS = {"stock": "27b", "uncensored": "27b", "fp8": "27b", "uncensored-fp8": "27b", "arete": "27b",
|
||||
"daisyrose": "27b",
|
||||
@@ -45,7 +47,7 @@ TARGETS = {"stock": "27b", "uncensored": "27b", "fp8": "27b", "uncensored-fp8":
|
||||
"nemotron-super": "nemotron-super", "flash-local": "flash-local", "ornith-122b": "ornith-122b",
|
||||
"flash-unsloth": "flash-unsloth", "flash-unsloth-iq3": "flash-unsloth",
|
||||
"image-h3": "image-h3", "transcribe": "transcribe",
|
||||
"lfm25": "lfm25", "lfm3": "lfm3"}
|
||||
"lfm25": "lfm25", "lfm3": "lfm3", "inkling": "inkling"}
|
||||
# Targets of a lane that fits, which a 64 GB box still does not take: Qwen's FP8 weights of the 27B
|
||||
# (30.9 GB against 21.9 GB for NVFP4) leave its KV pool too little, and no 64 GB run measured them.
|
||||
# Arete's NVFP4 (21.1 GB) weighs less than RadixArk's and takes the same KV cache: it goes where that one goes.
|
||||
|
||||
@@ -91,6 +91,9 @@ eval "$lline"
|
||||
# The Liquid AI LFM3 lane's: Liquid AI's NVFP4 and vLLM's nightly image, pulled as published.
|
||||
l3line="$(grep -E '^LFM3_(REPO|REV|IMAGE)=' "$REPO_DIR/install-lfm3.sh")"
|
||||
eval "$l3line"
|
||||
# The Inkling 2 Mini lane's: Thinking Machines' checkpoint and SGLang's inkling-2-mini image, pulled as published.
|
||||
iline="$(grep -E '^INKLING_(REPO|REV|IMAGE)=' "$REPO_DIR/install-inkling.sh")"
|
||||
eval "$iline"
|
||||
# The speech lane's: llama.cpp's commit, each recognizer's two GGUF at its revision with the
|
||||
# sha256 the install checks, and Kokoro's two files, which nothing checked either (found in the
|
||||
# audit of 2026-10-16). Each recognizer size is a branch of install-speech.sh's case on
|
||||
@@ -492,6 +495,8 @@ check_model lfm25 "$LFM25_REPO" "$LFM25_REV"
|
||||
check_model lfm25-draft "$LFM25_DRAFT_REPO" "$LFM25_DRAFT_REV"
|
||||
echo "Liquid AI LFM3 lane"
|
||||
check_model lfm3 "$LFM3_REPO" "$LFM3_REV"
|
||||
echo "Inkling 2 Mini lane"
|
||||
check_model inkling "$INKLING_REPO" "$INKLING_REV"
|
||||
echo "Speech lane"
|
||||
check_commit speech-llama-cpp ggml-org/llama.cpp "$LLAMA_CPP_PIN"
|
||||
for size in $ASR_SIZES; do
|
||||
@@ -519,6 +524,7 @@ check_image nemotron-base "$NEMOTRON_BASE_IMAGE"
|
||||
check_image flash-local "$FLASH_LOCAL_IMAGE"
|
||||
check_image flash-unsloth "$FLASH_UNSLOTH_IMAGE"
|
||||
check_image lfm3 "$LFM3_IMAGE"
|
||||
check_image inkling "$INKLING_IMAGE"
|
||||
|
||||
echo
|
||||
if [ "$FAIL" -eq 0 ]; then
|
||||
|
||||
+43
-22
@@ -214,17 +214,17 @@ UNITS = ("qwen38-sglang.service", "qwen38-flash.service", "qwen38-image.service"
|
||||
"qwen38-video.service", "qwen38-kolibri.service", "qwen38-nemotron.service",
|
||||
"qwen38-nemotron-super.service", "qwen38-flash-local.service", "qwen38-ornith-122b.service",
|
||||
"qwen38-flash-unsloth.service", "qwen38-image-h3.service", "qwen38-transcribe.service",
|
||||
"qwen38-lfm25.service", "qwen38-lfm3.service", "qwen38-keepalive.service")
|
||||
"qwen38-lfm25.service", "qwen38-lfm3.service", "qwen38-inkling.service", "qwen38-keepalive.service")
|
||||
# The speech lane (install-speech.sh): Qwen3-ASR and Kokoro on the CPU, beside whichever engine serves. It is
|
||||
# none of the engines that take the GPU in turn (lifecycle.ENGINE_UNITS, UNITS above): no Load, no boot to
|
||||
# follow, no restart owed by an engine's inputs. The page shows it since v1.58.0 and starts or stops its unit.
|
||||
SPEECH_UNIT = "qwen38-speech.service"
|
||||
JOURNAL_UNITS = UNITS + (AGENT_UNIT, SPEECH_UNIT) # what the Logs tab may read (UNITS carries the image, video, Kolibri and Nemotron lanes)
|
||||
# The SGLang text engines' containers: what their scheduler lines and their abort contract
|
||||
# are read from (the Liquid AI LFM2.5 24B-A2B lane's too, SGLang on the 27B's image). The Kolibri and Nemotron
|
||||
# lanes' vLLM writes neither, so they are only in CONTAINERS, the list the Logs tab, the diagnostics bundle and the
|
||||
# container stats read.
|
||||
SGL_CONTAINERS = ("qwen38-sglang", "qwen38-flash", "qwen38-lfm25")
|
||||
# are read from (the Liquid AI LFM2.5 24B-A2B lane's too, SGLang on the 27B's image, and the Inkling 2 Mini lane's,
|
||||
# SGLang on its own). The Kolibri and Nemotron lanes' vLLM writes neither, so they are only in CONTAINERS, the list the
|
||||
# Logs tab, the diagnostics bundle and the container stats read.
|
||||
SGL_CONTAINERS = ("qwen38-sglang", "qwen38-flash", "qwen38-lfm25", "qwen38-inkling")
|
||||
CONTAINERS = SGL_CONTAINERS + ("qwen38-kolibri", "qwen38-nemotron", "qwen38-nemotron-super", "qwen38-flash-local",
|
||||
"qwen38-ornith-122b", "qwen38-flash-unsloth", "qwen38-transcribe", "qwen38-lfm3")
|
||||
|
||||
@@ -238,7 +238,8 @@ UNIT2CONT = {"qwen38-sglang.service": "qwen38-sglang",
|
||||
"qwen38-flash-unsloth.service": "qwen38-flash-unsloth",
|
||||
"qwen38-transcribe.service": "qwen38-transcribe",
|
||||
"qwen38-lfm25.service": "qwen38-lfm25",
|
||||
"qwen38-lfm3.service": "qwen38-lfm3"}
|
||||
"qwen38-lfm3.service": "qwen38-lfm3",
|
||||
"qwen38-inkling.service": "qwen38-inkling"}
|
||||
HISTORY_FILE_NAME = "cockpit-history.json"
|
||||
|
||||
EVENTS: deque = deque(maxlen=200)
|
||||
@@ -1334,6 +1335,10 @@ def transcribe_serving() -> bool:
|
||||
# of lc.TEXT_UNITS with every SGLang belt (the canary, the pool guard, the autoheal), its facts read as the 27B's are.
|
||||
LFM25_UNIT = "qwen38-lfm25.service"
|
||||
LFM25_UNIT_PATH = SYSTEMD_DIR / LFM25_UNIT
|
||||
# The Inkling 2 Mini lane: SGLang on the image its cookbook gives the model, on the text port behind the proxy, a text
|
||||
# unit of lc.TEXT_UNITS as the LFM2.5 lane's, with every SGLang belt.
|
||||
INKLING_UNIT = "qwen38-inkling.service"
|
||||
INKLING_UNIT_PATH = SYSTEMD_DIR / INKLING_UNIT
|
||||
|
||||
|
||||
def transcribe_flag(flag: str, fallback: str) -> str:
|
||||
@@ -2510,7 +2515,7 @@ def collect_opencode():
|
||||
if key == "real":
|
||||
for prov, pv in (cfg.get("provider") or {}).items():
|
||||
if prov not in ("qwen38", "flashnext", "kolibri", "nemotron", "nemotron-super", "flash-local", "ornith-122b",
|
||||
"flash-unsloth", "lfm25", "lfm3"):
|
||||
"flash-unsloth", "lfm25", "lfm3", "inkling"):
|
||||
continue
|
||||
for mid, mv in (pv.get("models") or {}).items():
|
||||
lim = mv.get("limit") or {}
|
||||
@@ -2533,7 +2538,7 @@ def collect_opencode():
|
||||
"nemotron-3.5-bolt": "nemotron", "nemotron-3.5-super-vl": "nemotron-super",
|
||||
"qwen3.8-flash-next-fp4": "flash-local", "ornith-1.5-122b": "ornith-122b",
|
||||
"qwen3.8-flash-next-unsloth": "flash-unsloth", "lfm2.5-24b-a2b": "lfm25",
|
||||
"lfm3-1.7b": "lfm3"}.get(served)
|
||||
"lfm3-1.7b": "lfm3", "inkling-2-mini": "inkling"}.get(served)
|
||||
lim = (out["real"]["limits"] or {}).get(f"{prov}/{served}") if prov else None
|
||||
if lim and lim.get("context"):
|
||||
ctx, outp = int(lim["context"]), int(lim.get("output") or 0)
|
||||
@@ -3004,10 +3009,12 @@ def _guard_failed(err: str):
|
||||
|
||||
VAR2TARGET = {"STOCK_REV": "stock", "UNC_REV": "uncensored", "FP8_REV": "fp8",
|
||||
"UNCFP8_REV": "uncensored-fp8", "ARETE_REV": "arete", "DAISYROSE_REV": "daisyrose", "FLASH_REV": "flash",
|
||||
"FLASH_NVDA_REV": "flash-nvda", "FLASH_UNC_REV": "flash-uncensored", "LFM25_REV": "lfm25"}
|
||||
"FLASH_NVDA_REV": "flash-nvda", "FLASH_UNC_REV": "flash-uncensored", "LFM25_REV": "lfm25",
|
||||
"INKLING_REV": "inkling"}
|
||||
UNIT_PATHS = {"qwen38-sglang.service": SYSTEMD_DIR / "qwen38-sglang.service",
|
||||
"qwen38-flash.service": CONFIG_DIR / "launch-flash.sh",
|
||||
"qwen38-lfm25.service": LFM25_UNIT_PATH}
|
||||
"qwen38-lfm25.service": LFM25_UNIT_PATH,
|
||||
"qwen38-inkling.service": INKLING_UNIT_PATH}
|
||||
UNIT_TARGET_CACHE: dict = {}
|
||||
|
||||
|
||||
@@ -3107,9 +3114,10 @@ def monotonic_now() -> float:
|
||||
# The boot a text lane is expected to take when this box has recorded none of its own
|
||||
# (the reference box's medians, as the page's READY_DEFAULT), and the grace after it
|
||||
# during which "fired up but not answering" still reads as the warm-up it usually is.
|
||||
# The Liquid AI LFM2.5 24B-A2B lane's, its one boot measured (286 s on 2026-11-14), until the box records its own.
|
||||
# The Liquid AI LFM2.5 24B-A2B lane's, its one boot measured (286 s on 2026-11-14), until the box records its own; the
|
||||
# Inkling 2 Mini lane's, its boot with its kernels already compiled (222 s on 2026-11-22; 379 s at its first start).
|
||||
TEXT_BOOT_DEFAULT_S = {"qwen38-sglang.service": 540.0, "qwen38-flash.service": 780.0,
|
||||
"qwen38-lfm25.service": 290.0}
|
||||
"qwen38-lfm25.service": 290.0, "qwen38-inkling.service": 230.0}
|
||||
WARMUP_GRACE_S = 300.0
|
||||
# How long the other sampler tiers wait for the first health sample (start_samplers): the
|
||||
# engine is asked /v1/loads then, when idle, /health, 3 s and 4 s at most.
|
||||
@@ -3761,6 +3769,7 @@ def lane_prepared(lane: str):
|
||||
"flash-local": FLASH_LOCAL_UNIT_PATH, "ornith-122b": ORNITH_122B_UNIT_PATH,
|
||||
"flash-unsloth": FLASH_UNSLOTH_UNIT_PATH, "image-h3": IMAGE_H3_UNIT_PATH,
|
||||
"transcribe": TRANSCRIBE_UNIT_PATH, "lfm25": LFM25_UNIT_PATH, "lfm3": LFM3_UNIT_PATH,
|
||||
"inkling": INKLING_UNIT_PATH,
|
||||
"flash": UNIT_PATHS["qwen38-flash.service"], "27b": UNIT_PATHS["qwen38-sglang.service"]}[lane]
|
||||
try:
|
||||
text = unit.read_text(errors="replace")
|
||||
@@ -3780,10 +3789,11 @@ def lane_prepared(lane: str):
|
||||
return Path(waits.group(1)).stat().st_size > 0 # [ -s ]: an empty one is skipped
|
||||
except OSError:
|
||||
return False
|
||||
if lane in ("flash-local", "ornith-122b", "flash-unsloth", "transcribe", "lfm25", "lfm3"):
|
||||
if lane in ("flash-local", "ornith-122b", "flash-unsloth", "transcribe", "lfm25", "lfm3", "inkling"):
|
||||
# its image is pulled as published, by digest: the one digest its unit names (FP4-Local's and Ornith's one,
|
||||
# llama.cpp's for the Unsloth GGUF and NVIDIA Nemotron Transcribe lanes, the 27B's for the LFM2.5 lane, whose
|
||||
# checkpoints come with its switch, as Ornith's do; vLLM's own nightly for the LFM3 lane)
|
||||
# checkpoints come with its switch, as Ornith's do; vLLM's own nightly for the LFM3 lane; SGLang's
|
||||
# inkling-2-mini image for the Inkling 2 Mini lane)
|
||||
m = re.search(r"\S+@sha256:[0-9a-f]{64}", text)
|
||||
return bool(m) and run(["docker", "image", "inspect", "--format", "{{.Id}}", m.group(0)],
|
||||
timeout=10).strip().startswith("sha256:")
|
||||
@@ -4032,13 +4042,14 @@ def collect_lanes_ready():
|
||||
"""30 s tier: which side lanes are prepared, for the Load journey (it builds a lane's
|
||||
runtime first when it is not)."""
|
||||
return {lane: lane_prepared(lane) for lane in ("image", "video", "kolibri", "nemotron", "nemotron-super", "flash-local", "ornith-122b",
|
||||
"flash-unsloth", "image-h3", "transcribe", "lfm25", "lfm3", "flash", "27b")}
|
||||
"flash-unsloth", "image-h3", "transcribe", "lfm25", "lfm3", "inkling", "flash",
|
||||
"27b")}
|
||||
|
||||
|
||||
UNIT_OF_LANE = {"image": "qwen38-image.service", "video": "qwen38-video.service", "kolibri": KOLIBRI_UNIT,
|
||||
"nemotron": NEMOTRON_UNIT, "nemotron-super": NEMOTRON_SUPER_UNIT, "flash-local": FLASH_LOCAL_UNIT,
|
||||
"ornith-122b": ORNITH_UNIT, "flash-unsloth": FLASH_UNSLOTH_UNIT, "image-h3": "qwen38-image-h3.service",
|
||||
"transcribe": TRANSCRIBE_UNIT, "lfm25": LFM25_UNIT, "lfm3": LFM3_UNIT,
|
||||
"transcribe": TRANSCRIBE_UNIT, "lfm25": LFM25_UNIT, "lfm3": LFM3_UNIT, "inkling": INKLING_UNIT,
|
||||
"flash": "qwen38-flash.service", "27b": "qwen38-sglang.service"}
|
||||
|
||||
|
||||
@@ -4088,7 +4099,8 @@ def lane_startable(lane: str):
|
||||
"nemotron": NEMOTRON_UNIT_PATH, "nemotron-super": NEMOTRON_SUPER_UNIT_PATH,
|
||||
"flash-local": FLASH_LOCAL_UNIT_PATH, "ornith-122b": ORNITH_122B_UNIT_PATH,
|
||||
"flash-unsloth": FLASH_UNSLOTH_UNIT_PATH, "image-h3": IMAGE_H3_UNIT_PATH,
|
||||
"transcribe": TRANSCRIBE_UNIT_PATH, "lfm25": LFM25_UNIT_PATH, "lfm3": LFM3_UNIT_PATH}.get(lane) or UNIT_PATHS[unit]
|
||||
"transcribe": TRANSCRIBE_UNIT_PATH, "lfm25": LFM25_UNIT_PATH, "lfm3": LFM3_UNIT_PATH,
|
||||
"inkling": INKLING_UNIT_PATH}.get(lane) or UNIT_PATHS[unit]
|
||||
try:
|
||||
text = path.read_text(errors="replace")
|
||||
except OSError:
|
||||
@@ -4193,7 +4205,8 @@ def lane_startable(lane: str):
|
||||
def collect_lanes_startable():
|
||||
"""30 s tier: which side lanes can start as installed (their Start), lane_startable."""
|
||||
return {lane: lane_startable(lane) for lane in ("image", "video", "kolibri", "nemotron", "nemotron-super", "flash-local", "ornith-122b",
|
||||
"flash-unsloth", "image-h3", "transcribe", "lfm25", "lfm3", "flash", "27b")}
|
||||
"flash-unsloth", "image-h3", "transcribe", "lfm25", "lfm3", "inkling", "flash",
|
||||
"27b")}
|
||||
|
||||
|
||||
def engine_table() -> dict:
|
||||
@@ -4370,7 +4383,7 @@ SERVING_UNITS = {"qwen38-sglang.service", "qwen38-flash.service",
|
||||
"qwen38-video.service", "qwen38-kolibri.service", "qwen38-nemotron.service",
|
||||
"qwen38-nemotron-super.service", "qwen38-flash-local.service", "qwen38-ornith-122b.service",
|
||||
"qwen38-flash-unsloth.service", "qwen38-image-h3.service", "qwen38-transcribe.service",
|
||||
"qwen38-lfm25.service", "qwen38-lfm3.service", AGENT_UNIT}
|
||||
"qwen38-lfm25.service", "qwen38-lfm3.service", "qwen38-inkling.service", AGENT_UNIT}
|
||||
UNIT_VERBS = {"start", "stop", "restart"}
|
||||
|
||||
def _lane_unit_texts() -> list[str]:
|
||||
@@ -4380,7 +4393,7 @@ def _lane_unit_texts() -> list[str]:
|
||||
for path in (UNIT_PATHS["qwen38-sglang.service"], UNIT_PATHS["qwen38-flash.service"],
|
||||
KOLIBRI_UNIT_PATH, NEMOTRON_UNIT_PATH, NEMOTRON_SUPER_UNIT_PATH, FLASH_LOCAL_UNIT_PATH,
|
||||
ORNITH_122B_UNIT_PATH, FLASH_UNSLOTH_UNIT_PATH, IMAGE_UNIT_PATH, VIDEO_UNIT_PATH, IMAGE_H3_UNIT_PATH,
|
||||
TRANSCRIBE_UNIT_PATH, LFM25_UNIT_PATH, LFM3_UNIT_PATH):
|
||||
TRANSCRIBE_UNIT_PATH, LFM25_UNIT_PATH, LFM3_UNIT_PATH, INKLING_UNIT_PATH):
|
||||
try:
|
||||
texts.append(path.read_text(errors="replace"))
|
||||
except OSError:
|
||||
@@ -4413,7 +4426,8 @@ ACTIONS = {
|
||||
"params": {"target": ["stock", "uncensored", "fp8", "uncensored-fp8", "arete", "daisyrose",
|
||||
"flash", "flash-nvda", "flash-uncensored", "flash-local", "image", "image-turbo",
|
||||
"video", "kolibri", "kolibri-nvfp4", "nemotron", "nemotron-super", "ornith-122b",
|
||||
"flash-unsloth", "flash-unsloth-iq3", "image-h3", "transcribe", "lfm25", "lfm3"]},
|
||||
"flash-unsloth", "flash-unsloth-iq3", "image-h3", "transcribe", "lfm25", "lfm3",
|
||||
"inkling"]},
|
||||
"argv": lambda p: ["bash", str(REPO_DIR / "switch-model.sh"), p["target"]],
|
||||
# A switch can download a whole checkpoint: 124 GB for flash take about 23 min at
|
||||
# the 89 MB/s the reference box gets, so 30 min failed it on any slower link, and
|
||||
@@ -4517,6 +4531,8 @@ def target_lane(target: str) -> str:
|
||||
return "lfm25"
|
||||
if target == "lfm3":
|
||||
return "lfm3"
|
||||
if target == "inkling":
|
||||
return "inkling"
|
||||
if target == "video":
|
||||
return "video"
|
||||
if target.startswith("kolibri"):
|
||||
@@ -4561,7 +4577,7 @@ TARGET_PIN = {"stock": "STOCK_REV", "uncensored": "UNC_REV", "fp8": "FP8_REV", "
|
||||
# the Unsloth GGUF lane's two targets, two folders of one repository at one revision
|
||||
"flash-unsloth-iq3": "FLASH_UNSLOTH_REV",
|
||||
"image-h3": "IMAGE_H3_MODEL_PIN_REV", "transcribe": "TRANSCRIBE_REV", "lfm25": "LFM25_REV",
|
||||
"lfm3": "LFM3_REV"}
|
||||
"lfm3": "LFM3_REV", "inkling": "INKLING_REV"}
|
||||
# The Nemotron lanes load a drafter with the checkpoint, and their Download (the switch's --fetch)
|
||||
# fetches both: Library's state of such a target counts its drafter too. Bolt's read whole with its
|
||||
# drafter missing, which its Load then fetched (found on the reference box, 2026-10-15). The 27B's
|
||||
@@ -4693,6 +4709,8 @@ def target_unit(target: str) -> Path:
|
||||
return LFM25_UNIT_PATH
|
||||
if target == "lfm3":
|
||||
return LFM3_UNIT_PATH
|
||||
if target == "inkling":
|
||||
return INKLING_UNIT_PATH
|
||||
if target.startswith("flash"):
|
||||
return UNIT_PATHS["qwen38-flash.service"]
|
||||
return UNIT_PATHS["qwen38-sglang.service"]
|
||||
@@ -4933,6 +4951,8 @@ def served_model_name() -> str:
|
||||
return served
|
||||
if states.get(LFM25_UNIT) not in (None, "stopped", "failed"):
|
||||
return "lfm2.5-24b-a2b"
|
||||
if states.get(INKLING_UNIT) not in (None, "stopped", "failed"):
|
||||
return "inkling-2-mini"
|
||||
return "qwen3.8-27b"
|
||||
|
||||
|
||||
@@ -6666,6 +6686,7 @@ def job_diag_bundle(job: Job):
|
||||
(tdp / "journal-transcribe.txt").write_text(run(["journalctl", "-u", TRANSCRIBE_UNIT, "-n", "300", "--no-pager", "-o", "short-iso"], timeout=15))
|
||||
(tdp / "journal-lfm25.txt").write_text(run(["journalctl", "-u", LFM25_UNIT, "-n", "300", "--no-pager", "-o", "short-iso"], timeout=15))
|
||||
(tdp / "journal-lfm3.txt").write_text(run(["journalctl", "-u", LFM3_UNIT, "-n", "300", "--no-pager", "-o", "short-iso"], timeout=15))
|
||||
(tdp / "journal-inkling.txt").write_text(run(["journalctl", "-u", INKLING_UNIT, "-n", "300", "--no-pager", "-o", "short-iso"], timeout=15))
|
||||
# the speech lane's too (v1.58.0): units.txt said it failed, and the bundle did not hold why
|
||||
(tdp / "journal-speech.txt").write_text(run(["journalctl", "-u", SPEECH_UNIT, "-n", "300", "--no-pager", "-o", "short-iso"], timeout=15))
|
||||
(tdp / "journal-opencode-web.txt").write_text(run(["journalctl", "-u", AGENT_UNIT, "-n", "200", "--no-pager", "-o", "short-iso"], timeout=15))
|
||||
|
||||
@@ -73,6 +73,12 @@ ENGINES = {
|
||||
"qwen38-lfm3.service": {
|
||||
"engine": "vLLM", "version": "nightly 60bd6dd", "reports": "0.34.0rc1.dev571+g60bd6dd2e",
|
||||
"pin": "vllm/vllm-openai@sha256:19cfbac06cfed28a2eb2c08950e62b4b07fd6e20685ad6e10f9422236d39e519"},
|
||||
# install-inkling.sh INKLING_IMAGE: SGLang's inkling-2-mini image, whose build label (ai.sglang.image.tag, docker image
|
||||
# inspect on the reference box, 2026-11-24) says nightly-dev-20261120-03fde9cc, commit 03fde9cc392a. reports holds
|
||||
# that commit: the version string its engine says in /server_info was not read (the image ran in benches only)
|
||||
"qwen38-inkling.service": {
|
||||
"engine": "SGLang", "version": "nightly 03fde9cc", "reports": "03fde9cc",
|
||||
"pin": "lmsysorg/sglang@sha256:bc811ac7ac68c6fca116a49750baca817b8613a30abface8a347682b55d132e3"},
|
||||
# install-image.sh and install-video.sh WHEEL: SGLang's diffusion runtime in the lane's own venv
|
||||
"qwen38-image.service": {"engine": "SGLang Diffusion", "version": "0.5.21", "reports": None,
|
||||
"pin": "sglang[diffusion]==0.5.21"},
|
||||
|
||||
@@ -576,12 +576,13 @@ TRANSITIONAL = BUSY_STATES - {"ready", "degraded", "orphan", "wedged"}
|
||||
# NVIDIA Nemotron Transcribe lane, llama.cpp's, 36.5 GB of weights, which left 76 GiB available at its lowest with nothing
|
||||
# else serving (2026-11-14). And the Liquid AI LFM2.5 24B-A2B lane, SGLang's, a static share of 0.7 of the memory
|
||||
# SGLang sees, which left 24 GiB available at its lowest (2026-11-14). And the Liquid AI LFM3 lane, vLLM's, its weights
|
||||
# 1.8 GB and its KV cache extended into its share of 0.75 of the memory vLLM sees.
|
||||
# 1.8 GB and its KV cache extended into its share of 0.75 of the memory vLLM sees. And the Inkling 2 Mini lane, SGLang's,
|
||||
# a static share of 0.45, 53.1 GiB of GPU memory at its peak (2026-11-22).
|
||||
ENGINE_UNITS = ("qwen38-sglang.service", "qwen38-flash.service",
|
||||
"qwen38-image.service", "qwen38-video.service", "qwen38-kolibri.service",
|
||||
"qwen38-nemotron.service", "qwen38-nemotron-super.service", "qwen38-flash-local.service",
|
||||
"qwen38-ornith-122b.service", "qwen38-flash-unsloth.service", "qwen38-image-h3.service",
|
||||
"qwen38-transcribe.service", "qwen38-lfm25.service", "qwen38-lfm3.service")
|
||||
"qwen38-transcribe.service", "qwen38-lfm25.service", "qwen38-lfm3.service", "qwen38-inkling.service")
|
||||
IMAGE_UNIT = "qwen38-image.service"
|
||||
IMAGE_H3_UNIT = "qwen38-image-h3.service"
|
||||
VIDEO_UNIT = "qwen38-video.service"
|
||||
@@ -593,8 +594,8 @@ ORNITH_UNIT = "qwen38-ornith-122b.service"
|
||||
FLASH_UNSLOTH_UNIT = "qwen38-flash-unsloth.service"
|
||||
TRANSCRIBE_UNIT = "qwen38-transcribe.service"
|
||||
LFM3_UNIT = "qwen38-lfm3.service"
|
||||
# The SGLang engines that serve text on ENGINE_BASE: the 27B's, the flash's, and the Liquid AI LFM2.5 24B-A2B lane's,
|
||||
# on the 27B's image. Every probe, guard and belt that talks to that port (the generation canary, the pool guard, the
|
||||
# The SGLang engines that serve text on ENGINE_BASE: the 27B's, the flash's, the Liquid AI LFM2.5 24B-A2B lane's, on the
|
||||
# 27B's image, and the Inkling 2 Mini lane's, on its own. Every probe, guard and belt that talks to that port (the generation canary, the pool guard, the
|
||||
# wedge autoheal) is about these and only these: with a diffusion lane serving, :30000 is closed, and asking "is an
|
||||
# engine ready" instead sent the canary a chat completion to a dead port every 90 s. The
|
||||
# Kolibri lane serves text on that port too, from vLLM, which none of those belts know
|
||||
@@ -1372,7 +1373,7 @@ LANE_PROVIDER = {"qwen38-sglang.service": "qwen38", "qwen38-flash.service": "fla
|
||||
"qwen38-nemotron-super.service": "nemotron-super",
|
||||
"qwen38-flash-local.service": "flash-local", "qwen38-ornith-122b.service": "ornith-122b",
|
||||
"qwen38-flash-unsloth.service": "flash-unsloth", "qwen38-lfm25.service": "lfm25",
|
||||
"qwen38-lfm3.service": "lfm3"}
|
||||
"qwen38-lfm3.service": "lfm3", "qwen38-inkling.service": "inkling"}
|
||||
|
||||
|
||||
def opencode_default_follows(default_model, states: dict) -> tuple:
|
||||
|
||||
@@ -56,6 +56,8 @@ PIN_MODELS = {
|
||||
"LFM25_DRAFT_REV": "LiquidAI/LFM2.5-24B-A2B-DSpark",
|
||||
# the Liquid AI LFM3 lane's: Liquid AI's NVFP4
|
||||
"LFM3_REV": "LiquidAI/LFM3-1.7B-NVFP4",
|
||||
# the Inkling 2 Mini lane's: Thinking Machines' checkpoint, its DSpark draft head inside
|
||||
"INKLING_REV": "thinkingmachines/Inkling-2-Mini",
|
||||
}
|
||||
|
||||
# Where the pins are written: the text lanes' in the switch and the installer, every other
|
||||
@@ -64,7 +66,7 @@ PIN_FILES = ("switch-model.sh", "run.sh", "install.sh",
|
||||
"install-image.sh", "install-video.sh", "install-kolibri.sh", "install-nemotron.sh",
|
||||
"install-nemotron-super.sh", "install-flash-local.sh", "install-ornith-122b.sh",
|
||||
"install-flash-unsloth.sh", "install-image-h3.sh", "install-transcribe.sh", "install-lfm25.sh",
|
||||
"install-lfm3.sh")
|
||||
"install-lfm3.sh", "install-inkling.sh")
|
||||
|
||||
PIN_RE = re.compile(r'^\s*([A-Z][A-Z0-9_]*REV)="?\$?\{?[A-Z0-9_:-]*?([0-9a-f]{40})',
|
||||
re.MULTILINE)
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
/* memory that flows, and the pool's quiet parts: page cache (steel), system and apps (slate) */
|
||||
--mem:#7c9cff; --mem-lo:#4c6fe0; --steel:rgba(124,156,255,.35); --slate:rgba(255,255,255,.18);
|
||||
/* each lane's own hue: its share of the pool, the pool's legend, the head's gauge */
|
||||
--lane-27b:#8c6cff; --lane-flash:#38bdf8; --lane-image:#f472b6; --lane-video:#fb923c; --lane-kolibri:#34d399; --lane-nemotron:#84cc16; --lane-nemotron-super:#eab308; --lane-flash-local:#22d3ee; --lane-ornith-122b:#f87171; --lane-flash-unsloth:#c084fc; --lane-image-h3:#e879f9; --lane-transcribe:#2dd4bf; --lane-lfm25:#3b82f6; --lane-lfm3:#818cf8;
|
||||
--lane-27b:#8c6cff; --lane-flash:#38bdf8; --lane-image:#f472b6; --lane-video:#fb923c; --lane-kolibri:#34d399; --lane-nemotron:#84cc16; --lane-nemotron-super:#eab308; --lane-flash-local:#22d3ee; --lane-ornith-122b:#f87171; --lane-flash-unsloth:#c084fc; --lane-image-h3:#e879f9; --lane-transcribe:#2dd4bf; --lane-lfm25:#3b82f6; --lane-lfm3:#818cf8; --lane-inkling:#94a3b8;
|
||||
/* what floats over the page (a sheet, the dock, a toast, the phone's drawer) is opaque */
|
||||
--raised:#22164f; --raised-hi:#2c1d66;
|
||||
--shadow-1:0 1px 0 rgba(255,255,255,.06) inset, 0 18px 40px -24px rgba(5,2,20,.7);
|
||||
|
||||
@@ -18,6 +18,11 @@ attributes removed. The marks themselves belong to their owners (Qwen to Alibaba
|
||||
MiniMax, Aleph Alpha to Aleph Alpha, NVIDIA to NVIDIA, Unsloth to Unsloth AI, Liquid AI to Liquid
|
||||
AI); the cockpit shows them only to say which model a lane runs.
|
||||
|
||||
`thinkingmachines.svg` is no maker's mark: a plain badge of Thinking Machines' initials, drawn for the cockpit (an
|
||||
outlined square and the letters TM, in the page's own colour), for the Inkling 2 Mini lane. Lobe Icons has no Thinking
|
||||
Machines icon (1.106.0, its latest on 2026-11-24), and the model's repository at the lane's pinned revision ships no
|
||||
logo. The name belongs to its owner, and the cockpit shows it only to say which model the lane runs.
|
||||
|
||||
`ornith.svg` is Ornith AI's round avatar, cropped from the logo its authors publish in their
|
||||
model's repository (`assets/ornith_logo.png` of https://github.com/ornith-ai/Ornith-1 at commit
|
||||
7ad11eb, MIT licensed, Copyright (c) 2026 deepreinforce.ai, the licence is in
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Thinking Machines</title><rect x="1.5" y="1.5" width="21" height="21" rx="5" fill="none" stroke="currentColor" stroke-width="1.6"></rect><text x="12" y="16" text-anchor="middle" font-family="sans-serif" font-size="10" font-weight="700">TM</text></svg>
|
||||
|
After Width: | Height: | Size: 339 B |
@@ -704,8 +704,8 @@
|
||||
<div class="toolbar">
|
||||
<label class="sr" for="log-src">Source</label>
|
||||
<select class="input" id="log-src">
|
||||
<optgroup label="Serving containers"><option value="qwen38-flash">Qwen3.8 Flash-Next container</option><option value="qwen38-sglang">Qwen3.8 27B container</option><option value="qwen38-kolibri">Kolibri-1 container</option><option value="qwen38-nemotron">Nemotron 3.5 Bolt container</option><option value="qwen38-nemotron-super">Nemotron 3.5 Super VL container</option><option value="qwen38-flash-local">Qwen3.8 Flash-Next FP4-Local container</option><option value="qwen38-ornith-122b">Ornith 1.5 122B container</option><option value="qwen38-flash-unsloth">Qwen3.8 Flash-Next Unsloth GGUF container</option><option value="qwen38-transcribe">NVIDIA Nemotron Transcribe container</option><option value="qwen38-lfm25">Liquid AI LFM2.5 24B-A2B container</option><option value="qwen38-lfm3">Liquid AI LFM3 container</option></optgroup>
|
||||
<optgroup label="Unit journals"><option value="qwen38-flash.service">Qwen3.8 Flash-Next journal</option><option value="qwen38-sglang.service">Qwen3.8 27B journal</option><option value="qwen38-image.service">Qwen-Image 2.1 journal</option><option value="qwen38-image-h3.service">MiniMax-H3-Image journal</option><option value="qwen38-video.service">MiniMax-H3 journal</option><option value="qwen38-kolibri.service">Kolibri-1 journal</option><option value="qwen38-nemotron.service">Nemotron 3.5 Bolt journal</option><option value="qwen38-nemotron-super.service">Nemotron 3.5 Super VL journal</option><option value="qwen38-flash-local.service">Qwen3.8 Flash-Next FP4-Local journal</option><option value="qwen38-ornith-122b.service">Ornith 1.5 122B journal</option><option value="qwen38-flash-unsloth.service">Qwen3.8 Flash-Next Unsloth GGUF journal</option><option value="qwen38-transcribe.service">NVIDIA Nemotron Transcribe journal</option><option value="qwen38-lfm25.service">Liquid AI LFM2.5 24B-A2B journal</option><option value="qwen38-lfm3.service">Liquid AI LFM3 journal</option><option value="qwen38-keepalive.service">proxy journal</option><option value="opencode-web.service" id="log-opt-agent">agent server journal</option><option value="qwen38-speech.service" id="log-opt-speech">Speech lane journal</option></optgroup>
|
||||
<optgroup label="Serving containers"><option value="qwen38-flash">Qwen3.8 Flash-Next container</option><option value="qwen38-sglang">Qwen3.8 27B container</option><option value="qwen38-kolibri">Kolibri-1 container</option><option value="qwen38-nemotron">Nemotron 3.5 Bolt container</option><option value="qwen38-nemotron-super">Nemotron 3.5 Super VL container</option><option value="qwen38-flash-local">Qwen3.8 Flash-Next FP4-Local container</option><option value="qwen38-ornith-122b">Ornith 1.5 122B container</option><option value="qwen38-flash-unsloth">Qwen3.8 Flash-Next Unsloth GGUF container</option><option value="qwen38-transcribe">NVIDIA Nemotron Transcribe container</option><option value="qwen38-lfm25">Liquid AI LFM2.5 24B-A2B container</option><option value="qwen38-lfm3">Liquid AI LFM3 container</option><option value="qwen38-inkling">Inkling 2 Mini container</option></optgroup>
|
||||
<optgroup label="Unit journals"><option value="qwen38-flash.service">Qwen3.8 Flash-Next journal</option><option value="qwen38-sglang.service">Qwen3.8 27B journal</option><option value="qwen38-image.service">Qwen-Image 2.1 journal</option><option value="qwen38-image-h3.service">MiniMax-H3-Image journal</option><option value="qwen38-video.service">MiniMax-H3 journal</option><option value="qwen38-kolibri.service">Kolibri-1 journal</option><option value="qwen38-nemotron.service">Nemotron 3.5 Bolt journal</option><option value="qwen38-nemotron-super.service">Nemotron 3.5 Super VL journal</option><option value="qwen38-flash-local.service">Qwen3.8 Flash-Next FP4-Local journal</option><option value="qwen38-ornith-122b.service">Ornith 1.5 122B journal</option><option value="qwen38-flash-unsloth.service">Qwen3.8 Flash-Next Unsloth GGUF journal</option><option value="qwen38-transcribe.service">NVIDIA Nemotron Transcribe journal</option><option value="qwen38-lfm25.service">Liquid AI LFM2.5 24B-A2B journal</option><option value="qwen38-lfm3.service">Liquid AI LFM3 journal</option><option value="qwen38-inkling.service">Inkling 2 Mini journal</option><option value="qwen38-keepalive.service">proxy journal</option><option value="opencode-web.service" id="log-opt-agent">agent server journal</option><option value="qwen38-speech.service" id="log-opt-speech">Speech lane journal</option></optgroup>
|
||||
</select>
|
||||
<label class="switch"><input type="checkbox" id="log-follow"> Follow</label>
|
||||
<input class="input grow" id="log-filter" type="search" placeholder="Filter lines" aria-label="Filter lines">
|
||||
|
||||
+22
-15
@@ -99,14 +99,14 @@ const U27 = 'qwen38-sglang.service', UFLASH = 'qwen38-flash.service', IMAGE_UNIT
|
||||
NEMOTRON_SUPER_UNIT = 'qwen38-nemotron-super.service', FLASH_LOCAL_UNIT = 'qwen38-flash-local.service',
|
||||
ORNITH_UNIT = 'qwen38-ornith-122b.service', FLASH_UNSLOTH_UNIT = 'qwen38-flash-unsloth.service',
|
||||
IMAGE_H3_UNIT = 'qwen38-image-h3.service', TRANSCRIBE_UNIT = 'qwen38-transcribe.service',
|
||||
LFM25_UNIT = 'qwen38-lfm25.service', LFM3_UNIT = 'qwen38-lfm3.service',
|
||||
LFM25_UNIT = 'qwen38-lfm25.service', LFM3_UNIT = 'qwen38-lfm3.service', INKLING_UNIT = 'qwen38-inkling.service',
|
||||
PROXY_UNIT = 'qwen38-keepalive.service', AGENT_UNIT = 'opencode-web.service',
|
||||
// the speech lane, on the CPU beside whichever lane serves: none of LANE_UNITS, which take the GPU in turn (v1.58)
|
||||
SPEECH_UNIT = 'qwen38-speech.service';
|
||||
// the order of the Now view's rack and the Lanes view's cards: Ornith before Kolibri and the Nemotron lanes (Hasan, 2026-10-22);
|
||||
// the flash model's builds side by side, Unsloth's GGUF after NVIDIA's FP4-Local (v1.48); the speech recognizer after the
|
||||
// video lane (v1.51); Liquid AI's LFM2.5 and LFM3 after the other text lanes
|
||||
const LANE_UNITS = [U27, UFLASH, FLASH_LOCAL_UNIT, FLASH_UNSLOTH_UNIT, ORNITH_UNIT, KOLIBRI_UNIT, NEMOTRON_UNIT, NEMOTRON_SUPER_UNIT, LFM25_UNIT, LFM3_UNIT, IMAGE_UNIT, IMAGE_H3_UNIT, VIDEO_UNIT, TRANSCRIBE_UNIT];
|
||||
// video lane (v1.51); Liquid AI's LFM2.5 and LFM3 after the other text lanes, and Inkling 2 Mini after them (v1.59)
|
||||
const LANE_UNITS = [U27, UFLASH, FLASH_LOCAL_UNIT, FLASH_UNSLOTH_UNIT, ORNITH_UNIT, KOLIBRI_UNIT, NEMOTRON_UNIT, NEMOTRON_SUPER_UNIT, LFM25_UNIT, LFM3_UNIT, INKLING_UNIT, IMAGE_UNIT, IMAGE_H3_UNIT, VIDEO_UNIT, TRANSCRIBE_UNIT];
|
||||
// the image lanes, Qwen-Image 2.1 and MiniMax-H3-Image: one Image view addresses the one that serves (image.js, imgUnit)
|
||||
const isImageLane = u => u === IMAGE_UNIT || u === IMAGE_H3_UNIT;
|
||||
// the two Nemotron lanes, Bolt and Super VL: one vLLM image, the same routes and the same limits
|
||||
@@ -128,7 +128,7 @@ const LANE_NAME = {[U27]: 'Qwen3.8 27B', [UFLASH]: 'Qwen3.8 Flash-Next', [FLASH_
|
||||
[ORNITH_UNIT]: 'Ornith 1.5 122B', [FLASH_UNSLOTH_UNIT]: 'Qwen3.8 Flash-Next Unsloth GGUF',
|
||||
[IMAGE_UNIT]: 'Qwen-Image 2.1', [IMAGE_H3_UNIT]: 'MiniMax-H3-Image', [VIDEO_UNIT]: 'MiniMax-H3',
|
||||
[TRANSCRIBE_UNIT]: 'NVIDIA Nemotron Transcribe', [LFM25_UNIT]: 'Liquid AI LFM2.5 24B-A2B',
|
||||
[LFM3_UNIT]: 'Liquid AI LFM3'};
|
||||
[LFM3_UNIT]: 'Liquid AI LFM3', [INKLING_UNIT]: 'Inkling 2 Mini'};
|
||||
// What each lane is, for people: the kind of work it does and the one line that says so.
|
||||
// `lane` names the lane's hue in the stylesheet (--lane-<lane>); `maker` its mark in img/logos.
|
||||
const LANE_META = {
|
||||
@@ -141,6 +141,7 @@ const LANE_META = {
|
||||
[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-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'},
|
||||
[LFM25_UNIT]: {title: 'Liquid AI LFM2.5 24B-A2B', kind: 'Text, 131K tokens of context', desc: 'Liquid AI’s hybrid mixture of experts, 24B with 2B active, in its official FP8 build with its DSpark draft, served by SGLang. It reasons before every answer, and calls tools.', view: 'agent', lane: 'lfm25', maker: 'liquid'},
|
||||
[INKLING_UNIT]: {title: 'Inkling 2 Mini', kind: 'Text and images, 1M tokens of context', desc: 'Thinking Machines’ looped mixture of experts, 26.4B with 3.4B active, its middle layers run three times per token, served by SGLang with the DSpark draft head of its checkpoint. The light text lane: about 60 % of the 27B’s memory, reasoning at the effort asked, tool calls and vision.', view: 'agent', lane: 'inkling', maker: 'thinkingmachines'},
|
||||
[LFM3_UNIT]: {title: 'Liquid AI LFM3', kind: 'Text, 262K tokens of context', desc: 'Liquid AI’s small hybrid model, 1.7B, in its official NVFP4 build, served by vLLM. Post-trained for agents: reasoning (on or off) and tool calls, many requests at once.', view: 'agent', lane: 'lfm3', maker: 'liquid'},
|
||||
[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'},
|
||||
[IMAGE_H3_UNIT]: {title: 'MiniMax-H3-Image', kind: 'Images, up to 16.9 megapixels', desc: 'MiniMax’s image model in six steps: create, or edit with up to ten references, at 2K in about 16 s and 4K in about 82 s. Its licence is not granted in the EU, the UK, South Korea or the US.', view: 'image', lane: 'image-h3', maker: 'minimax'},
|
||||
@@ -156,9 +157,9 @@ function makerMark(unit, cls = 'mark'){
|
||||
// How long each lane takes to answer after a start, before the box has seen one of its
|
||||
// boots (measured on the reference box). Once a lane booted in front of the cockpit, the
|
||||
// median of its own boots replaces these.
|
||||
const READY_DEFAULT = {[U27]: 540, [UFLASH]: 780, [FLASH_LOCAL_UNIT]: 1020, [KOLIBRI_UNIT]: 600, [NEMOTRON_UNIT]: 450, [NEMOTRON_SUPER_UNIT]: 660, [ORNITH_UNIT]: 420, [FLASH_UNSLOTH_UNIT]: 420, [IMAGE_UNIT]: 70, [IMAGE_H3_UNIT]: 451, [VIDEO_UNIT]: 720, [TRANSCRIBE_UNIT]: 15, [LFM25_UNIT]: 290, [LFM3_UNIT]: 160};
|
||||
const READY_DEFAULT = {[U27]: 540, [UFLASH]: 780, [FLASH_LOCAL_UNIT]: 1020, [KOLIBRI_UNIT]: 600, [NEMOTRON_UNIT]: 450, [NEMOTRON_SUPER_UNIT]: 660, [ORNITH_UNIT]: 420, [FLASH_UNSLOTH_UNIT]: 420, [IMAGE_UNIT]: 70, [IMAGE_H3_UNIT]: 451, [VIDEO_UNIT]: 720, [TRANSCRIBE_UNIT]: 15, [LFM25_UNIT]: 290, [LFM3_UNIT]: 160, [INKLING_UNIT]: 230};
|
||||
const TARGET_UNIT = t => t === 'image' || t === 'image-turbo' ? IMAGE_UNIT : t === 'image-h3' ? IMAGE_H3_UNIT : t === 'video' ? VIDEO_UNIT
|
||||
: t === 'transcribe' ? TRANSCRIBE_UNIT : t === 'lfm25' ? LFM25_UNIT : t === 'lfm3' ? LFM3_UNIT
|
||||
: t === 'transcribe' ? TRANSCRIBE_UNIT : t === 'lfm25' ? LFM25_UNIT : t === 'lfm3' ? LFM3_UNIT : t === 'inkling' ? INKLING_UNIT
|
||||
: String(t).startsWith('kolibri') ? KOLIBRI_UNIT : t === 'nemotron-super' ? NEMOTRON_SUPER_UNIT : String(t).startsWith('nemotron') ? NEMOTRON_UNIT
|
||||
: t === 'flash-local' ? FLASH_LOCAL_UNIT : t === 'ornith-122b' ? ORNITH_UNIT : String(t).startsWith('flash-unsloth') ? FLASH_UNSLOTH_UNIT
|
||||
: String(t).startsWith('flash') ? UFLASH : U27;
|
||||
@@ -167,7 +168,7 @@ const LANE_TARGETS = {[U27]: ['stock', 'uncensored', 'fp8', 'uncensored-fp8', 'a
|
||||
[KOLIBRI_UNIT]: ['kolibri', 'kolibri-nvfp4'], [NEMOTRON_UNIT]: ['nemotron'], [NEMOTRON_SUPER_UNIT]: ['nemotron-super'],
|
||||
[ORNITH_UNIT]: ['ornith-122b'], [FLASH_UNSLOTH_UNIT]: ['flash-unsloth-iq3', 'flash-unsloth'], [IMAGE_UNIT]: ['image', 'image-turbo'],
|
||||
[IMAGE_H3_UNIT]: ['image-h3'], [VIDEO_UNIT]: ['video'], [TRANSCRIBE_UNIT]: ['transcribe'], [LFM25_UNIT]: ['lfm25'],
|
||||
[LFM3_UNIT]: ['lfm3']};
|
||||
[LFM3_UNIT]: ['lfm3'], [INKLING_UNIT]: ['inkling']};
|
||||
// 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"
|
||||
// nor "stock"; the targets' ids, in commands, do not change). dashboard/tests/test_target_names.py reads each
|
||||
@@ -185,7 +186,8 @@ const TARGET_NAME = {stock: 'Qwen3.8 27B NVFP4 · RadixArk', uncensored: 'Qwen3.
|
||||
'flash-unsloth-iq3': 'Qwen3.8 Flash-Next UD-IQ3_XXS GGUF · Unsloth',
|
||||
'image-h3': 'MiniMax-H3-Image · MiniMax',
|
||||
transcribe: 'NVIDIA Nemotron 3.5 Transcribe 30B-A4B Q8_0 GGUF · mradermacher',
|
||||
lfm25: 'LFM2.5 24B-A2B FP8 · Liquid AI', lfm3: 'LFM3 1.7B NVFP4 · Liquid AI'};
|
||||
lfm25: 'LFM2.5 24B-A2B FP8 · Liquid AI', lfm3: 'LFM3 1.7B NVFP4 · Liquid AI',
|
||||
inkling: 'Inkling 2 Mini · Thinking Machines'};
|
||||
// A version's name on its button in Lanes, and the line that tells it apart once chosen. A
|
||||
// target is declared in the tables of this block: a page test fails when one lacks a name or a line.
|
||||
const TARGET_SHORT_NAME = {stock: 'NVFP4 · RadixArk', uncensored: 'Abliterated NVFP4 · edp1096', fp8: 'FP8 · Qwen',
|
||||
@@ -193,7 +195,8 @@ const TARGET_SHORT_NAME = {stock: 'NVFP4 · RadixArk', uncensored: 'Abliterated
|
||||
'flash-nvda': 'NVFP4 · NVIDIA', image: 'Base', 'image-turbo': 'Turbo', video: 'H3', kolibri: 'FP8 · Aleph Alpha',
|
||||
'kolibri-nvfp4': 'NVFP4 · Quantinine', nemotron: 'Bolt', 'nemotron-super': 'Super VL', 'flash-local': 'FP4-Local',
|
||||
'ornith-122b': '122B', 'flash-unsloth': 'UD-Q4_K_XL · Unsloth', 'flash-unsloth-iq3': 'UD-IQ3_XXS · Unsloth',
|
||||
'image-h3': 'H3-Image', transcribe: 'Q8_0', lfm25: 'FP8 · Liquid AI', lfm3: 'NVFP4 · Liquid AI'};
|
||||
'image-h3': 'H3-Image', transcribe: 'Q8_0', lfm25: 'FP8 · Liquid AI', lfm3: 'NVFP4 · Liquid AI',
|
||||
inkling: 'NVFP4 and MXFP8 · Thinking Machines'};
|
||||
const TARGET_LINE = {
|
||||
stock: 'The default: smallest and fastest', uncensored: 'Refusals removed, same size and speed',
|
||||
fp8: "Qwen's own weights: the most faithful, and heavier", 'uncensored-fp8': 'Refusals removed, and heavier',
|
||||
@@ -211,7 +214,8 @@ const TARGET_LINE = {
|
||||
'image-h3': 'The one version: six steps, up to 16.9 megapixels',
|
||||
transcribe: 'The one version: Q8_0 and its F16 projector',
|
||||
lfm25: 'The one version: its official FP8 and its DSpark draft',
|
||||
lfm3: 'The one version: its official NVFP4'};
|
||||
lfm3: 'The one version: its official NVFP4',
|
||||
inkling: 'The one version: its NVFP4 and MXFP8 experts and its DSpark draft head'};
|
||||
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.',
|
||||
@@ -236,7 +240,8 @@ const TARGET_NOTE = {
|
||||
'image-h3': 'MiniMax’s MiniMax-H3-Image, served by SGLang Diffusion from its main branch: text to image and editing with up to ten references, six steps fixed by the checkpoint with no guidance, from 2048 × 2048 to 16.9 megapixels (4736 × 3552, 6272 × 2688), one image per call. Measured on the reference box at this lane’s SGLang commit: 2048 × 2048 in 15.6 s, 4736 × 3552 in 81 s, an edit at 2048 × 2048 with a 1024-pixel reference in 24 s, the engine at 92.3 GB at its peak: it fits beside no other lane. Its text encoder is MiniMax-H3’s, the video lane’s, fetched with it when the video lane has not. Its licence, the MiniMax-H3-Image Community License, is not granted in the European Union, the United Kingdom, South Korea or the United States; elsewhere commercial use above USD 1 million of annual revenue, or as a service hosted for others, needs MiniMax’s written authorization. The first switch downloads about 69 GB, and 67 more without the video lane.',
|
||||
transcribe: 'NVIDIA’s Nemotron-3.5-Transcribe-30B-A4B in mradermacher’s GGUF Q8_0 with its F16 projector (36.5 GB), served by llama.cpp’s own server in the Qwen3.8 Flash-Next Unsloth GGUF lane’s image, on a port of its own (30036) with the box’s key: /v1/audio/transcriptions and the /v1/realtime websocket, reasoning off, a window of 65,536 tokens, as the reference box measured it (French WER 2.76 % over 20 excerpts, English 0.40 %, ready in 15 s once its files are on disk). The proxy on :30001 and opencode are text clients and do not reach it. It fits beside no text lane. The first switch downloads about 37 GB.',
|
||||
lfm25: 'Liquid AI’s LFM2.5 24B-A2B in its official FP8 build (its linear weights in FP8 by blocks of 128 × 128), with its official DSpark draft, served by SGLang in the Qwen3.8 27B lane’s image as Liquid AI’s card gives the command: 131,072 tokens of context, the draft proposing blocks of 9 tokens, its own chat template and sampling (temperature 0.1, top_k 50, repetition_penalty 1.05). Its template opens a reasoning block at every answer, whatever a request asks: no effort or switch turns it off, and System One does not run on it. Tool calls in its own format, which the engine turns into OpenAI tool calls. Measured on the reference box on 2026-11-14: ready in 286 s, GSM8K 91.2 % (250 questions, 8 requests at once), 362 tokens/s in all at the median under those 8, the draft accepting 5.28 tokens at the median, a KV cache of 1,667,049 tokens, the box keeping 24 GiB available at the lowest. Its licence, the LFM Open License v1.0, does not grant commercial use to a company with an annual revenue of 10 million US dollars or more. The first switch downloads about 26 GB.',
|
||||
lfm3: 'Liquid AI’s LFM3 1.7B in its official NVFP4 build (ModelOpt, weights and activations by groups of 16), served by vLLM’s own nightly image (LFM3 is in no vLLM release yet) with the model’s whole window, 262,144 tokens, its own chat template and sampling (temperature 0.1, top_k 50, repetition_penalty 1.1), a memory share of 0.75 that keeps the box room (vLLM’s KV cache otherwise grows into all the memory left). It reasons by default and can be asked not to (the none variant, pi’s off): its template reads that switch and no level. Tool calls in Qwen3-Coder’s form, which the engine turns into OpenAI tool calls. Measured on the reference box on 2026-11-16, before its share was set: ready in about 2 min 40 s, GSM8K 89.6 % (250 questions), 87.7 tokens/s alone and 3,912 in all at 128 requests, a prompt of 131,072 tokens computed in 10.2 s, an agent’s next turn served 99 to 100 % from the prefix cache. Its licence, the LFM Open License v1.0, does not grant commercial use to a company with an annual revenue of 10 million US dollars or more. The first switch downloads about 2 GB.'};
|
||||
lfm3: 'Liquid AI’s LFM3 1.7B in its official NVFP4 build (ModelOpt, weights and activations by groups of 16), served by vLLM’s own nightly image (LFM3 is in no vLLM release yet) with the model’s whole window, 262,144 tokens, its own chat template and sampling (temperature 0.1, top_k 50, repetition_penalty 1.1), a memory share of 0.75 that keeps the box room (vLLM’s KV cache otherwise grows into all the memory left). It reasons by default and can be asked not to (the none variant, pi’s off): its template reads that switch and no level. Tool calls in Qwen3-Coder’s form, which the engine turns into OpenAI tool calls. Measured on the reference box on 2026-11-16, before its share was set: ready in about 2 min 40 s, GSM8K 89.6 % (250 questions), 87.7 tokens/s alone and 3,912 in all at 128 requests, a prompt of 131,072 tokens computed in 10.2 s, an agent’s next turn served 99 to 100 % from the prefix cache. Its licence, the LFM Open License v1.0, does not grant commercial use to a company with an annual revenue of 10 million US dollars or more. The first switch downloads about 2 GB.',
|
||||
inkling: 'Thinking Machines’ Inkling 2 Mini (Apache-2.0, with Thinking Machines’ Model Acceptable Use Policy), a looped mixture of experts: 26.4B parameters with 3.4B active, its middle twelve layers run three times per token (5.4B effective), its experts in NVFP4 and MXFP8. Served by SGLang from the image its cookbook gives the model (it is in no SGLang release yet) with the cookbook’s DGX Spark recipe: the DSpark draft head of its checkpoint verifying 8 tokens a step, a static memory share of 0.45, the model’s window of 1,048,576 tokens, its own chat template and sampling (temperature 1.0). It reasons at the effort a request asks, from none to xhigh, high by default; its card says the lowest effort does not turn the reasoning off, and System One does not run on it. It reads images. Measured on the reference box on 2026-11-22: ready in 222 s (379 s at its first start, which compiles its kernels), 53.1 GiB of GPU memory against 89 for the Qwen3.8 27B, a KV cache of 490,496 tokens, 64.7 tokens/s at bench.sh’s greedy median against 72.3, 30.3 tokens/s alone and 89.2 in all at 8 requests against 34.0 and 119.0, a prompt of 32,015 tokens computed in 10.0 s, three tool calls of three, GSM8K 96.4 % (250 questions, its default effort). The first switch downloads about 21 GB.'};
|
||||
// What installs a lane this box does not have. Since v1.20 a plain ./install.sh installs
|
||||
// every lane, so one missing here was left out (a --no-<lane> on the last run) or did not fit:
|
||||
// --with-<lane> installs it beside the lane that serves, which keeps serving. A text lane comes with
|
||||
@@ -247,7 +252,7 @@ const LANE_INSTALL = {[U27]: './install.sh --with-27b', [UFLASH]: './install.sh
|
||||
[FLASH_LOCAL_UNIT]: './install.sh --with-flash-local', [ORNITH_UNIT]: './install.sh --with-ornith-122b',
|
||||
[FLASH_UNSLOTH_UNIT]: './install.sh --with-flash-unsloth', [IMAGE_H3_UNIT]: './install.sh --with-image-h3',
|
||||
[TRANSCRIBE_UNIT]: './install.sh --with-transcribe', [LFM25_UNIT]: './install.sh --with-lfm25',
|
||||
[LFM3_UNIT]: './install.sh --with-lfm3'};
|
||||
[LFM3_UNIT]: './install.sh --with-lfm3', [INKLING_UNIT]: './install.sh --with-inkling'};
|
||||
// A lane a 64 GB DGX Spark cannot hold (boxmem.py, which the machine panel carries): where another
|
||||
// lane names the command that installs it, it says it needs a 128 GB box. Unknown is no refusal.
|
||||
const laneFits = unit => {
|
||||
@@ -707,6 +712,7 @@ const EXPLAIN = {
|
||||
: TARGET_UNIT(p.target) === FLASH_UNSLOTH_UNIT ? `fetches what its GGUF files and its draft lack, puts in its unit for them with its chat template, and makes ${LANE_NAME[FLASH_UNSLOTH_UNIT]} opencode's default model, with its compaction`
|
||||
: TARGET_UNIT(p.target) === LFM25_UNIT ? `fetches what its checkpoint and its draft lack, puts in its unit for them, and makes ${LANE_NAME[LFM25_UNIT]} opencode's default model, with its compaction`
|
||||
: TARGET_UNIT(p.target) === LFM3_UNIT ? `puts in its unit for this checkpoint, and makes ${LANE_NAME[LFM3_UNIT]} opencode's default model, with its compaction`
|
||||
: TARGET_UNIT(p.target) === INKLING_UNIT ? `fetches what its checkpoint lacks, puts in its unit for it, and makes ${LANE_NAME[INKLING_UNIT]} opencode's default model, with its compaction`
|
||||
: isNemotron(TARGET_UNIT(p.target)) ? `points its unit at this checkpoint and its memory share, and makes ${LANE_NAME[TARGET_UNIT(p.target)]} opencode's default model, with its compaction`
|
||||
: 'rewrites its unit, the proxy ceiling and the opencode default model'}. It never restarts anything.`,
|
||||
flush_cache: () => 'Empties the radix cache. Harmless; the engine refuses it while requests run.',
|
||||
@@ -936,11 +942,12 @@ const LANE_RUNTIME = {flash: 'its SGLang image (about 16 GB to download), its ch
|
||||
'flash-unsloth': 'llama.cpp’s own server image for arm64 with CUDA, about 2.7 GB to download (4.5 GB on disk), pulled as its project publishes it',
|
||||
transcribe: 'the Qwen3.8 Flash-Next Unsloth GGUF lane’s llama.cpp server image, about 2.7 GB to download (4.5 GB on disk), pulled once for the two',
|
||||
lfm25: 'the Qwen3.8 27B lane’s SGLang image (about 15 GB to download), pulled once for the two',
|
||||
lfm3: 'vLLM’s own nightly image, about 11.5 GB to download (28 GB on disk), pulled as published'};
|
||||
lfm3: 'vLLM’s own nightly image, about 11.5 GB to download (28 GB on disk), pulled as published',
|
||||
inkling: 'SGLang’s own image for it, about 16.4 GB to download (38.6 GB on disk), pulled as its cookbook names it'};
|
||||
const SIDE_LANE = {[IMAGE_UNIT]: 'image', [VIDEO_UNIT]: 'video', [KOLIBRI_UNIT]: 'kolibri', [NEMOTRON_UNIT]: 'nemotron',
|
||||
[NEMOTRON_SUPER_UNIT]: 'nemotron-super', [FLASH_LOCAL_UNIT]: 'flash-local', [ORNITH_UNIT]: 'ornith-122b',
|
||||
[FLASH_UNSLOTH_UNIT]: 'flash-unsloth', [IMAGE_H3_UNIT]: 'image-h3', [TRANSCRIBE_UNIT]: 'transcribe',
|
||||
[LFM25_UNIT]: 'lfm25', [LFM3_UNIT]: 'lfm3', [UFLASH]: 'flash', [U27]: '27b'};
|
||||
[LFM25_UNIT]: 'lfm25', [LFM3_UNIT]: 'lfm3', [INKLING_UNIT]: 'inkling', [UFLASH]: 'flash', [U27]: '27b'};
|
||||
// The lanes whose clients follow the window their unit starts with (FLASH_LOCAL_CONTEXT=1m, FLASH_UNSLOTH_CONTEXT=1m):
|
||||
// switch-model.sh sets opencode, pi and claude-local for that window, and nothing else does. The Load of such a lane as
|
||||
// the boot lane started or restarted its unit alone, so a window chosen with --units-only reached the engine and not
|
||||
@@ -1071,7 +1078,7 @@ function askJourney(target, opts = {}){
|
||||
const serving = servingEngine();
|
||||
const warns = [];
|
||||
if (serving && serving[0] === UFLASH && TRANSITIONAL.has(serving[1].state)) warns.push('Flash is booting: stopping now throws that boot away, and the next start takes a whole boot again.');
|
||||
if (serving && serving[0] !== unit && (serving[0] === U27 || serving[0] === UFLASH || serving[0] === LFM25_UNIT || serving[0] === KOLIBRI_UNIT || isVllmTable(serving[0]) || isLlamacpp(serving[0]))) warns.push('Agent clients on :30001 lose their engine until a text lane answers again.');
|
||||
if (serving && serving[0] !== unit && (serving[0] === U27 || serving[0] === UFLASH || serving[0] === LFM25_UNIT || serving[0] === INKLING_UNIT || serving[0] === KOLIBRI_UNIT || isVllmTable(serving[0]) || isLlamacpp(serving[0]))) warns.push('Agent clients on :30001 lose their engine until a text lane answers again.');
|
||||
// stopped for another lane, or restarted on its other checkpoint: either ends a generation
|
||||
if (serving && (isImageLane(serving[0]) || serving[0] === VIDEO_UNIT) && steps.some(s => s.name === 'unit' && s.params.unit === serving[0]))
|
||||
warns.push('A generation in flight on ' + laneLabel(serving[0]) + ' is lost.');
|
||||
|
||||
@@ -755,7 +755,7 @@ function defaultLogSource(){
|
||||
: u === NEMOTRON_SUPER_UNIT ? 'qwen38-nemotron-super' : u === FLASH_LOCAL_UNIT ? 'qwen38-flash-local'
|
||||
: u === ORNITH_UNIT ? 'qwen38-ornith-122b' : u === FLASH_UNSLOTH_UNIT ? 'qwen38-flash-unsloth'
|
||||
: u === TRANSCRIBE_UNIT ? 'qwen38-transcribe'
|
||||
: u === LFM25_UNIT ? 'qwen38-lfm25' : u === LFM3_UNIT ? 'qwen38-lfm3' : 'qwen38-sglang';
|
||||
: u === LFM25_UNIT ? 'qwen38-lfm25' : u === LFM3_UNIT ? 'qwen38-lfm3' : u === INKLING_UNIT ? 'qwen38-inkling' : 'qwen38-sglang';
|
||||
}
|
||||
onShow('logs', () => {
|
||||
if (LOGS_WANT.src || !logTouched){ $('log-src').value = defaultLogSource(); LOGS_WANT.src = null; }
|
||||
|
||||
@@ -61,6 +61,9 @@ __USER__ ALL=(root) NOPASSWD: /usr/bin/systemctl restart qwen38-lfm25.service
|
||||
__USER__ ALL=(root) NOPASSWD: /usr/bin/systemctl start qwen38-lfm3.service
|
||||
__USER__ ALL=(root) NOPASSWD: /usr/bin/systemctl stop qwen38-lfm3.service
|
||||
__USER__ ALL=(root) NOPASSWD: /usr/bin/systemctl restart qwen38-lfm3.service
|
||||
__USER__ ALL=(root) NOPASSWD: /usr/bin/systemctl start qwen38-inkling.service
|
||||
__USER__ ALL=(root) NOPASSWD: /usr/bin/systemctl stop qwen38-inkling.service
|
||||
__USER__ ALL=(root) NOPASSWD: /usr/bin/systemctl restart qwen38-inkling.service
|
||||
__USER__ ALL=(root) NOPASSWD: /usr/bin/systemctl start opencode-web.service
|
||||
__USER__ ALL=(root) NOPASSWD: /usr/bin/systemctl stop opencode-web.service
|
||||
__USER__ ALL=(root) NOPASSWD: /usr/bin/systemctl restart opencode-web.service
|
||||
@@ -94,6 +97,8 @@ __USER__ ALL=(root) NOPASSWD: /usr/bin/systemctl enable qwen38-lfm25.service
|
||||
__USER__ ALL=(root) NOPASSWD: /usr/bin/systemctl disable qwen38-lfm25.service
|
||||
__USER__ ALL=(root) NOPASSWD: /usr/bin/systemctl enable qwen38-lfm3.service
|
||||
__USER__ ALL=(root) NOPASSWD: /usr/bin/systemctl disable qwen38-lfm3.service
|
||||
__USER__ ALL=(root) NOPASSWD: /usr/bin/systemctl enable qwen38-inkling.service
|
||||
__USER__ ALL=(root) NOPASSWD: /usr/bin/systemctl disable qwen38-inkling.service
|
||||
__USER__ ALL=(root) NOPASSWD: /usr/bin/systemctl daemon-reload
|
||||
__USER__ ALL=(root) NOPASSWD: /usr/bin/install -m 644 __HOME__/.config/qwen38/qwen38-sglang.service.switch-stage /etc/systemd/system/qwen38-sglang.service
|
||||
__USER__ ALL=(root) NOPASSWD: /usr/bin/install -m 644 __HOME__/.config/qwen38/qwen38-image.service.switch-stage /etc/systemd/system/qwen38-image.service
|
||||
@@ -108,6 +113,7 @@ __USER__ ALL=(root) NOPASSWD: /usr/bin/install -m 644 __HOME__/.config/qwen38/qw
|
||||
__USER__ ALL=(root) NOPASSWD: /usr/bin/install -m 644 __HOME__/.config/qwen38/qwen38-transcribe.service.switch-stage /etc/systemd/system/qwen38-transcribe.service
|
||||
__USER__ ALL=(root) NOPASSWD: /usr/bin/install -m 644 __HOME__/.config/qwen38/qwen38-lfm25.service.switch-stage /etc/systemd/system/qwen38-lfm25.service
|
||||
__USER__ ALL=(root) NOPASSWD: /usr/bin/install -m 644 __HOME__/.config/qwen38/qwen38-lfm3.service.switch-stage /etc/systemd/system/qwen38-lfm3.service
|
||||
__USER__ ALL=(root) NOPASSWD: /usr/bin/install -m 644 __HOME__/.config/qwen38/qwen38-inkling.service.switch-stage /etc/systemd/system/qwen38-inkling.service
|
||||
__USER__ ALL=(root) NOPASSWD: /usr/bin/install -m 644 -D __HOME__/.config/qwen38/keepalive-ceiling.conf.switch-stage /etc/systemd/system/qwen38-keepalive.service.d/ceiling.conf
|
||||
__USER__ ALL=(root) NOPASSWD: /usr/local/bin/qwen38-pyspy-scheduler ""
|
||||
__USER__ ALL=(root) NOPASSWD: /usr/bin/journalctl -k --since -1h --no-pager -o short-iso
|
||||
|
||||
@@ -773,13 +773,13 @@ class ReadRoutes(Base):
|
||||
self.assertEqual(set(self.cp.CONTAINERS), {"qwen38-sglang", "qwen38-flash", "qwen38-kolibri", "qwen38-nemotron",
|
||||
"qwen38-nemotron-super", "qwen38-flash-local", "qwen38-ornith-122b",
|
||||
"qwen38-flash-unsloth", "qwen38-transcribe", "qwen38-lfm25",
|
||||
"qwen38-lfm3"})
|
||||
"qwen38-lfm3", "qwen38-inkling"})
|
||||
self.assertEqual(set(self.cp.JOURNAL_UNITS), {
|
||||
"qwen38-sglang.service", "qwen38-flash.service", "qwen38-image.service",
|
||||
"qwen38-video.service", "qwen38-kolibri.service", "qwen38-nemotron.service",
|
||||
"qwen38-nemotron-super.service", "qwen38-flash-local.service", "qwen38-ornith-122b.service",
|
||||
"qwen38-flash-unsloth.service", "qwen38-image-h3.service", "qwen38-transcribe.service", "qwen38-lfm25.service",
|
||||
"qwen38-lfm3.service", "qwen38-keepalive.service", "opencode-web.service",
|
||||
"qwen38-lfm3.service", "qwen38-inkling.service", "qwen38-keepalive.service", "opencode-web.service",
|
||||
# the speech lane, on the CPU beside any lane (v1.58.0): its journal is read like the others
|
||||
"qwen38-speech.service"})
|
||||
|
||||
|
||||
@@ -78,7 +78,8 @@ class Prepare(unittest.TestCase):
|
||||
self.assertEqual(self.cp.collect_lanes_ready(), {"image": True, "video": False, "kolibri": None, "nemotron": None,
|
||||
"nemotron-super": None, "flash-local": None, "ornith-122b": None,
|
||||
"flash-unsloth": None, "image-h3": None, "transcribe": None,
|
||||
"lfm25": None, "lfm3": None, "flash": None, "27b": None})
|
||||
"lfm25": None, "lfm3": None, "inkling": None, "flash": None,
|
||||
"27b": None})
|
||||
(self.units / "qwen38-kolibri.service").write_text("ExecStart=/usr/bin/docker run qwen38-kolibri:1.0\n")
|
||||
self.assertIs(self.cp.collect_lanes_ready()["kolibri"], False)
|
||||
self.images.add("qwen38-kolibri:1.0")
|
||||
|
||||
@@ -0,0 +1,177 @@
|
||||
#!/usr/bin/env python3
|
||||
"""The cockpit follows the Inkling 2 Mini lane as an SGLang text lane, with its own facts where the 27B's would be wrong.
|
||||
|
||||
Its engine is SGLang on the image its cookbook gives the model, on the text port behind the proxy: the SGLang belts are
|
||||
its own (the canary, the pool guard, the autoheal), its target is read from its unit's --model-path as the 27B's is, its
|
||||
checkpoint (the DSpark draft head inside) is what it needs to start, the 27B's pinned pool is not its, and System One,
|
||||
which it cannot answer, is said unavailable there without asking the proxy. The module is imported with its environment
|
||||
pointed at a throwaway box.
|
||||
"""
|
||||
import importlib.util
|
||||
import os
|
||||
import re
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
import unittest
|
||||
from pathlib import Path
|
||||
|
||||
HERE = Path(__file__).resolve()
|
||||
DASH = HERE.parents[1]
|
||||
REPO = HERE.parents[2]
|
||||
U = "qwen38-inkling.service"
|
||||
INSTALLER = (REPO / "install-inkling.sh").read_text()
|
||||
PIN = {k: re.search(rf'^{k}="([^"]+)"', INSTALLER, re.M).group(1) for k in ("INKLING_IMAGE", "INKLING_REPO", "INKLING_REV")}
|
||||
ENV_BEFORE = {}
|
||||
|
||||
|
||||
def setUpModule():
|
||||
ENV_BEFORE.update(os.environ)
|
||||
|
||||
|
||||
def tearDownModule():
|
||||
for name in set(os.environ) - set(ENV_BEFORE):
|
||||
del os.environ[name]
|
||||
os.environ.update(ENV_BEFORE)
|
||||
|
||||
|
||||
class Base(unittest.TestCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
cls.box = Path(tempfile.mkdtemp(prefix="cockpit-inkling-"))
|
||||
os.environ.update(COCKPIT_DRY_RUN="1", COCKPIT_CONFIG_DIR=str(cls.box), COCKPIT_REPO_DIR=str(REPO),
|
||||
COCKPIT_PORT="0", COCKPIT_AGENT_PORT="0", COCKPIT_AUTOHEAL="0",
|
||||
COCKPIT_ENGINE="http://127.0.0.1:1", COCKPIT_PROXY="http://127.0.0.1:1")
|
||||
(cls.box / "api-key").write_text("test-key\n")
|
||||
sys.path.insert(0, str(DASH))
|
||||
spec = importlib.util.spec_from_file_location("cockpit_inkling_under_test", DASH / "cockpit.py")
|
||||
cls.ck = importlib.util.module_from_spec(spec)
|
||||
spec.loader.exec_module(cls.ck)
|
||||
# its unit as its installer renders it (--stage), in this box's own cache
|
||||
cls.hf = cls.box / "hf"
|
||||
cls.unit = cls.box / U
|
||||
home = cls.box / "home"
|
||||
(home / ".config" / "qwen38").mkdir(parents=True)
|
||||
r = subprocess.run(["bash", str(REPO / "install-inkling.sh"), "--stage", str(cls.unit)], capture_output=True,
|
||||
text=True, env={"PATH": "/usr/bin:/bin", "HOME": str(home), "HF_CACHE": str(cls.hf),
|
||||
"LANES_UNIT_DIR": str(cls.box / "units"), "QWEN38_MEMORY_CLASS": "128"},
|
||||
timeout=120)
|
||||
assert r.returncode == 0, r.stdout + r.stderr
|
||||
cls.ck.INKLING_UNIT_PATH = cls.unit
|
||||
cls.ck.UNIT_PATHS[U] = cls.unit
|
||||
cls.real_run = cls.ck.run
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
shutil.rmtree(cls.box, ignore_errors=True)
|
||||
|
||||
def setUp(self):
|
||||
self.ck.run = self.real_run
|
||||
self.ck.UNIT_TARGET_CACHE.clear()
|
||||
|
||||
def whole(self):
|
||||
"""Its checkpoint as its repository holds it: an index, its one shard, and the draft head beside them."""
|
||||
m = self.hf / "hub" / f"models--{PIN['INKLING_REPO'].replace('/', '--')}" / "snapshots" / PIN["INKLING_REV"]
|
||||
m.mkdir(parents=True, exist_ok=True)
|
||||
(m / "config.json").write_text("{}")
|
||||
(m / "model.safetensors.index.json").write_text('{"weight_map": {"a": "model-00001-of-00001.safetensors"}}')
|
||||
for f in ("model-00001-of-00001.safetensors", "mtp.safetensors"):
|
||||
(m / f).write_bytes(b"x")
|
||||
return m
|
||||
|
||||
def image_here(self, here=True):
|
||||
img = PIN["INKLING_IMAGE"]
|
||||
self.ck.run = lambda argv, **kw: ("sha256:abc\n" if here and argv[:3] == ["docker", "image", "inspect"]
|
||||
and argv[-1] == img else "")
|
||||
|
||||
|
||||
class ItsUnit(Base):
|
||||
def test_its_target_is_read_from_its_model_path_as_the_27bs(self):
|
||||
self.assertEqual(self.ck.unit_target(U), {"model": PIN["INKLING_REPO"], "target": "inkling"})
|
||||
|
||||
def test_it_is_an_sglang_text_lane_with_every_belt(self):
|
||||
lc = self.ck.lc
|
||||
self.assertIn(U, lc.ENGINE_UNITS)
|
||||
self.assertIn(U, lc.TEXT_UNITS, "the canary, the pool guard and the autoheal are SGLang's, and its")
|
||||
self.assertEqual(lc.LANE_PROVIDER[U], "inkling")
|
||||
self.assertEqual(self.ck.UNIT2CONT[U], "qwen38-inkling")
|
||||
self.assertIn("qwen38-inkling", self.ck.SGL_CONTAINERS, "its scheduler lines are SGLang's")
|
||||
self.assertNotIn(U, self.ck.OTHER_TEXT_UNITS)
|
||||
self.assertEqual(self.ck.TEXT_BOOT_DEFAULT_S[U], 230.0)
|
||||
self.assertTrue(lc.blocked_reasons("unit", {"unit": U, "verb": "start"}, {"qwen38-sglang.service": "ready"}))
|
||||
self.assertTrue(lc.blocked_reasons("unit", {"unit": "qwen38-sglang.service", "verb": "start"}, {U: "ready"}))
|
||||
|
||||
def test_it_is_a_switch_target_a_unit_the_page_may_drive_and_a_lane_it_prepares(self):
|
||||
self.assertIn("inkling", self.ck.ACTIONS["switch"]["params"]["target"])
|
||||
self.assertIn(U, self.ck.SERVING_UNITS)
|
||||
self.assertIn(U, self.ck.JOURNAL_UNITS)
|
||||
self.assertEqual(self.ck.target_lane("inkling"), "inkling")
|
||||
self.assertEqual(self.ck.target_unit("inkling"), self.ck.INKLING_UNIT_PATH)
|
||||
self.assertEqual(self.ck.ACTIONS["prepare"]["argv"]({"target": "inkling"})[-1], "inkling")
|
||||
self.assertEqual(self.ck.TARGET_PIN["inkling"], "INKLING_REV")
|
||||
self.assertNotIn("inkling", self.ck.TARGET_DRAFT_PIN, "its draft head is in its checkpoint")
|
||||
self.assertEqual(self.ck.rg.PIN_MODELS["INKLING_REV"], PIN["INKLING_REPO"])
|
||||
self.assertIn("install-inkling.sh", self.ck.rg.PIN_FILES)
|
||||
|
||||
def test_its_engine_is_sglang_on_its_pinned_image(self):
|
||||
e = self.ck.en.ENGINES[U]
|
||||
self.assertEqual(e["pin"], PIN["INKLING_IMAGE"])
|
||||
self.assertEqual(e["engine"], "SGLang")
|
||||
|
||||
|
||||
class ItStartsOnlyWhole(Base):
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
self.image_here()
|
||||
|
||||
def test_it_is_prepared_once_the_image_its_unit_names_is_here(self):
|
||||
self.assertTrue(self.ck.lane_prepared("inkling"))
|
||||
self.image_here(False)
|
||||
self.assertFalse(self.ck.lane_prepared("inkling"))
|
||||
|
||||
def test_whole_it_can_start_and_a_missing_shard_holds_it_back(self):
|
||||
"""The unit starts offline (HF_HUB_OFFLINE=1): a shard not there crash-loops it."""
|
||||
m = self.whole()
|
||||
self.assertTrue(self.ck.lane_startable("inkling"))
|
||||
(m / "model-00001-of-00001.safetensors").unlink()
|
||||
try:
|
||||
self.assertFalse(self.ck.lane_startable("inkling"))
|
||||
finally:
|
||||
self.whole()
|
||||
|
||||
|
||||
class TheTwentySevenBsFactsAreNotItsOwn(Base):
|
||||
def test_the_27bs_pinned_pool_is_not_its(self):
|
||||
u27 = self.box / "qwen38-sglang.service"
|
||||
u27.write_text("ExecStart=/bin/bash -c 'exec docker run x python3 -m sglang.launch_server --model-path m "
|
||||
"--max-total-tokens 123456 --port 30000'\n")
|
||||
saved = dict(self.ck.INSTALLED_INVOCATION)
|
||||
self.ck.INSTALLED_INVOCATION["27b"] = u27
|
||||
try:
|
||||
self.assertEqual(self.ck.pinned_pool("qwen38-sglang.service"), 123456, "the 27B's own, read as before")
|
||||
self.assertIsNone(self.ck.pinned_pool(U))
|
||||
finally:
|
||||
self.ck.INSTALLED_INVOCATION.clear()
|
||||
self.ck.INSTALLED_INVOCATION.update(saved)
|
||||
|
||||
def lane_serving(self, state="ready"):
|
||||
with self.ck.LIFE_LOCK:
|
||||
saved = dict(self.ck.LIFE.get("states") or {})
|
||||
self.ck.LIFE["states"] = {U: state}
|
||||
self.addCleanup(lambda: self.ck.LIFE.__setitem__("states", saved))
|
||||
|
||||
def test_with_no_engine_info_its_name_is_its_own_not_the_27bs(self):
|
||||
self.lane_serving()
|
||||
with self.ck.STATE_LOCK:
|
||||
saved = self.ck.STATE.pop("engine_info", None)
|
||||
try:
|
||||
self.assertEqual(self.ck.served_model_name(), "inkling-2-mini")
|
||||
finally:
|
||||
if saved is not None:
|
||||
with self.ck.STATE_LOCK:
|
||||
self.ck.STATE["engine_info"] = saved
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
@@ -659,8 +659,10 @@ class KolibriLane(unittest.TestCase):
|
||||
self.assertIn(self.K, lc.ENGINE_UNITS)
|
||||
self.assertNotIn(self.K, lc.TEXT_UNITS)
|
||||
self.assertEqual(lc.KOLIBRI_UNIT, self.K)
|
||||
# SGLang's text lanes alone: install.sh's two, and the Liquid AI LFM2.5 24B-A2B lane on the 27B's image
|
||||
self.assertEqual(set(lc.TEXT_UNITS), {"qwen38-sglang.service", "qwen38-flash.service", "qwen38-lfm25.service"})
|
||||
# SGLang's text lanes alone: install.sh's two, the Liquid AI LFM2.5 24B-A2B lane on the 27B's image, and the
|
||||
# Inkling 2 Mini lane on its own
|
||||
self.assertEqual(set(lc.TEXT_UNITS), {"qwen38-sglang.service", "qwen38-flash.service", "qwen38-lfm25.service",
|
||||
"qwen38-inkling.service"})
|
||||
|
||||
def test_it_waits_for_every_other_engine_and_they_for_it(self):
|
||||
for other in ("qwen38-sglang.service", "qwen38-flash.service", "qwen38-image.service", "qwen38-video.service"):
|
||||
|
||||
@@ -39,6 +39,7 @@ const UNITS = {units: {'qwen38-sglang.service': {active: 'active', enabled: 'ena
|
||||
'qwen38-transcribe.service': {active: 'inactive', enabled: 'disabled'},
|
||||
'qwen38-lfm25.service': {active: 'inactive', enabled: 'disabled'},
|
||||
'qwen38-lfm3.service': {active: 'inactive', enabled: 'disabled'},
|
||||
'qwen38-inkling.service': {active: 'inactive', enabled: 'disabled'},
|
||||
'qwen38-keepalive.service': {active: 'active', enabled: 'enabled'}}};
|
||||
const life = (engines, extra) => Object.assign({engines, events: [], blocked: {}}, extra || {});
|
||||
const eng = (state, extra) => Object.assign({state, target: 'stock', elapsed: 600}, extra || {});
|
||||
@@ -1836,7 +1837,7 @@ class AnEmptyStateIsSaidNotPending(unittest.TestCase):
|
||||
u27: installed('qwen38-sglang.service'), flash: installed('qwen38-flash.service')});
|
||||
""")
|
||||
self.assertNotIn("…", r["cps"], r)
|
||||
self.assertEqual(sorted(r["cps"]), ["not installed"] * 12 + ["unknown"] * 2, r)
|
||||
self.assertEqual(sorted(r["cps"]), ["not installed"] * 13 + ["unknown"] * 2, r)
|
||||
self.assertEqual((r["image"], r["video"], r["kolibri"], r["nemotron"], r["nsuper"], r["flocal"], r["ornith"], r["u27"],
|
||||
r["flash"]), (False, False, False, False, False, False, False, True, True), r)
|
||||
|
||||
@@ -1878,7 +1879,7 @@ class TheBootLaneIsSaidOnlyWhenOneIs(unittest.TestCase):
|
||||
for (const u of ['qwen38-sglang.service', 'qwen38-flash.service', 'qwen38-image.service', 'qwen38-video.service', 'qwen38-kolibri.service',
|
||||
'qwen38-nemotron.service', 'qwen38-nemotron-super.service', 'qwen38-flash-local.service',
|
||||
'qwen38-ornith-122b.service', 'qwen38-flash-unsloth.service', 'qwen38-image-h3.service',
|
||||
'qwen38-transcribe.service', 'qwen38-lfm25.service', 'qwen38-lfm3.service'])
|
||||
'qwen38-transcribe.service', 'qwen38-lfm25.service', 'qwen38-lfm3.service', 'qwen38-inkling.service'])
|
||||
if (%s !== null) units.units[u].enabled = %s;
|
||||
feed({config: CONFIG, units, lifecycle: life({'qwen38-sglang.service': eng('stopped', {target: 'uncensored'}),
|
||||
'qwen38-flash.service': eng('stopped', {target: 'flash'})})});
|
||||
@@ -1898,7 +1899,7 @@ class TheBootLaneIsSaidOnlyWhenOneIs(unittest.TestCase):
|
||||
r = self.page("'disabled'")
|
||||
self.assertEqual(r["sub"], "no lane starts at boot; load one from Lanes", r)
|
||||
self.assertTrue(r["atBoot"] and all(a == "manual start" for a in r["atBoot"]), r["atBoot"])
|
||||
self.assertEqual(r["notes"], ["manual start"] * 14, r["notes"]) # each of the fourteen lanes
|
||||
self.assertEqual(r["notes"], ["manual start"] * 15, r["notes"]) # each of the fifteen lanes
|
||||
self.assertIn("Boot lanenone", r["facts"])
|
||||
self.assertEqual(len(r["steps"]), 2, r["steps"])
|
||||
self.assertIn("switch-model.sh uncensored", r["steps"][0])
|
||||
@@ -3019,7 +3020,7 @@ class ALaneToComeOpensTheRack(unittest.TestCase):
|
||||
self.assertEqual(r["n"], 1)
|
||||
self.assertEqual(r["at"], 0)
|
||||
self.assertTrue(r["next"].startswith("Qwen3.8 27B"), r["next"])
|
||||
self.assertEqual(r["bays"], 15) # the fourteen lanes and this card
|
||||
self.assertEqual(r["bays"], 16) # the fifteen lanes and this card
|
||||
self.assertEqual((r["title"], r["cap"], r["lamp"]), ("Qwen4 27B", "coming soon", 0))
|
||||
self.assertIn("not released yet", r["text"])
|
||||
self.assertIn("no date yet", r["text"])
|
||||
@@ -3055,9 +3056,10 @@ class EachLaneWearsItsMakersMark(unittest.TestCase):
|
||||
none, flash, video});
|
||||
""")
|
||||
lanes = ["qwen.svg", "qwen.svg", "nvidia.svg", "unsloth.svg", "ornith.svg", "alephalpha.svg", "nvidia.svg", "nvidia.svg",
|
||||
"liquid.svg", "liquid.svg", "qwen.svg", "minimax.svg", "minimax.svg", "nvidia.svg"] # 27B, flash,
|
||||
# Flash FP4-Local, Unsloth GGUF, Ornith, Kolibri, the Nemotron lanes, Liquid AI's LFM2.5 and LFM3, the two image
|
||||
# lanes (Qwen-Image 2.1, MiniMax-H3-Image), video, and NVIDIA's speech recognizer (NVIDIA Nemotron Transcribe)
|
||||
"liquid.svg", "liquid.svg", "thinkingmachines.svg", "qwen.svg", "minimax.svg", "minimax.svg",
|
||||
"nvidia.svg"] # 27B, flash, Flash FP4-Local, Unsloth GGUF, Ornith, Kolibri, the Nemotron lanes, Liquid AI's
|
||||
# LFM2.5 and LFM3, Inkling 2 Mini, the two image lanes (Qwen-Image 2.1, MiniMax-H3-Image), video, and NVIDIA's
|
||||
# speech recognizer (NVIDIA Nemotron Transcribe)
|
||||
self.assertEqual(r["bays"], lanes)
|
||||
self.assertEqual(r["cards"], lanes)
|
||||
# the mark is decoration beside the lane's name: no alt text to read twice
|
||||
@@ -3071,7 +3073,7 @@ class EachLaneWearsItsMakersMark(unittest.TestCase):
|
||||
names = set()
|
||||
for f in (pagejs.STATIC / "js").glob("*.js"):
|
||||
names |= set(re.findall(r"maker: '([a-z]+)'", f.read_text()))
|
||||
self.assertEqual(names, {"qwen", "minimax", "alephalpha", "nvidia", "ornith", "unsloth", "liquid"})
|
||||
self.assertEqual(names, {"qwen", "minimax", "alephalpha", "nvidia", "ornith", "unsloth", "liquid", "thinkingmachines"})
|
||||
for n in names:
|
||||
self.assertTrue((pagejs.STATIC / "img" / "logos" / f"{n}.svg").is_file(), n)
|
||||
css = (pagejs.STATIC / "css" / "cockpit.css").read_text()
|
||||
@@ -3079,7 +3081,7 @@ class EachLaneWearsItsMakersMark(unittest.TestCase):
|
||||
# unchecked (found when the Ornith lane came, 2026-10-21)
|
||||
lanes = set(re.findall(r"lane: '([a-z0-9-]+)'", (pagejs.STATIC / "js" / "base.js").read_text()))
|
||||
self.assertEqual(lanes, {"27b", "flash", "kolibri", "nemotron", "nemotron-super", "flash-local", "ornith-122b",
|
||||
"flash-unsloth", "image", "video", "image-h3", "transcribe", "lfm25", "lfm3"})
|
||||
"flash-unsloth", "image", "video", "image-h3", "transcribe", "lfm25", "lfm3", "inkling"})
|
||||
for lane in lanes:
|
||||
self.assertRegex(css, r"--lane-%s:#[0-9a-f]{6};" % lane)
|
||||
|
||||
|
||||
@@ -25,11 +25,12 @@ PINS = {"stock": ("install.sh", "STOCK_REPO"), "uncensored": ("install.sh", "UNC
|
||||
"image": ("install-image.sh", "IMAGE_MODEL_PIN"), "image-turbo": ("install-image.sh", "IMAGE_TURBO_PIN"),
|
||||
"video": ("install-video.sh", "VIDEO_MODEL_PIN"), "image-h3": ("install-image-h3.sh", "IMAGE_H3_MODEL_PIN"),
|
||||
"transcribe": ("install-transcribe.sh", "TRANSCRIBE_REPO"), "lfm25": ("install-lfm25.sh", "LFM25_REPO"),
|
||||
"lfm3": ("install-lfm3.sh", "LFM3_REPO")}
|
||||
"lfm3": ("install-lfm3.sh", "LFM3_REPO"), "inkling": ("install-inkling.sh", "INKLING_REPO")}
|
||||
# a repository's owner on Hugging Face, written as its own pages write its name
|
||||
PUBLISHER = {"RadixArk": "RadixArk", "edp1096": "edp1096", "Qwen": "Qwen", "nvidia": "NVIDIA", "dealignai": "dealignai",
|
||||
"Aleph-Alpha": "Aleph Alpha", "Quantinine": "Quantinine", "ornith-ai": "Ornith AI", "MiniMaxAI": "MiniMax",
|
||||
"unsloth": "Unsloth", "atakans": "atakans", "mradermacher": "mradermacher", "LiquidAI": "Liquid AI"}
|
||||
"unsloth": "Unsloth", "atakans": "atakans", "mradermacher": "mradermacher", "LiquidAI": "Liquid AI",
|
||||
"thinkingmachines": "Thinking Machines"}
|
||||
# a precision the repository's name does not say: Aleph Alpha's own release of Kolibri-1 is its FP8 build, and
|
||||
# Unsloth's GGUF repository holds every quantization of the model, the lane serving its UD-Q4_K_XL folder or its
|
||||
# UD-IQ3_XXS one, each read off the folder of the part its installer pins first (PRECISION below); mradermacher's GGUF
|
||||
|
||||
@@ -30,7 +30,7 @@ does.
|
||||
|
||||
## The start guard (`engine-preflight.sh`)
|
||||
|
||||
Every engine unit (the 27B, the flash lane, the Liquid AI LFM2.5 24B-A2B lane, the llama.cpp lane, the six vLLM lanes, image and video) runs it before its engine. It waits up to 60 s
|
||||
Every engine unit (the 27B, the flash lane, the Liquid AI LFM2.5 24B-A2B lane, the Inkling 2 Mini lane, the llama.cpp lane, the six vLLM lanes, image and video) runs it before its engine. It waits up to 60 s
|
||||
and refuses the start while it finds:
|
||||
|
||||
- **GPU memory still held by what is left of an engine**: an engine process (SGLang's title is
|
||||
@@ -98,7 +98,7 @@ engines, with the real clients:
|
||||
| Claude Code 2.1.286 (`claude-qwen`) | 11 attempts, 30 to 38 s apart, then fails at 325 s | waits, takes the answer, 1 request | sends it again without streaming |
|
||||
|
||||
So every engine restart ended every session it caught, in both clients. Now a request that finds the
|
||||
engine not answering, while one of the ten text lanes' units is starting,
|
||||
engine not answering, while one of the eleven text lanes' units is starting,
|
||||
waiting for its next attempt, up, or in the stop half of a restart (the unit "deactivating"
|
||||
under a `restart` job), waits for it (`PROXY_HOLD_UNITS`, at most `PROXY_HOLD_MAX_S`, 1200 s,
|
||||
both in the proxy's unit):
|
||||
|
||||
+1
-1
@@ -172,7 +172,7 @@ is 223 GB, the 27B 58), the image lane (46) and the video lane (about 174 of hea
|
||||
v1.33 they come on demand: that update gives each its units, and each is built at its first Load
|
||||
from the cockpit; `--all-weights` builds them all on that run and proves each, the served lane
|
||||
stopped meanwhile and proved again after. To keep a box as it is,
|
||||
say so on every run, as a `--no-<lane>` counts for the run that passes it only: `./install.sh --no-flash --no-image --no-video --no-kolibri --no-nemotron --no-nemotron-super --no-flash-local --no-ornith-122b --no-flash-unsloth --no-image-h3 --no-transcribe --no-lfm25 --no-lfm3 --no-speech`
|
||||
say so on every run, as a `--no-<lane>` counts for the run that passes it only: `./install.sh --no-flash --no-image --no-video --no-kolibri --no-nemotron --no-nemotron-super --no-flash-local --no-ornith-122b --no-flash-unsloth --no-image-h3 --no-transcribe --no-lfm25 --no-lfm3 --no-inkling --no-speech`
|
||||
(or `--no-27b` on a flash box). A lane already installed is updated and not proved again.
|
||||
On a box that boots a side lane (images, video, Kolibri, a Nemotron lane, Qwen3.8 Flash-Next FP4-Local, Ornith, Qwen3.8 Flash-Next Unsloth GGUF, MiniMax-H3-Image, the NVIDIA Nemotron Transcribe lane, a Liquid AI lane), a run
|
||||
brings up to date the text lane the box served last; left out by its flag, or not prepared, that lane gets its units only, at
|
||||
|
||||
+2
-2
@@ -188,7 +188,7 @@ if [ "$ACTION" = uninstall ]; then
|
||||
# When this lane was the box's lane at boot, whatever it replaced was disabled by that switch:
|
||||
# removing it left no engine at all (the image lane's trap). The text lane comes back.
|
||||
TEXT_ENABLED=0
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service; do
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service; do
|
||||
systemctl is-enabled --quiet "$u" 2>/dev/null && TEXT_ENABLED=1
|
||||
done
|
||||
if [ "$WAS_BOOT" -eq 1 ] && [ "$TEXT_ENABLED" -eq 0 ]; then
|
||||
@@ -469,7 +469,7 @@ step "6/6 Proving it serves (one image, then the box goes back to the lane it wa
|
||||
# The restore mirrors this unit's Conflicts= set: starting it stops every other lane, so
|
||||
# whatever was serving has to be started back.
|
||||
WAS_OTHER=""
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service; do
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service; do
|
||||
systemctl is-active --quiet "$u" 2>/dev/null && WAS_OTHER="$u"
|
||||
done
|
||||
# If this lane was already serving, the test leaves it serving.
|
||||
|
||||
+2
-2
@@ -158,7 +158,7 @@ if [ "$ACTION" = uninstall ]; then
|
||||
# disabled by that switch: removing it left no engine at all, the next boot included,
|
||||
# and said nothing (found in review, 2026-09-24). The lane before images comes back.
|
||||
TEXT_ENABLED=0
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-lfm25.service qwen38-lfm3.service; do
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service; do
|
||||
systemctl is-enabled --quiet "$u" 2>/dev/null && TEXT_ENABLED=1
|
||||
done
|
||||
if [ "$WAS_BOOT" -eq 1 ] && [ "$TEXT_ENABLED" -eq 0 ]; then
|
||||
@@ -488,7 +488,7 @@ step "6/6 Proving it serves (one image, then the box goes back to the lane it wa
|
||||
# was serving on video with no engine at all after the smoke test (found in review,
|
||||
# 2026-09-26).
|
||||
WAS_LLM=""
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service; do
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service; do
|
||||
systemctl is-active --quiet "$u" 2>/dev/null && WAS_LLM="$u"
|
||||
done
|
||||
# If this lane was already serving, the test leaves it serving: stopping it on the way out
|
||||
|
||||
Executable
+199
@@ -0,0 +1,199 @@
|
||||
#!/usr/bin/env bash
|
||||
# Install the Inkling 2 Mini lane: Thinking Machines' Inkling 2 Mini (a looped mixture of experts, 26.4B with 3.4B
|
||||
# active per token, its middle layers run three times; text and images in, text out; a window of 1M tokens), with the
|
||||
# DSpark draft head its checkpoint carries, served by SGLang on the text lanes' port behind the proxy and its key.
|
||||
# Idempotent, and safe to run alone.
|
||||
#
|
||||
# ./install-inkling.sh first install, or update in place
|
||||
# ./install-inkling.sh --no-smoke skip the proof at the end
|
||||
# ./install-inkling.sh --uninstall remove the unit (the checkpoint and the image kept, said)
|
||||
# ./install-inkling.sh --units-only the unit alone: no image, no checkpoint (install.sh, on demand)
|
||||
# ./install-inkling.sh --prepare its image, pulled with no sudo: the cockpit's first Load
|
||||
# runs it (./prepare-lane.sh inkling)
|
||||
# ./install-inkling.sh --stage FILE the unit for this box, written to FILE with no sudo:
|
||||
# switch-model.sh inkling installs FILE, once it has fetched the
|
||||
# checkpoint in the lane's image
|
||||
#
|
||||
# install.sh runs this on every plain install, like the other lanes; ./install.sh --no-inkling leaves it out of the
|
||||
# run that passes it. It takes 20.2 GB of weights (one checkpoint, the draft head inside it) and an SGLang image of its
|
||||
# own (38.6 GB unpacked); when the disk does not have the room, this refuses before downloading anything.
|
||||
#
|
||||
# WHY SGLANG, AND THIS IMAGE. Inkling 2 Mini is in no SGLang release yet: SGLang's cookbook serves it from the
|
||||
# lmsysorg/sglang:inkling-2-mini image (pull request sgl-project/sglang#51926), pinned here by the digest of its arm64
|
||||
# build, with the cookbook's DGX Spark recipe and its DSpark draft. The reference box ran that recipe on 2026-11-22 and
|
||||
# 2026-11-23 (~/qa-tools/etudes/inkling): ready in 222 s (379 s at its first start there), 53.1 GiB of GPU memory at its
|
||||
# peak against 89 for the 27B lane, a KV cache of 490,496 tokens, GSM8K 250 at 0.964 (its default effort, temperature 0)
|
||||
# and 0.972 (effort 0.99, temperature 1.0), three tool calls of three, and a median of 64.7 tokens/s in bench.sh against
|
||||
# 72.3 for the 27B lane.
|
||||
#
|
||||
# ONE ENGINE AT A TIME. The unit says so with Conflicts=: starting it stops whichever lane serves, and starting
|
||||
# another lane stops it.
|
||||
set -euo pipefail
|
||||
# One spelling of the home, without a trailing slash, as install.sh says why: the cockpit's
|
||||
# exact-argv sudoers is rendered from it and has to match the cockpit's own calls (2026-10-22).
|
||||
while [ -n "${HOME:-}" ] && [ "$HOME" != / ] && [ "${HOME%/}" != "$HOME" ]; do HOME="${HOME%/}"; done; export HOME
|
||||
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
UNIT=qwen38-inkling.service
|
||||
# where systemd reads the units, the one variable lanes.sh and vllm-lane.sh read the other units by
|
||||
INSTALLED="${LANES_UNIT_DIR:-/etc/systemd/system}/$UNIT"
|
||||
CONTAINER=qwen38-inkling
|
||||
die(){ printf '\n\033[1;31mERROR:\033[0m %s\n' "$*" >&2; exit 1; }
|
||||
step(){ printf '\n\033[1;36m── %s\033[0m\n' "$*"; }
|
||||
|
||||
# Under sudo every path below moves to /root: the cache, the config and the key the unit
|
||||
# reads. install.sh refuses the same way, for the same reason.
|
||||
if [ "$(id -u)" = "0" ] && [ "${ALLOW_ROOT:-0}" != "1" ]; then
|
||||
die "run this as the user who will use the box, not as root (everything it installs is addressed from \$HOME)."
|
||||
fi
|
||||
|
||||
SMOKE=1; ACTION=install; MODE=full
|
||||
for a in "$@"; do case "$a" in
|
||||
--no-smoke) SMOKE=0 ;;
|
||||
--uninstall) ACTION=uninstall ;;
|
||||
# The two halves of a lane installed on demand, as for the other lanes: --units-only puts in what needs root (the
|
||||
# unit, its start scripts) and nothing heavy, and --prepare pulls the lane's image as the user, with no sudo, when
|
||||
# the cockpit first loads the lane. The checkpoint comes with that Load's switch, as for any Load.
|
||||
--units-only) [ "$MODE" = full ] || die "--units-only and --prepare are the two halves of an install: one at a time"; MODE=units ;;
|
||||
--prepare) [ "$MODE" = full ] || die "--units-only and --prepare are the two halves of an install: one at a time"; MODE=prepare ;;
|
||||
--stage) [ "$MODE" = full ] || die "--stage is a mode of its own"; MODE=stage ;;
|
||||
-h|--help) awk 'NR > 1 && !/^#/ { exit } NR > 1' "$0"; exit 0 ;;
|
||||
*) if [ "$MODE" = stage ] && [ -z "${STAGE_OUT:-}" ]; then STAGE_OUT="$a"; else die "unknown option: $a"; fi ;;
|
||||
esac; done
|
||||
if [ "$MODE" = stage ] && [ -z "${STAGE_OUT:-}" ]; then die "--stage takes the file to write the unit to"; fi
|
||||
|
||||
CONFIG_DIR="$HOME/.config/qwen38"
|
||||
# the text lane the box comes back to, one record shared with switch-model.sh (lanes.sh)
|
||||
# shellcheck source=lanes.sh
|
||||
. "$HERE/lanes.sh"
|
||||
# A 64 GB DGX Spark cannot hold this lane as measured (boxmem.py): 53.1 GiB of GPU memory at its peak on a 128 GB box,
|
||||
# and no 64 GB run was made. Refused there before anything is fetched; --uninstall still takes away what was put.
|
||||
[ "$ACTION" = uninstall ] || [ "$(box_mem_class)" != 64 ] || lane_fits inkling || die "The Inkling 2 Mini lane needs a 128 GB DGX Spark, and this box is a 64 GB one."
|
||||
# A terminal opened before the account joined the docker group: the run goes on with it (lanes.sh).
|
||||
docker_session bash "$HERE/${BASH_SOURCE[0]##*/}" "$@"
|
||||
# what the SGLang lanes' installers share: the engine's cache and port, the uninstall, the service, the preflight
|
||||
# and the room, the fetch, the proof (most of it vllm-lane.sh's)
|
||||
# shellcheck source=sglang-lane.sh
|
||||
. "$HERE/sglang-lane.sh"
|
||||
VLANE=inkling; VLANE_SHORT="Inkling 2 Mini"
|
||||
|
||||
# The pins, at column 0 like install.sh's. switch-model.sh, check-pins.sh and the cockpit read them here.
|
||||
# The image SGLang's cookbook serves Inkling 2 Mini with (lmsysorg/sglang:inkling-2-mini), by the digest of its arm64
|
||||
# build, the one the reference box ran it on (2026-11-22).
|
||||
INKLING_IMAGE="lmsysorg/sglang@sha256:bc811ac7ac68c6fca116a49750baca817b8613a30abface8a347682b55d132e3"
|
||||
# Thinking Machines' checkpoint (Apache-2.0), at the revision measured on 2026-11-22: mixed NVFP4 and MXFP8 experts,
|
||||
# the DSpark draft head beside them (mtp.safetensors), which SGLang takes from the checkpoint itself.
|
||||
INKLING_REPO="thinkingmachines/Inkling-2-Mini"
|
||||
INKLING_REV="b85c3cfa615fc413cc9af3379f491b963f3b586a"
|
||||
# The repository at this revision, 20,191,643,333 bytes (the Hub's API, its files' sizes, read 2026-11-24), 20.19 GB
|
||||
# (10^9 bytes), rounded up: the room its fetch asks.
|
||||
INKLING_GB="21"
|
||||
LOCAL_IMAGE="$INKLING_IMAGE"
|
||||
MODEL="$INKLING_REPO"; MODEL_REV="$INKLING_REV"; WEIGHTS_GB="$INKLING_GB"
|
||||
# Its pull at its peak: 38.6 GB unpacked (docker image inspect on the reference box) and 16.4 GB to download (its arm64
|
||||
# build on Docker Hub, read 2026-11-22), which the containerd image store (Docker 29's default on a new install) keeps
|
||||
# beside it, 51.3 GiB; ceil(x 1.02) + 1 as df -BG rounds up (install-lfm3.sh counts its image so).
|
||||
IMAGE_GB=54
|
||||
|
||||
# The text lanes' cache and port: this lane is one of them for the proxy (vllm-lane.sh).
|
||||
vlane_engine_env "${INKLING_PORT:-}"
|
||||
|
||||
if [ "$ACTION" = uninstall ]; then
|
||||
step "Removing the Inkling 2 Mini lane"
|
||||
vlane_uninstall_unit
|
||||
vlane_uninstall_clients
|
||||
slane_uninstall_runtime "$INKLING_REPO"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# The unit, rendered for this box: written to $1.
|
||||
render_unit(){
|
||||
sed -e "s|__USER__|$(id -un)|g" -e "s|__GROUP__|$(id -gn "$(id -un)")|g" -e "s|__HOME__|$HOME|g" \
|
||||
-e "s|__IMAGE__|$INKLING_IMAGE|g" -e "s|__HF_CACHE__|$HF_CACHE|g" \
|
||||
-e "s|__MODEL__|$INKLING_REPO|g" -e "s|__REV__|$INKLING_REV|g" \
|
||||
-e "s|__ENGINE_BIND__|$ENGINE_BIND|g" -e "s|__PORT__|$PORT|g" \
|
||||
"$HERE/$UNIT.template" > "$1"
|
||||
if grep -q '__[A-Z][A-Z0-9_]*__' "$1"; then die "the unit template still holds an unsubstituted placeholder: $(grep -o '__[A-Z][A-Z0-9_]*__' "$1" | sort -u | tr '\n' ' ')"; fi
|
||||
}
|
||||
|
||||
# The lane's caches, made as this user so that docker does not make them as root when it mounts them: torch's compile
|
||||
# cache, and the two kernel caches the engine fills at its first start (SGLang's and b12x's), which the reference box's
|
||||
# runs kept from one start to the next (379 s to the first answer at the first start there, 222 s at the next).
|
||||
INKLING_CACHES=("$CONFIG_DIR/$VLANE-cache" "$CONFIG_DIR/$VLANE-cache/sglang" "$CONFIG_DIR/$VLANE-cache/b12x")
|
||||
|
||||
# Step 4, the one part that needs root: the unit and its start scripts. A function, since a lane installed on
|
||||
# demand (--units-only) takes it straight after the preflight.
|
||||
install_service(){
|
||||
step "4/5 Service"
|
||||
slane_service_files "${INKLING_CACHES[@]}"
|
||||
RENDER="$(mktemp)"; trap 'rm -f "$RENDER"' EXIT
|
||||
render_unit "$RENDER"
|
||||
vlane_put_unit "$RENDER"
|
||||
# Installed, not switched to: the lane this box serves stays the lane it serves.
|
||||
echo "installed as a lane of its own. Switch to it like any lane:"
|
||||
echo " the cockpit: Load on Inkling 2 Mini in the Lanes view"
|
||||
echo " a terminal : ./switch-model.sh inkling, then the commands it prints"
|
||||
}
|
||||
|
||||
# The checkpoint, in the lane's image (vllm-lane.sh's fetch, ckpt-fetch.py). Pinned as refs/main: the unit runs with
|
||||
# HF_HUB_OFFLINE=1, and SGLang takes the DSpark draft from the checkpoint by its name ("defaulting
|
||||
# --speculative-draft-model-path to --model-path", the engine's journal on the reference box), with no revision,
|
||||
# through refs/main, which a download by commit never writes.
|
||||
fetch_files(){
|
||||
vlane_fetch "$INKLING_REPO" "$INKLING_REV" pin
|
||||
}
|
||||
|
||||
# --stage: the unit for this box, for switch-model.sh, with no sudo, its cache folders made first (docker would make
|
||||
# them as root).
|
||||
if [ "$MODE" = stage ]; then
|
||||
mkdir -p "${INKLING_CACHES[@]}"
|
||||
render_unit "$STAGE_OUT"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
step "1/5 Preflight (Inkling 2 Mini: $INKLING_REPO @ ${INKLING_REV:0:12})"
|
||||
vlane_preflight engine-preflight.sh engine-secrets.sh ckpt-fetch.py
|
||||
vlane_room "$INKLING_IMAGE" "$INKLING_REPO"
|
||||
if [ "$MODE" = units ]; then
|
||||
echo "OK: $(uname -m), key present; the image and the checkpoint come with the lane's first Load"
|
||||
install_service
|
||||
step "Done: the Inkling 2 Mini lane is installed; its first Load prepares it"
|
||||
echo " the cockpit: Load on Inkling 2 Mini in the Lanes view pulls its image (16.4 GB to download), fetches its"
|
||||
echo " checkpoint (about $INKLING_GB GB), then starts it"
|
||||
echo " a terminal : ./install-inkling.sh --prepare, then ./switch-model.sh inkling and the commands it prints"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
step "2/5 Image (${INKLING_IMAGE:0:40}...)"
|
||||
if docker image inspect "$INKLING_IMAGE" >/dev/null 2>&1; then
|
||||
echo "already here"
|
||||
else
|
||||
docker pull "$INKLING_IMAGE" \
|
||||
|| die "docker pull of $INKLING_IMAGE failed. Causes: no internet, a Docker Hub rate limit (retry in a few minutes, or docker login), or the digest removed upstream."
|
||||
fi
|
||||
# its local tag, so that a docker image prune leaves it alone, and the tags of the images it was pinned to before
|
||||
# go (lanes.sh)
|
||||
pin_tag inkling "$INKLING_IMAGE"
|
||||
unpin_stale inkling "$INKLING_IMAGE" || true
|
||||
|
||||
if [ "$MODE" = prepare ]; then
|
||||
step "Done: the Inkling 2 Mini lane's image is ready; its Load fetches the checkpoint and starts it"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
step "3/5 Checkpoint ($INKLING_REPO @ ${INKLING_REV:0:12}, resumable)"
|
||||
fetch_files
|
||||
|
||||
install_service
|
||||
|
||||
if [ "$SMOKE" -eq 0 ]; then step "Done (proof skipped)"; exit 0; fi
|
||||
|
||||
step "5/5 Proving it serves (a reply and a tool call, then the box goes back to the lane it was serving)"
|
||||
# Its effort at the template's lowest level (reasoning_effort 0.0, "none"), which its card says does not turn the
|
||||
# reasoning off: the reply is given room for that reasoning before it (2,048 tokens).
|
||||
VLANE_SERVED=inkling-2-mini; VLANE_KWARGS='{"reasoning_effort":0.0}'; VLANE_REPLY_TOKENS=2048
|
||||
VLANE_PARSERS="the inkling2 tool-call parser is"; VLANE_BOOT="about 4 min (6 at its first start)"; VLANE_WAIT_MIN=20
|
||||
vlane_prove
|
||||
|
||||
step "Done: the Inkling 2 Mini lane is installed and proved it serves on $ENGINE_BIND:$PORT"
|
||||
echo " switch to it : Load on Inkling 2 Mini in the cockpit, or ./switch-model.sh inkling"
|
||||
echo " clients : the proxy on :30001 with the box's key, model inkling-2-mini (OpenAI and Anthropic APIs)"
|
||||
@@ -245,7 +245,7 @@ step "5/5 Proving it transcribes (a spoken sentence heard back, then the box goe
|
||||
# The quality claim is not made here: it is the 2.76 % French WER of the 20-excerpt
|
||||
# set, a box measure the lane's page cites (docs/transcribe-lane.md).
|
||||
WAS=""
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-lfm25.service qwen38-lfm3.service; do
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service; do
|
||||
systemctl is-active --quiet "$u" 2>/dev/null && WAS="$u"
|
||||
done
|
||||
[ -z "$WAS" ] || echo "note: $WAS is serving and will be stopped for this test, then started again."
|
||||
|
||||
+2
-2
@@ -169,7 +169,7 @@ if [ "$ACTION" = uninstall ]; then
|
||||
# by that switch: removing it left no engine at all (same trap as the image lane).
|
||||
# The lane before video comes back.
|
||||
TEXT_ENABLED=0
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service; do
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service; do
|
||||
systemctl is-enabled --quiet "$u" 2>/dev/null && TEXT_ENABLED=1
|
||||
done
|
||||
if [ "$WAS_BOOT" -eq 1 ] && [ "$TEXT_ENABLED" -eq 0 ]; then
|
||||
@@ -485,7 +485,7 @@ if [ "$SMOKE" -eq 0 ]; then step "Done (smoke test skipped)"; exit 0; fi
|
||||
|
||||
step "6/6 Proving it serves (one short video, then the box goes back to the lane it was serving)"
|
||||
WAS_OTHER=""
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service; do
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service; do
|
||||
systemctl is-active --quiet "$u" 2>/dev/null && WAS_OTHER="$u"
|
||||
done
|
||||
# If this lane was already serving, the test leaves it serving: stopping it on the way
|
||||
|
||||
+107
-17
@@ -593,6 +593,8 @@ WITH_LFM25=0
|
||||
NO_LFM25=0
|
||||
WITH_LFM3=0
|
||||
NO_LFM3=0
|
||||
WITH_INKLING=0
|
||||
NO_INKLING=0
|
||||
ALL_WEIGHTS=0
|
||||
PLAN_ONLY=0
|
||||
# --recommended (v1.36.0): every setting the list before step 1 compares, but the site's (the
|
||||
@@ -649,6 +651,8 @@ while [ $# -gt 0 ]; do
|
||||
--no-lfm25) NO_LFM25=1 ;;
|
||||
--with-lfm3) WITH_LFM3=1 ;;
|
||||
--no-lfm3) NO_LFM3=1 ;;
|
||||
--with-inkling) WITH_INKLING=1 ;;
|
||||
--no-inkling) NO_INKLING=1 ;;
|
||||
--all-weights) ALL_WEIGHTS=1 ;;
|
||||
--with-claude-warmup)
|
||||
echo "NOTE: --with-claude-warmup was removed in v1.3 (the repo's client story moved to opencode)."
|
||||
@@ -668,6 +672,7 @@ Usage: ./install.sh [--no-start] [--no-service] [--no-opencode | --with-opencode
|
||||
[--no-transcribe | --with-transcribe]
|
||||
[--no-lfm25 | --with-lfm25]
|
||||
[--no-lfm3 | --with-lfm3]
|
||||
[--no-inkling | --with-inkling]
|
||||
[--no-speech | --with-speech]
|
||||
[--all-weights] [--plan] [--recommended]
|
||||
|
||||
@@ -697,8 +702,9 @@ it, else 151), the NVIDIA Nemotron Transcribe lane (NVIDIA's speech
|
||||
recognizer, on llama.cpp, in the Unsloth GGUF lane's image: 37 beside it,
|
||||
else 45), the Liquid AI LFM2.5 24B-A2B lane (Liquid AI's mixture of
|
||||
experts and its draft, on SGLang, in the 27B lane's image: 26 beside it,
|
||||
else 74) and the Liquid AI LFM3 lane (Liquid AI's LFM3 1.7B, on vLLM's
|
||||
own nightly image: 41). The lane that serves proves it serves before the run ends; on a new box the 27B takes 58 GB
|
||||
else 74), the Liquid AI LFM3 lane (Liquid AI's LFM3 1.7B, on vLLM's
|
||||
own nightly image: 41) and the Inkling 2 Mini lane (Thinking Machines' looped
|
||||
mixture of experts, on SGLang's own image for it: 75). 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
|
||||
@@ -774,6 +780,9 @@ without a terminal.
|
||||
--no-lfm3 leave the Liquid AI LFM3 lane (vLLM, 41 GB) out of this run,
|
||||
the same way (./install-lfm3.sh --uninstall)
|
||||
--with-lfm3 install it whole now and prove it
|
||||
--no-inkling leave the Inkling 2 Mini lane (SGLang, 75 GB) out of this run,
|
||||
the same way (./install-inkling.sh --uninstall)
|
||||
--with-inkling install it whole now and prove it
|
||||
--no-speech leave the speech lane out of this run (speech recognition
|
||||
and synthesis on the CPU, beside any lane, 2 GB; a box
|
||||
that has it keeps it: ./install-speech.sh --uninstall)
|
||||
@@ -782,9 +791,10 @@ without a terminal.
|
||||
the image, video, Kolibri, both Nemotron, the Flash
|
||||
FP4-Local, the Ornith, the Unsloth GGUF, the
|
||||
MiniMax-H3-Image, the NVIDIA Nemotron Transcribe, the
|
||||
Liquid AI LFM2.5 24B-A2B and the Liquid AI LFM3 lanes),
|
||||
runtime and weights, about 1235 GB of disk (1268 with
|
||||
the cache on another disk), and prove each new one
|
||||
Liquid AI LFM2.5 24B-A2B, the Liquid AI LFM3 and the
|
||||
Inkling 2 Mini lanes), runtime and weights, about
|
||||
1310 GB of disk (1343 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
|
||||
lane)
|
||||
@@ -935,6 +945,7 @@ FLASH_UNSLOTH_UNIT_PATH="/etc/systemd/system/qwen38-flash-unsloth.service"
|
||||
TRANSCRIBE_UNIT_PATH="/etc/systemd/system/qwen38-transcribe.service"
|
||||
LFM25_UNIT_PATH="/etc/systemd/system/qwen38-lfm25.service"
|
||||
LFM3_UNIT_PATH="/etc/systemd/system/qwen38-lfm3.service"
|
||||
INKLING_UNIT_PATH="/etc/systemd/system/qwen38-inkling.service"
|
||||
for _p in "$SGL_UNIT_PATH" "$FLASH_UNIT_PATH"; do
|
||||
if [ -f "$_p" ] && [ ! -r "$_p" ]; then
|
||||
echo "NOTE: an installed unit ($_p) exists but is not readable (pre-v1.2.3 installs used mode 600),"
|
||||
@@ -1170,7 +1181,21 @@ if [ -z "$SECONDARY" ] && systemctl is-enabled --quiet qwen38-lfm3.service 2>/de
|
||||
echo "without making one of them the boot lane again. Switch from the cockpit when you want another."
|
||||
fi
|
||||
fi
|
||||
SIDE_BOOT=$((IMAGE_BOOT + VIDEO_BOOT + KOLIBRI_BOOT + NEMOTRON_BOOT + NEMOTRON_SUPER_BOOT + FLASH_LOCAL_BOOT + ORNITH_122B_BOOT + FLASH_UNSLOTH_BOOT + IMAGE_H3_BOOT + TRANSCRIBE_BOOT + LFM25_BOOT + LFM3_BOOT))
|
||||
# And the Inkling 2 Mini lane, under the same promise.
|
||||
INKLING_BOOT=0
|
||||
if [ -z "$SECONDARY" ] && systemctl is-enabled --quiet qwen38-inkling.service 2>/dev/null \
|
||||
&& [ "$SGL_ENABLED" -eq 0 ] && [ "$FLASH_ENABLED" -eq 0 ]; then
|
||||
if [ -n "$_ENV_MODEL_CHOICE" ]; then
|
||||
echo "MODEL_CHOICE=$_ENV_MODEL_CHOICE given on a box booting the Inkling 2 Mini lane: making that text lane the boot lane again."
|
||||
elif [ "$RECOMMENDED" -eq 1 ]; then
|
||||
echo "--recommended on a box booting the Inkling 2 Mini lane: the 27B lane becomes the boot lane again, as on a new box."
|
||||
else
|
||||
INKLING_BOOT=1
|
||||
echo "The Inkling 2 Mini lane is this box's boot lane: this run brings the other lanes up to date"
|
||||
echo "without making one of them the boot lane again. Switch from the cockpit when you want another."
|
||||
fi
|
||||
fi
|
||||
SIDE_BOOT=$((IMAGE_BOOT + VIDEO_BOOT + KOLIBRI_BOOT + NEMOTRON_BOOT + NEMOTRON_SUPER_BOOT + FLASH_LOCAL_BOOT + ORNITH_122B_BOOT + FLASH_UNSLOTH_BOOT + IMAGE_H3_BOOT + TRANSCRIBE_BOOT + LFM25_BOOT + LFM3_BOOT + INKLING_BOOT))
|
||||
# Which text lane to bring up to date on that path. Both text units can be on disk with
|
||||
# neither enabled, since a switch to a side lane disables both, so enablement cannot say which
|
||||
# one was in use; switch-model.sh writes it down instead (lanes.sh: one record since v1.30, the
|
||||
@@ -1600,6 +1625,9 @@ fi
|
||||
if [ "$NO_LFM3" -eq 1 ] && [ "$WITH_LFM3" -eq 1 ]; then
|
||||
printf -- '--no-lfm3 and --with-lfm3 contradict each other (drop one flag)\n' >&2; exit 1
|
||||
fi
|
||||
if [ "$NO_INKLING" -eq 1 ] && [ "$WITH_INKLING" -eq 1 ]; then
|
||||
printf -- '--no-inkling and --with-inkling contradict each other (drop one flag)\n' >&2; exit 1
|
||||
fi
|
||||
|
||||
# --no-start and --no-service both return before the image step, so the flag would be
|
||||
# accepted and silently do nothing. Say so here rather than at the end of a long install.
|
||||
@@ -1668,6 +1696,11 @@ if [ "$WITH_LFM3" -eq 1 ] && { [ "$NO_START" -eq 1 ] || [ "$NO_SERVICE" -eq 1 ];
|
||||
printf -- 'Run ./install.sh without --no-start/--no-service, or ./install-lfm3.sh on its own.\n' >&2
|
||||
exit 1
|
||||
fi
|
||||
if [ "$WITH_INKLING" -eq 1 ] && { [ "$NO_START" -eq 1 ] || [ "$NO_SERVICE" -eq 1 ]; }; then
|
||||
printf -- '--with-inkling needs the full install: it installs a systemd unit and proves it serves.\n' >&2
|
||||
printf -- 'Run ./install.sh without --no-start/--no-service, or ./install-inkling.sh on its own.\n' >&2
|
||||
exit 1
|
||||
fi
|
||||
# the same for the whole box: --no-service did none of it, --no-start the other text lane alone
|
||||
# (found in review, 2026-10-15)
|
||||
if [ "$ALL_WEIGHTS" -eq 1 ] && { [ "$NO_START" -eq 1 ] || [ "$NO_SERVICE" -eq 1 ]; }; then
|
||||
@@ -1714,7 +1747,7 @@ lane_title(){ # $1 a lane, by its flag's name: the name a run says
|
||||
nemotron-super) echo "Nemotron 3.5 Super VL" ;; flash-local) echo "Qwen3.8 Flash-Next FP4-Local" ;;
|
||||
ornith-122b) echo "Ornith 1.5 122B" ;; flash-unsloth) echo "Qwen3.8 Flash-Next Unsloth GGUF" ;;
|
||||
image-h3) echo "MiniMax-H3-Image" ;; transcribe) echo "NVIDIA Nemotron Transcribe" ;;
|
||||
lfm25) echo "Liquid AI LFM2.5 24B-A2B" ;; lfm3) echo "Liquid AI LFM3" ;;
|
||||
lfm25) echo "Liquid AI LFM2.5 24B-A2B" ;; lfm3) echo "Liquid AI LFM3" ;; inkling) echo "Inkling 2 Mini" ;;
|
||||
*) echo "$1" ;;
|
||||
esac
|
||||
}
|
||||
@@ -1744,7 +1777,7 @@ serves_anyway(){ [ "$1" = "$LANE" ] && [ "$SIDE_BOOT" -eq 0 ]; } # $1 a lane l
|
||||
# Said of it, without "brought up to date": on a GPU outside its ATS mode the flash lane that serves
|
||||
# gets its units only, and the run then says so (issue #54; both said, found in review, 2026-10-21).
|
||||
serves_said(){ echo "The ${1/27b/27B} lane is the one this run serves: --no-$1 leaves nothing out of it."; }
|
||||
WANT_IMAGE=0; WANT_VIDEO=0; WANT_FLASH=0; WANT_27B=0; WANT_KOLIBRI=0; WANT_NEMOTRON=0; WANT_NEMOTRON_SUPER=0; WANT_FLASH_LOCAL=0; WANT_ORNITH_122B=0; WANT_FLASH_UNSLOTH=0; WANT_IMAGE_H3=0; WANT_TRANSCRIBE=0; WANT_LFM25=0; WANT_LFM3=0; WANT_SPEECH=0
|
||||
WANT_IMAGE=0; WANT_VIDEO=0; WANT_FLASH=0; WANT_27B=0; WANT_KOLIBRI=0; WANT_NEMOTRON=0; WANT_NEMOTRON_SUPER=0; WANT_FLASH_LOCAL=0; WANT_ORNITH_122B=0; WANT_FLASH_UNSLOTH=0; WANT_IMAGE_H3=0; WANT_TRANSCRIBE=0; WANT_LFM25=0; WANT_LFM3=0; WANT_INKLING=0; WANT_SPEECH=0
|
||||
TOO_BIG=()
|
||||
if [ -z "$SECONDARY" ]; then
|
||||
lane_wanted image "$NO_IMAGE" "$WITH_IMAGE"; WANT_IMAGE="$WANT"
|
||||
@@ -1761,6 +1794,7 @@ if [ -z "$SECONDARY" ]; then
|
||||
lane_wanted transcribe "$NO_TRANSCRIBE" "$WITH_TRANSCRIBE"; WANT_TRANSCRIBE="$WANT"
|
||||
lane_wanted lfm25 "$NO_LFM25" "$WITH_LFM25"; WANT_LFM25="$WANT"
|
||||
lane_wanted lfm3 "$NO_LFM3" "$WITH_LFM3"; WANT_LFM3="$WANT"
|
||||
lane_wanted inkling "$NO_INKLING" "$WITH_INKLING"; WANT_INKLING="$WANT"
|
||||
lane_wanted speech "$NO_SPEECH" "$WITH_SPEECH"; WANT_SPEECH="$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
|
||||
@@ -1867,7 +1901,7 @@ side_gguf_begun(){ # $1 the lane's unit
|
||||
[ -n "$dir" ] && [ -n "$hf" ] && [ -d "$hf/hub/$dir" ]
|
||||
}
|
||||
side_begun(){ # $1 lane (image, video, kolibri, nemotron, nemotron-super, flash-local, ornith-122b, flash-unsloth, image-h3,
|
||||
# transcribe, lfm25, lfm3)
|
||||
# transcribe, lfm25, lfm3, inkling)
|
||||
case "$1" in
|
||||
image|video|image-h3) [ -x "$(side_lane_dir "$1")/venv/bin/python" ] ;;
|
||||
kolibri) side_kolibri_image ;;
|
||||
@@ -1879,6 +1913,7 @@ side_begun(){ # $1 lane (image, video, kolibri, nemotron, nemotron-super, flash
|
||||
transcribe) side_gguf_begun "$TRANSCRIBE_UNIT_PATH" ;;
|
||||
lfm25) side_pulled_begun "$LFM25_UNIT_PATH" ;;
|
||||
lfm3) side_pulled_begun "$LFM3_UNIT_PATH" ;;
|
||||
inkling) side_pulled_begun "$INKLING_UNIT_PATH" ;;
|
||||
*) return 1 ;;
|
||||
esac
|
||||
}
|
||||
@@ -2191,7 +2226,7 @@ if [ "$ALL_WEIGHTS" -eq 0 ]; then
|
||||
for _u in "$UNIT_NAME" qwen38-sglang.service qwen38-flash.service \
|
||||
qwen38-image.service qwen38-video.service qwen38-image-h3.service qwen38-kolibri.service \
|
||||
qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service \
|
||||
qwen38-flash-unsloth.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service; do
|
||||
qwen38-flash-unsloth.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service; do
|
||||
# unit NAMES, as /etc/systemd/system/ is put before them: the *_UNIT_PATH variables are whole paths, and the
|
||||
# path they made never existed, so a box holding Kolibri, Nemotron, FP4-Local, Ornith or Unsloth alone did not
|
||||
# arm the wait (the CI of 550345d, test_lane_lists_whole, and the box-only test, whose decor gave bare names)
|
||||
@@ -2347,6 +2382,8 @@ if [ -z "$SECONDARY" ] && ss -tlnH 2>/dev/null | awk '{print $4}' | grep -q ":$P
|
||||
echo "Note: the Liquid AI LFM2.5 24B-A2B lane is serving on :$PORT; this run updates the lanes beside it."
|
||||
elif docker inspect qwen38-lfm3 --format '{{join .Args " "}}' 2>/dev/null | grep -qE -- "--port ${PORT}(\s|$)"; then
|
||||
echo "Note: the Liquid AI LFM3 lane is serving on :$PORT; this run updates the lanes beside it."
|
||||
elif docker inspect qwen38-inkling --format '{{join .Args " "}}' 2>/dev/null | grep -qE -- "--port ${PORT}(\s|$)"; then
|
||||
echo "Note: the Inkling 2 Mini lane is serving on :$PORT; this run updates the lanes beside it."
|
||||
else
|
||||
die "Port $PORT is already in use by another program (see: ss -tlnp | grep :$PORT). Free it, or install with PORT=<other> ./install.sh"
|
||||
fi
|
||||
@@ -3118,7 +3155,7 @@ OC_PORT="$PROXY_PORT"
|
||||
# box (nobody should be offered a model that nothing serves); the model being
|
||||
# installed right now always appears. The default model is the one being
|
||||
# installed. json.dump writes the file: no hand-escaping.
|
||||
OC_27B=0; OC_FLASH=0; OC_KOLIBRI=0; OC_NEMOTRON=0; OC_NEMOTRON_SUPER=0; OC_FLASH_LOCAL=0; OC_ORNITH_122B=0; OC_FLASH_UNSLOTH=0; OC_LFM25=0; OC_LFM3=0
|
||||
OC_27B=0; OC_FLASH=0; OC_KOLIBRI=0; OC_NEMOTRON=0; OC_NEMOTRON_SUPER=0; OC_FLASH_LOCAL=0; OC_ORNITH_122B=0; OC_FLASH_UNSLOTH=0; OC_LFM25=0; OC_LFM3=0; OC_INKLING=0
|
||||
{ [ "$LANE" = "27b" ] || [ -f "$SGL_UNIT_PATH" ]; } && OC_27B=1
|
||||
{ [ "$LANE" = "flash" ] || [ -f "$FLASH_UNIT_PATH" ]; } && OC_FLASH=1
|
||||
# The Kolibri lane is installed at the end of a run (install-kolibri.sh): its provider comes
|
||||
@@ -3207,6 +3244,15 @@ if [ "$OC_LFM3" -eq 1 ]; then
|
||||
OC_LFM3_CTX="${OC_LFM3_PAIR%% *}"; OC_LFM3_OUT="$(echo "$OC_LFM3_PAIR" | cut -d' ' -f2)"
|
||||
OC_LFM3_NAME="$(python3 "$REPO_DIR/oc-point-default.py" --label lfm3 262144 || true)"
|
||||
fi
|
||||
# The Inkling 2 Mini lane, its own provider (its own served model) with its unit, at its one window.
|
||||
[ -f "$INKLING_UNIT_PATH" ] && OC_INKLING=1
|
||||
OC_INKLING_CTX=""; OC_INKLING_OUT=""; OC_INKLING_NAME=""
|
||||
if [ "$OC_INKLING" -eq 1 ]; then
|
||||
OC_INKLING_PAIR="$("$REPO_DIR/oc-limits.sh" inkling)" \
|
||||
|| die "oc-limits.sh refused inkling (repo bug: please open an issue)"
|
||||
OC_INKLING_CTX="${OC_INKLING_PAIR%% *}"; OC_INKLING_OUT="$(echo "$OC_INKLING_PAIR" | cut -d' ' -f2)"
|
||||
OC_INKLING_NAME="$(python3 "$REPO_DIR/oc-point-default.py" --label inkling 1048576 || true)"
|
||||
fi
|
||||
# How much of a conversation survives a compaction verbatim, from the same table.
|
||||
OC_KEEP="$("$REPO_DIR/oc-limits.sh" --preserve "$OC_CTX")" \
|
||||
|| die "oc-limits.sh --preserve failed for $OC_CTX (repo bug: please open an issue)"
|
||||
@@ -3270,6 +3316,10 @@ if [ "$LFM3_BOOT" -eq 1 ] && [ "$OC_LFM3" -eq 1 ] && [ -n "$OC_LFM3_CTX" ]; then
|
||||
OC_KEEP="$("$REPO_DIR/oc-limits.sh" --preserve "$OC_LFM3_CTX")" \
|
||||
|| die "oc-limits.sh --preserve failed for $OC_LFM3_CTX (repo bug: please open an issue)"
|
||||
fi
|
||||
if [ "$INKLING_BOOT" -eq 1 ] && [ "$OC_INKLING" -eq 1 ] && [ -n "$OC_INKLING_CTX" ]; then
|
||||
OC_KEEP="$("$REPO_DIR/oc-limits.sh" --preserve "$OC_INKLING_CTX")" \
|
||||
|| die "oc-limits.sh --preserve failed for $OC_INKLING_CTX (repo bug: please open an issue)"
|
||||
fi
|
||||
# The other engine's limits, for when both providers are present: the 27B block
|
||||
# keeps its context-mode limits, flash always serves its native window. A flash install
|
||||
# runs in native mode, so the 27B's own mode comes from its unit: taken from this run, a
|
||||
@@ -3346,6 +3396,8 @@ OC_LFM25="$OC_LFM25" OC_LFM25_CTX="$OC_LFM25_CTX" OC_LFM25_OUT="$OC_LFM25_OUT" \
|
||||
OC_LFM25_NAME="$OC_LFM25_NAME" OC_LFM25_BOOT="$LFM25_BOOT" \
|
||||
OC_LFM3="$OC_LFM3" OC_LFM3_CTX="$OC_LFM3_CTX" OC_LFM3_OUT="$OC_LFM3_OUT" \
|
||||
OC_LFM3_NAME="$OC_LFM3_NAME" OC_LFM3_BOOT="$LFM3_BOOT" \
|
||||
OC_INKLING="$OC_INKLING" OC_INKLING_CTX="$OC_INKLING_CTX" OC_INKLING_OUT="$OC_INKLING_OUT" \
|
||||
OC_INKLING_NAME="$OC_INKLING_NAME" OC_INKLING_BOOT="$INKLING_BOOT" \
|
||||
OC_KEEP="$OC_KEEP" OC_PIN="$OPENCODE_PIN" OC_DENY="$(python3 "$REPO_DIR/oc-merge-limits.py" --deny-permission)" \
|
||||
OC_DENY_V2="$(python3 "$REPO_DIR/oc-merge-limits.py" --deny-permissions)" \
|
||||
OC_MAJOR="${OC_SERVE_MAJOR:-${OPENCODE_MAJOR:-1}}" \
|
||||
@@ -3489,6 +3541,15 @@ if os.environ.get("OC_LFM3") == "1":
|
||||
providers["lfm3"] = oc3.provider(base_url, f"{cfg_dir}/api-key",
|
||||
int(os.environ["OC_LFM3_CTX"]), int(os.environ["OC_LFM3_OUT"]),
|
||||
os.environ.get("OC_LFM3_NAME") or "Liquid AI LFM3 (local, 262K)")
|
||||
if os.environ.get("OC_INKLING") == "1":
|
||||
# one definition, shared with switch-model.sh (oc-inkling.py says why)
|
||||
import importlib.util
|
||||
spec = importlib.util.spec_from_file_location("oc_inkling", os.path.join(os.environ["OC_REPO_DIR"], "oc-inkling.py"))
|
||||
oci = importlib.util.module_from_spec(spec)
|
||||
spec.loader.exec_module(oci)
|
||||
providers["inkling"] = oci.provider(base_url, f"{cfg_dir}/api-key",
|
||||
int(os.environ["OC_INKLING_CTX"]), int(os.environ["OC_INKLING_OUT"]),
|
||||
os.environ.get("OC_INKLING_NAME") or "Inkling 2 Mini (local, 1M)")
|
||||
|
||||
default = "flashnext/qwen3.8-flash-next" if lane == "flash" else "qwen38/qwen3.8-27b"
|
||||
if os.environ.get("OC_KOLIBRI_BOOT") == "1" and "kolibri" in providers:
|
||||
@@ -3507,6 +3568,8 @@ if os.environ.get("OC_LFM25_BOOT") == "1" and "lfm25" in providers:
|
||||
default = "lfm25/lfm2.5-24b-a2b"
|
||||
if os.environ.get("OC_LFM3_BOOT") == "1" and "lfm3" in providers:
|
||||
default = "lfm3/lfm3-1.7b"
|
||||
if os.environ.get("OC_INKLING_BOOT") == "1" and "inkling" in providers:
|
||||
default = "inkling/inkling-2-mini"
|
||||
# Compaction is global in opencode.json, not per-model, so it is sized from the
|
||||
# INSTALLED target (oc-limits.sh --preserve) and rewritten by every install and
|
||||
# switch. preserve_recent_tokens exists because opencode's own default clamps it
|
||||
@@ -3597,7 +3660,7 @@ if [ ! -e "$OC_USER_CFG" ]; then
|
||||
install -m 644 "$CONFIG_DIR/opencode.json" "$OC_USER_CFG"
|
||||
echo " no opencode config yet: installed this repo's at $OC_USER_CFG"
|
||||
# the copy carries the shell rules for the hosts of Cohere's report already (deny_permission)
|
||||
elif ! grep -qsE '"(qwen38|flashnext|kolibri|nemotron|nemotron-super|flash-local|ornith-122b|flash-unsloth|lfm25|lfm3)"' "$OC_USER_CFG"; then
|
||||
elif ! grep -qsE '"(qwen38|flashnext|kolibri|nemotron|nemotron-super|flash-local|ornith-122b|flash-unsloth|lfm25|lfm3|inkling)"' "$OC_USER_CFG"; then
|
||||
# the user's own config, with none of this repo's providers in it: theirs to merge
|
||||
echo " your $OC_USER_CFG has no provider for this box: merge the \"qwen38\" (or \"flashnext\")"
|
||||
echo " block from $CONFIG_DIR/opencode.json into it (docs/opencode.md). oc and the Agent tab"
|
||||
@@ -3722,6 +3785,10 @@ if [ "$LFM3_BOOT" -eq 1 ] && [ "$OC_LFM3" -eq 1 ]; then
|
||||
# the Liquid AI LFM3 lane is this box's lane: opencode's default stays on it
|
||||
OC_POINT_LANE=lfm3; OC_POINT_CHOICE=lfm3; OC_POINT_WINDOW=262144
|
||||
fi
|
||||
if [ "$INKLING_BOOT" -eq 1 ] && [ "$OC_INKLING" -eq 1 ]; then
|
||||
# the Inkling 2 Mini lane is this box's lane: opencode's default stays on it
|
||||
OC_POINT_LANE=inkling; OC_POINT_CHOICE=inkling; OC_POINT_WINDOW=1048576
|
||||
fi
|
||||
python3 "$REPO_DIR/oc-point-default.py" "$CONFIG_DIR/opencode.json" "$OC_POINT_LANE" "$OC_POINT_CHOICE" "$OC_POINT_WINDOW" \
|
||||
|| die "could not point the generated opencode config at the installed lane"
|
||||
if [ -f "$OC_USER_CFG" ]; then
|
||||
@@ -4203,6 +4270,10 @@ if [ -z "$SECONDARY" ] && [ "$LFM3_BOOT" -eq 0 ] && systemctl is-enabled --quiet
|
||||
echo "disabling the Liquid AI LFM3 lane at boot (unit kept, switch back anytime from the cockpit)"
|
||||
sudo systemctl disable qwen38-lfm3.service
|
||||
fi
|
||||
if [ -z "$SECONDARY" ] && [ "$INKLING_BOOT" -eq 0 ] && systemctl is-enabled --quiet qwen38-inkling.service 2>/dev/null; then
|
||||
echo "disabling the Inkling 2 Mini lane at boot (unit kept, switch back anytime from the cockpit)"
|
||||
sudo systemctl disable qwen38-inkling.service
|
||||
fi
|
||||
KEEPALIVE_UNIT="qwen38-keepalive.service"
|
||||
KA_CHANGED=0 # whether this run changed what the proxy runs (see its restart below)
|
||||
# The proxy, its code and its unit are the serving run's (see the secondary run above).
|
||||
@@ -4288,7 +4359,7 @@ if [ -n "$SECONDARY" ]; then
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
if [ -z "$ATS_CANNOT" ] && [ "$IMAGE_BOOT" -eq 0 ] && [ "$VIDEO_BOOT" -eq 0 ] && [ "$KOLIBRI_BOOT" -eq 0 ] && [ "$NEMOTRON_BOOT" -eq 0 ] && [ "$NEMOTRON_SUPER_BOOT" -eq 0 ] && [ "$FLASH_LOCAL_BOOT" -eq 0 ] && [ "$ORNITH_122B_BOOT" -eq 0 ] && [ "$FLASH_UNSLOTH_BOOT" -eq 0 ] && [ "$IMAGE_H3_BOOT" -eq 0 ] && [ "$TRANSCRIBE_BOOT" -eq 0 ] && [ "$LFM25_BOOT" -eq 0 ] && [ "$LFM3_BOOT" -eq 0 ]; then
|
||||
if [ -z "$ATS_CANNOT" ] && [ "$IMAGE_BOOT" -eq 0 ] && [ "$VIDEO_BOOT" -eq 0 ] && [ "$KOLIBRI_BOOT" -eq 0 ] && [ "$NEMOTRON_BOOT" -eq 0 ] && [ "$NEMOTRON_SUPER_BOOT" -eq 0 ] && [ "$FLASH_LOCAL_BOOT" -eq 0 ] && [ "$ORNITH_122B_BOOT" -eq 0 ] && [ "$FLASH_UNSLOTH_BOOT" -eq 0 ] && [ "$IMAGE_H3_BOOT" -eq 0 ] && [ "$TRANSCRIBE_BOOT" -eq 0 ] && [ "$LFM25_BOOT" -eq 0 ] && [ "$LFM3_BOOT" -eq 0 ] && [ "$INKLING_BOOT" -eq 0 ]; then
|
||||
sudo systemctl enable "$UNIT_NAME"
|
||||
text_lane_note "$UNIT_NAME"
|
||||
else
|
||||
@@ -4372,6 +4443,10 @@ else
|
||||
side_install lfm3 "$(side_mode lfm3 "$WITH_LFM3")" "$WITH_LFM3" \
|
||||
|| echo "NOTE: the Liquid AI LFM3 lane did not install or update; retry with ./install-lfm3.sh --no-smoke"
|
||||
fi
|
||||
if [ "$WANT_INKLING" -eq 1 ]; then
|
||||
side_install inkling "$(side_mode inkling "$WITH_INKLING")" "$WITH_INKLING" \
|
||||
|| echo "NOTE: the Inkling 2 Mini lane did not install or update; retry with ./install-inkling.sh --no-smoke"
|
||||
fi
|
||||
speech_step beside
|
||||
SERVING_LANE=""
|
||||
[ "$IMAGE_BOOT" -eq 1 ] && SERVING_LANE="image"
|
||||
@@ -4386,6 +4461,7 @@ else
|
||||
[ "$TRANSCRIBE_BOOT" -eq 1 ] && SERVING_LANE="NVIDIA Nemotron Transcribe"
|
||||
[ "$LFM25_BOOT" -eq 1 ] && SERVING_LANE="Liquid AI LFM2.5 24B-A2B"
|
||||
[ "$LFM3_BOOT" -eq 1 ] && SERVING_LANE="Liquid AI LFM3"
|
||||
[ "$INKLING_BOOT" -eq 1 ] && SERVING_LANE="Inkling 2 Mini"
|
||||
if [ -n "$ATS_CANNOT" ]; then
|
||||
step "Done: this box is up to date, and its flash lane, which this GPU cannot start, was not started"
|
||||
echo " why : $ATS_CANNOT"
|
||||
@@ -4720,7 +4796,7 @@ except Exception as e:
|
||||
# New here, and proved when this run builds it whole: a lane with no unit yet, or one whose
|
||||
# runtime is not on the box (installed on demand, its units only: --all-weights on such a
|
||||
# box built every lane and proved none, found in review, 2026-10-15).
|
||||
IMAGE_FRESH=0; VIDEO_FRESH=0; KOLIBRI_FRESH=0; NEMOTRON_FRESH=0; NEMOTRON_SUPER_FRESH=0; FLASH_LOCAL_FRESH=0; ORNITH_122B_FRESH=0; FLASH_UNSLOTH_FRESH=0; IMAGE_H3_FRESH=0; TRANSCRIBE_FRESH=0; LFM25_FRESH=0; LFM3_FRESH=0
|
||||
IMAGE_FRESH=0; VIDEO_FRESH=0; KOLIBRI_FRESH=0; NEMOTRON_FRESH=0; NEMOTRON_SUPER_FRESH=0; FLASH_LOCAL_FRESH=0; ORNITH_122B_FRESH=0; FLASH_UNSLOTH_FRESH=0; IMAGE_H3_FRESH=0; TRANSCRIBE_FRESH=0; LFM25_FRESH=0; LFM3_FRESH=0; INKLING_FRESH=0
|
||||
{ [ -f /etc/systemd/system/qwen38-image.service ] && side_begun image; } || IMAGE_FRESH=1
|
||||
{ [ -f /etc/systemd/system/qwen38-video.service ] && side_begun video; } || VIDEO_FRESH=1
|
||||
{ [ -f "$KOLIBRI_UNIT_PATH" ] && side_begun kolibri; } || KOLIBRI_FRESH=1
|
||||
@@ -4733,7 +4809,8 @@ except Exception as e:
|
||||
{ [ -f "$TRANSCRIBE_UNIT_PATH" ] && side_begun transcribe; } || TRANSCRIBE_FRESH=1
|
||||
{ [ -f "$LFM25_UNIT_PATH" ] && side_begun lfm25; } || LFM25_FRESH=1
|
||||
{ [ -f "$LFM3_UNIT_PATH" ] && side_begun lfm3; } || LFM3_FRESH=1
|
||||
IMAGE_STATE=off; VIDEO_STATE=off; KOLIBRI_STATE=off; NEMOTRON_STATE=off; NEMOTRON_SUPER_STATE=off; FLASH_LOCAL_STATE=off; ORNITH_122B_STATE=off; FLASH_UNSLOTH_STATE=off; IMAGE_H3_STATE=off; TRANSCRIBE_STATE=off; LFM25_STATE=off; LFM3_STATE=off
|
||||
{ [ -f "$INKLING_UNIT_PATH" ] && side_begun inkling; } || INKLING_FRESH=1
|
||||
IMAGE_STATE=off; VIDEO_STATE=off; KOLIBRI_STATE=off; NEMOTRON_STATE=off; NEMOTRON_SUPER_STATE=off; FLASH_LOCAL_STATE=off; ORNITH_122B_STATE=off; FLASH_UNSLOTH_STATE=off; IMAGE_H3_STATE=off; TRANSCRIBE_STATE=off; LFM25_STATE=off; LFM3_STATE=off; INKLING_STATE=off
|
||||
if [ "$WANT_IMAGE" -eq 1 ]; then
|
||||
step "Qwen-Image 2.1 lane (text-to-image, editing, native RGBA)"
|
||||
IMAGE_MODE="$(side_mode image "$WITH_IMAGE")"
|
||||
@@ -4830,13 +4907,21 @@ except Exception as e:
|
||||
echo "NOTE: the Liquid AI LFM3 lane did not install (the lines above say why); the rest goes on."
|
||||
fi
|
||||
fi
|
||||
if [ "$WANT_INKLING" -eq 1 ]; then
|
||||
step "Inkling 2 Mini lane (Thinking Machines' looped mixture of experts, on SGLang's own image for it)"
|
||||
INKLING_MODE="$(side_mode inkling "$WITH_INKLING")"
|
||||
if side_install inkling "$INKLING_MODE" "$WITH_INKLING"; then INKLING_STATE=installed; { [ "$INKLING_MODE" = --units-only ] || side_waited inkling; } && INKLING_STATE=units; else
|
||||
INKLING_STATE=failed
|
||||
echo "NOTE: the Inkling 2 Mini lane did not install (the lines above say why); the rest goes on."
|
||||
fi
|
||||
fi
|
||||
speech_step
|
||||
# What to prove: what this run installed for the first time, or what was asked for
|
||||
# by name (--with-<lane>, which also proves a lane already there).
|
||||
SECOND_WITH=0
|
||||
{ [ "$SECOND_LANE" = flash ] && [ "$WITH_FLASH" -eq 1 ]; } && SECOND_WITH=1
|
||||
{ [ "$SECOND_LANE" = 27b ] && [ "$WITH_27B" -eq 1 ]; } && SECOND_WITH=1
|
||||
PROVE_SECOND=0; PROVE_IMAGE=0; PROVE_VIDEO=0; PROVE_KOLIBRI=0; PROVE_NEMOTRON=0; PROVE_NEMOTRON_SUPER=0; PROVE_FLASH_LOCAL=0; PROVE_ORNITH_122B=0; PROVE_FLASH_UNSLOTH=0; PROVE_IMAGE_H3=0; PROVE_TRANSCRIBE=0; PROVE_LFM25=0; PROVE_LFM3=0
|
||||
PROVE_SECOND=0; PROVE_IMAGE=0; PROVE_VIDEO=0; PROVE_KOLIBRI=0; PROVE_NEMOTRON=0; PROVE_NEMOTRON_SUPER=0; PROVE_FLASH_LOCAL=0; PROVE_ORNITH_122B=0; PROVE_FLASH_UNSLOTH=0; PROVE_IMAGE_H3=0; PROVE_TRANSCRIBE=0; PROVE_LFM25=0; PROVE_LFM3=0; PROVE_INKLING=0
|
||||
{ [ "$SECOND_STATE" = installed ] && { [ "$SECOND_NEW" -eq 1 ] || [ "$SECOND_WITH" -eq 1 ]; }; } && PROVE_SECOND=1
|
||||
{ [ "$IMAGE_STATE" = installed ] && { [ "$IMAGE_FRESH" -eq 1 ] || [ "$WITH_IMAGE" -eq 1 ]; }; } && PROVE_IMAGE=1
|
||||
{ [ "$VIDEO_STATE" = installed ] && { [ "$VIDEO_FRESH" -eq 1 ] || [ "$WITH_VIDEO" -eq 1 ]; }; } && PROVE_VIDEO=1
|
||||
@@ -4850,7 +4935,8 @@ except Exception as e:
|
||||
{ [ "$TRANSCRIBE_STATE" = installed ] && { [ "$TRANSCRIBE_FRESH" -eq 1 ] || [ "$WITH_TRANSCRIBE" -eq 1 ]; }; } && PROVE_TRANSCRIBE=1
|
||||
{ [ "$LFM25_STATE" = installed ] && { [ "$LFM25_FRESH" -eq 1 ] || [ "$WITH_LFM25" -eq 1 ]; }; } && PROVE_LFM25=1
|
||||
{ [ "$LFM3_STATE" = installed ] && { [ "$LFM3_FRESH" -eq 1 ] || [ "$WITH_LFM3" -eq 1 ]; }; } && PROVE_LFM3=1
|
||||
if [ $((PROVE_SECOND + PROVE_IMAGE + PROVE_VIDEO + PROVE_KOLIBRI + PROVE_NEMOTRON + PROVE_NEMOTRON_SUPER + PROVE_FLASH_LOCAL + PROVE_ORNITH_122B + PROVE_FLASH_UNSLOTH + PROVE_IMAGE_H3 + PROVE_TRANSCRIBE + PROVE_LFM25 + PROVE_LFM3)) -gt 0 ]; then
|
||||
{ [ "$INKLING_STATE" = installed ] && { [ "$INKLING_FRESH" -eq 1 ] || [ "$WITH_INKLING" -eq 1 ]; }; } && PROVE_INKLING=1
|
||||
if [ $((PROVE_SECOND + PROVE_IMAGE + PROVE_VIDEO + PROVE_KOLIBRI + PROVE_NEMOTRON + PROVE_NEMOTRON_SUPER + PROVE_FLASH_LOCAL + PROVE_ORNITH_122B + PROVE_FLASH_UNSLOTH + PROVE_IMAGE_H3 + PROVE_TRANSCRIBE + PROVE_LFM25 + PROVE_LFM3 + PROVE_INKLING)) -gt 0 ]; then
|
||||
step "Proving the new lanes serve: the ${LANE/27b/27B} lane stops meanwhile, then comes back"
|
||||
sudo systemctl stop "$UNIT_NAME"
|
||||
if [ "$PROVE_SECOND" -eq 1 ]; then
|
||||
@@ -4895,6 +4981,9 @@ except Exception as e:
|
||||
if [ "$PROVE_LFM3" -eq 1 ]; then
|
||||
if "$REPO_DIR/install-lfm3.sh"; then LFM3_STATE=proved; else LFM3_STATE=unproved; fi
|
||||
fi
|
||||
if [ "$PROVE_INKLING" -eq 1 ]; then
|
||||
if "$REPO_DIR/install-inkling.sh"; then INKLING_STATE=proved; else INKLING_STATE=unproved; fi
|
||||
fi
|
||||
step "The ${LANE/27b/27B} lane again"
|
||||
prove_text_lane "$UNIT_NAME" "$SMOKE_MODEL" \
|
||||
|| die "the ${LANE/27b/27B} lane did not come back after the other lanes' proofs (the lines above say why). Start it with: sudo systemctl start $UNIT_NAME"
|
||||
@@ -5027,6 +5116,7 @@ except Exception as e:
|
||||
lane_line "Transcribe " "$TRANSCRIBE_STATE" transcribe transcribe "45 GB" "$TRANSCRIBE_UNIT_PATH"
|
||||
lane_line "LFM2.5 " "$LFM25_STATE" lfm25 lfm25 "74 GB" "$LFM25_UNIT_PATH"
|
||||
lane_line "LFM3 " "$LFM3_STATE" lfm3 lfm3 "41 GB" "$LFM3_UNIT_PATH"
|
||||
lane_line "Inkling " "$INKLING_STATE" inkling inkling "75 GB" "$INKLING_UNIT_PATH"
|
||||
speech_line
|
||||
[ "$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
|
||||
|
||||
+1
-1
@@ -3692,7 +3692,7 @@ def route_model_name(body, path):
|
||||
# the pair port takes the pair's routes only, and this box's own key admits them to its engine.
|
||||
LANE_NAMES = frozenset({"qwen3.8-27b", "qwen3.8-flash-next", "qwen3.8-flash-next-fp4", "ornith-1.5-122b",
|
||||
"nemotron-3.5-bolt", "nemotron-3.5-super-vl", "kolibri-1", "qwen3.8-flash-next-unsloth",
|
||||
"lfm2.5-24b-a2b", "lfm3-1.7b"})
|
||||
"lfm2.5-24b-a2b", "lfm3-1.7b", "inkling-2-mini"})
|
||||
PAIR_FILE = os.path.expanduser(os.environ.get("QWEN38_PAIR_FILE") or "~/.config/qwen38/pair.json")
|
||||
PAIR_DIR = os.path.join(os.path.dirname(PAIR_FILE), "pair")
|
||||
# made by pair.py, a directory renamed into place whole: a certificate never meets another key
|
||||
|
||||
+10
-2
@@ -26,8 +26,8 @@ TEXT_PORT = 30000
|
||||
# install.sh's speech_step hands it whole to install-speech.sh, so it stays False here)
|
||||
# kind what it serves: text, image, video, speech or transcribe (speech heard on the GPU, on a port of
|
||||
# its own, by no chat client: install-transcribe.sh)
|
||||
# engine sglang (lmsysorg/sglang images: install.sh's two lanes, and install-lfm25.sh's on the 27B's
|
||||
# image), vllm (the installers that source vllm-lane.sh),
|
||||
# engine sglang (lmsysorg/sglang images: install.sh's two lanes, install-lfm25.sh's on the 27B's image,
|
||||
# and install-inkling.sh's on its own), vllm (the installers that source vllm-lane.sh),
|
||||
# llamacpp (llama.cpp's own llama-server image, the installers that source
|
||||
# llamacpp-lane.sh), diffusion (SGLang Diffusion's wheel in the lane's own venv), own
|
||||
# (this repo's speech-server.py, in front of llama.cpp's llama-server and Kokoro)
|
||||
@@ -131,6 +131,14 @@ LANES = {
|
||||
"targets": ("lfm3",), "heavy_64": (),
|
||||
"served": "lfm3-1.7b", "provider": "lfm3", "ports": (TEXT_PORT,), "fits_64": False,
|
||||
"title": "Liquid AI LFM3"},
|
||||
# install-inkling.sh: SGLang's own inkling-2-mini image (by its arm64 digest), Thinking Machines' Inkling 2 Mini with
|
||||
# the DSpark draft head of its checkpoint, on the text lanes' port behind the proxy; its unit's --served-model-name
|
||||
# inkling-2-mini
|
||||
"inkling": {"unit": "qwen38-inkling.service", "installer": "install-inkling.sh", "flags": True, "kind": "text",
|
||||
"engine": "sglang", "b12x": False,
|
||||
"targets": ("inkling",), "heavy_64": (),
|
||||
"served": "inkling-2-mini", "provider": "inkling", "ports": (TEXT_PORT,), "fits_64": False,
|
||||
"title": "Inkling 2 Mini"},
|
||||
# install-speech.sh: on the CPU beside any lane, PORT 30024 (SPEECH_PORT) and its recognizer on the
|
||||
# next one (ASR_PORT); no switch target, no official name of its own (it is "the speech lane")
|
||||
"speech": {"unit": "qwen38-speech.service", "installer": "install-speech.sh", "flags": False, "kind": "speech",
|
||||
|
||||
+15
-6
@@ -81,9 +81,15 @@ WORST_STEP = int(os.environ.get("OC_WORST_STEP") or "43_863")
|
||||
_MARGIN_FLOOR = max(0, WORST_STEP - COMPACTION_RESERVE)
|
||||
CEILING_MARGIN = int(os.environ.get("OC_CEILING_MARGIN") or
|
||||
-(-_MARGIN_FLOOR // 5000) * 5000)
|
||||
# The SGLang lanes, by the name each serves under: the two install.sh serves, and the Liquid AI LFM2.5 24B-A2B lane
|
||||
# (install-lfm25.sh), whose engine says its pool the same way.
|
||||
LANE_MODEL = {"qwen3.8-27b": "qwen38", "qwen3.8-flash-next": "flashnext", "lfm2.5-24b-a2b": "lfm25"}
|
||||
# The SGLang lanes, by the name each serves under: the two install.sh serves, the Liquid AI LFM2.5 24B-A2B lane
|
||||
# (install-lfm25.sh) and the Inkling 2 Mini lane (install-inkling.sh), whose engines say their pool the same way.
|
||||
LANE_MODEL = {"qwen3.8-27b": "qwen38", "qwen3.8-flash-next": "flashnext", "lfm2.5-24b-a2b": "lfm25",
|
||||
"inkling-2-mini": "inkling"}
|
||||
# The lanes whose pair (oc-limits.sh) stays a ceiling whatever their window, not only on a native one: the Inkling 2
|
||||
# Mini lane, whose card recommends limits on output tokens (the model can loop in its reasoning). Its window of
|
||||
# 1,048,576 tokens would otherwise give its answer a quarter of the pool (OUTPUT_SHARE), 101,000 tokens on the pool
|
||||
# the reference box measured, where its pair keeps the 32,000 of the other lanes.
|
||||
ANSWER_CAPPED = frozenset({"inkling-2-mini"})
|
||||
AGENT_UNIT = "opencode-web.service"
|
||||
# The engine's window is the third bound, and it holds the prompt PLUS the answer:
|
||||
# SGLang refuses any request where input + max_new_tokens exceeds its context_length
|
||||
@@ -100,6 +106,7 @@ AGENT_UNIT = "opencode-web.service"
|
||||
NATIVE_WINDOW = 262_144
|
||||
SGL_UNIT = Path(os.environ.get("OC_SGL_UNIT", "/etc/systemd/system/qwen38-sglang.service"))
|
||||
LFM25_UNIT = Path(os.environ.get("OC_LFM25_UNIT", "/etc/systemd/system/qwen38-lfm25.service"))
|
||||
INKLING_UNIT = Path(os.environ.get("OC_INKLING_UNIT", "/etc/systemd/system/qwen38-inkling.service"))
|
||||
|
||||
|
||||
def step_margin(output: int) -> int:
|
||||
@@ -116,10 +123,12 @@ def lane_cap(served: str) -> tuple[int, int] | None:
|
||||
invocation (the flash tier from the launcher, the 27B mode from the unit). A lane on
|
||||
a native window keeps that pair as a ceiling: its answer budget is chosen per lane
|
||||
(32,000 on flash and on the Liquid AI LFM2.5 24B-A2B lane, 64,000 on the 27B), and a
|
||||
pool bigger than the window is no reason to grow it."""
|
||||
pool bigger than the window is no reason to grow it. A lane of ANSWER_CAPPED keeps its pair as a ceiling on any
|
||||
window."""
|
||||
choice, invocation = {"qwen3.8-27b": ("stock", SGL_UNIT),
|
||||
"qwen3.8-flash-next": ("flash", CONFIG_DIR / "launch-flash.sh"),
|
||||
"lfm2.5-24b-a2b": ("lfm25", LFM25_UNIT)}.get(served, (None, None))
|
||||
"lfm2.5-24b-a2b": ("lfm25", LFM25_UNIT),
|
||||
"inkling-2-mini": ("inkling", INKLING_UNIT)}.get(served, (None, None))
|
||||
if not choice:
|
||||
return None
|
||||
r = subprocess.run(["bash", str(REPO_DIR / "oc-limits.sh"), choice, "--from", str(invocation)],
|
||||
@@ -324,7 +333,7 @@ def main(argv: list[str]) -> int:
|
||||
capture_output=True, text=True).stdout
|
||||
window = int(info.get("context_length") or 0)
|
||||
ceiling = ceiling_from_env(env, served, window)
|
||||
cap = lane_cap(served) if 0 < window <= NATIVE_WINDOW else None
|
||||
cap = lane_cap(served) if 0 < window <= NATIVE_WINDOW or served in ANSWER_CAPPED else None
|
||||
context, output = fit(pool, ceiling, window, cap)
|
||||
# Rounding to the kilo bottoms out at zero on an implausibly small pool, and
|
||||
# writing "context": 0 into opencode's config would break it far more loudly
|
||||
|
||||
Executable
+54
@@ -0,0 +1,54 @@
|
||||
#!/usr/bin/env python3
|
||||
"""The Inkling 2 Mini lane's opencode provider, in one place.
|
||||
|
||||
install.sh's generator writes it into the opencode config once the lane is installed, and
|
||||
switch-model.sh adds it to a config written before that, so both take it from here and the two
|
||||
cannot drift.
|
||||
|
||||
Usage: oc-inkling.py <base_url> <api-key file> <ctx> <out> <name>
|
||||
prints {"provider": {"inkling": ...}}, the shape oc-merge-limits.py --add-providers reads.
|
||||
"""
|
||||
import json
|
||||
import sys
|
||||
|
||||
# Inkling 2 Mini's chat template (its checkpoint's, served as published, read at the pinned revision on 2026-11-24)
|
||||
# reads reasoning_effort, a number in [0.0, 0.99] or one of its levels by name: none 0.0, minimal 0.1, low 0.2, medium
|
||||
# 0.7, high 0.9, xhigh and max 0.99; with none given it reasons at 0.9, high. Its card says the lowest effort does not
|
||||
# turn the reasoning off. Five variants, each a level of the template by its name, in chat_template_kwargs as on the
|
||||
# Kolibri lane: high, the default, first as a picker lists it, then the others from the lowest. minimal is left out:
|
||||
# 0.1 against low's 0.2, and omp, whose pi-gen.py thinking block rides none on its own minimal, would send none for both.
|
||||
LEVELS = ("high", "none", "low", "medium", "xhigh")
|
||||
|
||||
|
||||
def provider(base_url, key_file, ctx, out, name):
|
||||
"""The provider block. The model reads images (its vision tower, which the unit's --enable-multimodal serves), so
|
||||
opencode may attach one."""
|
||||
return {
|
||||
"npm": "@ai-sdk/openai-compatible",
|
||||
"name": "Inkling 2 Mini (DGX Spark)",
|
||||
"options": {"baseURL": base_url, "apiKey": f"{{file:{key_file}}}"},
|
||||
"models": {"inkling-2-mini": {
|
||||
"name": name,
|
||||
"limit": {"context": ctx, "input": ctx, "output": out},
|
||||
"variants": {lvl: {"chat_template_kwargs": {"reasoning_effort": lvl}} for lvl in LEVELS},
|
||||
"attachment": True,
|
||||
"modalities": {"input": ["text", "image"], "output": ["text"]},
|
||||
}},
|
||||
}
|
||||
|
||||
|
||||
def main():
|
||||
if len(sys.argv) != 6:
|
||||
print(__doc__.strip(), file=sys.stderr)
|
||||
sys.exit(2)
|
||||
base_url, key_file, ctx, out, name = sys.argv[1:6]
|
||||
try:
|
||||
ctx, out = int(ctx), int(out)
|
||||
except ValueError:
|
||||
print("ctx and out are token counts", file=sys.stderr)
|
||||
sys.exit(2)
|
||||
print(json.dumps({"provider": {"inkling": provider(base_url, key_file, ctx, out, name)}}, indent=2))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -351,6 +351,19 @@ case "$CHOICE" in
|
||||
# 205,000 + 25,000 + 32,000 = 262,000 <= 262,144
|
||||
CTX=205000; OUT=32000; LABEL="local, 262K"
|
||||
;;
|
||||
inkling)
|
||||
# The Inkling 2 Mini lane serves the model's window, 1,048,576 tokens (its config's model_max_length, the unit's
|
||||
# --context-length), and its KV cache held 490,496 tokens at the cookbook's static share of 0.45 (measured
|
||||
# 2026-11-22), under half the window: the pool decides, by the FP4-Local lane's rule at its 1M, the cockpit's check
|
||||
# (fit_verdict) with a pool 10 % smaller than the one measured, the margin oc-fit-limits.py keeps for a boot that
|
||||
# gets less, and the window holding the prompt at opencode's compaction point, one worst step and the answer. The
|
||||
# answer keeps the 32,000 of the other lanes, which oc-fit-limits.py holds as this lane's ceiling whatever its
|
||||
# window (ANSWER_CAPPED): the model's card recommends limits on output tokens (it can loop in its reasoning), and
|
||||
# its longest GSM8K answer at its highest effort was 9,493 tokens (250 questions, 2026-11-23).
|
||||
# 374,000 + 32,000 = 406,000 <= 490,496 x 0.92 x 0.90 = 406,130
|
||||
# 374,000 - 20,000 + 43,863 + 32,000 = 429,863 <= 1,048,576
|
||||
CTX=374000; OUT=32000; LABEL="local, 1M"
|
||||
;;
|
||||
*) printf 'oc-limits: unknown target "%s"\n' "$CHOICE" >&2; exit 2 ;;
|
||||
esac
|
||||
|
||||
|
||||
+1
-1
@@ -1139,7 +1139,7 @@ def add_variant(path: str, provider: str, model: str, level: str) -> int:
|
||||
|
||||
|
||||
OURS = ("qwen38", "flashnext", "kolibri", "nemotron", "nemotron-super", "flash-local", "ornith-122b", "flash-unsloth",
|
||||
"lfm25", "lfm3")
|
||||
"lfm25", "lfm3", "inkling")
|
||||
|
||||
|
||||
def _added_ok(text: str, before: dict, blocks: dict) -> str:
|
||||
|
||||
+7
-3
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Point an opencode.json at the served lane: default model + picker name.
|
||||
|
||||
Usage: oc-point-default.py <config.json> <lane: 27b|flash|kolibri|nemotron|nemotron-super|flash-local|ornith-122b|flash-unsloth|lfm25|lfm3> <choice> <window>
|
||||
Usage: oc-point-default.py <config.json> <lane: 27b|flash|kolibri|nemotron|nemotron-super|flash-local|ornith-122b|flash-unsloth|lfm25|lfm3|inkling> <choice> <window>
|
||||
<window> is the served context window in tokens (1010000 or 262144, empty if
|
||||
unknown): it sets the "(local, 1M|262K)" suffix on the served entry's name.
|
||||
|
||||
@@ -78,7 +78,10 @@ LABEL = {"stock": "Qwen3.8-27B NVFP4 + DFlash2",
|
||||
# Liquid AI's official FP8 of LFM2.5 24B-A2B, a lane of its own on SGLang, with its official DSpark draft.
|
||||
"lfm25": "Liquid AI LFM2.5 24B-A2B FP8 + DSpark",
|
||||
# Liquid AI's official NVFP4 of LFM3 1.7B, a lane of its own on vLLM.
|
||||
"lfm3": "Liquid AI LFM3 1.7B NVFP4"}
|
||||
"lfm3": "Liquid AI LFM3 1.7B NVFP4",
|
||||
# Thinking Machines' Inkling 2 Mini (mixed NVFP4 and MXFP8), a lane of its own on SGLang, with the DSpark draft
|
||||
# head of its checkpoint.
|
||||
"inkling": "Inkling 2 Mini + DSpark"}
|
||||
|
||||
|
||||
def label_for(choice: str, window: str) -> str | None:
|
||||
@@ -114,7 +117,8 @@ def main() -> None:
|
||||
"ornith-122b": "ornith-122b/ornith-1.5-122b",
|
||||
"flash-unsloth": "flash-unsloth/qwen3.8-flash-next-unsloth",
|
||||
"lfm25": "lfm25/lfm2.5-24b-a2b",
|
||||
"lfm3": "lfm3/lfm3-1.7b"}.get(lane, "qwen38/qwen3.8-27b")
|
||||
"lfm3": "lfm3/lfm3-1.7b",
|
||||
"inkling": "inkling/inkling-2-mini"}.get(lane, "qwen38/qwen3.8-27b")
|
||||
prov, mid = want.split("/")
|
||||
try:
|
||||
text = ocm.read(path)
|
||||
|
||||
@@ -54,7 +54,7 @@ import shlex
|
||||
import sys
|
||||
|
||||
OURS = ("qwen38", "flashnext", "kolibri", "nemotron", "nemotron-super", "flash-local", "ornith-122b", "flash-unsloth",
|
||||
"lfm25", "lfm3")
|
||||
"lfm25", "lfm3", "inkling")
|
||||
RESIZE = {"maxWidth": 1568, "maxHeight": 1568, "maxBytes": 524288, "jpegQuality": 75}
|
||||
|
||||
|
||||
|
||||
+6
-6
@@ -4,8 +4,8 @@
|
||||
# SGLang Diffusion, the video lane's Turbo adapter) and the Kolibri, Nemotron, Qwen3.8 Flash-Next FP4-Local and Ornith
|
||||
# lanes' images (one image for the two Nemotron lanes, one for Qwen3.8 Flash-Next FP4-Local and Ornith), and llama.cpp's
|
||||
# image for the Qwen3.8 Flash-Next Unsloth GGUF and NVIDIA Nemotron Transcribe lanes, the 27B lane's SGLang image for
|
||||
# the Liquid AI LFM2.5 24B-A2B lane, and vLLM's own nightly image for the Liquid AI LFM3 lane, each by its own
|
||||
# installer's --prepare; their
|
||||
# the Liquid AI LFM2.5 24B-A2B lane, vLLM's own nightly image for the Liquid AI LFM3 lane, and SGLang's
|
||||
# inkling-2-mini image for the Inkling 2 Mini lane, each by its own installer's --prepare; their
|
||||
# checkpoint comes with the Load's switch, as for any Load. The
|
||||
# other text lane, beside the lane that serves: the image its launcher (flash) or unit (27B)
|
||||
# runs, the checkpoint of the target it serves (the switch's own fetch, ./switch-model.sh
|
||||
@@ -14,7 +14,7 @@
|
||||
# draft, its config set for the window the unit serves. Each download is refused before its
|
||||
# first byte when its room is not there.
|
||||
#
|
||||
# ./prepare-lane.sh image|video|kolibri|nemotron|nemotron-super|flash-local|ornith-122b|flash-unsloth|image-h3|transcribe|lfm25|lfm3
|
||||
# ./prepare-lane.sh image|video|kolibri|nemotron|nemotron-super|flash-local|ornith-122b|flash-unsloth|image-h3|transcribe|lfm25|lfm3|inkling
|
||||
# ./prepare-lane.sh flash|27b [<target>]
|
||||
#
|
||||
# The target is the one the Load loads, for the two lanes whose preparation fetches a
|
||||
@@ -29,11 +29,11 @@ set -euo pipefail
|
||||
# exact-argv sudoers is rendered from it and has to match the cockpit's own calls (2026-10-22).
|
||||
while [ -n "${HOME:-}" ] && [ "$HOME" != / ] && [ "${HOME%/}" != "$HOME" ]; do HOME="${HOME%/}"; done; export HOME
|
||||
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
usage(){ echo "usage: ./prepare-lane.sh <image|video|kolibri|nemotron|nemotron-super|flash-local|ornith-122b|flash-unsloth|image-h3|transcribe|lfm25|lfm3> | <flash|27b> [<target>]" >&2; exit 2; }
|
||||
usage(){ echo "usage: ./prepare-lane.sh <image|video|kolibri|nemotron|nemotron-super|flash-local|ornith-122b|flash-unsloth|image-h3|transcribe|lfm25|lfm3|inkling> | <flash|27b> [<target>]" >&2; exit 2; }
|
||||
die(){ printf '\n\033[1;31mERROR:\033[0m %s\n' "$*" >&2; exit 1; }
|
||||
section(){ printf '\n\033[1;36m── %s\033[0m\n' "$*"; }
|
||||
case "${1:-}" in
|
||||
image|video|kolibri|nemotron|nemotron-super|flash-local|ornith-122b|flash-unsloth|image-h3|transcribe|lfm25|lfm3) [ "$#" -eq 1 ] || usage ;;
|
||||
image|video|kolibri|nemotron|nemotron-super|flash-local|ornith-122b|flash-unsloth|image-h3|transcribe|lfm25|lfm3|inkling) [ "$#" -eq 1 ] || usage ;;
|
||||
flash|27b) [ "$#" -le 2 ] || usage ;;
|
||||
*) usage ;;
|
||||
esac
|
||||
@@ -275,7 +275,7 @@ prepare_27b(){
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
image|video|kolibri|nemotron|nemotron-super|flash-local|ornith-122b|flash-unsloth|image-h3|transcribe|lfm25|lfm3)
|
||||
image|video|kolibri|nemotron|nemotron-super|flash-local|ornith-122b|flash-unsloth|image-h3|transcribe|lfm25|lfm3|inkling)
|
||||
# its checkpoint comes with its switch, as for any Load: no target here
|
||||
CONFIG_DIR="$HOME/.config/qwen38"; REPO_DIR="$HERE"
|
||||
# shellcheck source=lanes.sh
|
||||
|
||||
@@ -5,8 +5,8 @@ Requires=docker.service
|
||||
# One engine at a time on this box, said to systemd: starting this lane stops the others
|
||||
# and starting another stops this one, the stop finishing before the start in both
|
||||
# directions (Conflicts= alone orders nothing, hence After= on the same units).
|
||||
Conflicts=qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service
|
||||
After=network-online.target docker.service qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service
|
||||
Conflicts=qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service
|
||||
After=network-online.target docker.service qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
|
||||
@@ -5,8 +5,8 @@ Requires=docker.service
|
||||
# One engine at a time on this box, said to systemd: starting this lane stops the others
|
||||
# and starting another stops this one, the stop finishing before the start in both
|
||||
# directions (Conflicts= alone orders nothing, hence After= on the same units).
|
||||
Conflicts=qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service
|
||||
After=network-online.target docker.service qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service
|
||||
Conflicts=qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service
|
||||
After=network-online.target docker.service qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
|
||||
@@ -7,8 +7,8 @@ Requires=docker.service
|
||||
# directions (Conflicts= alone orders nothing; measured with throwaway units on the
|
||||
# reference box's systemd 255, 2026-09-24). Until v1.18.7 only the image lane said so,
|
||||
# and two text lanes could run side by side, or both start at boot if both were enabled.
|
||||
Conflicts=qwen38-sglang.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service
|
||||
After=network-online.target docker.service qwen38-sglang.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service
|
||||
Conflicts=qwen38-sglang.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service
|
||||
After=network-online.target docker.service qwen38-sglang.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
|
||||
@@ -6,12 +6,12 @@ Wants=network-online.target
|
||||
# asks for 106 GiB available in the shared pool at its start (docs/image-h3-lane.md), while any
|
||||
# other lane holds its own memory for the life of its process. Starting this stops the other
|
||||
# lanes; starting another lane stops this.
|
||||
Conflicts=qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service
|
||||
Conflicts=qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service
|
||||
# Conflicts= alone orders nothing: the old lane's stop and the new lane's start ran side by side
|
||||
# (measured on the reference box's systemd 255: 3.0 s of overlap without After=, 0.02 s after the
|
||||
# stop with, 2026-09-24). With the same units named in After=, systemd finishes the stop before
|
||||
# the start, in both directions.
|
||||
After=network-online.target qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service
|
||||
After=network-online.target qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
|
||||
@@ -5,12 +5,12 @@ Wants=network-online.target
|
||||
# wrapper someone can bypass: the image checkpoint is 31 GB of weights and peaks at
|
||||
# 34.8 GiB during a 1024px request (measured), while the LLM lane holds its pool for the
|
||||
# life of the process. Starting this stops the LLM lane; starting an LLM lane stops this.
|
||||
Conflicts=qwen38-sglang.service qwen38-flash.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service
|
||||
Conflicts=qwen38-sglang.service qwen38-flash.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service
|
||||
# Conflicts= alone orders nothing: the old lane's stop and the new lane's start ran side
|
||||
# by side (5 to 60 s on the reference box, 2026-09-23). With the same units named in
|
||||
# After=, systemd finishes the stop before the start, in both directions (measured on
|
||||
# its systemd 255: 3.0 s of overlap without, 0.02 s after the stop with, 2026-09-24).
|
||||
After=network-online.target qwen38-sglang.service qwen38-flash.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service
|
||||
After=network-online.target qwen38-sglang.service qwen38-flash.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
|
||||
@@ -0,0 +1,103 @@
|
||||
[Unit]
|
||||
Description=Inkling 2 Mini NVFP4/MXFP8 + DSpark (SGLang, capped docker), OpenAI+Anthropic API :__PORT__
|
||||
Wants=network-online.target
|
||||
Requires=docker.service
|
||||
# One engine at a time on this box, said to systemd: starting this lane stops the others
|
||||
# and starting another stops this one, the stop finishing before the start in both
|
||||
# directions (Conflicts= alone orders nothing, hence After= on the same units).
|
||||
Conflicts=qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service
|
||||
After=network-online.target docker.service qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=__USER__
|
||||
Group=__GROUP__
|
||||
ExecStartPre=-/usr/bin/docker rm -f qwen38-inkling
|
||||
# The memory the last engine held has to be back before this one starts (see engine-preflight.sh).
|
||||
ExecStartPre=/bin/bash __HOME__/.config/qwen38/engine-preflight.sh qwen38-inkling.service
|
||||
# The key goes to the server in a file SGLang merges in memory (see engine-secrets.sh),
|
||||
# written again before every start, so it is on no command line.
|
||||
ExecStartPre=/bin/bash __HOME__/.config/qwen38/engine-secrets.sh
|
||||
# Thinking Machines' Inkling 2 Mini (mixed NVFP4 and MXFP8 experts, the DSpark draft head in the checkpoint), served by
|
||||
# the image SGLang's cookbook gives it (lmsysorg/sglang:inkling-2-mini, by its arm64 digest) with the cookbook's DGX
|
||||
# Spark recipe and its DSpark draft, as the reference box measured it on 2026-11-22 (ready in 222 s, 53.1 GiB of GPU
|
||||
# memory at its peak, a KV cache of 490,496 tokens, GSM8K 250 at 0.964; ~/qa-tools/etudes/inkling):
|
||||
# --tp 1 --ep 1 --attention-backend fa4 --dtype bfloat16 --page-size 128 --mem-fraction-static 0.45
|
||||
# --grammar-backend xgrammar: the recipe's, word for word, and MAX_JOBS=4, the cap it sets on the kernels the
|
||||
# engine compiles at its start.
|
||||
# --speculative-algorithm DSPARK --speculative-num-draft-tokens 8 and the four SGLANG_OPT_* variables: the recipe's
|
||||
# DSpark arm. SGLang takes the draft from the checkpoint itself (mtp.safetensors), by the model's name and no
|
||||
# revision, so through refs/main, which install-inkling.sh pins at the revision below.
|
||||
# --context-length 1048576: the model's window (its config's model_max_length), the one SGLang took at that run
|
||||
# with none given, said here so that no later default moves it. The KV cache that run held, 490,496 tokens at
|
||||
# this share, is what one request may fill.
|
||||
# --max-running-requests 48: the number SGLang set itself at that run, said here for the same reason.
|
||||
# --enable-multimodal: the model reads images (its vision tower); the recipe passes it.
|
||||
# --reasoning-parser inkling --tool-call-parser inkling2: the recipe's, the two SGLang names for the model's own
|
||||
# reasoning and tool-call messages (three tool calls of three on the reference box).
|
||||
# No --chat-template: the checkpoint's own. Its reasoning effort is a request's chat_template_kwargs.reasoning_effort,
|
||||
# a number in [0.0, 0.99] or a level by name (none 0.0, minimal 0.1, low 0.2, medium 0.7, high 0.9, xhigh and max
|
||||
# 0.99), 0.9 when a request names none (its chat_template.jinja at the pinned revision); the engine refuses one out
|
||||
# of bounds (400, measured on the reference box with 5).
|
||||
# Its sampling defaults (temperature 1.0) are its generation_config.json, which SGLang applies to a request that
|
||||
# sets none.
|
||||
# What every SGLang lane of this box passes besides (qwen38-sglang.service.template says why each): the health
|
||||
# route that generates nothing, the rendezvous through a file, gloo and NCCL on lo, the request header overrides
|
||||
# the proxy's request ids need, the offline cache, the scheduler parked when idle (--sleep-on-idle), the metrics
|
||||
# and the cache report, the key by --config, and the bind of the other text lanes. The first two, as each unit
|
||||
# says them:
|
||||
# SGLANG_ENABLE_HEALTH_ENDPOINT_GENERATION=0: GET /health answers from the server's state, 503
|
||||
# while it starts and 200 once it serves, instead of generating a token whenever the engine is
|
||||
# idle. /health takes no key, and the proxy relayed it from the network (D02 of the 2026-10-24
|
||||
# security review); /health_generate still generates, and the proxy asks the key for it.
|
||||
# SGLANG_DISTRIBUTED_INIT_METHOD_OVERRIDE: the rendezvous of the engine's one process goes through a file
|
||||
# in the container, which --rm makes new at each start. torch's TCPStore, the default, listened on every
|
||||
# interface whatever address it was given (*:23906 on the reference box, 2026-10-30, no key, no firewall),
|
||||
# and with the file no port opens for it. GLOO_SOCKET_IFNAME and NCCL_SOCKET_IFNAME keep gloo's and NCCL's
|
||||
# bootstrap on lo: under the real clients, the lane listened on four ports of the box's LAN address without
|
||||
# them, though the box's name resolves to 127.0.0.1 (2026-10-30).
|
||||
# Of the config directory, the one file the engine reads, read-only: the key's yaml. --mount, not -v: a source that
|
||||
# is not there fails the start, where -v made a directory in its place, owned by root. Its own caches: torch's, and
|
||||
# the kernels SGLang and b12x compile at the first start, kept for the next ones, as the reference box's runs kept
|
||||
# them (379 s to the first answer at the first start there, when they were compiled, 222 s at the next).
|
||||
# --memory 100g: the 27B lane's cap, on the same engine. The cgroup is not charged for the engine's GPU memory
|
||||
# (docs/gb10-memory.md): the static share bounds that.
|
||||
ExecStart=/bin/bash -c 'exec /usr/bin/docker run --rm --name qwen38-inkling --gpus all \
|
||||
--memory 100g --memory-swap 100g --shm-size 16g --network host --ipc=host \
|
||||
-e TORCHINDUCTOR_CACHE_DIR=/cache/inductor \
|
||||
-e MAX_JOBS=4 \
|
||||
-e SGLANG_OPT_INKLING2_VERIFY_REL_BIAS_KERNEL=1 \
|
||||
-e SGLANG_OPT_DSV41_DSPARK_MID_FOLD=1 \
|
||||
-e SGLANG_OPT_DSV41_DSPARK_PREPARE_INPUTS_ONCE=1 \
|
||||
-e SGLANG_OPT_DSV41_DSPARK_SKIP_PREFILLED_INPUTS=1 \
|
||||
-e SGLANG_ENABLE_REQUEST_HEADER_OVERRIDES=1 \
|
||||
-e SGLANG_ENABLE_HEALTH_ENDPOINT_GENERATION=0 \
|
||||
-e SGLANG_DISTRIBUTED_INIT_METHOD_OVERRIDE=file:///tmp/sglang-rdv \
|
||||
-e GLOO_SOCKET_IFNAME=lo -e NCCL_SOCKET_IFNAME=lo \
|
||||
-e HF_HUB_OFFLINE=1 \
|
||||
-v __HOME__/.config/qwen38/inkling-cache:/cache \
|
||||
-v __HOME__/.config/qwen38/inkling-cache/sglang:/root/.cache/sglang \
|
||||
-v __HOME__/.config/qwen38/inkling-cache/b12x:/root/.cache/b12x \
|
||||
-v __HF_CACHE__:/root/.cache/huggingface \
|
||||
--mount type=bind,source=__HOME__/.config/qwen38/engine-secrets.yaml,target=/out/engine-secrets.yaml,readonly \
|
||||
__IMAGE__ \
|
||||
python3 -m sglang.launch_server \
|
||||
--model-path __MODEL__ --revision __REV__ --tp 1 --ep 1 \
|
||||
--served-model-name inkling-2-mini \
|
||||
--attention-backend fa4 --dtype bfloat16 --page-size 128 \
|
||||
--context-length 1048576 --mem-fraction-static 0.45 --max-running-requests 48 \
|
||||
--speculative-algorithm DSPARK --speculative-num-draft-tokens 8 \
|
||||
--grammar-backend xgrammar --enable-multimodal \
|
||||
--sleep-on-idle --enable-metrics --enable-cache-report \
|
||||
--reasoning-parser inkling --tool-call-parser inkling2 \
|
||||
--config /out/engine-secrets.yaml \
|
||||
--host __ENGINE_BIND__ --port __PORT__'
|
||||
ExecStop=-/usr/bin/docker stop -t 20 qwen38-inkling
|
||||
Restart=always
|
||||
# docker kills SGLang with SIGKILL (137) or SIGTERM (143) on a plain stop; that is
|
||||
# a clean stop, not a failure
|
||||
SuccessExitStatus=137 143
|
||||
RestartSec=15
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,6 +1,6 @@
|
||||
[Unit]
|
||||
Description=Keepalive proxy in front of the serving engine :__PORT__ (agent clients connect to :__PROXY_PORT__)
|
||||
After=network-online.target qwen38-sglang.service qwen38-flash.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-lfm25.service qwen38-lfm3.service
|
||||
After=network-online.target qwen38-sglang.service qwen38-flash.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
@@ -18,7 +18,7 @@ Environment=MAX_SILENCE_S=3600
|
||||
# #26), and a new start of one drops what the proxy read from the engine before it: its
|
||||
# pool, window and names (v6.35). Quoted: unquoted, systemd would read the space as two
|
||||
# assignments.
|
||||
Environment="PROXY_HOLD_UNITS=qwen38-sglang.service qwen38-flash.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-lfm25.service qwen38-lfm3.service"
|
||||
Environment="PROXY_HOLD_UNITS=qwen38-sglang.service qwen38-flash.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service"
|
||||
Environment=PROXY_HOLD_MAX_S=1200
|
||||
Environment=PROXY_BIND=__PROXY_BIND__
|
||||
# A ceiling on the proxy's own memory, so a proxy that grows past any real use is stopped
|
||||
|
||||
@@ -5,8 +5,8 @@ Requires=docker.service
|
||||
# One engine at a time on this box, said to systemd: starting this lane stops the others
|
||||
# and starting another stops this one, the stop finishing before the start in both
|
||||
# directions (Conflicts= alone orders nothing, hence After= on the same units).
|
||||
Conflicts=qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service
|
||||
After=network-online.target docker.service qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service
|
||||
Conflicts=qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service
|
||||
After=network-online.target docker.service qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
|
||||
@@ -5,8 +5,8 @@ Requires=docker.service
|
||||
# One engine at a time on this box, said to systemd: starting this lane stops the others
|
||||
# and starting another stops this one, the stop finishing before the start in both
|
||||
# directions (Conflicts= alone orders nothing, hence After= on the same units).
|
||||
Conflicts=qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm3.service
|
||||
After=network-online.target docker.service qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm3.service
|
||||
Conflicts=qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm3.service qwen38-inkling.service
|
||||
After=network-online.target docker.service qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm3.service qwen38-inkling.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
|
||||
@@ -5,8 +5,8 @@ Requires=docker.service
|
||||
# One engine at a time on this box, said to systemd: starting this lane stops the others
|
||||
# and starting another stops this one, the stop finishing before the start in both
|
||||
# directions (Conflicts= alone orders nothing, hence After= on the same units).
|
||||
Conflicts=qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service
|
||||
After=network-online.target docker.service qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service
|
||||
Conflicts=qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-inkling.service
|
||||
After=network-online.target docker.service qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-inkling.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
|
||||
@@ -5,8 +5,8 @@ Requires=docker.service
|
||||
# One engine at a time on this box, said to systemd: starting this lane stops the others
|
||||
# and starting another stops this one, the stop finishing before the start in both
|
||||
# directions (Conflicts= alone orders nothing, hence After= on the same units).
|
||||
Conflicts=qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service
|
||||
After=network-online.target docker.service qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service
|
||||
Conflicts=qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service
|
||||
After=network-online.target docker.service qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
|
||||
@@ -5,8 +5,8 @@ Requires=docker.service
|
||||
# One engine at a time on this box, said to systemd: starting this lane stops the others
|
||||
# and starting another stops this one, the stop finishing before the start in both
|
||||
# directions (Conflicts= alone orders nothing, hence After= on the same units).
|
||||
Conflicts=qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service
|
||||
After=network-online.target docker.service qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service
|
||||
Conflicts=qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service
|
||||
After=network-online.target docker.service qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
|
||||
@@ -5,8 +5,8 @@ Requires=docker.service
|
||||
# One engine at a time on this box, said to systemd: starting this lane stops the others
|
||||
# and starting another stops this one, the stop finishing before the start in both
|
||||
# directions (Conflicts= alone orders nothing, hence After= on the same units).
|
||||
Conflicts=qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service
|
||||
After=network-online.target docker.service qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service
|
||||
Conflicts=qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service
|
||||
After=network-online.target docker.service qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
|
||||
@@ -7,8 +7,8 @@ Requires=docker.service
|
||||
# directions (Conflicts= alone orders nothing; measured with throwaway units on the
|
||||
# reference box's systemd 255, 2026-09-24). Until v1.18.7 only the image lane said so,
|
||||
# and two text lanes could run side by side, or both start at boot if both were enabled.
|
||||
Conflicts=qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service
|
||||
After=network-online.target docker.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service
|
||||
Conflicts=qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service
|
||||
After=network-online.target docker.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
|
||||
@@ -7,8 +7,8 @@ Requires=docker.service
|
||||
# directions (Conflicts= alone orders nothing; measured with throwaway units on the
|
||||
# reference box's systemd 255, 2026-09-24). Until v1.18.7 only the image lane said so,
|
||||
# and two text lanes could run side by side, or both start at boot if both were enabled.
|
||||
Conflicts=qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service
|
||||
After=network-online.target docker.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service
|
||||
Conflicts=qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service
|
||||
After=network-online.target docker.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service
|
||||
|
||||
[Service]
|
||||
# The memory settings of a 64 GB DGX Spark, measured on a 64 GB budget (2026-10-24: on the reference
|
||||
|
||||
@@ -7,8 +7,8 @@ Requires=docker.service
|
||||
# directions (Conflicts= alone orders nothing; measured with throwaway units on the
|
||||
# reference box's systemd 255, 2026-09-24). Until v1.18.7 only the image lane said so,
|
||||
# and two text lanes could run side by side, or both start at boot if both were enabled.
|
||||
Conflicts=qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service
|
||||
After=network-online.target docker.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service
|
||||
Conflicts=qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service
|
||||
After=network-online.target docker.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
|
||||
@@ -8,8 +8,8 @@ Requires=docker.service
|
||||
# 37 GB of weights and does not hold beside one of them (docs/transcribe-lane.md): it loads when no
|
||||
# engine serves, as the image lane and the video lane do, and the speech lane (a CPU lane) is the
|
||||
# only one it does not conflict with.
|
||||
Conflicts=qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-lfm25.service qwen38-lfm3.service
|
||||
After=network-online.target docker.service qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-lfm25.service qwen38-lfm3.service
|
||||
Conflicts=qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service
|
||||
After=network-online.target docker.service qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
|
||||
@@ -6,12 +6,12 @@ Wants=network-online.target
|
||||
# components) does not fit beside any serving lane, while
|
||||
# any other lane holds its own pool for the life of its process. Starting this stops
|
||||
# the other lanes; starting another lane stops this.
|
||||
Conflicts=qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service
|
||||
Conflicts=qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service
|
||||
# Conflicts= alone orders nothing: the old lane's stop and the new lane's start ran
|
||||
# side by side on the reference box (measured on its systemd 255: 3.0 s of overlap
|
||||
# without After=, 0.02 s after the stop with, 2026-09-24). With the same units named
|
||||
# in After=, systemd finishes the stop before the start, in both directions.
|
||||
After=network-online.target qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service
|
||||
After=network-online.target qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
|
||||
+11
-10
@@ -1,12 +1,12 @@
|
||||
# shellcheck shell=bash
|
||||
# sglang-lane.sh: what an SGLang lane installed by an installer of its own shares (install-lfm25.sh, the first;
|
||||
# install.sh installs the 27B and flash lanes itself, on the same engine). Sourced after lanes.sh, never run. Each
|
||||
# installer keeps what is its own (its pins, its unit's placeholders, its words) and names itself first, as a vLLM
|
||||
# lane's does:
|
||||
# sglang-lane.sh: what an SGLang lane installed by an installer of its own shares (install-lfm25.sh, the first, and
|
||||
# install-inkling.sh; install.sh installs the 27B and flash lanes itself, on the same engine). Sourced after lanes.sh,
|
||||
# never run. Each installer keeps what is its own (its pins, its unit's placeholders, its words) and names itself
|
||||
# first, as a vLLM lane's does:
|
||||
#
|
||||
# VLANE the lane (lfm25): its opencode provider, the record of the text lane it took the boot from
|
||||
# VLANE the lane (lfm25, inkling): 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, by its official name (Liquid AI LFM2.5 24B-A2B)
|
||||
# VLANE_SHORT the lane in a sentence, by its official name (Liquid AI LFM2.5 24B-A2B, Inkling 2 Mini)
|
||||
# UNIT, INSTALLED, CONTAINER, CONFIG_DIR, HERE, LOCAL_IMAGE (the image, by its digest); and, for each part
|
||||
# below, what it says it reads.
|
||||
#
|
||||
@@ -15,7 +15,8 @@
|
||||
# rendered unit is put in place) is every text lane's on an engine of its own: it is sourced from there, not copied,
|
||||
# as the llama.cpp lanes' llamacpp-lane.sh does. What is the SGLang lanes' own is here: the key by the file SGLang
|
||||
# merges in memory (engine-secrets.sh, as the 27B lane's unit reads it), no key middleware, and the engine's
|
||||
# uninstall, whose image is the 27B lane's and stays.
|
||||
# uninstall, which takes the lane's image tag and leaves the image (the 27B lane's for the LFM2.5 lane, kept by its
|
||||
# own tag; the Inkling 2 Mini lane's own, which a docker image prune then reclaims).
|
||||
|
||||
# shellcheck source=vllm-lane.sh
|
||||
. "$HERE/vllm-lane.sh"
|
||||
@@ -37,9 +38,9 @@ slane_service_files(){ # $1... the lane's cache folders
|
||||
}
|
||||
|
||||
# ── --uninstall ──────────────────────────────────────────────────────────────────────────────
|
||||
# Its container, its image's local tag and its own caches; the checkpoints stay, said. The image is the 27B lane's,
|
||||
# whose own tag keeps it, as pin_untag says (lanes.sh). The key's yaml stays: the 27B lane's unit writes and reads the
|
||||
# same file.
|
||||
# Its container, its image's local tag and its own caches; the checkpoints stay, said. An image another lane's tag
|
||||
# names stays (the LFM2.5 lane runs the 27B lane's), as pin_untag says (lanes.sh). The key's yaml stays: the 27B lane's
|
||||
# unit writes and reads the same file.
|
||||
slane_uninstall_runtime(){ # $1... the checkpoints' repos
|
||||
local r d
|
||||
docker rm -f "$CONTAINER" >/dev/null 2>&1 || true
|
||||
|
||||
+166
-23
@@ -25,6 +25,7 @@
|
||||
# ./switch-model.sh transcribe # NVIDIA's Nemotron-3.5-Transcribe-30B-A4B in GGUF (llama.cpp, its own port, 30036)
|
||||
# ./switch-model.sh lfm25 # LiquidAI/LFM2.5-24B-A2B-FP8 and its DSpark draft (SGLang, the 27B lane's image)
|
||||
# ./switch-model.sh lfm3 # LiquidAI/LFM3-1.7B-NVFP4 (vLLM's own nightly image)
|
||||
# ./switch-model.sh inkling # thinkingmachines/Inkling-2-Mini, its DSpark draft head inside (SGLang's own image for it)
|
||||
# ./switch-model.sh <target> --fetch # that target's checkpoint only, into the cache; nothing else changes
|
||||
# ./switch-model.sh <flash-local|flash-unsloth|flash-unsloth-iq3> --clients
|
||||
# # that lane's clients for its unit's window; nothing else
|
||||
@@ -68,7 +69,7 @@ _ENV_HF_CACHE="${HF_CACHE:-}" # before the pins below give it install.sh's
|
||||
# 27B lane and restarting what follows it, where the usage was all anyone wanted (found
|
||||
# in review, 2026-09-24). MODEL_CHOICE= still names one, as install.sh takes it.
|
||||
CHOICE="${1:-${MODEL_CHOICE:-}}"
|
||||
case "$CHOICE" in stock|uncensored|fp8|uncensored-fp8|arete|daisyrose|flash|flash-nvda|flash-uncensored|image|image-turbo|video|kolibri|kolibri-nvfp4|nemotron|nemotron-super|flash-local|ornith-122b|flash-unsloth|flash-unsloth-iq3|image-h3|transcribe|lfm25|lfm3) ;; *) printf 'usage: ./switch-model.sh <stock|uncensored|fp8|uncensored-fp8|arete|daisyrose|flash|flash-nvda|flash-uncensored|image|image-turbo|video|kolibri|kolibri-nvfp4|nemotron|nemotron-super|flash-local|ornith-122b|flash-unsloth|flash-unsloth-iq3|image-h3|transcribe|lfm25|lfm3> [--fetch]\n ./switch-model.sh <flash-local|flash-unsloth|flash-unsloth-iq3> --clients\n' >&2; [ -z "$CHOICE" ] && exit 2; die "unknown target: $CHOICE" ;; esac
|
||||
case "$CHOICE" in stock|uncensored|fp8|uncensored-fp8|arete|daisyrose|flash|flash-nvda|flash-uncensored|image|image-turbo|video|kolibri|kolibri-nvfp4|nemotron|nemotron-super|flash-local|ornith-122b|flash-unsloth|flash-unsloth-iq3|image-h3|transcribe|lfm25|lfm3|inkling) ;; *) printf 'usage: ./switch-model.sh <stock|uncensored|fp8|uncensored-fp8|arete|daisyrose|flash|flash-nvda|flash-uncensored|image|image-turbo|video|kolibri|kolibri-nvfp4|nemotron|nemotron-super|flash-local|ornith-122b|flash-unsloth|flash-unsloth-iq3|image-h3|transcribe|lfm25|lfm3|inkling> [--fetch]\n ./switch-model.sh <flash-local|flash-unsloth|flash-unsloth-iq3> --clients\n' >&2; [ -z "$CHOICE" ] && exit 2; die "unknown target: $CHOICE" ;; esac
|
||||
# --fetch: the target's checkpoint only, fetched as a switch fetches it (the cache first,
|
||||
# resumable, its room checked), and nothing else: no unit, no boot, no engine, no record.
|
||||
# Library's Download runs it, and a lane installed without its weights gets them so.
|
||||
@@ -132,6 +133,8 @@ LFM25_UNIT="/etc/systemd/system/qwen38-lfm25.service"
|
||||
LFM25_UNIT_NAME="qwen38-lfm25.service"
|
||||
LFM3_UNIT="/etc/systemd/system/qwen38-lfm3.service"
|
||||
LFM3_UNIT_NAME="qwen38-lfm3.service"
|
||||
INKLING_UNIT="/etc/systemd/system/qwen38-inkling.service"
|
||||
INKLING_UNIT_NAME="qwen38-inkling.service"
|
||||
|
||||
# The one fetch of every lane's checkpoint, run in the lane's image or venv. Checked here,
|
||||
# before any branch mounts it: docker -v of a host file that is not there makes a
|
||||
@@ -291,7 +294,7 @@ if [ "$CHOICE" = "kolibri" ] || [ "$CHOICE" = "kolibri-nvfp4" ]; then
|
||||
done
|
||||
# The loop variable ends in UNIT_NAME on purpose: CI checks every
|
||||
# `sudo systemctl <verb> "$..UNIT_NAME"` against the cockpit's sudoers allowlist.
|
||||
for TEXT_UNIT_NAME in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service; do
|
||||
for TEXT_UNIT_NAME in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service; do
|
||||
if systemctl is-enabled --quiet "$TEXT_UNIT_NAME" 2>/dev/null; then
|
||||
echo "disabling $TEXT_UNIT_NAME at boot (unit file kept for switching back)"
|
||||
sudo systemctl disable "$TEXT_UNIT_NAME"
|
||||
@@ -300,7 +303,7 @@ if [ "$CHOICE" = "kolibri" ] || [ "$CHOICE" = "kolibri-nvfp4" ]; then
|
||||
sudo systemctl enable "$KOLIBRI_UNIT_NAME" >/dev/null 2>&1 || sudo systemctl enable "$KOLIBRI_UNIT_NAME"
|
||||
sudo systemctl daemon-reload
|
||||
RUNNING=""
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service; do
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service; do
|
||||
systemctl is-active --quiet "$u" 2>/dev/null && RUNNING="$u"
|
||||
done
|
||||
printf '\n\033[1;32mSwitch queued: %s (%s)\033[0m\n' "$KOL_MODEL" "$KOLIBRI_UNIT_NAME"
|
||||
@@ -560,7 +563,7 @@ if [ "$CHOICE" = "nemotron" ] || [ "$CHOICE" = "nemotron-super" ]; then
|
||||
done
|
||||
# The loop variable ends in UNIT_NAME on purpose: CI checks every
|
||||
# `sudo systemctl <verb> "$..UNIT_NAME"` against the cockpit's sudoers allowlist.
|
||||
for TEXT_UNIT_NAME in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service; do
|
||||
for TEXT_UNIT_NAME in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service; do
|
||||
[ "$TEXT_UNIT_NAME" = "$NEM_UNIT_NAME" ] && continue
|
||||
if systemctl is-enabled --quiet "$TEXT_UNIT_NAME" 2>/dev/null; then
|
||||
echo "disabling $TEXT_UNIT_NAME at boot (unit file kept for switching back)"
|
||||
@@ -574,7 +577,7 @@ if [ "$CHOICE" = "nemotron" ] || [ "$CHOICE" = "nemotron-super" ]; then
|
||||
fi
|
||||
sudo systemctl daemon-reload
|
||||
RUNNING=""
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service; do
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service; do
|
||||
[ "$u" = "$NEM_UNIT_NAME" ] && continue
|
||||
systemctl is-active --quiet "$u" 2>/dev/null && RUNNING="$u"
|
||||
done
|
||||
@@ -702,7 +705,7 @@ if [ "$CHOICE" = "flash-local" ]; then
|
||||
done
|
||||
# The loop variable ends in UNIT_NAME on purpose: CI checks every
|
||||
# `sudo systemctl <verb> "$..UNIT_NAME"` against the cockpit's sudoers allowlist.
|
||||
for TEXT_UNIT_NAME in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service; do
|
||||
for TEXT_UNIT_NAME in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service; do
|
||||
if systemctl is-enabled --quiet "$TEXT_UNIT_NAME" 2>/dev/null; then
|
||||
echo "disabling $TEXT_UNIT_NAME at boot (unit file kept for switching back)"
|
||||
sudo systemctl disable "$TEXT_UNIT_NAME"
|
||||
@@ -711,7 +714,7 @@ if [ "$CHOICE" = "flash-local" ]; then
|
||||
sudo systemctl enable "$FLASH_LOCAL_UNIT_NAME" >/dev/null 2>&1 || sudo systemctl enable "$FLASH_LOCAL_UNIT_NAME"
|
||||
sudo systemctl daemon-reload
|
||||
RUNNING=""
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service; do
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service; do
|
||||
systemctl is-active --quiet "$u" 2>/dev/null && RUNNING="$u"
|
||||
done
|
||||
printf '\n\033[1;32mSwitch queued: %s (%s)\033[0m\n' "$FLASH_LOCAL_REPO" "$FLASH_LOCAL_UNIT_NAME"
|
||||
@@ -849,7 +852,7 @@ if [ "$CHOICE" = "ornith-122b" ]; then
|
||||
done
|
||||
# The loop variable ends in UNIT_NAME on purpose: CI checks every
|
||||
# `sudo systemctl <verb> "$..UNIT_NAME"` against the cockpit's sudoers allowlist.
|
||||
for TEXT_UNIT_NAME in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service; do
|
||||
for TEXT_UNIT_NAME in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service; do
|
||||
if systemctl is-enabled --quiet "$TEXT_UNIT_NAME" 2>/dev/null; then
|
||||
echo "disabling $TEXT_UNIT_NAME at boot (unit file kept for switching back)"
|
||||
sudo systemctl disable "$TEXT_UNIT_NAME"
|
||||
@@ -858,7 +861,7 @@ if [ "$CHOICE" = "ornith-122b" ]; then
|
||||
sudo systemctl enable "$ORNITH_122B_UNIT_NAME" >/dev/null 2>&1 || sudo systemctl enable "$ORNITH_122B_UNIT_NAME"
|
||||
sudo systemctl daemon-reload
|
||||
RUNNING=""
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service; do
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service; do
|
||||
systemctl is-active --quiet "$u" 2>/dev/null && RUNNING="$u"
|
||||
done
|
||||
printf '\n\033[1;32mSwitch queued: %s (%s)\033[0m\n' "$ORNITH_122B_REPO" "$ORNITH_122B_UNIT_NAME"
|
||||
@@ -970,7 +973,7 @@ if [ "$CHOICE" = "flash-unsloth" ] || [ "$CHOICE" = "flash-unsloth-iq3" ]; then
|
||||
done
|
||||
# The loop variable ends in UNIT_NAME on purpose: CI checks every
|
||||
# `sudo systemctl <verb> "$..UNIT_NAME"` against the cockpit's sudoers allowlist.
|
||||
for TEXT_UNIT_NAME in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service; do
|
||||
for TEXT_UNIT_NAME in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service; do
|
||||
if systemctl is-enabled --quiet "$TEXT_UNIT_NAME" 2>/dev/null; then
|
||||
echo "disabling $TEXT_UNIT_NAME at boot (unit file kept for switching back)"
|
||||
sudo systemctl disable "$TEXT_UNIT_NAME"
|
||||
@@ -979,7 +982,7 @@ if [ "$CHOICE" = "flash-unsloth" ] || [ "$CHOICE" = "flash-unsloth-iq3" ]; then
|
||||
sudo systemctl enable "$FLASH_UNSLOTH_UNIT_NAME" >/dev/null 2>&1 || sudo systemctl enable "$FLASH_UNSLOTH_UNIT_NAME"
|
||||
sudo systemctl daemon-reload
|
||||
RUNNING=""
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service; do
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service; do
|
||||
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"
|
||||
@@ -1233,7 +1236,7 @@ if [ "$CHOICE" = "image" ] || [ "$CHOICE" = "image-turbo" ]; then
|
||||
# The loop variable ends in UNIT_NAME on purpose: CI checks every
|
||||
# `sudo systemctl <verb> "$..UNIT_NAME"` against the cockpit's sudoers allowlist,
|
||||
# and a variable called $u would have walked straight past it.
|
||||
for TEXT_UNIT_NAME in qwen38-sglang.service qwen38-flash.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service; do
|
||||
for TEXT_UNIT_NAME in qwen38-sglang.service qwen38-flash.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service; do
|
||||
if systemctl is-enabled --quiet "$TEXT_UNIT_NAME" 2>/dev/null; then
|
||||
echo "disabling $TEXT_UNIT_NAME at boot (unit file kept for switching back)"
|
||||
sudo systemctl disable "$TEXT_UNIT_NAME"
|
||||
@@ -1242,7 +1245,7 @@ if [ "$CHOICE" = "image" ] || [ "$CHOICE" = "image-turbo" ]; then
|
||||
sudo systemctl enable "$IMAGE_UNIT_NAME" >/dev/null 2>&1 || sudo systemctl enable "$IMAGE_UNIT_NAME"
|
||||
sudo systemctl daemon-reload
|
||||
RUNNING=""
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service; do
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service; do
|
||||
systemctl is-active --quiet "$u" 2>/dev/null && RUNNING="$u"
|
||||
done
|
||||
printf '\n\033[1;32mSwitch queued: %s (%s)\033[0m\n' "$IMG_MODEL" "$IMAGE_UNIT_NAME"
|
||||
@@ -1403,7 +1406,7 @@ if [ "$CHOICE" = "video" ]; then
|
||||
# The loop variable ends in UNIT_NAME on purpose: CI checks every
|
||||
# `sudo systemctl <verb> "$..UNIT_NAME"` against the cockpit's sudoers allowlist,
|
||||
# and a variable called $u would have walked straight past it.
|
||||
for OTHER_UNIT_NAME in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service; do
|
||||
for OTHER_UNIT_NAME in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service; do
|
||||
if systemctl is-enabled --quiet "$OTHER_UNIT_NAME" 2>/dev/null; then
|
||||
echo "disabling $OTHER_UNIT_NAME at boot (unit file kept for switching back)"
|
||||
sudo systemctl disable "$OTHER_UNIT_NAME"
|
||||
@@ -1412,7 +1415,7 @@ if [ "$CHOICE" = "video" ]; then
|
||||
sudo systemctl enable "$VIDEO_UNIT_NAME" >/dev/null 2>&1 || sudo systemctl enable "$VIDEO_UNIT_NAME"
|
||||
sudo systemctl daemon-reload
|
||||
RUNNING=""
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service; do
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service; do
|
||||
systemctl is-active --quiet "$u" 2>/dev/null && RUNNING="$u"
|
||||
done
|
||||
printf '\n\033[1;32mSwitch queued: %s (%s)\033[0m\n' "$VID_MODEL" "$VIDEO_UNIT_NAME"
|
||||
@@ -1521,7 +1524,7 @@ if [ "$CHOICE" = "image-h3" ]; then
|
||||
done
|
||||
# The loop variable ends in UNIT_NAME on purpose: CI checks every
|
||||
# `sudo systemctl <verb> "$..UNIT_NAME"` against the cockpit's sudoers allowlist.
|
||||
for OTHER_UNIT_NAME in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service; do
|
||||
for OTHER_UNIT_NAME in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service; do
|
||||
if systemctl is-enabled --quiet "$OTHER_UNIT_NAME" 2>/dev/null; then
|
||||
echo "disabling $OTHER_UNIT_NAME at boot (unit file kept for switching back)"
|
||||
sudo systemctl disable "$OTHER_UNIT_NAME"
|
||||
@@ -1530,7 +1533,7 @@ if [ "$CHOICE" = "image-h3" ]; then
|
||||
sudo systemctl enable "$IMAGE_H3_UNIT_NAME" >/dev/null 2>&1 || sudo systemctl enable "$IMAGE_H3_UNIT_NAME"
|
||||
sudo systemctl daemon-reload
|
||||
RUNNING=""
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service; do
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service; do
|
||||
systemctl is-active --quiet "$u" 2>/dev/null && RUNNING="$u"
|
||||
done
|
||||
printf '\n\033[1;32mSwitch queued: %s (%s)\033[0m\n' "$H3_MODEL" "$IMAGE_H3_UNIT_NAME"
|
||||
@@ -1588,7 +1591,7 @@ if [ "$CHOICE" = "transcribe" ]; then
|
||||
done
|
||||
# The loop variable ends in UNIT_NAME on purpose: CI checks every
|
||||
# `sudo systemctl <verb> "$..UNIT_NAME"` against the cockpit's sudoers allowlist.
|
||||
for OTHER_UNIT_NAME in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-lfm25.service qwen38-lfm3.service; do
|
||||
for OTHER_UNIT_NAME in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service; do
|
||||
if systemctl is-enabled --quiet "$OTHER_UNIT_NAME" 2>/dev/null; then
|
||||
echo "disabling $OTHER_UNIT_NAME at boot (unit file kept for switching back)"
|
||||
sudo systemctl disable "$OTHER_UNIT_NAME"
|
||||
@@ -1597,7 +1600,7 @@ if [ "$CHOICE" = "transcribe" ]; then
|
||||
sudo systemctl enable "$TRANSCRIBE_UNIT_NAME" >/dev/null 2>&1 || sudo systemctl enable "$TRANSCRIBE_UNIT_NAME"
|
||||
sudo systemctl daemon-reload
|
||||
RUNNING=""
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-lfm25.service qwen38-lfm3.service; do
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service; do
|
||||
systemctl is-active --quiet "$u" 2>/dev/null && RUNNING="$u"
|
||||
done
|
||||
printf '\n\033[1;32mSwitch queued: %s (%s)\033[0m\n' "$TRANSCRIBE_REPO" "$TRANSCRIBE_UNIT_NAME"
|
||||
@@ -1691,7 +1694,7 @@ if [ "$CHOICE" = "lfm25" ]; then
|
||||
done
|
||||
# The loop variable ends in UNIT_NAME on purpose: CI checks every
|
||||
# `sudo systemctl <verb> "$..UNIT_NAME"` against the cockpit's sudoers allowlist.
|
||||
for TEXT_UNIT_NAME in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm3.service; do
|
||||
for TEXT_UNIT_NAME in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm3.service qwen38-inkling.service; do
|
||||
if systemctl is-enabled --quiet "$TEXT_UNIT_NAME" 2>/dev/null; then
|
||||
echo "disabling $TEXT_UNIT_NAME at boot (unit file kept for switching back)"
|
||||
sudo systemctl disable "$TEXT_UNIT_NAME"
|
||||
@@ -1700,7 +1703,7 @@ if [ "$CHOICE" = "lfm25" ]; then
|
||||
sudo systemctl enable "$LFM25_UNIT_NAME" >/dev/null 2>&1 || sudo systemctl enable "$LFM25_UNIT_NAME"
|
||||
sudo systemctl daemon-reload
|
||||
RUNNING=""
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm3.service; do
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm3.service qwen38-inkling.service; do
|
||||
systemctl is-active --quiet "$u" 2>/dev/null && RUNNING="$u"
|
||||
done
|
||||
printf '\n\033[1;32mSwitch queued: %s (%s)\033[0m\n' "$LFM25_REPO" "$LFM25_UNIT_NAME"
|
||||
@@ -1824,7 +1827,7 @@ if [ "$CHOICE" = "lfm3" ]; then
|
||||
done
|
||||
# The loop variable ends in UNIT_NAME on purpose: CI checks every
|
||||
# `sudo systemctl <verb> "$..UNIT_NAME"` against the cockpit's sudoers allowlist.
|
||||
for TEXT_UNIT_NAME in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service; do
|
||||
for TEXT_UNIT_NAME in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-inkling.service; do
|
||||
if systemctl is-enabled --quiet "$TEXT_UNIT_NAME" 2>/dev/null; then
|
||||
echo "disabling $TEXT_UNIT_NAME at boot (unit file kept for switching back)"
|
||||
sudo systemctl disable "$TEXT_UNIT_NAME"
|
||||
@@ -1833,7 +1836,7 @@ if [ "$CHOICE" = "lfm3" ]; then
|
||||
sudo systemctl enable "$LFM3_UNIT_NAME" >/dev/null 2>&1 || sudo systemctl enable "$LFM3_UNIT_NAME"
|
||||
sudo systemctl daemon-reload
|
||||
RUNNING=""
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service; do
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-inkling.service; do
|
||||
systemctl is-active --quiet "$u" 2>/dev/null && RUNNING="$u"
|
||||
done
|
||||
printf '\n\033[1;32mSwitch queued: %s (%s)\033[0m\n' "$LFM3_REPO" "$LFM3_UNIT_NAME"
|
||||
@@ -1890,6 +1893,140 @@ if [ "$CHOICE" = "lfm3" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# ── The Inkling 2 Mini lane: Thinking Machines' looped mixture of experts, on SGLang ─────────────────────────────────
|
||||
# A text lane for the proxy, served by SGLang in the image its cookbook gives the model, under the side lanes'
|
||||
# contract: verify its checkpoint (the first switch fetches it; the DSpark draft head is inside), put the unit for it in
|
||||
# place, make it the one unit enabled at boot, never start or stop anything, print the exact commands. The unit is
|
||||
# rendered by the lane's installer (install-inkling.sh --stage, no sudo): one renderer, so a switch after the pins moved,
|
||||
# or after the cache moved, puts in the unit an install would.
|
||||
# Rewritten with sudo, so staged at a fixed path the cockpit's exact-argv sudoers allowlist names,
|
||||
# as the other lanes' units are.
|
||||
INKLING_STAGE="$CONFIG_DIR/qwen38-inkling.service.switch-stage"
|
||||
if [ "$CHOICE" = "inkling" ]; then
|
||||
[ -f "$INKLING_UNIT" ] || die "the Inkling 2 Mini lane is not installed on this box (no $INKLING_UNIT). Install it once: ./install.sh --with-inkling (about 21 GB, and SGLang's image for it, 54 GB at its pull's peak)"
|
||||
# The checkpoint, its pinned revision, its size and the image, from the lane's installer, the one place each is
|
||||
# declared.
|
||||
eval "$(grep -E '^INKLING_(IMAGE|REPO|REV|GB)=' "$REPO_DIR/install-inkling.sh" || true)"
|
||||
for _v in INKLING_IMAGE INKLING_REPO INKLING_REV INKLING_GB; do
|
||||
eval "[ -n \"\${$_v:-}\" ]" || die "install-inkling.sh no longer defines $_v (repo layout changed?)"
|
||||
done
|
||||
unset _v
|
||||
docker image inspect "$INKLING_IMAGE" >/dev/null 2>&1 \
|
||||
|| die "the Inkling 2 Mini lane's image (${INKLING_IMAGE:0:40}...) is missing: ./prepare-lane.sh inkling pulls it (no sudo; its first Load from the cockpit runs it), then switch again"
|
||||
INKLING_HF="$(unit_hf_cache "$INKLING_UNIT")"
|
||||
INKLING_HF="${INKLING_HF:-$HF_CACHE}"
|
||||
printf '\n\033[1;36m── Verifying %s @ %s in the cache (resumable)\033[0m\n' "$INKLING_REPO" "${INKLING_REV:0:12}"
|
||||
INKLING_TOKEN_ARGS=()
|
||||
# by name: docker takes the value from its own environment, so the token is in no argv
|
||||
if [ -n "${HF_TOKEN:-}" ]; then export HF_TOKEN; INKLING_TOKEN_ARGS=(-e HF_TOKEN); fi
|
||||
INKLING_PROGRESS_ARGS=()
|
||||
if [ -f "$REPO_DIR/hf-progress.py" ]; then
|
||||
INKLING_PROGRESS_ARGS=(-v "$REPO_DIR/hf-progress.py:/opt/qwen38/hf-progress.py:ro")
|
||||
fi
|
||||
# In the lane's own image, as the vLLM lanes fetch theirs; --init so that a cockpit job stopped past its timeout
|
||||
# stops this too. ckpt-fetch.py is the one fetch of every lane's checkpoint (it says why). Pinned as refs/main, as
|
||||
# install-inkling.sh pins it: the unit runs with HF_HUB_OFFLINE=1 and SGLang takes the DSpark draft from the
|
||||
# checkpoint by its name with no revision, through refs/main, which a download by commit never writes.
|
||||
docker run --rm --init --network host --user "$(id -u):$(id -g)" --entrypoint python3 \
|
||||
-e HF_HOME=/hf -e HF_HUB_DOWNLOAD_TIMEOUT=30 -e HF_HUB_DISABLE_XET=1 \
|
||||
-e HF_HUB_DISABLE_PROGRESS_BARS="$DL_NO_BARS" \
|
||||
"${INKLING_TOKEN_ARGS[@]}" "${INKLING_PROGRESS_ARGS[@]}" \
|
||||
-v "$REPO_DIR/ckpt-fetch.py:/opt/qwen38/ckpt-fetch.py:ro" \
|
||||
-v "$INKLING_HF":/hf "$INKLING_IMAGE" /opt/qwen38/ckpt-fetch.py "$INKLING_REPO" "$INKLING_REV" --offline-first --refs-main pin \
|
||||
--need-gb "$INKLING_GB" --free-gb "$(dl_free_gb "$INKLING_HF")" \
|
||||
|| die "the Inkling 2 Mini checkpoint could not be verified or fetched (re-run to resume; set HF_TOKEN if it stalls)"
|
||||
fetched "$INKLING_REPO @ ${INKLING_REV:0:12}"
|
||||
# its unit for this checkpoint
|
||||
HF_CACHE="$INKLING_HF" bash "$REPO_DIR/install-inkling.sh" --stage "$INKLING_STAGE" \
|
||||
|| { rm -f "$INKLING_STAGE"; die "the Inkling 2 Mini unit could not be prepared (the lines above say why)"; }
|
||||
INKLING_REWRITTEN=""
|
||||
if ! cmp -s "$INKLING_STAGE" "$INKLING_UNIT"; then
|
||||
diff "$INKLING_STAGE" "$INKLING_UNIT" || true # show exactly what changes
|
||||
sudo install -m 644 "$INKLING_STAGE" "$INKLING_UNIT"
|
||||
unit_pending_clear "$INKLING_UNIT" # its new unit is in place: an update that waited for this Load is applied
|
||||
INKLING_REWRITTEN=1
|
||||
else
|
||||
# the rendered unit is the one in place (a pin moved back between two versions before the
|
||||
# Load): a wait for the Inkling 2 Mini lane is nothing to apply any more, cleared as Kolibri's and
|
||||
# Nemotron's else branch clears theirs
|
||||
[ -f "$CONFIG_DIR/pending/$INKLING_UNIT_NAME" ] && unit_pending_clear "$INKLING_UNIT"
|
||||
fi
|
||||
rm -f "$INKLING_STAGE"
|
||||
# Which lane this box served at boot, written down before it is disabled: removing this lane
|
||||
# later gives the boot back to it (its installer's --uninstall).
|
||||
for TEXT_UNIT_NAME in qwen38-sglang.service qwen38-flash.service; do
|
||||
if systemctl is-enabled --quiet "$TEXT_UNIT_NAME" 2>/dev/null; then
|
||||
text_lane_note "$TEXT_UNIT_NAME"; break # both enabled: the 27B, as install.sh follows it
|
||||
fi
|
||||
done
|
||||
# The loop variable ends in UNIT_NAME on purpose: CI checks every
|
||||
# `sudo systemctl <verb> "$..UNIT_NAME"` against the cockpit's sudoers allowlist.
|
||||
for TEXT_UNIT_NAME in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service; do
|
||||
if systemctl is-enabled --quiet "$TEXT_UNIT_NAME" 2>/dev/null; then
|
||||
echo "disabling $TEXT_UNIT_NAME at boot (unit file kept for switching back)"
|
||||
sudo systemctl disable "$TEXT_UNIT_NAME"
|
||||
fi
|
||||
done
|
||||
sudo systemctl enable "$INKLING_UNIT_NAME" >/dev/null 2>&1 || sudo systemctl enable "$INKLING_UNIT_NAME"
|
||||
sudo systemctl daemon-reload
|
||||
RUNNING=""
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service; do
|
||||
systemctl is-active --quiet "$u" 2>/dev/null && RUNNING="$u"
|
||||
done
|
||||
printf '\n\033[1;32mSwitch queued: %s (%s)\033[0m\n' "$INKLING_REPO" "$INKLING_UNIT_NAME"
|
||||
if [ -n "$RUNNING" ]; then
|
||||
echo "Effective after: sudo systemctl stop $RUNNING && sudo systemctl start $INKLING_UNIT_NAME (or next reboot)"
|
||||
elif systemctl is-active --quiet "$INKLING_UNIT_NAME" 2>/dev/null; then
|
||||
if [ -n "$INKLING_REWRITTEN" ]; then
|
||||
echo "Effective after: sudo systemctl restart $INKLING_UNIT_NAME (it serves the previous unit until then)"
|
||||
else
|
||||
echo "Its unit already named this checkpoint. Started before it did, the lane serves what it loaded: sudo systemctl restart $INKLING_UNIT_NAME"
|
||||
fi
|
||||
else
|
||||
echo "Effective after: sudo systemctl start $INKLING_UNIT_NAME (or next reboot; ready in about 4 min, 6 at its first start)"
|
||||
fi
|
||||
# opencode follows the lane, as on a text switch: the lane's provider becomes the default of the
|
||||
# generated config and of the one opencode reads, and the server that reads them restarts when
|
||||
# they changed. A box installed with --no-opencode is left alone.
|
||||
if [ -f "$CONFIG_DIR/opencode.off" ]; then
|
||||
echo "opencode integration is off on this box (./install.sh --no-opencode): default model left alone"
|
||||
else
|
||||
INKLING_OC_SUM="$({ cat "$CONFIG_DIR/opencode.json" "$HOME/.config/opencode/opencode.json" 2>/dev/null || true; } | sha256sum)"
|
||||
INKLING_LIMITS="$("$REPO_DIR/oc-limits.sh" inkling)" || INKLING_LIMITS=""
|
||||
INKLING_NAME="$(python3 "$REPO_DIR/oc-point-default.py" --label inkling 1048576 || true)"
|
||||
INKLING_PORT="$({ grep -m1 -oE 'PROXY_PORT=[0-9]+|keepalive-proxy.py [0-9]+' /etc/systemd/system/qwen38-keepalive.service 2>/dev/null || true; } | grep -oE '[0-9]+$' || true)"
|
||||
INKLING_SRC="$(mktemp)"
|
||||
if [ -n "$INKLING_LIMITS" ] && python3 "$REPO_DIR/oc-inkling.py" "http://127.0.0.1:${INKLING_PORT:-30001}/v1" "$CONFIG_DIR/api-key" \
|
||||
"${INKLING_LIMITS%% *}" "$(echo "$INKLING_LIMITS" | cut -d' ' -f2)" "${INKLING_NAME:-Inkling 2 Mini (local, 1M)}" > "$INKLING_SRC"; then
|
||||
# The compaction block is global: sized from this lane's window as every text switch sizes
|
||||
# it from its own. pi's keepRecentTokens follows (pi-gen).
|
||||
INKLING_KEEP="$("$REPO_DIR/oc-limits.sh" --preserve "${INKLING_LIMITS%% *}")" || INKLING_KEEP=""
|
||||
for OC_JSON in "$CONFIG_DIR/opencode.json" "$HOME/.config/opencode/opencode.json"; do
|
||||
[ -f "$OC_JSON" ] || continue
|
||||
python3 "$REPO_DIR/oc-merge-limits.py" "$OC_JSON" --add-providers "$INKLING_SRC" >/dev/null || true
|
||||
python3 "$REPO_DIR/oc-point-default.py" "$OC_JSON" inkling inkling 1048576 \
|
||||
|| echo "NOTE: could not update $OC_JSON (hand-edited?); set its \"model\" field yourself"
|
||||
[ -n "$INKLING_KEEP" ] && { python3 "$REPO_DIR/oc-merge-limits.py" "$OC_JSON" --compaction "$INKLING_KEEP" \
|
||||
|| echo "NOTE: could not update the compaction block in $OC_JSON; check it by hand ($INKLING_KEEP)"; }
|
||||
done
|
||||
fi
|
||||
rm -f "$INKLING_SRC"
|
||||
if [ -d "$CONFIG_DIR/pi" ] || [ -d "$CONFIG_DIR/omp" ]; then
|
||||
python3 "$REPO_DIR/pi-gen.py" --config "$CONFIG_DIR/opencode.json" --out "$CONFIG_DIR" \
|
||||
|| echo "NOTE: could not regenerate the pi/omp artifacts; run ./pi-gen.py by hand"
|
||||
fi
|
||||
if [ "$INKLING_OC_SUM" != "$({ cat "$CONFIG_DIR/opencode.json" "$HOME/.config/opencode/opencode.json" 2>/dev/null || true; } | sha256sum)" ] \
|
||||
&& systemctl list-unit-files opencode-web.service >/dev/null 2>&1 && systemctl is-active --quiet opencode-web.service; then
|
||||
sudo systemctl restart opencode-web.service \
|
||||
&& echo "opencode-web.service restarted so it reads the new default" \
|
||||
|| echo "NOTE: could not restart opencode-web.service; restart it by hand"
|
||||
fi
|
||||
fi
|
||||
echo "Clients reach it through the proxy on :30001 with the box's key, as model inkling-2-mini."
|
||||
echo "Switch back: ./switch-model.sh stock (or any other target)"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
SGL_UNIT="/etc/systemd/system/qwen38-sglang.service"
|
||||
FLASH_UNIT="/etc/systemd/system/qwen38-flash.service"
|
||||
|
||||
@@ -2272,6 +2409,11 @@ if [ -f "$LFM3_UNIT" ] && systemctl is-enabled --quiet "$LFM3_UNIT_NAME" 2>/dev/
|
||||
echo "disabling $LFM3_UNIT_NAME at boot (unit file kept for switching back)"
|
||||
sudo systemctl disable "$LFM3_UNIT_NAME"
|
||||
fi
|
||||
# The Inkling 2 Mini lane is the fifteenth: the same reason.
|
||||
if [ -f "$INKLING_UNIT" ] && systemctl is-enabled --quiet "$INKLING_UNIT_NAME" 2>/dev/null; then
|
||||
echo "disabling $INKLING_UNIT_NAME at boot (unit file kept for switching back)"
|
||||
sudo systemctl disable "$INKLING_UNIT_NAME"
|
||||
fi
|
||||
sudo systemctl enable "$TARGET_UNIT_NAME" >/dev/null 2>&1 || sudo systemctl enable "$TARGET_UNIT_NAME"
|
||||
text_lane_note "$TARGET_UNIT_NAME"
|
||||
sudo systemctl daemon-reload
|
||||
@@ -2411,6 +2553,7 @@ systemctl is-active --quiet "$IMAGE_H3_UNIT_NAME" 2>/dev/null && RUNNING="$IMAGE
|
||||
systemctl is-active --quiet "$TRANSCRIBE_UNIT_NAME" 2>/dev/null && RUNNING="$TRANSCRIBE_UNIT_NAME"
|
||||
systemctl is-active --quiet "$LFM25_UNIT_NAME" 2>/dev/null && RUNNING="$LFM25_UNIT_NAME"
|
||||
systemctl is-active --quiet "$LFM3_UNIT_NAME" 2>/dev/null && RUNNING="$LFM3_UNIT_NAME"
|
||||
systemctl is-active --quiet "$INKLING_UNIT_NAME" 2>/dev/null && RUNNING="$INKLING_UNIT_NAME"
|
||||
printf '\n\033[1;32mSwitch queued: %s (%s)\033[0m\n' "$TARGET_REPO" "$TARGET_UNIT_NAME"
|
||||
# The target is the operator's choice from here (2026-10-17): an installed.json that a run of
|
||||
# v1.36.0 or later wrote records it, and a switch back to the recommended target erases the
|
||||
|
||||
@@ -63,10 +63,11 @@ GGUF_LANES = {
|
||||
"flash-unsloth-iq3": ("install-flash-unsloth.sh", "FLASH_UNSLOTH", "FLASH_UNSLOTH_IQ3_PART1", {"LEAN_DEFAULT": "1"}),
|
||||
}
|
||||
# How each SGLang target of an installer of its own serves its template (install.sh's 27B and flash targets are read
|
||||
# from install.sh below): the Liquid AI LFM2.5 24B-A2B lane serves its checkpoint's own, as published. (installer, pin
|
||||
# prefix, the fixes as in VLLM_LANES.)
|
||||
# from install.sh below): the Liquid AI LFM2.5 24B-A2B and Inkling 2 Mini lanes serve their checkpoint's own, as
|
||||
# published. (installer, pin prefix, the fixes as in VLLM_LANES.)
|
||||
SGLANG_LANES = {
|
||||
"lfm25": ("install-lfm25.sh", "LFM25", None),
|
||||
"inkling": ("install-inkling.sh", "INKLING", None),
|
||||
}
|
||||
# switch-model.sh's targets that serve no chat template
|
||||
NOT_TEXT = {"image", "image-turbo", "video", "image-h3", "transcribe"}
|
||||
|
||||
@@ -195,7 +195,7 @@ class TheCheckPins(PinsBase):
|
||||
rc, out = self.run_pins(None, "hf_secretvalue123")
|
||||
self.assertEqual(rc, 0, out)
|
||||
hf = [c for c in self.calls() if c["url"].startswith("https://huggingface.co/")]
|
||||
self.assertEqual(len(hf), 43, hf) # eleven checkpoints, the diffusion lanes' three, the MiniMax-H3-Image lane's two (its checkpoint and its text encoder), the video Turbo adapter, Kolibri's two, each Nemotron lane's two (the model and its drafter), the Qwen3.8 Flash-Next FP4-Local lane's one, the Ornith lane's one, the speech lane's four GGUF (two recognizers, each a model and its projector) and the Unsloth GGUF lane's nine (the four parts of each of its two targets and its draft), the NVIDIA Nemotron Transcribe lane's two (its GGUF and its projector), the Liquid AI LFM2.5 24B-A2B lane's two (its checkpoint and its draft), the Liquid AI LFM3 lane's one and the DaisyRose 27B's one
|
||||
self.assertEqual(len(hf), 44, hf) # eleven checkpoints, the diffusion lanes' three, the MiniMax-H3-Image lane's two (its checkpoint and its text encoder), the video Turbo adapter, Kolibri's two, each Nemotron lane's two (the model and its drafter), the Qwen3.8 Flash-Next FP4-Local lane's one, the Ornith lane's one, the speech lane's four GGUF (two recognizers, each a model and its projector) and the Unsloth GGUF lane's nine (the four parts of each of its two targets and its draft), the NVIDIA Nemotron Transcribe lane's two (its GGUF and its projector), the Liquid AI LFM2.5 24B-A2B lane's two (its checkpoint and its draft), the Liquid AI LFM3 lane's one, the DaisyRose 27B's one and the Inkling 2 Mini lane's one
|
||||
for c in hf:
|
||||
self.assertIn("Authorization: Bearer hf_secretvalue123", c["stdin"], c)
|
||||
self.assertFalse(any("hf_secretvalue123" in a for a in c["argv"]), c["argv"])
|
||||
@@ -583,7 +583,7 @@ class TheEndpointsThatDoNotAnswer(PinsBase):
|
||||
for label in self.GITHUB:
|
||||
self.assertIn("HTTP 504 from the GitHub API, so not checked", self.line(out, label), out)
|
||||
self.assertNotIn("no such", self.line(out, label), out)
|
||||
self.assertIn("10 of 69 pins could not be asked about", out)
|
||||
self.assertIn("10 of 71 pins could not be asked about", out)
|
||||
self.assertIn("run it again before re-pinning anything", out)
|
||||
self.assertNotIn("A removed upstream revision", out)
|
||||
|
||||
|
||||
@@ -156,15 +156,15 @@ class TheDiskNeedsAreThePreflights(unittest.TestCase):
|
||||
said = {re.sub(r"\s+", "-", name.lower()).replace("flash-fp4-local", "flash-local")
|
||||
.replace("qwen3.8-flash-next-unsloth-gguf", "flash-unsloth").replace("minimax-h3-image", "image-h3")
|
||||
.replace("nvidia-nemotron-transcribe", "transcribe").replace("liquid-ai-lfm2.5-24b-a2b", "lfm25")
|
||||
.replace("liquid-ai-lfm3", "lfm3"):
|
||||
.replace("liquid-ai-lfm3", "lfm3").replace("inkling-2-mini", "inkling"):
|
||||
re.findall(r"\d+", inside.split(";")[0])[-1] for name, inside in
|
||||
re.findall(r"the (image|video|Kolibri|Nemotron Super|Nemotron|Flash\s+FP4-Local|Ornith\s+122B"
|
||||
r"|Qwen3\.8\s+Flash-Next\s+Unsloth\s+GGUF|MiniMax-H3-Image"
|
||||
r"|NVIDIA\s+Nemotron\s+Transcribe|Liquid\s+AI\s+LFM2\.5\s+24B-A2B|Liquid\s+AI\s+LFM3) lane \(([^)]*)\)", overview)}
|
||||
r"|NVIDIA\s+Nemotron\s+Transcribe|Liquid\s+AI\s+LFM2\.5\s+24B-A2B|Liquid\s+AI\s+LFM3|Inkling\s+2\s+Mini) lane \(([^)]*)\)", overview)}
|
||||
flags = dict(re.findall(r"--no-(image-h3|image|video|kolibri|nemotron-super|nemotron|flash-local|ornith-122b|flash-unsloth|transcribe"
|
||||
r"|lfm25|lfm3)\s+leave the .*?\((?:vLLM, |llama\.cpp, |SGLang, )?(\d+) GB\)", sh))
|
||||
r"|lfm25|lfm3|inkling)\s+leave the .*?\((?:vLLM, |llama\.cpp, |SGLang, )?(\d+) GB\)", sh))
|
||||
self.assertEqual(set(said), {"image", "video", "kolibri", "nemotron", "nemotron-super", "flash-local", "ornith-122b",
|
||||
"flash-unsloth", "image-h3", "transcribe", "lfm25", "lfm3"}, overview)
|
||||
"flash-unsloth", "image-h3", "transcribe", "lfm25", "lfm3", "inkling"}, overview)
|
||||
self.assertEqual(said, flags)
|
||||
|
||||
|
||||
|
||||
@@ -27,7 +27,8 @@ def sglang_starts():
|
||||
class EveryEngineStartTurnsTheHealthGenerationOff(unittest.TestCase):
|
||||
def test_the_starts_are_the_ones_this_test_knows(self):
|
||||
# a new SGLang lane is held to it as soon as its unit exists
|
||||
self.assertEqual(sglang_starts(), ["qwen38-flash-launch.sh.template", "qwen38-lfm25.service.template",
|
||||
self.assertEqual(sglang_starts(), ["qwen38-flash-launch.sh.template", "qwen38-inkling.service.template",
|
||||
"qwen38-lfm25.service.template",
|
||||
"qwen38-sglang-1m.service.template", "qwen38-sglang-64.service.template",
|
||||
"qwen38-sglang.service.template", "run.sh"])
|
||||
|
||||
|
||||
@@ -30,7 +30,8 @@ def sglang_starts():
|
||||
class EveryEngineStartTakesTheFileRendezvous(unittest.TestCase):
|
||||
def test_the_starts_are_the_ones_this_test_knows(self):
|
||||
# a new SGLang lane is held to it as soon as its unit exists
|
||||
self.assertEqual(sglang_starts(), ["qwen38-flash-launch.sh.template", "qwen38-lfm25.service.template",
|
||||
self.assertEqual(sglang_starts(), ["qwen38-flash-launch.sh.template", "qwen38-inkling.service.template",
|
||||
"qwen38-lfm25.service.template",
|
||||
"qwen38-sglang-1m.service.template", "qwen38-sglang-64.service.template",
|
||||
"qwen38-sglang.service.template", "run.sh"])
|
||||
|
||||
|
||||
@@ -794,7 +794,7 @@ class TheWholeScripts(unittest.TestCase):
|
||||
self.assertIn("This box is a 64 GB DGX Spark: the lanes that fit it are the Qwen3.8 27B and Nemotron 3.5 Bolt here", out)
|
||||
self.assertIn("Left out, as they need a 128 GB one: image (Qwen-Image 2.1), video (MiniMax-H3), Qwen3.8 Flash-Next, Kolibri-1, "
|
||||
"Nemotron 3.5 Super VL, Qwen3.8 Flash-Next FP4-Local, Ornith 1.5 122B, Qwen3.8 Flash-Next Unsloth GGUF, "
|
||||
"MiniMax-H3-Image, NVIDIA Nemotron Transcribe, Liquid AI LFM2.5 24B-A2B, Liquid AI LFM3.", out)
|
||||
"MiniMax-H3-Image, NVIDIA Nemotron Transcribe, Liquid AI LFM2.5 24B-A2B, Liquid AI LFM3, Inkling 2 Mini.", out)
|
||||
self.assertIn("Context mode: native (262144 tokens), the one a 64 GB DGX Spark holds.", out)
|
||||
self.assertNotIn("needs a ~121 GB", out)
|
||||
|
||||
|
||||
@@ -307,8 +307,8 @@ class EveryFetchCountsItsBytes(unittest.TestCase):
|
||||
def test_a_container_gets_the_file_only_when_it_is_there(self):
|
||||
# beside ckpt-fetch.py in /opt/qwen38, where the docker callers mount both
|
||||
self.assertIn('if [ -f "$REPO_DIR/hf-progress.py" ]; then', SWITCH)
|
||||
self.assertEqual(SWITCH.count('-v "$REPO_DIR/hf-progress.py:/opt/qwen38/hf-progress.py:ro")'), 7,
|
||||
"the text lanes', Kolibri's, Nemotron's, Flash FP4-Local's, Ornith's, LFM2.5's and LFM3's")
|
||||
self.assertEqual(SWITCH.count('-v "$REPO_DIR/hf-progress.py:/opt/qwen38/hf-progress.py:ro")'), 8,
|
||||
"the text lanes', Kolibri's, Nemotron's, Flash FP4-Local's, Ornith's, LFM2.5's, LFM3's and Inkling's")
|
||||
self.assertIn('"${DL_TOKEN_ARGS[@]}" "${DL_PROGRESS_ARGS[@]}"', SWITCH)
|
||||
self.assertNotIn("QWEN38_REPO_DIR", SWITCH, "the script finds it beside itself")
|
||||
install = (REPO / "install.sh").read_text()
|
||||
@@ -333,9 +333,9 @@ class EveryFetchCountsItsBytes(unittest.TestCase):
|
||||
self.assertIn('DL_NO_BARS=""; [ -t 1 ] || DL_NO_BARS=1', SWITCH)
|
||||
# the text lanes', the image lane's, the video lane's, the Kolibri lane's, the Nemotron lane's,
|
||||
# the Qwen3.8 Flash-Next FP4-Local lane's, the Ornith lane's, the MiniMax-H3-Image lane's two (its checkpoint
|
||||
# and its text encoder), the Liquid AI LFM2.5 24B-A2B lane's (its checkpoint and its draft, in one loop) and the
|
||||
# Liquid AI LFM3 lane's
|
||||
self.assertEqual(SWITCH.count('HF_HUB_DISABLE_PROGRESS_BARS="$DL_NO_BARS"'), 11, "all eleven fetches")
|
||||
# and its text encoder), the Liquid AI LFM2.5 24B-A2B lane's (its checkpoint and its draft, in one loop), the
|
||||
# Liquid AI LFM3 lane's and the Inkling 2 Mini lane's
|
||||
self.assertEqual(SWITCH.count('HF_HUB_DISABLE_PROGRESS_BARS="$DL_NO_BARS"'), 12, "all twelve fetches")
|
||||
|
||||
|
||||
@contextlib.contextmanager
|
||||
|
||||
@@ -677,8 +677,8 @@ class TheOneLinerReachesIt(unittest.TestCase):
|
||||
def test_the_help_says_what_it_costs_before_someone_spends_it(self):
|
||||
self.assertIn("--no-image leave the Qwen-Image 2.1 lane out of this run (46 GB).", self.text)
|
||||
self.assertIn("about 39 GB of\ndownloads", self.text) # a plain run: the lane that serves
|
||||
self.assertIn("about 1235 GB of disk", self.text) # --all-weights: the whole box, the LFM2.5 lane's 26 GB and
|
||||
# the LFM3 lane's 41 with it
|
||||
self.assertIn("about\n 1310 GB of disk", self.text) # --all-weights: the whole box, the
|
||||
# LFM2.5 lane's 26 GB, the LFM3 lane's 41 and the Inkling 2 Mini lane's 75 with it
|
||||
|
||||
|
||||
class AnUpdateKeepsTheImageLaneAsTheBootLane(unittest.TestCase):
|
||||
@@ -696,14 +696,14 @@ class AnUpdateKeepsTheImageLaneAsTheBootLane(unittest.TestCase):
|
||||
self.assertIn('[ "$SGL_ENABLED" -eq 0 ] && [ "$FLASH_ENABLED" -eq 0 ]', self.text)
|
||||
|
||||
def test_the_text_unit_is_not_enabled_on_that_path(self):
|
||||
i = self.text.index('if [ -z "$ATS_CANNOT" ] && [ "$IMAGE_BOOT" -eq 0 ] && [ "$VIDEO_BOOT" -eq 0 ] && [ "$KOLIBRI_BOOT" -eq 0 ] && [ "$NEMOTRON_BOOT" -eq 0 ] && [ "$NEMOTRON_SUPER_BOOT" -eq 0 ] && [ "$FLASH_LOCAL_BOOT" -eq 0 ] && [ "$ORNITH_122B_BOOT" -eq 0 ] && [ "$FLASH_UNSLOTH_BOOT" -eq 0 ] && [ "$IMAGE_H3_BOOT" -eq 0 ] && [ "$TRANSCRIBE_BOOT" -eq 0 ] && [ "$LFM25_BOOT" -eq 0 ] && [ "$LFM3_BOOT" -eq 0 ]; then')
|
||||
i = self.text.index('if [ -z "$ATS_CANNOT" ] && [ "$IMAGE_BOOT" -eq 0 ] && [ "$VIDEO_BOOT" -eq 0 ] && [ "$KOLIBRI_BOOT" -eq 0 ] && [ "$NEMOTRON_BOOT" -eq 0 ] && [ "$NEMOTRON_SUPER_BOOT" -eq 0 ] && [ "$FLASH_LOCAL_BOOT" -eq 0 ] && [ "$ORNITH_122B_BOOT" -eq 0 ] && [ "$FLASH_UNSLOTH_BOOT" -eq 0 ] && [ "$IMAGE_H3_BOOT" -eq 0 ] && [ "$TRANSCRIBE_BOOT" -eq 0 ] && [ "$LFM25_BOOT" -eq 0 ] && [ "$LFM3_BOOT" -eq 0 ] && [ "$INKLING_BOOT" -eq 0 ]; then')
|
||||
# the condition's line and the one after it, however many lanes the condition names
|
||||
self.assertIn('sudo systemctl enable "$UNIT_NAME"', self.text[i:self.text.index("\n", self.text.index("\n", i) + 1)])
|
||||
# and that is the ONLY enable of the serving unit: an unguarded one would undo it
|
||||
self.assertEqual(self.text.count('sudo systemctl enable "$UNIT_NAME"'), 1)
|
||||
|
||||
def test_that_path_ends_before_any_text_engine_is_started(self):
|
||||
i = self.text.index('if [ -z "$ATS_CANNOT" ] && [ "$IMAGE_BOOT" -eq 0 ] && [ "$VIDEO_BOOT" -eq 0 ] && [ "$KOLIBRI_BOOT" -eq 0 ] && [ "$NEMOTRON_BOOT" -eq 0 ] && [ "$NEMOTRON_SUPER_BOOT" -eq 0 ] && [ "$FLASH_LOCAL_BOOT" -eq 0 ] && [ "$ORNITH_122B_BOOT" -eq 0 ] && [ "$FLASH_UNSLOTH_BOOT" -eq 0 ] && [ "$IMAGE_H3_BOOT" -eq 0 ] && [ "$TRANSCRIBE_BOOT" -eq 0 ] && [ "$LFM25_BOOT" -eq 0 ] && [ "$LFM3_BOOT" -eq 0 ]; then')
|
||||
i = self.text.index('if [ -z "$ATS_CANNOT" ] && [ "$IMAGE_BOOT" -eq 0 ] && [ "$VIDEO_BOOT" -eq 0 ] && [ "$KOLIBRI_BOOT" -eq 0 ] && [ "$NEMOTRON_BOOT" -eq 0 ] && [ "$NEMOTRON_SUPER_BOOT" -eq 0 ] && [ "$FLASH_LOCAL_BOOT" -eq 0 ] && [ "$ORNITH_122B_BOOT" -eq 0 ] && [ "$FLASH_UNSLOTH_BOOT" -eq 0 ] && [ "$IMAGE_H3_BOOT" -eq 0 ] && [ "$TRANSCRIBE_BOOT" -eq 0 ] && [ "$LFM25_BOOT" -eq 0 ] && [ "$LFM3_BOOT" -eq 0 ] && [ "$INKLING_BOOT" -eq 0 ]; then')
|
||||
early = self.text[i:self.text.index("exit 0", i)]
|
||||
self.assertNotIn("systemctl start", early)
|
||||
self.assertIn("--no-smoke", early, "the smoke test stops and starts the serving lane")
|
||||
@@ -731,12 +731,12 @@ class TheBootLaneConvergenceHoldsEveryWay(unittest.TestCase):
|
||||
self.assertIn("sudo systemctl disable qwen38-image.service", self.text)
|
||||
|
||||
def test_the_image_boot_path_restarts_the_proxy_it_rewrote(self):
|
||||
i = self.text.index('if [ -z "$ATS_CANNOT" ] && [ "$IMAGE_BOOT" -eq 0 ] && [ "$VIDEO_BOOT" -eq 0 ] && [ "$KOLIBRI_BOOT" -eq 0 ] && [ "$NEMOTRON_BOOT" -eq 0 ] && [ "$NEMOTRON_SUPER_BOOT" -eq 0 ] && [ "$FLASH_LOCAL_BOOT" -eq 0 ] && [ "$ORNITH_122B_BOOT" -eq 0 ] && [ "$FLASH_UNSLOTH_BOOT" -eq 0 ] && [ "$IMAGE_H3_BOOT" -eq 0 ] && [ "$TRANSCRIBE_BOOT" -eq 0 ] && [ "$LFM25_BOOT" -eq 0 ] && [ "$LFM3_BOOT" -eq 0 ]; then')
|
||||
i = self.text.index('if [ -z "$ATS_CANNOT" ] && [ "$IMAGE_BOOT" -eq 0 ] && [ "$VIDEO_BOOT" -eq 0 ] && [ "$KOLIBRI_BOOT" -eq 0 ] && [ "$NEMOTRON_BOOT" -eq 0 ] && [ "$NEMOTRON_SUPER_BOOT" -eq 0 ] && [ "$FLASH_LOCAL_BOOT" -eq 0 ] && [ "$ORNITH_122B_BOOT" -eq 0 ] && [ "$FLASH_UNSLOTH_BOOT" -eq 0 ] && [ "$IMAGE_H3_BOOT" -eq 0 ] && [ "$TRANSCRIBE_BOOT" -eq 0 ] && [ "$LFM25_BOOT" -eq 0 ] && [ "$LFM3_BOOT" -eq 0 ] && [ "$INKLING_BOOT" -eq 0 ]; then')
|
||||
early = self.text[i:self.text.index("exit 0", i)]
|
||||
self.assertIn('sudo systemctl restart "$KEEPALIVE_UNIT"', early)
|
||||
|
||||
def test_the_image_boot_path_respects_a_left_out_image_lane(self):
|
||||
i = self.text.index('if [ -z "$ATS_CANNOT" ] && [ "$IMAGE_BOOT" -eq 0 ] && [ "$VIDEO_BOOT" -eq 0 ] && [ "$KOLIBRI_BOOT" -eq 0 ] && [ "$NEMOTRON_BOOT" -eq 0 ] && [ "$NEMOTRON_SUPER_BOOT" -eq 0 ] && [ "$FLASH_LOCAL_BOOT" -eq 0 ] && [ "$ORNITH_122B_BOOT" -eq 0 ] && [ "$FLASH_UNSLOTH_BOOT" -eq 0 ] && [ "$IMAGE_H3_BOOT" -eq 0 ] && [ "$TRANSCRIBE_BOOT" -eq 0 ] && [ "$LFM25_BOOT" -eq 0 ] && [ "$LFM3_BOOT" -eq 0 ]; then')
|
||||
i = self.text.index('if [ -z "$ATS_CANNOT" ] && [ "$IMAGE_BOOT" -eq 0 ] && [ "$VIDEO_BOOT" -eq 0 ] && [ "$KOLIBRI_BOOT" -eq 0 ] && [ "$NEMOTRON_BOOT" -eq 0 ] && [ "$NEMOTRON_SUPER_BOOT" -eq 0 ] && [ "$FLASH_LOCAL_BOOT" -eq 0 ] && [ "$ORNITH_122B_BOOT" -eq 0 ] && [ "$FLASH_UNSLOTH_BOOT" -eq 0 ] && [ "$IMAGE_H3_BOOT" -eq 0 ] && [ "$TRANSCRIBE_BOOT" -eq 0 ] && [ "$LFM25_BOOT" -eq 0 ] && [ "$LFM3_BOOT" -eq 0 ] && [ "$INKLING_BOOT" -eq 0 ]; then')
|
||||
early = self.text[i:self.text.index("exit 0", i)]
|
||||
call = early.index('side_install image "$(side_mode image')
|
||||
self.assertIn('if [ "$WANT_IMAGE" -eq 1 ]', early[:call])
|
||||
@@ -753,7 +753,7 @@ class TheBootLaneConvergenceHoldsEveryWay(unittest.TestCase):
|
||||
|
||||
def test_it_never_points_at_a_switch_target_that_does_not_exist(self):
|
||||
"""A kept custom model is MODEL_CHOICE=custom, which switch-model.sh rejects."""
|
||||
i = self.text.index('if [ -z "$ATS_CANNOT" ] && [ "$IMAGE_BOOT" -eq 0 ] && [ "$VIDEO_BOOT" -eq 0 ] && [ "$KOLIBRI_BOOT" -eq 0 ] && [ "$NEMOTRON_BOOT" -eq 0 ] && [ "$NEMOTRON_SUPER_BOOT" -eq 0 ] && [ "$FLASH_LOCAL_BOOT" -eq 0 ] && [ "$ORNITH_122B_BOOT" -eq 0 ] && [ "$FLASH_UNSLOTH_BOOT" -eq 0 ] && [ "$IMAGE_H3_BOOT" -eq 0 ] && [ "$TRANSCRIBE_BOOT" -eq 0 ] && [ "$LFM25_BOOT" -eq 0 ] && [ "$LFM3_BOOT" -eq 0 ]; then')
|
||||
i = self.text.index('if [ -z "$ATS_CANNOT" ] && [ "$IMAGE_BOOT" -eq 0 ] && [ "$VIDEO_BOOT" -eq 0 ] && [ "$KOLIBRI_BOOT" -eq 0 ] && [ "$NEMOTRON_BOOT" -eq 0 ] && [ "$NEMOTRON_SUPER_BOOT" -eq 0 ] && [ "$FLASH_LOCAL_BOOT" -eq 0 ] && [ "$ORNITH_122B_BOOT" -eq 0 ] && [ "$FLASH_UNSLOTH_BOOT" -eq 0 ] && [ "$IMAGE_H3_BOOT" -eq 0 ] && [ "$TRANSCRIBE_BOOT" -eq 0 ] && [ "$LFM25_BOOT" -eq 0 ] && [ "$LFM3_BOOT" -eq 0 ] && [ "$INKLING_BOOT" -eq 0 ]; then')
|
||||
early = self.text[i:self.text.index("exit 0", i)]
|
||||
# the case names custom before the line that names ./switch-model.sh $MODEL_CHOICE
|
||||
case = early.index('case "$MODEL_CHOICE" in')
|
||||
|
||||
@@ -0,0 +1,419 @@
|
||||
#!/usr/bin/env python3
|
||||
"""The Inkling 2 Mini lane (install-inkling.sh): the unit its --stage writes for a switch, the room its fetch asks, what
|
||||
its --uninstall removes and keeps, and its clients' pair, provider and efforts (the proxy's part is
|
||||
test_proxy_inkling.py's).
|
||||
|
||||
--stage runs the installer as written, in a throwaway home, with no sudo and no docker. The uninstall block runs whole
|
||||
against a fake unit folder and a fake config directory, sudo, systemctl and docker stubs writing down every call, as in
|
||||
test_lfm25_lane.py."""
|
||||
import importlib.util
|
||||
import json
|
||||
import math
|
||||
import os
|
||||
import pathlib
|
||||
import re
|
||||
import shutil
|
||||
import subprocess
|
||||
import tempfile
|
||||
import unittest
|
||||
|
||||
REPO = pathlib.Path(__file__).resolve().parents[1]
|
||||
TEXT = (REPO / "install-inkling.sh").read_text()
|
||||
PINS = {k: v.strip('"') for k, v in (ln.split("=", 1) for ln in TEXT.splitlines()
|
||||
if ln.startswith("INKLING_") and "=" in ln)}
|
||||
SERVED = "inkling-2-mini"
|
||||
# the KV cache the reference box's engine held at the cookbook's share (its journal, 2026-11-22: max_total_num_tokens)
|
||||
POOL = 490496
|
||||
WINDOW = 1048576
|
||||
|
||||
|
||||
def load(name, rel):
|
||||
spec = importlib.util.spec_from_file_location(name, REPO / rel)
|
||||
mod = importlib.util.module_from_spec(spec)
|
||||
spec.loader.exec_module(mod)
|
||||
return mod
|
||||
|
||||
|
||||
def exec_command(unit: str) -> str:
|
||||
"""The ExecStart command as bash runs it: systemd joins the lines a backslash ends."""
|
||||
line = unit[unit.index("ExecStart=/bin/bash -c '") + len("ExecStart=/bin/bash -c '"):]
|
||||
return line[:line.index("'\nExecStop=")].replace("\\\n", " ")
|
||||
|
||||
|
||||
class TheStagedUnit(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.t = pathlib.Path(tempfile.mkdtemp(prefix="inkling-stage-"))
|
||||
self.home = self.t / "home"
|
||||
self.cfg = self.home / ".config" / "qwen38"
|
||||
self.cfg.mkdir(parents=True)
|
||||
(self.cfg / "api-key").write_text("test-key\n")
|
||||
self.units = self.t / "units"
|
||||
self.units.mkdir()
|
||||
self.hf = self.t / "hf"
|
||||
self.out = self.t / "stage.service"
|
||||
|
||||
def tearDown(self):
|
||||
shutil.rmtree(self.t, ignore_errors=True)
|
||||
|
||||
def stage(self, **env):
|
||||
e = {"PATH": "/usr/bin:/bin", "HOME": str(self.home), "HF_CACHE": str(self.hf), "LANES_UNIT_DIR": str(self.units),
|
||||
"QWEN38_MEMORY_CLASS": "128", **env}
|
||||
r = subprocess.run(["bash", str(REPO / "install-inkling.sh"), "--stage", str(self.out)],
|
||||
capture_output=True, text=True, env=e, timeout=120)
|
||||
return r.returncode, r.stdout + r.stderr
|
||||
|
||||
def test_the_unit_is_whole_and_serves_the_pinned_checkpoint_on_its_own_image(self):
|
||||
rc, out = self.stage()
|
||||
self.assertEqual(rc, 0, out)
|
||||
unit = self.out.read_text()
|
||||
self.assertNotRegex(unit, r"__[A-Z][A-Z0-9_]*__", "a placeholder left")
|
||||
cmd = exec_command(unit)
|
||||
self.assertEqual(PINS["INKLING_IMAGE"],
|
||||
"lmsysorg/sglang@sha256:bc811ac7ac68c6fca116a49750baca817b8613a30abface8a347682b55d132e3",
|
||||
"the arm64 build of lmsysorg/sglang:inkling-2-mini the reference box ran")
|
||||
self.assertIn(f" {PINS['INKLING_IMAGE']} ", cmd)
|
||||
self.assertIn(f"--model-path {PINS['INKLING_REPO']} --revision {PINS['INKLING_REV']} ", cmd)
|
||||
self.assertIn(f"--served-model-name {SERVED} ", cmd)
|
||||
self.assertIn(f"-v {self.hf}:/root/.cache/huggingface ", cmd)
|
||||
self.assertIn("--host 127.0.0.1 --port 30000", cmd)
|
||||
|
||||
def test_its_caches_are_kept_from_one_start_to_the_next_and_made_as_this_user(self):
|
||||
"""The kernels SGLang and b12x compile at the first start (379 s, then 222 s on the reference box, whose runs kept
|
||||
them): their two folders are the lane's, beside torch's compile cache, made by the user, not by docker as root."""
|
||||
self.assertEqual(self.stage()[0], 0)
|
||||
cmd = exec_command(self.out.read_text())
|
||||
self.assertIn(f"-v {self.home}/.config/qwen38/inkling-cache:/cache ", cmd)
|
||||
for d in ("sglang", "b12x"):
|
||||
self.assertIn(f"-v {self.home}/.config/qwen38/inkling-cache/{d}:/root/.cache/{d} ", cmd)
|
||||
self.assertTrue((self.cfg / "inkling-cache" / d).is_dir(), d)
|
||||
|
||||
def test_it_serves_the_cookbooks_dgx_spark_recipe_with_dspark(self):
|
||||
"""The recipe the reference box measured on 2026-11-22 (~/qa-tools/etudes/inkling/banc-inkling.sh, its sg-dspark
|
||||
arm), and the window and the 48 requests SGLang set itself at that run."""
|
||||
self.assertEqual(self.stage()[0], 0)
|
||||
cmd = re.sub(r"\s+", " ", exec_command(self.out.read_text()))
|
||||
for flag in ("--tp 1", "--ep 1", "--attention-backend fa4", "--dtype bfloat16", "--page-size 128",
|
||||
"--mem-fraction-static 0.45", "--speculative-algorithm DSPARK", "--speculative-num-draft-tokens 8",
|
||||
"--grammar-backend xgrammar", "--enable-multimodal", "--context-length 1048576",
|
||||
"--max-running-requests 48"):
|
||||
self.assertIn(f" {flag} ", f" {cmd} ", flag)
|
||||
for env in ("MAX_JOBS=4", "SGLANG_OPT_INKLING2_VERIFY_REL_BIAS_KERNEL=1", "SGLANG_OPT_DSV41_DSPARK_MID_FOLD=1",
|
||||
"SGLANG_OPT_DSV41_DSPARK_PREPARE_INPUTS_ONCE=1", "SGLANG_OPT_DSV41_DSPARK_SKIP_PREFILLED_INPUTS=1"):
|
||||
self.assertIn(f"-e {env} ", cmd, env)
|
||||
# the draft is in the checkpoint: no other repository to name
|
||||
self.assertNotIn("--speculative-draft-model-path", cmd)
|
||||
|
||||
def test_its_parsers_are_the_recipes_and_its_template_its_own(self):
|
||||
self.assertEqual(self.stage()[0], 0)
|
||||
cmd = exec_command(self.out.read_text())
|
||||
self.assertIn("--reasoning-parser inkling --tool-call-parser inkling2 ", cmd)
|
||||
self.assertNotIn("--chat-template", cmd, "the checkpoint's own template, as published")
|
||||
|
||||
def test_the_key_is_on_no_command_line_and_every_belt_of_an_sglang_lane_is_there(self):
|
||||
self.assertEqual(self.stage()[0], 0)
|
||||
unit = self.out.read_text()
|
||||
cmd = exec_command(unit)
|
||||
self.assertNotIn("--api-key", cmd)
|
||||
self.assertNotIn("test-key", unit)
|
||||
self.assertIn("--config /out/engine-secrets.yaml ", cmd)
|
||||
self.assertIn(f"--mount type=bind,source={self.home}/.config/qwen38/engine-secrets.yaml,"
|
||||
"target=/out/engine-secrets.yaml,readonly ", cmd)
|
||||
self.assertIn(f"ExecStartPre=/bin/bash {self.home}/.config/qwen38/engine-secrets.sh\n", unit)
|
||||
self.assertIn(f"ExecStartPre=/bin/bash {self.home}/.config/qwen38/engine-preflight.sh qwen38-inkling.service\n", unit)
|
||||
for env in ("HF_HUB_OFFLINE=1", "SGLANG_ENABLE_REQUEST_HEADER_OVERRIDES=1", "SGLANG_ENABLE_HEALTH_ENDPOINT_GENERATION=0",
|
||||
"SGLANG_DISTRIBUTED_INIT_METHOD_OVERRIDE=file:///tmp/sglang-rdv", "GLOO_SOCKET_IFNAME=lo",
|
||||
"NCCL_SOCKET_IFNAME=lo"):
|
||||
self.assertIn(f"-e {env} ", cmd, env)
|
||||
for flag in ("--sleep-on-idle", "--enable-metrics", "--enable-cache-report"):
|
||||
self.assertIn(f"{flag} ", cmd, flag)
|
||||
|
||||
def test_its_engine_is_the_one_engine_on_the_box(self):
|
||||
self.assertEqual(self.stage()[0], 0)
|
||||
head = self.out.read_text().split("[Service]")[0]
|
||||
conflicts = set(re.search(r"^Conflicts=(.*)$", head, re.M).group(1).split())
|
||||
after = set(re.search(r"^After=(.*)$", head, re.M).group(1).split())
|
||||
others = {f"{t.name[:-len('.template')]}" for t in REPO.glob("qwen38-*.service.template")
|
||||
if re.search(r"^Conflicts=", t.read_text(), re.M)} - {"qwen38-inkling.service", "qwen38-sglang-1m.service",
|
||||
"qwen38-sglang-64.service"}
|
||||
self.assertEqual(conflicts, others)
|
||||
self.assertLessEqual(conflicts, after)
|
||||
|
||||
def test_with_no_file_to_write_to_it_refuses(self):
|
||||
e = {"PATH": "/usr/bin:/bin", "HOME": str(self.home), "LANES_UNIT_DIR": str(self.units)}
|
||||
r = subprocess.run(["bash", str(REPO / "install-inkling.sh"), "--stage"], capture_output=True, text=True, env=e,
|
||||
timeout=60)
|
||||
self.assertNotEqual(r.returncode, 0)
|
||||
self.assertIn("--stage takes the file to write the unit to", r.stderr)
|
||||
|
||||
|
||||
class TheRoomItsFetchAsks(unittest.TestCase):
|
||||
def test_the_repositorys_size_rounded_up(self):
|
||||
"""INKLING_GB is what the fetch asks room for and what the help and the cockpit say it downloads: the Hub's file
|
||||
sizes of the repository at its revision, written above it, rounded up to the GB."""
|
||||
m = re.search(r"^# The repository at this revision, ([\d,]+) bytes .*\n(?:#.*\n)*INKLING_GB=\"(\d+)\"$", TEXT, re.M)
|
||||
self.assertIsNotNone(m, "install-inkling.sh: no measure of the repository above INKLING_GB")
|
||||
self.assertEqual(int(m.group(2)), math.ceil(int(m.group(1).replace(",", "")) / 1e9))
|
||||
js = (REPO / "dashboard" / "static" / "js" / "base.js").read_text()
|
||||
self.assertIsNotNone(re.search(rf"^ inkling: '[^']*The first switch downloads about {m.group(2)} GB\.'(?:}};|,)$", js,
|
||||
re.M), "base.js's note says another size")
|
||||
|
||||
def test_the_image_at_its_pulls_peak_rounded_up_as_df_counts_it(self):
|
||||
"""IMAGE_GB is the image unpacked and its download kept beside it by the containerd store, in GiB, times 1.02,
|
||||
rounded up, plus one: the rule install-lfm3.sh counts its image by."""
|
||||
m = re.search(r"^# Its pull at its peak: ([\d.]+) GB unpacked .* and ([\d.]+) GB to download .*\n(?:#.*\n)*IMAGE_GB=(\d+)$",
|
||||
TEXT, re.M)
|
||||
self.assertIsNotNone(m, "install-inkling.sh: no measure of the image above IMAGE_GB")
|
||||
gib = (float(m.group(1)) + float(m.group(2))) * 1e9 / 2 ** 30
|
||||
self.assertEqual(int(m.group(3)), math.ceil(gib * 1.02) + 1)
|
||||
sh = (REPO / "install.sh").read_text()
|
||||
self.assertIn(f"--no-inkling leave the Inkling 2 Mini lane (SGLang, {int(PINS['INKLING_GB']) + int(m.group(3))} GB)",
|
||||
sh)
|
||||
|
||||
|
||||
class TheFetch(unittest.TestCase):
|
||||
def test_the_repository_is_pinned_as_refs_main(self):
|
||||
"""The unit runs with HF_HUB_OFFLINE=1 and SGLang takes the DSpark draft from the checkpoint by its name with no
|
||||
revision, through refs/main, which a download by commit never writes."""
|
||||
self.assertIn('vlane_fetch "$INKLING_REPO" "$INKLING_REV" pin', TEXT)
|
||||
self.assertIn("--refs-main pin", (REPO / "switch-model.sh").read_text().split('if [ "$CHOICE" = "inkling" ]; then')[1]
|
||||
.split("\nfi\n")[0])
|
||||
|
||||
|
||||
class TheUninstall(unittest.TestCase):
|
||||
"""Its unit, its container, its local tag on its image, its caches and its opencode provider go; the key's yaml (the
|
||||
27B lane's unit reads it too), the vLLM lanes' middleware and the checkpoint stay. The image is no other lane's: once
|
||||
its tag is gone, a docker image prune can reclaim it, and the uninstall says so."""
|
||||
|
||||
def setUp(self):
|
||||
self.d = pathlib.Path(tempfile.mkdtemp(prefix="inkling-uninstall-"))
|
||||
self.home = self.d / "home"
|
||||
self.cfg = self.home / ".config" / "qwen38"
|
||||
for sub in ("inductor", "sglang", "b12x"):
|
||||
(self.cfg / "inkling-cache" / sub).mkdir(parents=True)
|
||||
(self.cfg / "vllm-auth").mkdir()
|
||||
(self.cfg / "engine-secrets.yaml").write_text('api-key: "k"\n')
|
||||
self.sd = self.d / "systemd"
|
||||
self.sd.mkdir()
|
||||
self.unit = self.sd / "qwen38-inkling.service"
|
||||
self.unit.write_text("ExecStart=/bin/bash -c 'exec /usr/bin/docker run x'\n")
|
||||
self.hf = self.d / "hf"
|
||||
(self.hf / "hub" / f"models--{PINS['INKLING_REPO'].replace('/', '--')}").mkdir(parents=True)
|
||||
self.oc = self.cfg / "opencode.json"
|
||||
self.oc.write_text(json.dumps({"model": f"inkling/{SERVED}", "provider": {
|
||||
"qwen38": {"models": {"qwen3.8-27b": {"limit": {"context": 173000, "output": 64000}}}},
|
||||
"inkling": {"models": {SERVED: {"limit": {"context": 374000, "output": 32000}}}}}}))
|
||||
self.bin = self.d / "bin"
|
||||
self.bin.mkdir()
|
||||
self.log = self.d / "calls.log"
|
||||
self.tag = f"qwen38-pinned:inkling-{PINS['INKLING_IMAGE'].split('@sha256:')[1][:12]}"
|
||||
# its tag and no other on the image
|
||||
docker = ("#!/bin/bash\n"
|
||||
f'echo "docker $*" >> "{self.log}"\n'
|
||||
f'case "$1" in images) echo "{self.tag} sha256:feed" ;;\nesac\nexit 0\n')
|
||||
(self.bin / "docker").write_text(docker)
|
||||
(self.bin / "systemctl").write_text(f'#!/bin/bash\necho "systemctl $*" >> "{self.log}"\n'
|
||||
'[ "$1" = is-enabled ] && exit 1\n[ "$1" = is-active ] && exit 1\nexit 0\n')
|
||||
(self.bin / "sudo").write_text(f'#!/bin/bash\necho "sudo $*" >> "{self.log}"\nexec "$@"\n')
|
||||
for tool in ("docker", "systemctl", "sudo"):
|
||||
(self.bin / tool).chmod(0o755)
|
||||
|
||||
def tearDown(self):
|
||||
shutil.rmtree(self.d, ignore_errors=True)
|
||||
|
||||
def run_block(self):
|
||||
start = TEXT.index('if [ "$ACTION" = uninstall ]; then')
|
||||
block = TEXT[start:TEXT.index("\n exit 0\nfi\n", start) + len("\n exit 0\nfi\n")]
|
||||
pins = [ln for ln in TEXT.splitlines() if ln.startswith(("INKLING_", "LOCAL_IMAGE=", "VLANE="))]
|
||||
script = "\n".join(["set -euo pipefail", "step(){ :; }", "die(){ echo \"ERROR: $*\" >&2; exit 1; }",
|
||||
f'LANES_UNIT_DIR="{self.sd}"', f'HERE="{REPO}"', f'. "{REPO}/lanes.sh"',
|
||||
f'. "{REPO}/sglang-lane.sh"', f'CONFIG_DIR="{self.cfg}"', *pins, "ACTION=uninstall",
|
||||
"UNIT=qwen38-inkling.service", f'INSTALLED="{self.unit}"', "CONTAINER=qwen38-inkling",
|
||||
f'HF_CACHE="{self.hf}"', block])
|
||||
env = dict(os.environ, PATH=f"{self.bin}:/usr/bin:/bin", HOME=str(self.home))
|
||||
r = subprocess.run(["bash", "-c", script], capture_output=True, text=True, env=env, timeout=60)
|
||||
self.assertEqual(r.returncode, 0, r.stdout + r.stderr)
|
||||
return r.stdout, self.log.read_text() if self.log.exists() else ""
|
||||
|
||||
def test_its_own_parts_go(self):
|
||||
out, calls = self.run_block()
|
||||
self.assertFalse(self.unit.exists())
|
||||
self.assertIn("unit removed", out)
|
||||
self.assertIn("docker rm -f qwen38-inkling", calls)
|
||||
self.assertIn(f"docker rmi {self.tag}", calls)
|
||||
self.assertFalse((self.cfg / "inkling-cache").exists())
|
||||
|
||||
def test_its_image_is_left_to_a_prune_and_the_key_and_the_middleware_stay(self):
|
||||
out, calls = self.run_block()
|
||||
self.assertNotRegex(calls, r"docker rmi lmsysorg/sglang")
|
||||
self.assertIn(f"untagged {self.tag}: a docker image prune can reclaim it", out)
|
||||
self.assertTrue((self.cfg / "engine-secrets.yaml").exists(), "the 27B lane's unit reads it too")
|
||||
self.assertTrue((self.cfg / "vllm-auth").is_dir(), "the vLLM lanes' middleware is none of this lane's")
|
||||
|
||||
def test_the_checkpoint_stays_and_it_says_so(self):
|
||||
out, _ = self.run_block()
|
||||
d = self.hf / "hub" / f"models--{PINS['INKLING_REPO'].replace('/', '--')}"
|
||||
self.assertTrue(d.is_dir())
|
||||
self.assertIn(f"checkpoint kept, delete it yourself for the space: rm -rf {d}", out)
|
||||
|
||||
def test_its_opencode_provider_goes_and_the_default_comes_back_to_the_27b(self):
|
||||
self.run_block()
|
||||
cfg = json.loads(self.oc.read_text())
|
||||
self.assertNotIn("inkling", cfg["provider"])
|
||||
self.assertIn("qwen38", cfg["provider"])
|
||||
self.assertEqual(cfg["model"], "qwen38/qwen3.8-27b")
|
||||
|
||||
|
||||
class TheSwitch(unittest.TestCase):
|
||||
"""./switch-model.sh inkling, run as written on a copy whose unit paths point at this test's folder: its checkpoint
|
||||
fetched in its image, its unit rendered by its installer's --stage and put in place, the boot moved to it from the
|
||||
text lane noted first, opencode pointed at its provider, and nothing started or stopped."""
|
||||
|
||||
def setUp(self):
|
||||
self.t = pathlib.Path(tempfile.mkdtemp(prefix="inkling-switch-"))
|
||||
self.addCleanup(shutil.rmtree, self.t, True)
|
||||
self.home = self.t / "home"
|
||||
self.cfg = self.home / ".config" / "qwen38"
|
||||
self.cfg.mkdir(parents=True)
|
||||
(self.cfg / "api-key").write_text("test-key\n")
|
||||
self.units = self.t / "units"
|
||||
self.units.mkdir()
|
||||
repo = self.t / "repo"
|
||||
repo.mkdir()
|
||||
text = (REPO / "switch-model.sh").read_text()
|
||||
for unit in ("qwen38-sglang.service", "qwen38-flash.service", "qwen38-inkling.service"):
|
||||
text = text.replace(f'"/etc/systemd/system/{unit}"', f'"{self.units}/{unit}"')
|
||||
(repo / "switch-model.sh").write_text(text)
|
||||
(repo / "switch-model.sh").chmod(0o755)
|
||||
for f in ("install.sh", "lanes.sh", "boxmem.py", "ckpt-fetch.py", "install-inkling.sh", "sglang-lane.sh",
|
||||
"vllm-lane.sh", "qwen38-inkling.service.template", "oc-limits.sh", "oc-inkling.py", "oc-merge-limits.py",
|
||||
# the merger loads its sibling, the server matcher
|
||||
"oc-permissions.py", "oc-point-default.py", "pi-gen.py"):
|
||||
shutil.copy(REPO / f, repo / f)
|
||||
self.hf = self.t / "hf"
|
||||
# the unit an install put there: its image, this box's cache
|
||||
self.unit = self.units / "qwen38-inkling.service"
|
||||
self.unit.write_text("[Service]\nExecStart=/bin/bash -c 'exec /usr/bin/docker run --rm --name qwen38-inkling \\\n"
|
||||
f" -v {self.hf}:/root/.cache/huggingface \\\n {PINS['INKLING_IMAGE']} \\\n"
|
||||
f" python3 -m sglang.launch_server --model-path {PINS['INKLING_REPO']} --revision old'\n")
|
||||
(self.units / "qwen38-sglang.service").write_text("[Service]\n")
|
||||
self.oc = self.cfg / "opencode.json"
|
||||
self.oc.write_text(json.dumps({"model": "qwen38/qwen3.8-27b", "provider": {"qwen38": {
|
||||
"options": {"baseURL": "http://127.0.0.1:30001/v1"},
|
||||
"models": {"qwen3.8-27b": {"limit": {"context": 700000, "output": 200000}}}}}}))
|
||||
self.bin = self.t / "bin"
|
||||
self.bin.mkdir()
|
||||
self.log = self.t / "calls.log"
|
||||
stub = {"docker": f'echo "docker $*" >> "{self.log}"\nexit 0',
|
||||
# the 27B lane at boot, nothing running
|
||||
"systemctl": f'echo "systemctl $*" >> "{self.log}"\n'
|
||||
'case "$*" in "is-enabled --quiet qwen38-sglang.service") exit 0 ;; esac\n'
|
||||
'case "$1" in is-enabled|is-active|list-unit-files) exit 1 ;; esac\nexit 0',
|
||||
"sudo": f'echo "sudo $*" >> "{self.log}"\nexec "$@"',
|
||||
"df": "echo Avail; echo 500G"}
|
||||
for name, body in stub.items():
|
||||
(self.bin / name).write_text("#!/bin/bash\n" + body + "\n")
|
||||
(self.bin / name).chmod(0o755)
|
||||
self.script = repo / "switch-model.sh"
|
||||
|
||||
def switch(self, *args):
|
||||
e = {"PATH": f"{self.bin}:/usr/bin:/bin", "HOME": str(self.home), "QWEN38_MEMORY_CLASS": "128"}
|
||||
r = subprocess.run([str(self.script), "inkling", *args], capture_output=True, text=True, env=e, timeout=120)
|
||||
return r.returncode, r.stdout + r.stderr, self.log.read_text() if self.log.exists() else ""
|
||||
|
||||
def test_it_puts_in_its_unit_moves_the_boot_and_points_opencode_at_it(self):
|
||||
rc, out, calls = self.switch()
|
||||
self.assertEqual(rc, 0, out)
|
||||
unit = self.unit.read_text()
|
||||
self.assertIn(f"--model-path {PINS['INKLING_REPO']} --revision {PINS['INKLING_REV']} ", unit,
|
||||
"its installer's own render")
|
||||
self.assertIn(f"-v {self.hf}:/root/.cache/huggingface ", unit, "the cache its unit mounted")
|
||||
self.assertFalse((self.cfg / "qwen38-inkling.service.switch-stage").exists())
|
||||
fetches = [c for c in calls.splitlines() if c.startswith("docker run") and "/opt/qwen38/ckpt-fetch.py" in c]
|
||||
self.assertEqual(len(fetches), 1, calls)
|
||||
self.assertIn(f" {PINS['INKLING_IMAGE']} /opt/qwen38/ckpt-fetch.py {PINS['INKLING_REPO']} {PINS['INKLING_REV']} "
|
||||
f"--offline-first --refs-main pin --need-gb {PINS['INKLING_GB']} ", fetches[0])
|
||||
self.assertIn("sudo systemctl disable qwen38-sglang.service", calls)
|
||||
self.assertIn("sudo systemctl enable qwen38-inkling.service", calls)
|
||||
self.assertEqual((self.cfg / "text-lane").read_text().strip(), "qwen38-sglang.service")
|
||||
self.assertFalse(re.search(r"systemctl (start|stop|restart) qwen38-", calls), calls)
|
||||
self.assertIn("Effective after: sudo systemctl start qwen38-inkling.service", out)
|
||||
cfg = json.loads(self.oc.read_text())
|
||||
self.assertEqual(cfg["model"], f"inkling/{SERVED}")
|
||||
self.assertEqual(cfg["provider"]["inkling"]["models"][SERVED]["limit"],
|
||||
{"context": 374000, "input": 374000, "output": 32000})
|
||||
self.assertIn("qwen38", cfg["provider"])
|
||||
|
||||
def test_with_no_unit_installed_it_says_how_to_install_it_and_changes_nothing(self):
|
||||
self.unit.unlink()
|
||||
rc, out, calls = self.switch()
|
||||
self.assertNotEqual(rc, 0)
|
||||
self.assertIn("./install.sh --with-inkling", out)
|
||||
self.assertNotIn("docker run", calls)
|
||||
self.assertNotIn("sudo", calls)
|
||||
|
||||
|
||||
class ItsClients(unittest.TestCase):
|
||||
def test_its_pair_fits_its_pool_and_its_window(self):
|
||||
"""Its window is past twice its pool: the pool decides, by the cockpit's check with a pool 10 % smaller than the
|
||||
one measured, and the window holds the prompt at opencode's compaction point, one agent step and the answer."""
|
||||
r = subprocess.run(["bash", str(REPO / "oc-limits.sh"), "inkling"], capture_output=True, text=True)
|
||||
self.assertEqual(r.stdout.strip(), "374000 32000 local, 1M", r.stderr)
|
||||
ctx, out = 374000, 32000
|
||||
self.assertLessEqual(ctx + out, int(POOL * 0.92 * 0.90))
|
||||
self.assertLessEqual(ctx - 20000 + 43863 + out, WINDOW)
|
||||
|
||||
def test_the_fit_keeps_its_answer_whatever_its_window(self):
|
||||
"""A window past 262,144 tokens gave the answer a quarter of the pool (101,000 tokens on the pool measured): its
|
||||
card recommends limits on output tokens, and its pair is its ceiling (ANSWER_CAPPED), so the fit and the table
|
||||
land on one pair on that pool."""
|
||||
fit = load("oc_fit_limits_inkling", "oc-fit-limits.py")
|
||||
self.assertEqual(fit.LANE_MODEL[SERVED], "inkling")
|
||||
self.assertIn(SERVED, fit.ANSWER_CAPPED)
|
||||
self.assertEqual(fit.fit(POOL, 0, WINDOW, None), (304000, 101000), "the rule without the cap")
|
||||
self.assertEqual(fit.fit(POOL, 0, WINDOW, (374000, 32000)), (374000, 32000))
|
||||
with tempfile.TemporaryDirectory(prefix="inkling-fit-") as d:
|
||||
unit = pathlib.Path(d, "qwen38-inkling.service")
|
||||
unit.write_text(" --context-length 1048576 \\\n python3 -m sglang.launch_server \\\n")
|
||||
os.environ["OC_INKLING_UNIT"] = str(unit)
|
||||
try:
|
||||
fit = load("oc_fit_limits_inkling_unit", "oc-fit-limits.py")
|
||||
self.assertEqual(fit.lane_cap(SERVED), (374000, 32000))
|
||||
finally:
|
||||
del os.environ["OC_INKLING_UNIT"]
|
||||
|
||||
def test_its_provider_offers_the_templates_levels_and_images(self):
|
||||
r = subprocess.run(["python3", str(REPO / "oc-inkling.py"), "http://127.0.0.1:30001/v1", "/k", "374000", "32000",
|
||||
"n"], capture_output=True, text=True)
|
||||
self.assertEqual(r.returncode, 0, r.stderr)
|
||||
block = json.loads(r.stdout)["provider"]["inkling"]
|
||||
self.assertEqual(list(block["models"]), [SERVED])
|
||||
model = block["models"][SERVED]
|
||||
self.assertEqual(model["limit"], {"context": 374000, "input": 374000, "output": 32000})
|
||||
# its default first, as a picker lists it, then the others from the lowest: each a level its template maps
|
||||
self.assertEqual(list(model["variants"]), ["high", "none", "low", "medium", "xhigh"])
|
||||
# the names its chat_template.jinja maps (effort_map at the pinned revision): none 0.0, minimal 0.1, low 0.2,
|
||||
# medium 0.7, high 0.9, xhigh and max 0.99
|
||||
for level, v in model["variants"].items():
|
||||
self.assertIn(level, {"none", "minimal", "low", "medium", "high", "xhigh", "max"})
|
||||
self.assertEqual(v, {"chat_template_kwargs": {"reasoning_effort": level}})
|
||||
self.assertEqual(model["modalities"], {"input": ["text", "image"], "output": ["text"]})
|
||||
self.assertTrue(model["attachment"])
|
||||
self.assertEqual(block["options"]["apiKey"], "{file:/k}")
|
||||
|
||||
def test_its_name_in_the_picker_says_its_checkpoint_and_window(self):
|
||||
r = subprocess.run(["python3", str(REPO / "oc-point-default.py"), "--label", "inkling", "1048576"],
|
||||
capture_output=True, text=True)
|
||||
self.assertEqual(r.stdout.strip(), "Inkling 2 Mini + DSpark (local, 1M)")
|
||||
|
||||
|
||||
class ItIsNoLaneOfA64GbBox(unittest.TestCase):
|
||||
def test_boxmem_holds_it_for_a_128_gb_box_only(self):
|
||||
"""Its memory was measured on a 128 GB box only (53.1 GiB of GPU memory at its peak): no 64 GB share is claimed."""
|
||||
bm = load("boxmem_inkling", "boxmem.py")
|
||||
self.assertTrue(bm.fits("inkling", "128"))
|
||||
self.assertFalse(bm.fits("inkling", "64"))
|
||||
self.assertEqual(bm.TARGETS["inkling"], "inkling")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
@@ -320,12 +320,13 @@ def vllm_lane_disabled(case, lane, secondary, lane_boot):
|
||||
for f in ("sudo", "systemctl"):
|
||||
(d / f).chmod(0o755)
|
||||
boots = {"kolibri": 0, "nemotron": 0, "nemotron-super": 0, "flash-local": 0, "ornith-122b": 0, "flash-unsloth": 0,
|
||||
"image-h3": 0, "transcribe": 0, "lfm25": 0, "lfm3": 0, lane: lane_boot}
|
||||
"image-h3": 0, "transcribe": 0, "lfm25": 0, "lfm3": 0, "inkling": 0, lane: lane_boot}
|
||||
r = subprocess.run(["bash", "-c", f'set -euo pipefail\nRECOMMENDED=0\nSECONDARY="{secondary}"; KOLIBRI_BOOT={boots["kolibri"]}; '
|
||||
f'NEMOTRON_BOOT={boots["nemotron"]}; NEMOTRON_SUPER_BOOT={boots["nemotron-super"]}; '
|
||||
f'FLASH_LOCAL_BOOT={boots["flash-local"]}; ORNITH_122B_BOOT={boots["ornith-122b"]}; '
|
||||
f'FLASH_UNSLOTH_BOOT={boots["flash-unsloth"]}; IMAGE_H3_BOOT={boots["image-h3"]}; '
|
||||
f'TRANSCRIBE_BOOT={boots["transcribe"]}; LFM25_BOOT={boots["lfm25"]}; LFM3_BOOT={boots["lfm3"]}\n' + block],
|
||||
f'TRANSCRIBE_BOOT={boots["transcribe"]}; LFM25_BOOT={boots["lfm25"]}; LFM3_BOOT={boots["lfm3"]}; '
|
||||
f'INKLING_BOOT={boots["inkling"]}\n' + block],
|
||||
capture_output=True, text=True, timeout=30,
|
||||
env={"PATH": f"{d}:/usr/bin:/bin"})
|
||||
case.assertEqual(r.returncode, 0, r.stderr)
|
||||
@@ -599,6 +600,37 @@ class ABoxBootingLfm3(unittest.TestCase):
|
||||
self.assertEqual(vllm_lane_disabled(self, "lfm3", "flash", 0), [], "the run for the other text lane")
|
||||
|
||||
|
||||
class ABoxBootingInkling(unittest.TestCase):
|
||||
"""The Inkling 2 Mini lane, SGLang under an installer of its own, keeps the same promise, on its own unit."""
|
||||
|
||||
def resolve(self, text_lane, env=None):
|
||||
home = tmp("lane-inkling-home-")
|
||||
cfg = home / ".config" / "qwen38"
|
||||
cfg.mkdir(parents=True)
|
||||
(cfg / "text-lane").write_text(text_lane + "\n") # the record a switch to it wrote
|
||||
(cfg / "launch-flash.sh").write_text(ABoxBootingKolibri.LAUNCHER)
|
||||
units = {"qwen38-sglang.service": SGL_UNIT, "qwen38-flash.service": ABoxBootingKolibri.FLASH_UNIT,
|
||||
"qwen38-inkling.service": "[Service]\n"}
|
||||
rc, out, _ = converge(units, enabled=("qwen38-inkling.service",), env={**SHARED, **(env or {})}, home=home)
|
||||
self.assertEqual(rc, 97, out)
|
||||
return out
|
||||
|
||||
def test_it_stays_the_boot_lane_and_the_flash_before_it_is_brought_up_to_date(self):
|
||||
out = self.resolve("qwen38-flash.service")
|
||||
self.assertIn("The Inkling 2 Mini lane is this box's boot lane", out)
|
||||
self.assertIn("INSTALLED=flash", out)
|
||||
|
||||
def test_an_explicit_target_takes_the_boot_back(self):
|
||||
out = self.resolve("qwen38-flash.service", env={"MODEL_CHOICE": "flash"})
|
||||
self.assertIn("MODEL_CHOICE=flash given on a box booting the Inkling 2 Mini lane", out)
|
||||
self.assertNotIn("The Inkling 2 Mini lane is this box's boot lane", out)
|
||||
|
||||
def test_the_run_that_takes_the_boot_back_disables_it(self):
|
||||
self.assertEqual(vllm_lane_disabled(self, "inkling", "", 0), ["sudo systemctl disable qwen38-inkling.service"])
|
||||
self.assertEqual(vllm_lane_disabled(self, "inkling", "", 1), [], "the run that keeps it at boot")
|
||||
self.assertEqual(vllm_lane_disabled(self, "inkling", "flash", 0), [], "the run for the other text lane")
|
||||
|
||||
|
||||
class ItLeavesWhatIsSharedToItsParent(unittest.TestCase):
|
||||
"""What the run for the other lane must not touch, read where it would."""
|
||||
|
||||
@@ -941,7 +973,8 @@ class TheOtherLanesAndTheirProofs(unittest.TestCase):
|
||||
want_kolibri=1, with_kolibri=0, kolibri_rc=0, prepared=(), all_weights=0, begun=(), second_new=None,
|
||||
want_nemotron=1, with_nemotron=0, nemotron_rc=0, want_super=1, with_super=0, super_rc=0,
|
||||
nemotron_image=None, want_flocal=0, with_flocal=0, flocal_rc=0, want_ornith=0, with_ornith=0, ornith_rc=0,
|
||||
want_unsloth=0, with_unsloth=0, unsloth_rc=0, want_h3=0, with_h3=0, h3_rc=0, pending_put=0, waits=(), want_tr=0, with_tr=0, tr_rc=0, want_lfm25=0, with_lfm25=0, lfm25_rc=0, want_lfm3=0, with_lfm3=0, lfm3_rc=0):
|
||||
want_unsloth=0, with_unsloth=0, unsloth_rc=0, want_h3=0, with_h3=0, h3_rc=0, pending_put=0, waits=(), want_tr=0, with_tr=0, tr_rc=0, want_lfm25=0, with_lfm25=0, lfm25_rc=0, want_lfm3=0, with_lfm3=0, lfm3_rc=0,
|
||||
want_inkling=0, with_inkling=0, inkling_rc=0):
|
||||
t = tmp("lane-end-")
|
||||
unit_dir = t / "units"
|
||||
unit_dir.mkdir()
|
||||
@@ -985,12 +1018,18 @@ class TheOtherLanesAndTheirProofs(unittest.TestCase):
|
||||
# vLLM's nightly image by digest, its checkpoint at its revision, from the cache its unit mounts
|
||||
(unit_dir / u).write_text(f"[Unit]\nExecStart=/bin/bash -c '/usr/bin/docker run -v {hf}:/root/.cache/huggingface "
|
||||
f"vllm/vllm-openai@sha256:{'f' * 64} org/lfm3 --revision {'a' * 40}'\n")
|
||||
elif vllm == "inkling":
|
||||
# SGLang's own image for it by digest (another than the 27B's), its checkpoint at its revision (its unit's
|
||||
# shape: the draft head is in the checkpoint)
|
||||
(unit_dir / u).write_text(f"[Unit]\nExecStart=/bin/bash -c 'exec /usr/bin/docker run -v {hf}:/root/.cache/huggingface "
|
||||
f"lmsysorg/sglang@sha256:{'9' * 64} python3 -m sglang.launch_server "
|
||||
f"--model-path org/inkling --revision {'a' * 40}'\n")
|
||||
else:
|
||||
(unit_dir / u).write_text(f"[Unit]\nExecStart=/usr/bin/docker run qwen38-{vllm}:test\n"
|
||||
if vllm == "kolibri" else "[Unit]\n")
|
||||
# a Nemotron lane's own first Load fetched its checkpoint into that cache
|
||||
for lane in set(prepared) & {"nemotron", "nemotron-super", "flash-local", "ornith-122b", "flash-unsloth", "transcribe",
|
||||
"lfm25", "lfm3"}:
|
||||
"lfm25", "lfm3", "inkling"}:
|
||||
(hf / "hub" / f"models--org--{lane}").mkdir(parents=True)
|
||||
# a prepared lane: its runtime is on the box (the venv and its wheel's note; a vLLM lane's image)
|
||||
for lane in prepared:
|
||||
@@ -1016,7 +1055,7 @@ class TheOtherLanesAndTheirProofs(unittest.TestCase):
|
||||
("install-nemotron-super.sh", super_rc), ("install-flash-local.sh", flocal_rc),
|
||||
("install-ornith-122b.sh", ornith_rc), ("install-flash-unsloth.sh", unsloth_rc),
|
||||
("install-image-h3.sh", h3_rc), ("install-transcribe.sh", tr_rc), ("install-lfm25.sh", lfm25_rc),
|
||||
("install-lfm3.sh", lfm3_rc)):
|
||||
("install-lfm3.sh", lfm3_rc), ("install-inkling.sh", inkling_rc)):
|
||||
# a lane in waits: its --units-only leaves its new unit waiting for its Load (lanes.sh's unit_put)
|
||||
lane = name[len("install-"):-len(".sh")]
|
||||
wait = (f'case "$*" in *--units-only*) mkdir -p "{t}/pending"; echo new > "{t}/pending/qwen38-{lane}.service"; '
|
||||
@@ -1036,6 +1075,7 @@ class TheOtherLanesAndTheirProofs(unittest.TestCase):
|
||||
for v in ("kolibri", "nemotron"))
|
||||
+ f"*org/b12x@sha256:*) exit {0 if {'flash-local', 'ornith-122b'} & set(prepared) else 1} ;; "
|
||||
+ f"*llama.cpp@sha256:*) exit {0 if {'flash-unsloth', 'transcribe'} & set(prepared) else 1} ;; "
|
||||
+ f"*lmsysorg/sglang@sha256:{'9' * 64}*) exit {0 if 'inkling' in prepared else 1} ;; "
|
||||
+ f"*lmsysorg/sglang@sha256:*) exit {0 if 'lfm25' in prepared else 1} ;; "
|
||||
+ f"*vllm/vllm-openai@sha256:*) exit {0 if 'lfm3' in prepared else 1} ;; " + "esac\nexit 1")
|
||||
block = self.BLOCK.replace("/etc/systemd/system/", f"{unit_dir}/")
|
||||
@@ -1059,6 +1099,7 @@ class TheOtherLanesAndTheirProofs(unittest.TestCase):
|
||||
f'TRANSCRIBE_UNIT_PATH="{unit_dir}/qwen38-transcribe.service"\n'
|
||||
f'LFM25_UNIT_PATH="{unit_dir}/qwen38-lfm25.service"\n'
|
||||
f'LFM3_UNIT_PATH="{unit_dir}/qwen38-lfm3.service"\n'
|
||||
f'INKLING_UNIT_PATH="{unit_dir}/qwen38-inkling.service"\n'
|
||||
'KEEPALIVE_UNIT=qwen38-keepalive.service; PORT=30000; PROXY_PORT=30001; CONTEXT_MODE=1m; OPENCODE=1; KA_CHANGED=0\n'
|
||||
f"WANT_IMAGE={want_image}; WANT_VIDEO={want_video}; WITH_IMAGE={with_image}; WITH_VIDEO={with_video}\n"
|
||||
f"WITH_FLASH={with_flash}; WITH_27B=0; WANT_KOLIBRI={want_kolibri}; WITH_KOLIBRI={with_kolibri}\n"
|
||||
@@ -1071,13 +1112,15 @@ class TheOtherLanesAndTheirProofs(unittest.TestCase):
|
||||
f"WANT_TRANSCRIBE={want_tr}; WITH_TRANSCRIBE={with_tr}\n"
|
||||
f"WANT_LFM25={want_lfm25}; WITH_LFM25={with_lfm25}\n"
|
||||
f"WANT_LFM3={want_lfm3}; WITH_LFM3={with_lfm3}\n"
|
||||
f"WANT_INKLING={want_inkling}; WITH_INKLING={with_inkling}\n"
|
||||
# the speech lane (v1.58.0) is no GPU lane and has its own tests (test_install_speech_default.py):
|
||||
# left out here, so these runs stay the GPU lanes' alone
|
||||
"WANT_SPEECH=0; WITH_SPEECH=0\n"
|
||||
f"SECOND_LANE=flash; SECOND_UNIT=qwen38-flash.service; SECOND_STATE={second_state}; SECOND_FRESH={second_fresh}; SECOND_NEW={second_fresh if second_new is None else second_new}\n"
|
||||
+ block + '\necho "STATES second=$SECOND_STATE image=$IMAGE_STATE video=$VIDEO_STATE kolibri=$KOLIBRI_STATE'
|
||||
' nemotron=$NEMOTRON_STATE super=$NEMOTRON_SUPER_STATE flocal=$FLASH_LOCAL_STATE ornith=$ORNITH_122B_STATE'
|
||||
' unsloth=$FLASH_UNSLOTH_STATE h3=$IMAGE_H3_STATE tr=$TRANSCRIBE_STATE lfm25=$LFM25_STATE lfm3=$LFM3_STATE"\n')
|
||||
' unsloth=$FLASH_UNSLOTH_STATE h3=$IMAGE_H3_STATE tr=$TRANSCRIBE_STATE lfm25=$LFM25_STATE lfm3=$LFM3_STATE'
|
||||
' inkling=$INKLING_STATE"\n')
|
||||
r = subprocess.run(["bash", "-c", script], capture_output=True, text=True, timeout=30,
|
||||
env={"PATH": f"{bin_}:/usr/bin:/bin"})
|
||||
return r.returncode, r.stdout + r.stderr, log.read_text().splitlines()
|
||||
@@ -1415,6 +1458,42 @@ class TheOtherLanesAndTheirProofs(unittest.TestCase):
|
||||
self.assertNotIn("install-lfm3.sh ", calls) # nothing to prove
|
||||
self.assertIn("lfm3=failed", out)
|
||||
|
||||
def test_the_inkling_lane_comes_as_its_units_on_a_new_box_and_whole_with_all_weights(self):
|
||||
# on demand, as every side lane: its unit on a new box, its first Load pulls its image and its switch fetches its
|
||||
# checkpoint
|
||||
rc, out, calls = self.end(want_lfm3=1, want_inkling=1)
|
||||
self.assertEqual(rc, 0, out)
|
||||
self.assertEqual(calls[5:7], ["install-lfm3.sh --units-only", "install-inkling.sh --units-only"])
|
||||
self.assertIn("inkling=units", out)
|
||||
rc, out, calls = self.end(want_lfm3=1, want_inkling=1, all_weights=1)
|
||||
self.assertEqual(rc, 0, out)
|
||||
self.assertIn("install-inkling.sh --no-smoke", calls)
|
||||
self.assertLess(calls.index("install-lfm3.sh "), calls.index("install-inkling.sh ")) # its proof, last
|
||||
self.assertLess(calls.index("install-inkling.sh "), calls.index("prove qwen38-sglang.service qwen3.8-27b"))
|
||||
self.assertIn("inkling=proved", out)
|
||||
rc, out, calls = self.end(want_inkling=0, all_weights=1)
|
||||
self.assertFalse([c for c in calls if c.startswith("install-inkling.sh")], calls)
|
||||
|
||||
def test_the_inkling_lane_is_begun_by_its_own_image_and_its_checkpoint(self):
|
||||
units = ("qwen38-inkling.service",)
|
||||
only = dict(second_fresh=0, want_image=0, want_video=0, want_kolibri=0, want_nemotron=0, want_super=0,
|
||||
want_inkling=1)
|
||||
rc, out, calls = self.end(units=units, prepared=("inkling",), **only)
|
||||
self.assertEqual(rc, 0, out)
|
||||
self.assertEqual(calls, ["install-inkling.sh --no-smoke"])
|
||||
self.assertIn("inkling=installed", out)
|
||||
# the 27B lane's image there is not its own: its units only, as on a new box
|
||||
rc, out, calls = self.end(units=units, prepared=("lfm25",), **only)
|
||||
self.assertEqual(rc, 0, out)
|
||||
self.assertEqual(calls, ["install-inkling.sh --units-only"])
|
||||
|
||||
def test_a_failed_inkling_install_is_said_and_the_rest_goes_on(self):
|
||||
rc, out, calls = self.end(want_inkling=1, inkling_rc=1, all_weights=1)
|
||||
self.assertEqual(rc, 0, out)
|
||||
self.assertIn("NOTE: the Inkling 2 Mini lane did not install", out)
|
||||
self.assertNotIn("install-inkling.sh ", calls) # nothing to prove
|
||||
self.assertIn("inkling=failed", out)
|
||||
|
||||
def test_a_failed_ornith_install_is_said_and_the_rest_goes_on(self):
|
||||
rc, out, calls = self.end(want_ornith=1, ornith_rc=1, all_weights=1)
|
||||
self.assertEqual(rc, 0, out)
|
||||
|
||||
@@ -22,7 +22,7 @@ INSTALL = REPO / "install.sh"
|
||||
def block() -> str:
|
||||
text = INSTALL.read_text()
|
||||
start = text.index("OC_27B=0; OC_FLASH=0; OC_KOLIBRI=0; OC_NEMOTRON=0; OC_NEMOTRON_SUPER=0; OC_FLASH_LOCAL=0; OC_ORNITH_122B=0; "
|
||||
"OC_FLASH_UNSLOTH=0; OC_LFM25=0; OC_LFM3=0\n")
|
||||
"OC_FLASH_UNSLOTH=0; OC_LFM25=0; OC_LFM3=0; OC_INKLING=0\n")
|
||||
end = text.index("\nPYEOF\n", start) + len("\nPYEOF\n")
|
||||
return text[start:end]
|
||||
|
||||
@@ -39,7 +39,7 @@ def generate(lane, mode, unit_ctx=None, flash_unit=False, model="RadixArk/Qwen3.
|
||||
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="", lfm25_unit=False, lfm25_boot=False, lfm3_unit=False, lfm3_boot=False,
|
||||
major="1", serve_major=None):
|
||||
inkling_unit=False, inkling_boot=False, major="1", serve_major=None):
|
||||
t = pathlib.Path(tempfile.mkdtemp(prefix="oc-art-"))
|
||||
kolibri = t / "qwen38-kolibri.service"
|
||||
if kolibri_unit:
|
||||
@@ -66,6 +66,9 @@ def generate(lane, mode, unit_ctx=None, flash_unit=False, model="RadixArk/Qwen3.
|
||||
lfm3 = t / "qwen38-lfm3.service"
|
||||
if lfm3_unit:
|
||||
lfm3.write_text("ExecStart=... LiquidAI/LFM3-1.7B-NVFP4 --revision cfe4b5ea ...\n")
|
||||
inkling = t / "qwen38-inkling.service"
|
||||
if inkling_unit:
|
||||
inkling.write_text("ExecStart=... --model-path thinkingmachines/Inkling-2-Mini --revision b85c3cfa ...\n")
|
||||
if flash_running:
|
||||
(t / "launch-flash.sh").write_text(
|
||||
"docker run img python3 -m sglang.launch_server --model-path RadixArk/Qwen3.8-Flash-Next-NVFP4 "
|
||||
@@ -88,6 +91,7 @@ def generate(lane, mode, unit_ctx=None, flash_unit=False, model="RadixArk/Qwen3.
|
||||
f'FLASH_UNSLOTH_UNIT_PATH="{unsloth}"; FLASH_UNSLOTH_BOOT={1 if unsloth_boot else 0}\n'
|
||||
f'LFM25_UNIT_PATH="{lfm25}"; LFM25_BOOT={1 if lfm25_boot else 0}\n'
|
||||
f'LFM3_UNIT_PATH="{lfm3}"; LFM3_BOOT={1 if lfm3_boot else 0}\n'
|
||||
f'INKLING_UNIT_PATH="{inkling}"; INKLING_BOOT={1 if inkling_boot else 0}\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 "")
|
||||
@@ -447,6 +451,38 @@ class ABoxBootingLfm3(unittest.TestCase):
|
||||
self.assertNotIn("lfm3", d["provider"])
|
||||
|
||||
|
||||
class ABoxBootingInkling(unittest.TestCase):
|
||||
"""The Inkling 2 Mini lane, its own provider (its own served model): serving at boot it is opencode's default, its
|
||||
compaction sized from its pair; installed beside another lane it is offered; with no unit, absent. Its template reads
|
||||
its levels by name: five variants, its default first; it takes images."""
|
||||
|
||||
def test_the_default_the_compaction_and_the_provider_are_its(self):
|
||||
d = generate("27b", "1m", unit_ctx=1010000, flash_unit=True, pair=("551000", "160000"),
|
||||
inkling_unit=True, inkling_boot=True, doc=True)
|
||||
self.assertEqual(d["model"], "inkling/inkling-2-mini")
|
||||
ctx, out, *_ = subprocess.run([str(REPO / "oc-limits.sh"), "inkling"], capture_output=True,
|
||||
text=True, check=True).stdout.split()
|
||||
keep = int(subprocess.run([str(REPO / "oc-limits.sh"), "--preserve", ctx], capture_output=True,
|
||||
text=True, check=True).stdout)
|
||||
self.assertEqual(d["compaction"]["preserve_recent_tokens"], keep)
|
||||
m = d["provider"]["inkling"]["models"]["inkling-2-mini"]
|
||||
self.assertEqual(m["limit"], {"context": 374000, "input": 374000, "output": 32000})
|
||||
self.assertEqual(m["name"], "Inkling 2 Mini + DSpark (local, 1M)")
|
||||
self.assertEqual(list(m["variants"]), ["high", "none", "low", "medium", "xhigh"])
|
||||
self.assertEqual(m["variants"]["none"], {"chat_template_kwargs": {"reasoning_effort": "none"}})
|
||||
self.assertEqual(m["modalities"], {"input": ["text", "image"], "output": ["text"]})
|
||||
self.assertEqual(d["provider"]["inkling"]["name"], "Inkling 2 Mini (DGX Spark)")
|
||||
|
||||
def test_installed_but_not_at_boot_it_is_offered_and_the_27b_keeps_its_own(self):
|
||||
d = generate("27b", "1m", unit_ctx=1010000, pair=("551000", "160000"), inkling_unit=True, doc=True)
|
||||
self.assertEqual(d["model"], "qwen38/qwen3.8-27b")
|
||||
self.assertIn("inkling", d["provider"])
|
||||
|
||||
def test_without_its_unit_there_is_no_inkling_provider(self):
|
||||
d = generate("27b", "1m", unit_ctx=1010000, pair=("551000", "160000"), lfm3_unit=True, doc=True)
|
||||
self.assertNotIn("inkling", d["provider"])
|
||||
|
||||
|
||||
class ABoxBootingFlashUnsloth(unittest.TestCase):
|
||||
"""The Qwen3.8 Flash-Next Unsloth GGUF lane (llama.cpp, v1.48), its own provider (its own served model): serving at
|
||||
boot it is opencode's default, its compaction sized from its window; installed beside another lane it is offered;
|
||||
@@ -558,7 +594,7 @@ class ABoxBootingFlashUnsloth(unittest.TestCase):
|
||||
"qwen38": {"models": {"qwen3.8-27b": {"name": "x"}}},
|
||||
"flash-unsloth": {"models": {"qwen3.8-flash-next-unsloth": {"name": "y"}}}}}, indent=2) + "\n")
|
||||
off = " ".join(f"{lane}_BOOT=0 OC_{lane}=0" for lane in ("KOLIBRI", "NEMOTRON", "NEMOTRON_SUPER", "FLASH_LOCAL", "ORNITH_122B",
|
||||
"LFM25", "LFM3"))
|
||||
"LFM25", "LFM3", "INKLING"))
|
||||
script = "\n".join(["set -euo pipefail", 'die(){ echo "DIE: $*"; exit 1; }', f'REPO_DIR="{REPO}"; CONFIG_DIR="{d}"',
|
||||
"LANE=27b MODEL_CHOICE=stock OC_WINDOW=1010000 " + off,
|
||||
"FLASH_UNSLOTH_BOOT=1 OC_FLASH_UNSLOTH=1 OC_FLASH_UNSLOTH_TARGET=flash-unsloth-iq3 "
|
||||
|
||||
@@ -82,7 +82,7 @@ CHOICE_LANE = {"kolibri": "qwen38-kolibri.service", "kolibri-nvfp4": "qwen38-kol
|
||||
"image": "qwen38-image.service",
|
||||
"image-turbo": "qwen38-image.service", "video": "qwen38-video.service",
|
||||
"image-h3": "qwen38-image-h3.service", "transcribe": "qwen38-transcribe.service",
|
||||
"lfm25": "qwen38-lfm25.service", "lfm3": "qwen38-lfm3.service"}
|
||||
"lfm25": "qwen38-lfm25.service", "lfm3": "qwen38-lfm3.service", "inkling": "qwen38-inkling.service"}
|
||||
|
||||
|
||||
# The two families one lane apart (the vLLM lanes less Kolibri are the b12x lanes) are told by the
|
||||
@@ -384,7 +384,7 @@ class EveryListNamesThemAll(unittest.TestCase):
|
||||
self.assertEqual(consts.setdefault(t.id, node.value.value), node.value.value, t.id)
|
||||
self.assertLessEqual({"IMAGE_UNIT", "VIDEO_UNIT", "KOLIBRI_UNIT", "NEMOTRON_UNIT", "NEMOTRON_SUPER_UNIT",
|
||||
"FLASH_LOCAL_UNIT", "ORNITH_UNIT", "FLASH_UNSLOTH_UNIT", "IMAGE_H3_UNIT", "TRANSCRIBE_UNIT",
|
||||
"LFM25_UNIT", "LFM3_UNIT"},
|
||||
"LFM25_UNIT", "LFM3_UNIT", "INKLING_UNIT"},
|
||||
set(consts), consts)
|
||||
|
||||
def unit_of(e):
|
||||
|
||||
@@ -24,11 +24,13 @@ class TheLanesItKnows(unittest.TestCase):
|
||||
self.assertEqual(sorted(specs), sorted(["stock", "uncensored", "fp8", "uncensored-fp8", "arete", "daisyrose", "flash", "flash-nvda",
|
||||
"flash-uncensored", "flash-local", "ornith-122b", "kolibri",
|
||||
"kolibri-nvfp4", "nemotron", "nemotron-super", "flash-unsloth",
|
||||
"flash-unsloth-iq3", "lfm25", "lfm3"]))
|
||||
"flash-unsloth-iq3", "lfm25", "lfm3", "inkling"]))
|
||||
# the Liquid AI LFM3 lane's, on vLLM's nightly: its checkpoint's own, as published
|
||||
self.assertIsNone(specs["lfm3"])
|
||||
# the Liquid AI LFM2.5 24B-A2B lane's, on SGLang under an installer of its own: its checkpoint's own, as published
|
||||
self.assertIsNone(specs["lfm25"])
|
||||
# the Inkling 2 Mini lane's, on SGLang under an installer of its own: its checkpoint's own, as published
|
||||
self.assertIsNone(specs["inkling"])
|
||||
# the Unsloth GGUF lane's: the template its GGUF's first part carries, patched with the Qwen fixes at lean, the
|
||||
# first part of each of its two targets (v1.49)
|
||||
self.assertEqual(specs["flash-unsloth"], {"LEAN_DEFAULT": "1", "gguf": "UD-Q4_K_XL/Qwen3.8-Flash-Next-UD-Q4_K_XL-00001-of-00004.gguf"})
|
||||
|
||||
@@ -32,6 +32,7 @@ LANES = {
|
||||
"qwen38-transcribe.service": ("qwen38-transcribe.service.template",),
|
||||
"qwen38-lfm25.service": ("qwen38-lfm25.service.template",),
|
||||
"qwen38-lfm3.service": ("qwen38-lfm3.service.template",),
|
||||
"qwen38-inkling.service": ("qwen38-inkling.service.template",),
|
||||
}
|
||||
ALL = set(LANES)
|
||||
|
||||
|
||||
@@ -774,12 +774,13 @@ class WhereItIsSwitchedOn(unittest.TestCase):
|
||||
def test_the_installed_proxy_names_every_text_lane(self):
|
||||
"""In a unit file, an unquoted value with a space is two assignments. Every lane
|
||||
that serves text behind this proxy is named: the 27B, the flash, Kolibri, the two Nemotron lanes, the
|
||||
Qwen3.8 Flash-Next FP4-Local lane, the Ornith lane, the Unsloth GGUF lane and Liquid AI's LFM2.5 24B-A2B and LFM3
|
||||
lanes."""
|
||||
Qwen3.8 Flash-Next FP4-Local lane, the Ornith lane, the Unsloth GGUF lane, Liquid AI's LFM2.5 24B-A2B and LFM3
|
||||
lanes and the Inkling 2 Mini lane."""
|
||||
tpl = (HERE.parents[1] / "qwen38-keepalive.service.template").read_text()
|
||||
self.assertIn(f'Environment="PROXY_HOLD_UNITS={UNITS} qwen38-kolibri.service qwen38-nemotron.service '
|
||||
f'qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service '
|
||||
f'qwen38-flash-unsloth.service qwen38-lfm25.service qwen38-lfm3.service"\n', tpl)
|
||||
f'qwen38-flash-unsloth.service qwen38-lfm25.service qwen38-lfm3.service '
|
||||
f'qwen38-inkling.service"\n', tpl)
|
||||
|
||||
def test_its_startup_line_says_what_it_holds(self):
|
||||
box = Box(self)
|
||||
|
||||
@@ -23,7 +23,7 @@ SIDE = {"install-image.sh": "image", "install-video.sh": "video", "install-kolib
|
||||
"install-nemotron-super.sh": "nemotron-super", "install-flash-local.sh": "flash-local",
|
||||
"install-ornith-122b.sh": "ornith-122b", "install-flash-unsloth.sh": "flash-unsloth",
|
||||
"install-image-h3.sh": "image-h3", "install-transcribe.sh": "transcribe", "install-lfm25.sh": "lfm25",
|
||||
"install-lfm3.sh": "lfm3"}
|
||||
"install-lfm3.sh": "lfm3", "install-inkling.sh": "inkling"}
|
||||
SOURCE = '. "$HERE/lanes.sh"\n'
|
||||
|
||||
|
||||
@@ -466,7 +466,7 @@ class TheRunSaysIt(unittest.TestCase):
|
||||
units = wall.units_dir({"qwen38-nemotron.service": "[Service]\n"})
|
||||
script = wall.walled("prepare-lane.sh", at=PREPARE_SIDE, units=units)
|
||||
for lane in ("image", "video", "kolibri", "nemotron-super", "flash-local", "ornith-122b", "flash-unsloth", "image-h3",
|
||||
"transcribe", "lfm25", "lfm3"):
|
||||
"transcribe", "lfm25", "lfm3", "inkling"):
|
||||
with self.subTest(lane):
|
||||
env, record = wall.fenced_env(QWEN38_MEMORY_CLASS="64")
|
||||
r = subprocess.run(["bash", script, lane], capture_output=True, text=True, timeout=60, env=env)
|
||||
|
||||
@@ -46,7 +46,7 @@ class Box:
|
||||
for unit in ("qwen38-sglang.service", "qwen38-flash.service", "qwen38-nemotron.service",
|
||||
"qwen38-nemotron-super.service", "qwen38-flash-local.service", "qwen38-ornith-122b.service",
|
||||
"qwen38-flash-unsloth.service", "qwen38-transcribe.service", "qwen38-lfm25.service",
|
||||
"qwen38-lfm3.service"):
|
||||
"qwen38-lfm3.service", "qwen38-inkling.service"):
|
||||
old = f'"/etc/systemd/system/{unit}"'
|
||||
assert old in text, f"switch-model.sh no longer names {unit} that way"
|
||||
text = text.replace(old, f'"{units}/{unit}"')
|
||||
@@ -56,7 +56,7 @@ class Box:
|
||||
for f in ("lanes.sh", "ckpt-fetch.py", "install-nemotron.sh", "install-nemotron-super.sh", "install-flash-local.sh",
|
||||
"install-ornith-122b.sh", "vllm-lane.sh", "ple-table.py", "install-flash-unsloth.sh", "llamacpp-lane.sh",
|
||||
"gguf-fetch.py", "install-transcribe.sh", "install-lfm25.sh", "sglang-lane.sh",
|
||||
"install-lfm3.sh"):
|
||||
"install-lfm3.sh", "install-inkling.sh"):
|
||||
(repo / f).write_text((REPO / f).read_text())
|
||||
# the Nemotron lane's unit, as install-nemotron.sh writes it: its image, its cache, the
|
||||
# checkpoint and the memory share on lines of their own
|
||||
@@ -152,6 +152,17 @@ class Box:
|
||||
f" -v {self.home}/.cache/huggingface:/root/.cache/huggingface \\\n"
|
||||
f" {self.lfm3_pins['LFM3_IMAGE']} \\\n"
|
||||
f" {self.lfm3_pins['LFM3_REPO']} --revision {self.lfm3_pins['LFM3_REV']} --port 30000'\n")
|
||||
# the Inkling 2 Mini lane's unit: its own SGLang image by digest, its cache, its checkpoint at its revision
|
||||
ipins = dict(line.split("=", 1) for line in (REPO / "install-inkling.sh").read_text().splitlines()
|
||||
if line.startswith("INKLING_") and "=" in line)
|
||||
self.inkling_pins = {k: v.strip('"') for k, v in ipins.items()}
|
||||
self.inkling_unit = units / "qwen38-inkling.service"
|
||||
self.inkling_unit.write_text(
|
||||
"[Service]\nExecStart=/bin/bash -c 'exec /usr/bin/docker run --rm --name qwen38-inkling \\\n"
|
||||
f" -v {self.home}/.cache/huggingface:/root/.cache/huggingface \\\n"
|
||||
f" {self.inkling_pins['INKLING_IMAGE']} \\\n"
|
||||
f" python3 -m sglang.launch_server --model-path {self.inkling_pins['INKLING_REPO']} "
|
||||
f"--revision {self.inkling_pins['INKLING_REV']} --port 30000'\n")
|
||||
(repo / "switch-model.sh").chmod(0o755)
|
||||
self.bin = self.t / "bin"
|
||||
self.bin.mkdir()
|
||||
@@ -353,6 +364,22 @@ class FetchOnly(unittest.TestCase):
|
||||
self.assertEqual(box.lfm3_unit.read_bytes(), unit_before)
|
||||
self.assertFalse([c for c in calls if re.search(r"\b(enable|disable|daemon-reload|restart|start|stop)\b", c)], calls)
|
||||
|
||||
def test_the_inkling_lane_fetches_in_its_own_image_and_stops(self):
|
||||
box = Box()
|
||||
unit_before = box.inkling_unit.read_bytes()
|
||||
rc, out, runs, calls = box.run("inkling", "--fetch")
|
||||
self.assertEqual(rc, 0, out)
|
||||
self.assertIn("is in the cache; nothing else was changed", out)
|
||||
pins = box.inkling_pins
|
||||
self.assertEqual(len(runs), 1, runs)
|
||||
self.assertIn(f"/opt/qwen38/ckpt-fetch.py {pins['INKLING_REPO']} {pins['INKLING_REV']} ", runs[0])
|
||||
# pinned as refs/main, as install-inkling.sh pins it: SGLang reads the draft head by the model's name offline
|
||||
self.assertIn(" --offline-first --refs-main pin ", runs[0])
|
||||
self.assertIn(f"--need-gb {pins['INKLING_GB']} ", runs[0])
|
||||
self.assertIn(f" {pins['INKLING_IMAGE']} ", runs[0], "in its own SGLang image, by digest")
|
||||
self.assertEqual(box.inkling_unit.read_bytes(), unit_before)
|
||||
self.assertFalse([c for c in calls if re.search(r"\b(enable|disable|daemon-reload|restart|start|stop)\b", c)], calls)
|
||||
|
||||
def test_without_it_the_switch_goes_on_past_the_download(self):
|
||||
rc, out, runs, _ = Box().run("stock")
|
||||
self.assertEqual(len(runs), 1, out)
|
||||
@@ -365,13 +392,14 @@ class FetchOnly(unittest.TestCase):
|
||||
self.assertEqual((runs, calls), ([], []))
|
||||
|
||||
def test_every_lane_stops_right_after_its_own_download(self):
|
||||
# the eleven fetch calls of the switch: the nine branches that fetch (Kolibri, Nemotron, Flash FP4-Local, Ornith,
|
||||
# image, video, the text lanes, Liquid AI's LFM2.5 24B-A2B and LFM3 lanes) and MiniMax-H3-Image's two (its checkpoint,
|
||||
# the twelve fetch calls of the switch: the ten branches that fetch (Kolibri, Nemotron, Flash FP4-Local, Ornith,
|
||||
# image, video, the text lanes, Liquid AI's LFM2.5 24B-A2B and LFM3 lanes, the Inkling 2 Mini lane) and
|
||||
# MiniMax-H3-Image's two (its checkpoint,
|
||||
# then its text encoder), that pair ending with ONE stop (v1.50); each call is followed at once by the --fetch
|
||||
# stop, before anything it writes; the Nemotron lane's loop over its model and its drafter ends first, with
|
||||
# nothing else in it, and so does the LFM2.5 lane's over its checkpoint and its draft
|
||||
calls = [m.start() for m in re.finditer(r"ckpt-fetch\.py\"? \"\$", SWITCH)]
|
||||
self.assertEqual(len(calls), 11)
|
||||
self.assertEqual(len(calls), 12)
|
||||
for at in calls:
|
||||
rest = SWITCH[at:]
|
||||
die = rest.index("|| die ")
|
||||
|
||||
@@ -632,19 +632,19 @@ class TheBootLaneConvergence(unittest.TestCase):
|
||||
self.assertIn("systemctl is-enabled --quiet qwen38-video.service", self.text)
|
||||
|
||||
def test_the_text_unit_is_not_enabled_on_that_path(self):
|
||||
i = self.text.index('if [ -z "$ATS_CANNOT" ] && [ "$IMAGE_BOOT" -eq 0 ] && [ "$VIDEO_BOOT" -eq 0 ] && [ "$KOLIBRI_BOOT" -eq 0 ] && [ "$NEMOTRON_BOOT" -eq 0 ] && [ "$NEMOTRON_SUPER_BOOT" -eq 0 ] && [ "$FLASH_LOCAL_BOOT" -eq 0 ] && [ "$ORNITH_122B_BOOT" -eq 0 ] && [ "$FLASH_UNSLOTH_BOOT" -eq 0 ] && [ "$IMAGE_H3_BOOT" -eq 0 ] && [ "$TRANSCRIBE_BOOT" -eq 0 ] && [ "$LFM25_BOOT" -eq 0 ] && [ "$LFM3_BOOT" -eq 0 ]; then')
|
||||
i = self.text.index('if [ -z "$ATS_CANNOT" ] && [ "$IMAGE_BOOT" -eq 0 ] && [ "$VIDEO_BOOT" -eq 0 ] && [ "$KOLIBRI_BOOT" -eq 0 ] && [ "$NEMOTRON_BOOT" -eq 0 ] && [ "$NEMOTRON_SUPER_BOOT" -eq 0 ] && [ "$FLASH_LOCAL_BOOT" -eq 0 ] && [ "$ORNITH_122B_BOOT" -eq 0 ] && [ "$FLASH_UNSLOTH_BOOT" -eq 0 ] && [ "$IMAGE_H3_BOOT" -eq 0 ] && [ "$TRANSCRIBE_BOOT" -eq 0 ] && [ "$LFM25_BOOT" -eq 0 ] && [ "$LFM3_BOOT" -eq 0 ] && [ "$INKLING_BOOT" -eq 0 ]; then')
|
||||
# the condition's line and the one after it, however many lanes the condition names
|
||||
self.assertIn('sudo systemctl enable "$UNIT_NAME"', self.text[i:self.text.index("\n", self.text.index("\n", i) + 1)])
|
||||
self.assertEqual(self.text.count('sudo systemctl enable "$UNIT_NAME"'), 1)
|
||||
|
||||
def test_that_path_updates_without_starting_anything(self):
|
||||
i = self.text.index('if [ -z "$ATS_CANNOT" ] && [ "$IMAGE_BOOT" -eq 0 ] && [ "$VIDEO_BOOT" -eq 0 ] && [ "$KOLIBRI_BOOT" -eq 0 ] && [ "$NEMOTRON_BOOT" -eq 0 ] && [ "$NEMOTRON_SUPER_BOOT" -eq 0 ] && [ "$FLASH_LOCAL_BOOT" -eq 0 ] && [ "$ORNITH_122B_BOOT" -eq 0 ] && [ "$FLASH_UNSLOTH_BOOT" -eq 0 ] && [ "$IMAGE_H3_BOOT" -eq 0 ] && [ "$TRANSCRIBE_BOOT" -eq 0 ] && [ "$LFM25_BOOT" -eq 0 ] && [ "$LFM3_BOOT" -eq 0 ]; then')
|
||||
i = self.text.index('if [ -z "$ATS_CANNOT" ] && [ "$IMAGE_BOOT" -eq 0 ] && [ "$VIDEO_BOOT" -eq 0 ] && [ "$KOLIBRI_BOOT" -eq 0 ] && [ "$NEMOTRON_BOOT" -eq 0 ] && [ "$NEMOTRON_SUPER_BOOT" -eq 0 ] && [ "$FLASH_LOCAL_BOOT" -eq 0 ] && [ "$ORNITH_122B_BOOT" -eq 0 ] && [ "$FLASH_UNSLOTH_BOOT" -eq 0 ] && [ "$IMAGE_H3_BOOT" -eq 0 ] && [ "$TRANSCRIBE_BOOT" -eq 0 ] && [ "$LFM25_BOOT" -eq 0 ] && [ "$LFM3_BOOT" -eq 0 ] && [ "$INKLING_BOOT" -eq 0 ]; then')
|
||||
early = self.text[i:self.text.index("exit 0", i)]
|
||||
self.assertNotIn("systemctl start", early)
|
||||
self.assertIn("--no-smoke", early)
|
||||
|
||||
def test_that_path_respects_a_left_out_video_lane(self):
|
||||
i = self.text.index('if [ -z "$ATS_CANNOT" ] && [ "$IMAGE_BOOT" -eq 0 ] && [ "$VIDEO_BOOT" -eq 0 ] && [ "$KOLIBRI_BOOT" -eq 0 ] && [ "$NEMOTRON_BOOT" -eq 0 ] && [ "$NEMOTRON_SUPER_BOOT" -eq 0 ] && [ "$FLASH_LOCAL_BOOT" -eq 0 ] && [ "$ORNITH_122B_BOOT" -eq 0 ] && [ "$FLASH_UNSLOTH_BOOT" -eq 0 ] && [ "$IMAGE_H3_BOOT" -eq 0 ] && [ "$TRANSCRIBE_BOOT" -eq 0 ] && [ "$LFM25_BOOT" -eq 0 ] && [ "$LFM3_BOOT" -eq 0 ]; then')
|
||||
i = self.text.index('if [ -z "$ATS_CANNOT" ] && [ "$IMAGE_BOOT" -eq 0 ] && [ "$VIDEO_BOOT" -eq 0 ] && [ "$KOLIBRI_BOOT" -eq 0 ] && [ "$NEMOTRON_BOOT" -eq 0 ] && [ "$NEMOTRON_SUPER_BOOT" -eq 0 ] && [ "$FLASH_LOCAL_BOOT" -eq 0 ] && [ "$ORNITH_122B_BOOT" -eq 0 ] && [ "$FLASH_UNSLOTH_BOOT" -eq 0 ] && [ "$IMAGE_H3_BOOT" -eq 0 ] && [ "$TRANSCRIBE_BOOT" -eq 0 ] && [ "$LFM25_BOOT" -eq 0 ] && [ "$LFM3_BOOT" -eq 0 ] && [ "$INKLING_BOOT" -eq 0 ]; then')
|
||||
early = self.text[i:self.text.index("exit 0", i)]
|
||||
call = early.index('side_install video "$(side_mode video')
|
||||
self.assertIn('if [ "$WANT_VIDEO" -eq 1 ]', early[:call])
|
||||
|
||||
+9
-9
@@ -26,7 +26,7 @@ NVIDIA_SMI=/usr/bin/nvidia-smi
|
||||
# installed with HF_CACHE=/data/hf had 22 to 126 GB of weights and the 48 GB PLE file
|
||||
# neither listed nor given a reclaim command (found in review, 2026-09-24).
|
||||
unit_mount(){ # $1 = the container path; prints the host side of every -v mounting it
|
||||
grep -hoE -- "-v [^ :]+:$1( |\$|:)" "$SYSTEMD_DIR/qwen38-sglang.service" "$CONFIG_DIR/launch-flash.sh" "$SYSTEMD_DIR/qwen38-kolibri.service" "$SYSTEMD_DIR/qwen38-nemotron.service" "$SYSTEMD_DIR/qwen38-nemotron-super.service" "$SYSTEMD_DIR/qwen38-flash-local.service" "$SYSTEMD_DIR/qwen38-ornith-122b.service" "$SYSTEMD_DIR/qwen38-flash-unsloth.service" "$SYSTEMD_DIR/qwen38-transcribe.service" "$SYSTEMD_DIR/qwen38-lfm25.service" "$SYSTEMD_DIR/qwen38-lfm3.service" 2>/dev/null \
|
||||
grep -hoE -- "-v [^ :]+:$1( |\$|:)" "$SYSTEMD_DIR/qwen38-sglang.service" "$CONFIG_DIR/launch-flash.sh" "$SYSTEMD_DIR/qwen38-kolibri.service" "$SYSTEMD_DIR/qwen38-nemotron.service" "$SYSTEMD_DIR/qwen38-nemotron-super.service" "$SYSTEMD_DIR/qwen38-flash-local.service" "$SYSTEMD_DIR/qwen38-ornith-122b.service" "$SYSTEMD_DIR/qwen38-flash-unsloth.service" "$SYSTEMD_DIR/qwen38-transcribe.service" "$SYSTEMD_DIR/qwen38-lfm25.service" "$SYSTEMD_DIR/qwen38-lfm3.service" "$SYSTEMD_DIR/qwen38-inkling.service" 2>/dev/null \
|
||||
| sed -e 's/^-v //' -e "s|:$1.*\$||" | tr -s / || true
|
||||
}
|
||||
# Each list one slash at a time before it keeps each once: what a unit wrote from a home with a trailing
|
||||
@@ -80,8 +80,8 @@ docker_session bash "$REPO_DIR/${BASH_SOURCE[0]##*/}" "$@"
|
||||
# v1.2.2, v1.4, v1.5, ...), plus the pinned base images, matched by tag AND by
|
||||
# digest: a digest pull leaves no tag behind.
|
||||
LOCAL_IMAGE_REPOS="qwen38-dflash2 qwen38-flash qwen38-pinned qwen38-kolibri qwen38-nemotron" # qwen38-dflash2 is the pre-v1.14 27B overlay, retired but still deletable; qwen38-pinned (v1.18.6) tags the digest pulls; qwen38-kolibri is the Kolibri lane's vLLM image with Aleph Alpha's plugin (install-kolibri.sh); qwen38-nemotron is the Nemotron lane's vLLM nightly with b12x (install-nemotron.sh)
|
||||
BASE_IMAGES="lmsysorg/sglang:v0.5.22 lmsysorg/sglang@sha256:e3a4f06001a29542fc4a8638536d9ffc5eb9c9942b08603c09b19a56eae4a1ae lmsysorg/sglang:v0.5.21 lmsysorg/sglang@sha256:b1259f3ea3275f66237c498ea388919729018bc9f01c3d638391e06e2cf3f469 lmsysorg/sglang:v0.5.19 lmsysorg/sglang@sha256:d6e7288627be8b02be88e4bba38e73f6d50e2826869f753c13a4c4385ab3eda9 lmsysorg/sglang:qwen38-27b lmsysorg/sglang@sha256:febfb971c7352570fc445c466ebd6ffc9d896024958e544a60f2137fd85856b1 lmsysorg/sglang:qwen38flashnext lmsysorg/sglang@sha256:12d3392bdc8be8d35e9a95f191df6aef99c5114bdbefd41bfdc7e760e6d25ec1 lmsysorg/sglang@sha256:9d2a843c706c74bc259c0d9abf360551eb2734e1e7d255ab012a6965f10480b6 lmsysorg/sglang@sha256:cb6ed363800a5bea98ac90b4c6447e9ba66cef7db881ac1f108046b6622d22b8 lmsysorg/sglang@sha256:3e79541d1e2a6818979c4aa9ca1fa63d6961d7bc50120867953ea6baaf1d8f62 lmsysorg/sglang@sha256:616a3e97f45191af975896cfa644279096cb31bd408a071c2e99ca7209c3cafe vllm/vllm-openai:qwen38-flash-next vllm/vllm-openai@sha256:fc120ece0a388cc0aa1caad4a9f1cd92113484ab7ec2fd0efadd62585be05bf8 vllm/vllm-openai@sha256:18372a7224938643461b846fb64c5c9d3d6e9727e82caf2dc3043e620c9d4d7a vllm/vllm-openai@sha256:1ee85ca80e0fc110017d79ea2081a0cbef9a208a05d7f22724801bcf6a956620 eugr/spark-vllm-b12x@sha256:03a956544e9f9b4b7ba91690469fbe7848bdbef29a7d2e0f5788368467bb3595 vllm/vllm-openai@sha256:19cfbac06cfed28a2eb2c08950e62b4b07fd6e20685ad6e10f9422236d39e519 ghcr.io/ggml-org/llama.cpp@sha256:a5600a59c704208491adbb96505454a8d3d4cd3a9db48b03cf2760b660b7fd16"
|
||||
HF_REPOS="RadixArk/Qwen3.8-27B-NVFP4 edp1096/Huihui-RadixArk-Qwen3.8-27B-abliterated-NVFP4 Qwen/Qwen3.8-27B-FP8 edp1096/Huihui-Qwen3.8-27B-abliterated-FP8 atakans/Arete-27B-NVFP4 RadixArk/DaisyRose-27B-NVFP4 RadixArk/Qwen3.8-27B-DSpark z-lab/Qwen3.8-27B-DFlash2 maurienne-ai/Qwen3.8-27B-DFlash2-NVFP4-RTNcal RadixArk/Qwen3.8-Flash-Next-NVFP4 nvidia/Qwen3.8-Flash-Next-NVFP4 dealignai/Qwen3.8-Flash-Next-ABLITERATED-NVFP4 Qwen/Qwen-Image-2.1 Qwen/Qwen-Image-2.1-Turbo MiniMaxAI/MiniMax-H3 larryvrh/MiniMax-H3-Turbo-Lora Aleph-Alpha/Kolibri-1 Quantinine/Kolibri-1-NVFP4A16-FP8 nvidia/NVIDIA-Nemotron-3.5-Bolt-74B-A9B-24GB nvidia/NVIDIA-Nemotron-3.5-Bolt-74B-A9B-24GB-LiLiCorr nvidia/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-NVFP4 nvidia/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-NVFP4-LiLiCorr nvidia/Qwen3.8-Flash-Next-FP4-Local ornith-ai/Ornith-1.5-122B-NVFP4 unsloth/Qwen3.8-Flash-Next-GGUF ggml-org/Qwen3.8-Flash-Next-GGUF MiniMaxAI/MiniMax-H3-Image mradermacher/NVIDIA-Nemotron-3.5-Transcribe-30B-A4B-GGUF LiquidAI/LFM2.5-24B-A2B-FP8 LiquidAI/LFM2.5-24B-A2B-DSpark LiquidAI/LFM3-1.7B-NVFP4"
|
||||
BASE_IMAGES="lmsysorg/sglang:v0.5.22 lmsysorg/sglang@sha256:e3a4f06001a29542fc4a8638536d9ffc5eb9c9942b08603c09b19a56eae4a1ae lmsysorg/sglang:v0.5.21 lmsysorg/sglang@sha256:b1259f3ea3275f66237c498ea388919729018bc9f01c3d638391e06e2cf3f469 lmsysorg/sglang:v0.5.19 lmsysorg/sglang@sha256:d6e7288627be8b02be88e4bba38e73f6d50e2826869f753c13a4c4385ab3eda9 lmsysorg/sglang:qwen38-27b lmsysorg/sglang@sha256:febfb971c7352570fc445c466ebd6ffc9d896024958e544a60f2137fd85856b1 lmsysorg/sglang:qwen38flashnext lmsysorg/sglang@sha256:12d3392bdc8be8d35e9a95f191df6aef99c5114bdbefd41bfdc7e760e6d25ec1 lmsysorg/sglang@sha256:9d2a843c706c74bc259c0d9abf360551eb2734e1e7d255ab012a6965f10480b6 lmsysorg/sglang@sha256:cb6ed363800a5bea98ac90b4c6447e9ba66cef7db881ac1f108046b6622d22b8 lmsysorg/sglang@sha256:3e79541d1e2a6818979c4aa9ca1fa63d6961d7bc50120867953ea6baaf1d8f62 lmsysorg/sglang@sha256:616a3e97f45191af975896cfa644279096cb31bd408a071c2e99ca7209c3cafe vllm/vllm-openai:qwen38-flash-next vllm/vllm-openai@sha256:fc120ece0a388cc0aa1caad4a9f1cd92113484ab7ec2fd0efadd62585be05bf8 vllm/vllm-openai@sha256:18372a7224938643461b846fb64c5c9d3d6e9727e82caf2dc3043e620c9d4d7a vllm/vllm-openai@sha256:1ee85ca80e0fc110017d79ea2081a0cbef9a208a05d7f22724801bcf6a956620 eugr/spark-vllm-b12x@sha256:03a956544e9f9b4b7ba91690469fbe7848bdbef29a7d2e0f5788368467bb3595 vllm/vllm-openai@sha256:19cfbac06cfed28a2eb2c08950e62b4b07fd6e20685ad6e10f9422236d39e519 ghcr.io/ggml-org/llama.cpp@sha256:a5600a59c704208491adbb96505454a8d3d4cd3a9db48b03cf2760b660b7fd16 lmsysorg/sglang@sha256:bc811ac7ac68c6fca116a49750baca817b8613a30abface8a347682b55d132e3"
|
||||
HF_REPOS="RadixArk/Qwen3.8-27B-NVFP4 edp1096/Huihui-RadixArk-Qwen3.8-27B-abliterated-NVFP4 Qwen/Qwen3.8-27B-FP8 edp1096/Huihui-Qwen3.8-27B-abliterated-FP8 atakans/Arete-27B-NVFP4 RadixArk/DaisyRose-27B-NVFP4 RadixArk/Qwen3.8-27B-DSpark z-lab/Qwen3.8-27B-DFlash2 maurienne-ai/Qwen3.8-27B-DFlash2-NVFP4-RTNcal RadixArk/Qwen3.8-Flash-Next-NVFP4 nvidia/Qwen3.8-Flash-Next-NVFP4 dealignai/Qwen3.8-Flash-Next-ABLITERATED-NVFP4 Qwen/Qwen-Image-2.1 Qwen/Qwen-Image-2.1-Turbo MiniMaxAI/MiniMax-H3 larryvrh/MiniMax-H3-Turbo-Lora Aleph-Alpha/Kolibri-1 Quantinine/Kolibri-1-NVFP4A16-FP8 nvidia/NVIDIA-Nemotron-3.5-Bolt-74B-A9B-24GB nvidia/NVIDIA-Nemotron-3.5-Bolt-74B-A9B-24GB-LiLiCorr nvidia/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-NVFP4 nvidia/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-NVFP4-LiLiCorr nvidia/Qwen3.8-Flash-Next-FP4-Local ornith-ai/Ornith-1.5-122B-NVFP4 unsloth/Qwen3.8-Flash-Next-GGUF ggml-org/Qwen3.8-Flash-Next-GGUF MiniMaxAI/MiniMax-H3-Image mradermacher/NVIDIA-Nemotron-3.5-Transcribe-30B-A4B-GGUF LiquidAI/LFM2.5-24B-A2B-FP8 LiquidAI/LFM2.5-24B-A2B-DSpark LiquidAI/LFM3-1.7B-NVFP4 thinkingmachines/Inkling-2-Mini"
|
||||
|
||||
|
||||
FOUND_IMAGES=() # "ref|size|every ref", deduplicated by image ID (a tag and its digest are one image)
|
||||
@@ -126,7 +126,7 @@ rm_cmd() {
|
||||
}
|
||||
|
||||
echo "── Inventory (everything any version of this repo may have left here) ──"
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-keepalive.service qwen38-dashboard.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-speech.service opencode-web.service; do
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-keepalive.service qwen38-dashboard.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service qwen38-speech.service opencode-web.service; do
|
||||
if [ -f "$SYSTEMD_DIR/$u" ]; then
|
||||
STATE="$(systemctl is-enabled "$u" 2>/dev/null || true)/$(systemctl is-active "$u" 2>/dev/null || true)"
|
||||
echo " unit $SYSTEMD_DIR/$u ($STATE)"
|
||||
@@ -177,7 +177,7 @@ if [ -d "$CONFIG_DIR" ]; then
|
||||
fi
|
||||
[ -f "$CONFIG_DIR/opencode.off" ] && echo " marker $CONFIG_DIR/opencode.off (opencode integration disabled with --no-opencode)"
|
||||
[ -f "$CONFIG_DIR/cockpit.off" ] && echo " marker $CONFIG_DIR/cockpit.off (cockpit disabled with --no-cockpit)"
|
||||
for _lane in image video flash 27b kolibri nemotron nemotron-super flash-local ornith-122b flash-unsloth image-h3 transcribe lfm25 lfm3; do
|
||||
for _lane in image video flash 27b kolibri nemotron nemotron-super flash-local ornith-122b flash-unsloth image-h3 transcribe lfm25 lfm3 inkling; do
|
||||
[ -f "$CONFIG_DIR/$_lane.off" ] && echo " marker $CONFIG_DIR/$_lane.off ($_lane lane left out with --no-$_lane)"
|
||||
done
|
||||
# named from CONFIG_DIR alone, as every line of this block (GPU_CAP_FILE above is the same file)
|
||||
@@ -241,7 +241,7 @@ PRIV=0
|
||||
for f in "$SYSTEMD_DIR/qwen38-sglang.service" "$SYSTEMD_DIR/qwen38-flash.service" \
|
||||
"$SYSTEMD_DIR/qwen38-keepalive.service" "$SYSTEMD_DIR/qwen38-dashboard.service" \
|
||||
"$SYSTEMD_DIR/qwen38-image.service" "$SYSTEMD_DIR/qwen38-video.service" "$SYSTEMD_DIR/qwen38-kolibri.service" \
|
||||
"$SYSTEMD_DIR/qwen38-nemotron.service" "$SYSTEMD_DIR/qwen38-nemotron-super.service" "$SYSTEMD_DIR/qwen38-flash-local.service" "$SYSTEMD_DIR/qwen38-ornith-122b.service" "$SYSTEMD_DIR/qwen38-flash-unsloth.service" "$SYSTEMD_DIR/qwen38-image-h3.service" "$SYSTEMD_DIR/qwen38-transcribe.service" "$SYSTEMD_DIR/qwen38-lfm25.service" "$SYSTEMD_DIR/qwen38-lfm3.service" "$SYSTEMD_DIR/qwen38-speech.service" "$SYSTEMD_DIR/opencode-web.service" \
|
||||
"$SYSTEMD_DIR/qwen38-nemotron.service" "$SYSTEMD_DIR/qwen38-nemotron-super.service" "$SYSTEMD_DIR/qwen38-flash-local.service" "$SYSTEMD_DIR/qwen38-ornith-122b.service" "$SYSTEMD_DIR/qwen38-flash-unsloth.service" "$SYSTEMD_DIR/qwen38-image-h3.service" "$SYSTEMD_DIR/qwen38-transcribe.service" "$SYSTEMD_DIR/qwen38-lfm25.service" "$SYSTEMD_DIR/qwen38-lfm3.service" "$SYSTEMD_DIR/qwen38-inkling.service" "$SYSTEMD_DIR/qwen38-speech.service" "$SYSTEMD_DIR/opencode-web.service" \
|
||||
"$SYSTEMD_DIR/qwen38-sglang.service.d" "$SYSTEMD_DIR/qwen38-dashboard.service.d" \
|
||||
"$SYSTEMD_DIR/qwen38-keepalive.service.d" "$SUDOERS_FILE" "$PYSPY_WRAPPER" "$GPU_CAP_FILE"; do
|
||||
[ -e "$f" ] && PRIV=1
|
||||
@@ -254,10 +254,10 @@ done
|
||||
PRIV_DONE=0
|
||||
if [ "$PRIV" -eq 1 ]; then
|
||||
if sudo -v; then
|
||||
for u in qwen38-sglang qwen38-flash qwen38-keepalive qwen38-dashboard qwen38-image qwen38-video qwen38-kolibri qwen38-nemotron qwen38-nemotron-super qwen38-flash-local qwen38-ornith-122b qwen38-flash-unsloth qwen38-image-h3 qwen38-transcribe qwen38-lfm25 qwen38-lfm3 qwen38-speech opencode-web; do
|
||||
for u in qwen38-sglang qwen38-flash qwen38-keepalive qwen38-dashboard qwen38-image qwen38-video qwen38-kolibri qwen38-nemotron qwen38-nemotron-super qwen38-flash-local qwen38-ornith-122b qwen38-flash-unsloth qwen38-image-h3 qwen38-transcribe qwen38-lfm25 qwen38-lfm3 qwen38-inkling qwen38-speech opencode-web; do
|
||||
sudo systemctl disable --now "$u.service" 2>/dev/null || true
|
||||
done
|
||||
docker rm -f qwen38-sglang qwen38-sglang-run qwen38-flash qwen38-kolibri qwen38-nemotron qwen38-nemotron-super qwen38-flash-local qwen38-ornith-122b qwen38-flash-unsloth qwen38-transcribe qwen38-lfm25 qwen38-lfm3 2>/dev/null || true
|
||||
docker rm -f qwen38-sglang qwen38-sglang-run qwen38-flash qwen38-kolibri qwen38-nemotron qwen38-nemotron-super qwen38-flash-local qwen38-ornith-122b qwen38-flash-unsloth qwen38-transcribe qwen38-lfm25 qwen38-lfm3 qwen38-inkling 2>/dev/null || true
|
||||
# The GPU clock cap the cockpit set, lifted now that the cockpit is stopped (it can no longer set it
|
||||
# again) and before its sudoers lines go: left, it held until the next reboot with nothing to say it.
|
||||
# Only a cap the cockpit keeps: one set by hand outside it is the operator's.
|
||||
@@ -269,7 +269,7 @@ if [ "$PRIV" -eq 1 ]; then
|
||||
fi
|
||||
rm -f "$GPU_CAP_FILE"
|
||||
fi
|
||||
sudo rm -f "$SYSTEMD_DIR/qwen38-sglang.service" "$SYSTEMD_DIR/qwen38-flash.service" "$SYSTEMD_DIR/qwen38-keepalive.service" "$SYSTEMD_DIR/qwen38-dashboard.service" "$SYSTEMD_DIR/qwen38-image.service" "$SYSTEMD_DIR/qwen38-video.service" "$SYSTEMD_DIR/qwen38-kolibri.service" "$SYSTEMD_DIR/qwen38-nemotron.service" "$SYSTEMD_DIR/qwen38-nemotron-super.service" "$SYSTEMD_DIR/qwen38-flash-local.service" "$SYSTEMD_DIR/qwen38-ornith-122b.service" "$SYSTEMD_DIR/qwen38-flash-unsloth.service" "$SYSTEMD_DIR/qwen38-image-h3.service" "$SYSTEMD_DIR/qwen38-transcribe.service" "$SYSTEMD_DIR/qwen38-lfm25.service" "$SYSTEMD_DIR/qwen38-lfm3.service" "$SYSTEMD_DIR/qwen38-speech.service" "$SYSTEMD_DIR/opencode-web.service"
|
||||
sudo rm -f "$SYSTEMD_DIR/qwen38-sglang.service" "$SYSTEMD_DIR/qwen38-flash.service" "$SYSTEMD_DIR/qwen38-keepalive.service" "$SYSTEMD_DIR/qwen38-dashboard.service" "$SYSTEMD_DIR/qwen38-image.service" "$SYSTEMD_DIR/qwen38-video.service" "$SYSTEMD_DIR/qwen38-kolibri.service" "$SYSTEMD_DIR/qwen38-nemotron.service" "$SYSTEMD_DIR/qwen38-nemotron-super.service" "$SYSTEMD_DIR/qwen38-flash-local.service" "$SYSTEMD_DIR/qwen38-ornith-122b.service" "$SYSTEMD_DIR/qwen38-flash-unsloth.service" "$SYSTEMD_DIR/qwen38-image-h3.service" "$SYSTEMD_DIR/qwen38-transcribe.service" "$SYSTEMD_DIR/qwen38-lfm25.service" "$SYSTEMD_DIR/qwen38-lfm3.service" "$SYSTEMD_DIR/qwen38-inkling.service" "$SYSTEMD_DIR/qwen38-speech.service" "$SYSTEMD_DIR/opencode-web.service"
|
||||
sudo rm -rf "$SYSTEMD_DIR/qwen38-sglang.service.d" "$SYSTEMD_DIR/qwen38-dashboard.service.d" "$SYSTEMD_DIR/qwen38-keepalive.service.d"
|
||||
# The cockpit's privileged surface goes with it: a NOPASSWD allowlist left behind
|
||||
# after an uninstall is the one leftover that is not merely clutter.
|
||||
|
||||
+4
-4
@@ -1,9 +1,9 @@
|
||||
# shellcheck shell=bash
|
||||
# vllm-lane.sh: what the six vLLM lanes' installers share (install-kolibri.sh, install-nemotron.sh,
|
||||
# install-nemotron-super.sh, install-flash-local.sh, install-ornith-122b.sh, install-lfm3.sh), and through llamacpp-lane.sh and
|
||||
# sglang-lane.sh what is no vLLM's here, the llama.cpp lanes' and install-lfm25.sh's. Sourced after lanes.sh, never
|
||||
# run. Each installer keeps what is its own (its pins, its image, its unit's placeholders, its words) and names
|
||||
# itself first:
|
||||
# sglang-lane.sh what is no vLLM's here, the llama.cpp lanes' and the SGLang lanes' (install-lfm25.sh's,
|
||||
# install-inkling.sh's). Sourced after lanes.sh, never run. Each installer keeps what is its own (its pins, its image,
|
||||
# its unit's placeholders, its words) and names itself first:
|
||||
#
|
||||
# VLANE the lane (kolibri, nemotron, nemotron-super, flash-local, ornith-122b, lfm3): its opencode provider, the
|
||||
# record of the text lane it took the boot from (lanes.sh), its --no-<lane>, its cache folder
|
||||
@@ -351,7 +351,7 @@ vlane_prove(){
|
||||
{ [ -n "${LANE_FILES+x}" ] && [ "${#LANE_FILES[@]}" -gt 0 ]; } \
|
||||
|| die "the proof runs before the service step (repo bug: please open an issue)"
|
||||
VLANE_WAS=""
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service; do
|
||||
for u in qwen38-sglang.service qwen38-flash.service qwen38-image.service qwen38-video.service qwen38-kolibri.service qwen38-nemotron.service qwen38-nemotron-super.service qwen38-flash-local.service qwen38-ornith-122b.service qwen38-flash-unsloth.service qwen38-image-h3.service qwen38-transcribe.service qwen38-lfm25.service qwen38-lfm3.service qwen38-inkling.service; do
|
||||
[ "$u" = "$UNIT" ] && continue
|
||||
systemctl is-active --quiet "$u" 2>/dev/null && VLANE_WAS="$u"
|
||||
done
|
||||
|
||||
Reference in new issue
Block a user