mirror of
https://github.com/hasso5703/alzeo.git
synced 2026-12-05 12:24:28 +01:00
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>
61 lines
2.8 KiB
Python
61 lines
2.8 KiB
Python
#!/usr/bin/env python3
|
|
"""Every lane's unit tells systemd that it runs alone, and in what order.
|
|
|
|
Two engines on the unified pool is the livelock this box power-cycles out of. The image
|
|
unit said so with Conflicts= and no After=, and Conflicts= orders nothing: its start and
|
|
the text lane's stop ran side by side (5 to 60 s in the reference box's journal on
|
|
2026-09-23). The two text units said nothing at all to each other, so the 27B and the
|
|
flash lane could run together, or both start at boot if both were enabled.
|
|
|
|
With Conflicts= and After= on every other lane, measured on the box's systemd 255 with
|
|
throwaway units (2026-09-24): each switch finished the stop before the start, in all four
|
|
directions tried, with no ordering-cycle warning, and a transaction asking for two lanes
|
|
at once started one of them only.
|
|
"""
|
|
import pathlib
|
|
import re
|
|
import unittest
|
|
|
|
REPO = pathlib.Path(__file__).resolve().parents[1]
|
|
LANES = {
|
|
"qwen38-sglang.service": ("qwen38-sglang.service.template", "qwen38-sglang-1m.service.template"),
|
|
"qwen38-flash.service": ("qwen38-flash.service.template",),
|
|
"qwen38-image.service": ("qwen38-image.service.template",),
|
|
"qwen38-video.service": ("qwen38-video.service.template",),
|
|
"qwen38-kolibri.service": ("qwen38-kolibri.service.template",),
|
|
"qwen38-nemotron.service": ("qwen38-nemotron.service.template",),
|
|
"qwen38-nemotron-super.service": ("qwen38-nemotron-super.service.template",),
|
|
"qwen38-flash-local.service": ("qwen38-flash-local.service.template",),
|
|
"qwen38-ornith-122b.service": ("qwen38-ornith-122b.service.template",),
|
|
"qwen38-flash-unsloth.service": ("qwen38-flash-unsloth.service.template",),
|
|
"qwen38-image-h3.service": ("qwen38-image-h3.service.template",),
|
|
"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)
|
|
|
|
|
|
def unit_list(template, key):
|
|
unit = (REPO / template).read_text().split("[Service]")[0]
|
|
return {u for line in re.findall(rf"(?m)^{key}=(.*)$", unit) for u in line.split()}
|
|
|
|
|
|
class EveryLaneRunsAlone(unittest.TestCase):
|
|
def test_each_lane_conflicts_with_every_other_lane(self):
|
|
for lane, templates in LANES.items():
|
|
for t in templates:
|
|
with self.subTest(template=t):
|
|
self.assertEqual(unit_list(t, "Conflicts"), ALL - {lane})
|
|
|
|
def test_each_lane_is_ordered_after_what_it_conflicts_with(self):
|
|
for templates in LANES.values():
|
|
for t in templates:
|
|
with self.subTest(template=t):
|
|
self.assertEqual(unit_list(t, "Conflicts") - unit_list(t, "After"), set())
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main(verbosity=2)
|