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++

setup: IQ3_S (Qwen, Swift) and UD-Q4_K_XL / UD-IQ4_XS (Unsloth) are the recommended sizes and the defaults where the RAM fits them; the largest that fits otherwise. Golden configs re-recorded

Niko1221f3ee1819e6f7
diff --git a/setup.py b/setup.py
index 9df553a3d..4fe246b4f 100644
--- a/setup.py
+++ b/setup.py
@@ -2236,6 +2236,26 @@ STRIX_HALO_FAMILY, STRIX_HALO_MODEL = "unsloth", "UD-IQ4_XS" # the model docs
STRIX_HALO_MIN_GB = 80 # UD-IQ4_XS keeps all of its experts in memory from ~80 GB (its menu line says so)
+RECOMMENDED_SIZES = {"qwen": ("IQ3_S",), "swift": ("IQ3_S",), "unsloth": ("UD-Q4_K_XL", "UD-IQ4_XS")} # owner's pick, 0.1.44
+
+
+def recommended_size(family: str, names: list, ram: float) -> str:
+ """The size the menu pre-selects (and --yes takes): the family's recommended size when this PC's RAM fits it
+ (UD-Q4_K_XL before UD-IQ4_XS), else the largest size that fits, else the first. Recommend, never force: every
+ other size stays a choice."""
+ for m in RECOMMENDED_SIZES.get(family, ()):
+ if m in names and ram >= MODELS[m]["ram_gb"]:
+ return m
+ fitting = [m for m in names if ram >= MODELS[m]["ram_gb"]]
+ if fitting:
+ return max(fitting, key=lambda m: MODELS[m]["download_gb"])
+ return "UD-IQ4_XS" if family == "unsloth" and "UD-IQ4_XS" in names else names[0]
+
+
+def size_tag(family: str, m: str) -> str:
+ return " (recommended)" if m in RECOMMENDED_SIZES.get(family, ()) else ""
+
+
def menu_families(hip: bool) -> list:
"""The families the model menu lists, in menu order. The NVFP4 packs run on NVIDIA cards only (the AMD and Intel
engines have no NVFP4 kernels), so on those the menu does not offer them; `--family nvfp4` still says why not."""
@@ -6045,20 +6065,14 @@ def main() -> int:
if d.get("budget"):
keeps = (f"~{resident_budget_gib(m, ram)} GB" if unsloth_budget(m, ram, gpu, a.resident_budget_gib)
else "all")
- say(f" {i}) {m} {d['about']}; download {d['download_gb']:.0f} GB, keeps {keeps} of its "
+ say(f" {i}) {m}{size_tag(family, m)} {d['about']}; download {d['download_gb']:.0f} GB, keeps {keeps} of its "
f"{d['arena_gb']:.0f} GB of experts in RAM{fit}")
continue
if low_ram_needed(m, ram) and low_ram_fits(m, ram, low_ram_vram(gpu)) and a.low_ram != "off":
fit = (f" <- fits in the low-RAM mode (the GPU holds ~{100 * low_ram_gpu_share(m, low_ram_vram(gpu)):.0f}%, "
+ ("the rest in RAM)" if low_ram_resident(m, ram, low_ram_vram(gpu)) else "the rest from the SSD)"))
- say(f" {i}) {m:8s} {d['about']}; download {d['download_gb']:.0f} GB, uses ~{d['arena_gb']:.0f} GB of RAM{fit}")
- rec = str(names.index("IQ3_XXS") + 1) if ram >= 60 and "IQ3_XXS" in names else "1"
- if family == "unsloth": # MODEL-UPDATE: the largest file whose experts all fit in RAM
- in_ram = [m for m in names if MODELS[m].get("budget") and not MODELS[m].get("experimental")
- and not unsloth_budget(m, ram, gpu, a.resident_budget_gib)]
- best = max(in_ram, key=lambda m: MODELS[m]["arena_gb"]) if in_ram else \
- ("UD-IQ4_XS" if "UD-IQ4_XS" in names else names[0])
- rec = str(names.index(best) + 1)
+ say(f" {i}) {m:8s}{size_tag(family, m)} {d['about']}; download {d['download_gb']:.0f} GB, uses ~{d['arena_gb']:.0f} GB of RAM{fit}")
+ rec = str(names.index(recommended_size(family, names, ram)) + 1)
model = a.model or names[int(ask("Which size?", [str(i) for i in range(1, len(names) + 1)], rec, a.yes)) - 1]
budget, q4_split = None, False
in_budget = bool(MODELS[model].get("budget")) and unsloth_budget(model, ram, gpu, a.resident_budget_gib)
diff --git a/tools/test_setup_golden.json b/tools/test_setup_golden.json
index a3b089d4d..bab48f50e 100644
--- a/tools/test_setup_golden.json
+++ b/tools/test_setup_golden.json
@@ -130,11 +130,11 @@
"config": {
"args": [
"--pack",
- "<T>/data/packs/iq3_xxs",
+ "<T>/data/packs/iq3_s",
"--native",
- "<T>/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf",
+ "<T>/models/IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf",
"--ple-gguf",
- "<T>/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf",
+ "<T>/models/IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf",
"--expert-profile",
"<T>/data/expert-profile.bin",
"--expert-cache",
@@ -161,10 +161,10 @@
"lib_dirs": [
"<cuda>"
],
- "log": "<T>/strata-iq3_xxs.log",
- "model_name": "qwen3.8-flash-next-iq3_xxs",
+ "log": "<T>/strata-iq3_s.log",
+ "model_name": "qwen3.8-flash-next-iq3_s",
"port": 8080,
- "tokenizer": "<T>/data/packs/iq3_xxs/tokenizer"
+ "tokenizer": "<T>/data/packs/iq3_s/tokenizer"
}
},
"128GB-1x24GB unsloth UD-Q4_K_XL": {
@@ -804,11 +804,11 @@
"config": {
"args": [
"--pack",
- "<T>/data/packs/iq3_xxs",
+ "<T>/data/packs/iq3_s",
"--native",
- "<T>/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf",
+ "<T>/models/IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf",
"--ple-gguf",
- "<T>/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf",
+ "<T>/models/IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf",
"--expert-profile",
"<T>/data/expert-profile.bin",
"--expert-cache",
@@ -824,9 +824,7 @@
"--max-context",
"131072",
"--kv",
- "int8",
- "--kv-resident",
- "32768"
+ "int8"
],
"cwd": "<T>",
"exe": "<T>/engine/<EXE>",
@@ -835,10 +833,10 @@
"lib_dirs": [
"<cuda>"
],
- "log": "<T>/strata-iq3_xxs.log",
- "model_name": "qwen3.8-flash-next-iq3_xxs",
+ "log": "<T>/strata-iq3_s.log",
+ "model_name": "qwen3.8-flash-next-iq3_s",
"port": 8080,
- "tokenizer": "<T>/data/packs/iq3_xxs/tokenizer"
+ "tokenizer": "<T>/data/packs/iq3_s/tokenizer"
}
},
"64GB-1x32GB unsloth UD-Q4_K_XL": {
@@ -1022,11 +1020,11 @@
"config": {
"args": [
"--pack",
- "<T>/data/packs/iq3_xxs",
+ "<T>/data/packs/iq3_s",
"--native",
- "<T>/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf",
+ "<T>/models/IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf",
"--ple-gguf",
- "<T>/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf",
+ "<T>/models/IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf",
"--expert-profile",
"<T>/data/expert-profile.bin",
"--expert-cache",
@@ -1053,10 +1051,10 @@
"lib_dirs": [
"<cuda>"
],
- "log": "<T>/strata-iq3_xxs.log",
- "model_name": "qwen3.8-flash-next-iq3_xxs",
+ "log": "<T>/strata-iq3_s.log",
+ "model_name": "qwen3.8-flash-next-iq3_s",
"port": 8080,
- "tokenizer": "<T>/data/packs/iq3_xxs/tokenizer"
+ "tokenizer": "<T>/data/packs/iq3_s/tokenizer"
}
},
"96GB-1x16GB unsloth UD-Q4_K_XL": {
diff --git a/tools/test_setup_menu.py b/tools/test_setup_menu.py
index a4fa8dc95..6bcc1d294 100644
--- a/tools/test_setup_menu.py
+++ b/tools/test_setup_menu.py
@@ -78,6 +78,32 @@ class UnslothSizes(unittest.TestCase):
self.assertIn(m, about)
+class RecommendedSizes(unittest.TestCase):
+ """0.1.44 (owner): IQ3_S, UD-Q4_K_XL and UD-IQ4_XS are the recommended sizes; recommend, never force."""
+
+ def names(self, family):
+ return [m for m in setup.MODELS if family in setup.MODELS[m].get("families", ("qwen", "swift"))]
+
+ def test_qwen_and_swift_default_to_iq3_s_when_it_fits(self):
+ for fam in ("qwen", "swift"):
+ n = self.names(fam)
+ self.assertIn("IQ3_S", n)
+ self.assertEqual(setup.recommended_size(fam, n, 63.7), "IQ3_S")
+ self.assertEqual(setup.recommended_size(fam, n, 191.0), "IQ3_S") # not the largest: IQ3_S stays the pick
+ self.assertEqual([m for m in n if setup.size_tag(fam, m)], ["IQ3_S"]) # the others are choices, unmarked
+
+ def test_without_the_ram_the_largest_that_fits_and_iq3_s_stays_marked(self):
+ n = self.names("qwen")
+ self.assertEqual(setup.recommended_size("qwen", n, 61.0), "IQ3_XXS") # IQ3_S needs 62 GB
+ self.assertEqual(setup.recommended_size("qwen", n, 50.0), "IQ2_XS")
+ self.assertEqual(setup.size_tag("qwen", "IQ3_S"), " (recommended)")
+
+ def test_coder_has_nothing_marked(self):
+ n = self.names("coder")
+ self.assertEqual([setup.size_tag("coder", m) for m in n], [""] * len(n))
+ self.assertEqual(setup.recommended_size("coder", n, 64.0), n[0])
+
+
class EnginePlaceholders(unittest.TestCase):
def test_every_engine_minimum_is_this_release(self):
self.assertEqual(setup.NVFP4_ENGINE, (0, 1, 44))
diff --git a/tools/test_setup_unsloth.py b/tools/test_setup_unsloth.py
index 243a55edd..89d11b5c2 100644
--- a/tools/test_setup_unsloth.py
+++ b/tools/test_setup_unsloth.py
@@ -500,7 +500,7 @@ class IQ4XS(Base):
"""The first menu lists the Unsloth family without [experimental]; its size menu lists the five files by size,
UD-IQ4_XS first (the default on 64 GB, Enter), none marked EXPERIMENTAL; --model names are unchanged."""
code, out, cfg = self.main(["--context", "8192", "--vision", "no"], version="0.1.38", model=False,
- family=False, answers={"Which model": "4"}, m=X)
+ family=False, answers={"Which model": "4"}, m=M)
self.assertEqual(code, 0, out)
fam_line = next(ln for ln in out.splitlines() if ln.startswith(" 4) "))
self.assertIn("Qwen3.8-Flash-Next (Unsloth)", fam_line)
@@ -512,11 +512,11 @@ class IQ4XS(Base):
for i, (line, m) in enumerate(zip(size_lines, (X, M, "UD-Q5_K_XL", "UD-Q6_K_XL", "Q8_0")), 1):
self.assertTrue(line.startswith(f" {i}) {m} "), line)
self.assertNotIn("EXPERIMENTAL", line)
- self.assertTrue(any("Which size" in q and "[1]" in q for q in self.asked), self.asked)
- self.assertEqual(cfg["model_name"], "qwen3.8-flash-next-unsloth-ud-iq4_xs")
- code, out, cfg = self.main(["--context", "8192"], version="0.1.38", model=False, m=X) # --yes: same default
+ self.assertTrue(any("Which size" in q and "[2]" in q for q in self.asked), self.asked)
+ self.assertEqual(cfg["model_name"], "qwen3.8-flash-next-unsloth-ud-q4_k_xl")
+ code, out, cfg = self.main(["--context", "8192"], version="0.1.38", model=False, m=M) # --yes: same default
self.assertEqual(code, 0, out)
- self.assertEqual(cfg["model_name"], "qwen3.8-flash-next-unsloth-ud-iq4_xs")
+ self.assertEqual(cfg["model_name"], "qwen3.8-flash-next-unsloth-ud-q4_k_xl")
for m, name in ((M, "qwen3.8-flash-next-unsloth-ud-q4_k_xl"), (X, "qwen3.8-flash-next-unsloth-ud-iq4_xs")):
code, out, cfg = self.main(["--context", "8192"], version="0.1.38", m=m) # --model by name
self.assertEqual((code, cfg["model_name"]), (0, name), out)
@@ -773,12 +773,21 @@ class Resident(Base):
line = next(ln for ln in out.splitlines() if ln.strip().startswith(m + " "))
self.assertIn(verdict, line)
- def test_default_is_the_largest_that_fits(self):
- for ram, best in ((63.7, X), (95.8, M), (127.8, Q6), (191.0, Q8)):
+ def test_default_is_ud_q4_k_xl_where_it_fits(self):
+ """0.1.44 (owner): UD-Q4_K_XL and UD-IQ4_XS are the recommended sizes; the default is UD-Q4_K_XL when the RAM fits
+ it (any PC from 48 GB), else UD-IQ4_XS. A larger file stays a choice, never the default."""
+ for ram in (63.7, 95.8, 127.8, 191.0):
with self.subTest(ram):
- code, out, cfg = self.main(["--context", "8192"], ram=ram, version="0.1.44", model=False, m=best)
+ code, out, cfg = self.main(["--context", "8192"], ram=ram, version="0.1.44", model=False, m=M)
self.assertEqual(code, 0, out)
- self.assertEqual(cfg["model_name"], f"qwen3.8-flash-next-unsloth-{best.lower()}")
+ self.assertEqual(cfg["model_name"], "qwen3.8-flash-next-unsloth-ud-q4_k_xl")
+
+ def test_the_menu_marks_both_recommended_sizes(self):
+ names = [m for m in setup.MODELS if "unsloth" in setup.MODELS[m].get("families", ())]
+ self.assertEqual([m for m in names if setup.size_tag("unsloth", m)], ["UD-IQ4_XS", "UD-Q4_K_XL"])
+ self.assertEqual(setup.recommended_size("unsloth", names, 63.7), "UD-Q4_K_XL")
+ self.assertEqual(setup.recommended_size("unsloth", names, 191.0), "UD-Q4_K_XL")
+ self.assertEqual(setup.recommended_size("unsloth", names, 40.0), "UD-IQ4_XS") # nothing fits: the 4-bit i-quant
def test_two_gpus_split_with_every_expert_in_ram(self):
"""Where the experts fit, two cards are the GGUF models' layer split (no budget question, no #498 note)."""