Run frontier MoE models on hardware you already own — pure C, zero deps, experts streamed from disk. Tiny engine, immense model. 🐦
C
setup: a short menu, and clearer engine and fallback lines
JustVugg24ddbfb007b6
diff --git a/c/setup_flow.py b/c/setup_flow.pyindex 793d8ffb..376b4e66 100644--- a/c/setup_flow.py+++ b/c/setup_flow.py@@ -297,7 +297,7 @@ def choose_backend(hw, family, tc, requested="auto"):if tc.get("can_build_vulkan"):kind = vk.get("type")decision.update(backend="vulkan", gpu=vk["name"],- reason=f"{vk['name']} ({kind}) through Vulkan")+ reason=f"{vk['name']}, {kind} GPU")return decisionneeds = ["vulkan"] if tc.get("can_build") else ["build", "vulkan"]decision["missing"].append(("vulkan", _gpu_hint(needs, hw, tc)))@@ -584,6 +584,9 @@ def resolve_engine(family, entry, decision, tc, out=print, allow_prebuilt=True):raise SetupError(f"no compiler here to build {family.engine_artifact}: "f"{package_hint(['build'])}")version = current_version()+ if release_asset_suffix() is None:+ raise SetupError(f"no compiler here, and no prebuilt engine is published for "+ f"{sys.platform}/{setup_hw.platform.machine()}: {package_hint(['build'])}")out(" no compiler found: using the prebuilt engine from the GitHub release")runtime, tag = fetch_release_archive(version, out=out)if entry is not None and setup_catalog.version_tuple(tag) < setup_catalog.version_tuple(entry.prebuilt_since):@@ -819,6 +822,7 @@ def start_server(cfg, *, background=False, open_browser=True, out=print, wait=5.if not background:print_urls(cfg, out)out(" stop: press Ctrl+C here (or close this window)\n")+ sys.stdout.flush() # ours before the server's, when the output is a fileprocess = subprocess.Popen(cmd, env=env)try:return process.wait()@@ -995,6 +999,9 @@ def _fmt_eta(seconds):return f"{seconds / 3600:.1f} h"+MENU_ROWS = 6++def choose_model(ui, rows, wanted=None, show_all=False):if wanted:for row in rows:@@ -1004,6 +1011,12 @@ def choose_model(ui, rows, wanted=None, show_all=False):return row["entry"]raise SetupError(f"unknown model {wanted!r}; `coli setup --list` shows the choices")fitting = [r for r in rows if r["fits"]]+ if not show_all:+ # A short menu: the recommendation first, then the next smallest+ # downloads. --all lists every model, --model picks any of them.+ fitting, more = fitting[:MENU_ROWS], fitting[MENU_ROWS:]+ else:+ more = []if not fitting:raise SetupError("no model in the catalog fits this machine:\n" +"\n".join(f" {r['entry'].name}: {r['reason']}" for r in rows))@@ -1015,10 +1028,12 @@ def choose_model(ui, rows, wanted=None, show_all=False):if entry.modality == "image":runs = "makes images"tag = " [recommended]" if row["recommended"] else ""- ui.say(f" {number:>2}) {entry.name:<28} {entry.disk_gb:>7.0f} GB {runs:<20}{tag}")+ ui.say(f" {number:>2}) {entry.name:<28} {entry.disk_gb:>7.0f} GB {runs:<20}{tag}".rstrip())ui.say(f" {entry.summary}; {row['reason']}"+ (f"; {entry.license_note}" if entry.license_note else ""))hidden = [r for r in rows if not r["fits"]]+ if more:+ ui.say(f" ({len(more)} more fit too: `--all` lists them, `--model ID` picks one)")if hidden and show_all:ui.say(" Not offered here:")for row in hidden:@@ -1266,7 +1281,7 @@ def cmd_setup(a, ui=None):tc = toolchain()decision = choose_backend(hw, family, tc, requested)- ui.say(f"\nEngine: {family.engine_artifact}, {decision['backend'].upper()} "+ ui.say(f"\nEngine: {family.engine_artifact} with {decision['backend'].upper()} "f"({decision['reason']})")for kind, hint in decision["missing"]:ui.say(f" to use the GPU through {kind.upper()}, first run: {hint}")diff --git a/c/tests/test_setup_flow.py b/c/tests/test_setup_flow.pyindex 44af7afa..ddf9854c 100644--- a/c/tests/test_setup_flow.py+++ b/c/tests/test_setup_flow.py@@ -540,6 +540,26 @@ class WholeSetup(HomeTestCase):self.assertIn(setup_catalog.FITS_EXPLAINED, menu)self.assertIn("type a number from 1", menu)+ def test_json_mode_prints_the_configuration(self):+ out = io.StringIO()+ with contextlib.redirect_stdout(out):+ code = setup_flow.run(lambda a: setup_flow.cmd_setup(a, ui=setup_flow.UI(False, quiet=True)),+ setup_args(dir=self.models, pick="tiny", json=True))+ self.assertEqual(code, 0)+ result = json.loads(out.getvalue())+ self.assertEqual(result["config"]["backend"], "vulkan")+ self.assertEqual(result["config_path"], setup_flow.config_path())+ self.assertNotIn("status", result) # --no-start++ def test_no_compiler_and_no_prebuilt_says_what_to_install(self):+ tc = dict(TC_ALL, source_checkout=False, can_build=False, can_build_vulkan=False)+ os.remove(os.path.join(self.engines, "qwen36"))+ with mock.patch.object(setup_flow, "release_asset_suffix", return_value=None):+ with self.assertRaises(setup_flow.SetupError) as caught:+ setup_flow.resolve_engine(family_by_id("qwen36"), None,+ {"backend": "cpu", "missing": []}, tc, out=lambda *_: None)+ self.assertIn("no prebuilt engine", str(caught.exception))+def test_list_json(self):out = io.StringIO()with contextlib.redirect_stdout(out):diff --git a/docs/quickstart.md b/docs/quickstart.mdindex 23fa8772..3b532047 100644--- a/docs/quickstart.md+++ b/docs/quickstart.md@@ -62,12 +62,16 @@ Your machineModels that fit this machine(fits = the dense part, which always stays in RAM, plus a minimum expert cache fit in RAM, and the download fits on the disk)1) Qwen3.6-35B-A3B 23 GB runs from RAM [recommended]+ general chat with thinking, tools and images; int4-gs64 container; the whole model fits in RAM (20 GB)2) Qwen3-Coder-30B-A3B 19 GB runs from RAM+ coding model with tool calls, no thinking; int4-gs64 container; the whole model fits in RAM (18 GB)3) DeepSeek V4 Flash REAP 150B 85 GB streams from the SSD...+ (2 more fit too: `--all` lists them, `--model ID` picks one)+ (4 more need more RAM or disk: `coli setup --list` shows why)Choose a model [Enter = 1]:-Engine: qwen36, VULKAN (Intel(R) Iris(R) Xe Graphics (integrated) through Vulkan)+Engine: qwen36 with VULKAN (Intel(R) Iris(R) Xe Graphics, integrated GPU)building: make qwen36 ARCH=native VK=1Download: Kreuzzelg/qwen36-35b-a3b-colibri-i4-gs64 (23.1 GB); safe to interrupt, rerun to continue[##########..............] 41.0% 9.5 GB/23.1 GB 38.2 MB/s 6 min left