diff --git a/scripts/m0/m0lib/llm.py b/scripts/m0/m0lib/llm.py index 1b12496..8bd2d4b 100644 --- a/scripts/m0/m0lib/llm.py +++ b/scripts/m0/m0lib/llm.py @@ -24,7 +24,10 @@ from m0lib.llm_client import ChatClient, http_json # noqa: E402 PRESETS = { "fast": {"family": "qwen36", "model": "ud-q4_k_xl", "label": "Qwen3.6-35B-A3B UD-Q4_K_XL"}, - "recommended": {"family": "qwen", "model": "q2_0", "label": "Qwen3.8-Flash-Next Q2_0 (ISTA-DASLab)"}, + # Strata 0.1.59 gives Q2_0 the DFlash2 drafter alone, which needs a native pack; the canonical + # Q2_0 pack is not one, so the engine stops at start. The MTP drafter (or none) starts. + "recommended": {"family": "qwen", "model": "q2_0", "label": "Qwen3.8-Flash-Next Q2_0 (ISTA-DASLab)", + "drafting": "mtp"}, } PORT = 8080 INSTALL_URL = "https://github.com/Niko1221/Strata/releases/latest/download/install.ps1" @@ -80,6 +83,8 @@ class Strata: ("--context", str(context)), ("--vision", vision), ("--parallel", str(parallel)), ("--access", "local"), ("--port", str(PORT)), ("--no-api-key", None), ("--yes", None), ("--no-tui", None)] + if preset.get("drafting"): + want.append(("--drafting", preset["drafting"])) if restart: want.append(("--restart", None)) for s in extra_sets: