From af0c773998e10e850952bf2515526783f0f6c8fa Mon Sep 17 00:00:00 2001 From: javis-bot Date: Tue, 10 Nov 2026 13:29:58 +0900 Subject: [PATCH] fix(m0): start the recommended model without the DFlash2 drafter Strata 0.1.59 gives Qwen3.8-Flash-Next Q2_0 the DFlash2 drafter alone (--draft-fallback none), but DFlash2 needs a native pack and the canonical Q2_0 pack is not one, so the engine stops at start ("DFlash2 is off here: it needs a native pack ... the start ends here"). Ask for the MTP drafter instead; Strata falls back to no drafter when the MTP layer is missing. Co-Authored-By: Claude Opus 5.5 --- scripts/m0/m0lib/llm.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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: