Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

Merge remote-tracking branch 'origin/main' into b70

maxfridbed62ccc75ff1e
diff --cc setup.py
index 380d53d00,e05cda39a..e5320f70c
--- a/setup.py
+++ b/setup.py
@@@ -2084,21 -2002,19 +2140,21 @@@ def main() -> int
run([sys.executable, str(ROOT / "tools" / "iq_pack.py"), "--gguf", str(shards[0]), "--out", str(pack),
"--experts-bin"], env=env)
ok(f"model prepared: {pack}")
- mtp = (find_in(roots, "mtp/rt/experts.bin") or data / "mtp/rt/experts.bin").parent.parent
- rt = mtp / "rt"
- if not (rt / "experts.bin").exists():
- say(" The MTP draft layer (speculative decoding, ~2x faster output) comes from the original Qwen checkpoint:")
- say(" only its ~5 GB of MTP tensors are downloaded.")
- run([sys.executable, str(ROOT / "tools" / "mtp_fetch.py"), "fetch", "--out", str(mtp)], env=env)
- run([sys.executable, str(ROOT / "tools" / "mtp_pack.py"), "--src", str(mtp), "--experts", "q2_0",
- "--out", str(mtp / "mtp-q2_0.gguf")], env=env)
- run([sys.executable, str(ROOT / "tools" / "mtp_rt.py"), "--gguf", str(mtp / "mtp-q2_0.gguf"), "--out", str(rt)],
- env=env)
- refresh_draft_vocab(rt, a.draft_vocab or "cjk")
- ok(f"MTP draft layer: {rt}")
-
+ if backend == "llama":
+ ok("MTP draft layer: not used by the llama.cpp engine (no speculative decoding for this model there)")
+ else:
+ mtp = (find_in(roots, "mtp/rt/experts.bin") or data / "mtp/rt/experts.bin").parent.parent
+ rt = mtp / "rt"
+ if not (rt / "experts.bin").exists():
+ say(" The MTP draft layer (speculative decoding, ~2x faster output) comes from the original Qwen checkpoint:")
+ say(" only its ~5 GB of MTP tensors are downloaded.")
+ run([sys.executable, str(ROOT / "tools" / "mtp_fetch.py"), "fetch", "--out", str(mtp)], env=env)
+ run([sys.executable, str(ROOT / "tools" / "mtp_pack.py"), "--src", str(mtp), "--experts", "q2_0",
+ "--out", str(mtp / "mtp-q2_0.gguf")], env=env)
+ run([sys.executable, str(ROOT / "tools" / "mtp_rt.py"), "--gguf", str(mtp / "mtp-q2_0.gguf"), "--out", str(rt)],
+ env=env)
- refresh_draft_vocab(rt)
++ refresh_draft_vocab(rt, a.draft_vocab or "cjk")
+ ok(f"MTP draft layer: {rt}")
# ---- 7. the start script
step(7, "writing the start script")
sys.path.insert(0, str(ROOT / "tools"))
@@@ -2163,7 -2072,9 +2219,9 @@@
cfg["host"] = a.host
if a.api_key:
cfg["api_key"] = a.api_key
+ if a.draft_vocab:
+ cfg["draft_vocab"] = a.draft_vocab
- if vision != "none":
+ if vision != "none" and backend != "llama":
cfg["vision"] = {"exe": str(eng / VEXE), "mmproj": str(mmproj), "model": str(shards[0]),
"gpu": vision == "gpu", "max_tokens": VISION[vision]["max_tokens"]}
if vision == "cpu":