Files
alzeo/tests/test_one_engine_units.py
T
Hasan BasbunarandClaude Opus 5.5 1aab73f326 Ornith 1.5 122B as a ninth lane, on vLLM with its MTP head and a window of a million
Ornith AI's Ornith 1.5 122B (MIT), a mixture of experts of the Qwen3.5
family with vision, in its authors' NVFP4 build pinned at its revision
of 2026-10-21, served by vLLM with b12x in the Flash FP4-Local lane's
image: its MTP head drafting 2 tokens, 8 requests at a time, prefix
caching with the Mamba states aligned, the checkpoint's chat template
and sampling as published, served as ornith-1.5-122b. Its window is
1,048,576 tokens: YaRN at factor 4, written whole into
text_config.rope_parameters, the one form this vLLM reads (the model
card's rope_scaling changed no probability on the reference box), and
a KV cache fixed at 17 GiB, 1,301,680 tokens.

Installed on demand like the other lanes: install-ornith-122b.sh with
its pins (--units-only, --prepare, --stage, --uninstall), the
--no-ornith-122b and --with-ornith-122b flags, a switch-model.sh and
prepare-lane.sh target, its sudoers lines, every other unit's
Conflicts= and After=, the keepalive's hold, the uninstall's lists. The
image is shared: each lane's uninstall leaves the io_uring filter and
the image to the other while it is installed, and pin_untag says which
tag still keeps it. The cockpit shows it in the b12x family, opencode
and pi get a provider whose variants are its template's (enable_thinking
on, or none), and the proxy (v6.45) turns a request's reasoning effort
into enable_thinking for it: none and minimal off, the rest on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 01:30:46 +02:00

55 lines
2.4 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",),
}
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)