launch --plan: a DeepSeek plan no longer promises a Strata engine download; test
This commit is contained in:
1 parent
51d23fdd1e
commit
a22d557eee
2 files changed
+11
No files matched your search
@@ -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"))
|
||||
|
||||
@@ -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"])
|
||||
|
||||
Reference in new issue
Block a user