From a22d557eee4a5238d4d8ef30dda3f6e50309de8a Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Sat, 24 Oct 2026 05:39:30 +0200 Subject: [PATCH] launch --plan: a DeepSeek plan no longer promises a Strata engine download; test --- strata_cli/launch/runner.py | 5 +++++ tests/terminal/test_launch_dsv41.py | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/strata_cli/launch/runner.py b/strata_cli/launch/runner.py index 18aaa9c4..5ecc8095 100644 --- a/strata_cli/launch/runner.py +++ b/strata_cli/launch/runner.py @@ -1729,6 +1729,11 @@ class Runner: parts = [p for p in parts if p["kind"] != "weights"] + [{"kind": "weights", "label": "the ready-made pack", "gb": gap["gb"]}] gb = round(sum(p["gb"] for p in parts), 1) engine, here = True, [] + if self.multi_file(): # DeepSeek does not use the Strata engine: nothing about it in the plan (its own package is in the placement) + return {"gb": gb, "parts": parts, "engine_missing": False, "engine_usable": True, "own_files": st.own_files, + "text": ("Nothing to download: your model files are used where they are." if gb < 0.05 and st.own_files else + "Nothing to download: the model is already on this computer." if gb < 0.05 else + f"About {gb:.1f} GB to download.")} try: report = engine_component.status(Path(self.components_dir) if self.components_dir else None) engine = bool(report.get("usable")) diff --git a/tests/terminal/test_launch_dsv41.py b/tests/terminal/test_launch_dsv41.py index f3616443..0e126ead 100644 --- a/tests/terminal/test_launch_dsv41.py +++ b/tests/terminal/test_launch_dsv41.py @@ -91,6 +91,12 @@ class LaunchDeepSeek(unittest.TestCase): self.assertIn("drafting DSpark", out) self.assertNotIn("MTP", out) + def test_the_plan_does_not_promise_a_strata_engine_download_for_deepseek(self): + p = self.plan("--model", "ud-q8_k_xl", "--no-tui") + text = json.dumps(p.get("download") or {}) + self.assertNotIn("engine for your graphics card", text) + self.assertFalse((p.get("download") or {}).get("engine_missing")) + def test_no_card_is_said(self): self.hw = {**HW_12, "gpus": []} code, out, err = run_cli(["launch", "--plan", "--model", "ud-q8_k_xl", "--no-tui"])