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: images are allowed with UD-Q4_K_XL, with an untested warning (#967)
Niko1221af76b97bff54
diff --git a/docs/UNSLOTH_Q4.md b/docs/UNSLOTH_Q4.mdindex 5a87468e9..5b3080a5a 100644--- a/docs/UNSLOTH_Q4.md+++ b/docs/UNSLOTH_Q4.md@@ -27,7 +27,7 @@ What setup does differently for this model:GPU: it has not been run on AMD cards (its prompt kernels for the Q4_K / Q5_K experts are NVIDIA-only), so with`--backend hip` setup says so and asks before the download (#429; `--model UD-Q4_K_XL --yes` tries it). One GPUby default: the RAM budget below has no layer split (the engine refuses `--resident-budget-gib` with one). No- images (the vision encoder is not wired to this file yet) and no experimental speed projection (not tested with it).+ experimental speed projection (not tested with it). Images (#967) are an option, with a warning that this file is untested with them (reported working, #971).- Several GPUs (#498): when the RAM holds the GGUF files and 24 GB more (~135 GB of RAM) and two or more cards canshare it, setup asks (one GPU stays the default; `--gpus 0,1` takes the split). The split runs **without** the RAM budget: all 77 GB of experts are loaded into RAM from the GGUFs atstart, the files pass through the OS file cache while they load, and the config gets `"gpu": [0, 1]` anddiff --git a/setup.py b/setup.pyindex 7143732f6..8dcbab1d2 100644--- a/setup.py+++ b/setup.py@@ -141,7 +141,10 @@ MODELS = {"UD-Q4_K_XL": {"about": "4-bit (Unsloth Dynamic), EXPERIMENTAL: the best quality, but most experts come from the ""SSD on a 64 GB PC (7-8.5 tokens/s measured)", "download_gb": 111.3, "ram_gb": 48,"arena_gb": 77.0, "families": ("unsloth",), "budget": True, "nvidia_only": True,- "experimental": True},+ "experimental": True,+ # #967: images are allowed (the same base model and image encoder as UD-IQ4_XS), with a warning:+ # reported working by hand (#967, #971), not tested by us on this file+ "vision": True, "vision_untested": True},# #621: Unsloth's UD-IQ4_XS - IQ3_S gate/up experts with IQ4_NL (43 layers) or Q8_0 (5) downs, the dense side as# UD-Q4_K_XL's; three shards. A regular choice from 0.1.39 (no longer experimental). Its 59.5 GB of experts: a# RAM budget of them, like UD-Q4_K_XL, but far fewer read from the SSD on a 64 GB PC and none from ~80 GB of RAM.@@ -4550,6 +4553,9 @@ def main() -> int:say(" download and keeps ~1.4 GB of VRAM free for the image encoder, so text is a few % slower.")vision = "gpu" if ask("Do you want images?", ["y", "n"], "n", a.yes) == "y" else "none"ok("images: " + {"none": "off", "gpu": "on", "cpu": "on (encoder on the CPU)"}[vision])+ if vision != "none" and MODELS[model].get("vision_untested"):+ warn(f"images with {model} are untested: users report them working, but we have not run this file with "+ "images (#967); tell us if the answers look wrong")# The low-RAM mode's two variants. resident: the experts the GPU's cache does not hold (and, as far as RAM allows,# the ones the prompt path borrows cache room from) are copied from the pack's experts.bin into RAM once, so# nothing is read from the SSD while it answers (engine 0.1.30, --resident-experts; the engine falls back to mmapdiff --git a/tools/strata_mcp.py b/tools/strata_mcp.pyindex 0b87b2c49..7bd8119d9 100644--- a/tools/strata_mcp.py+++ b/tools/strata_mcp.py@@ -61,7 +61,8 @@ FALLBACK_MODELS = {"ram_gb": 32, "arena_gb": 23.4, "families": ("coder",)},"UD-Q4_K_XL": {"about": "4-bit (Unsloth Dynamic), EXPERIMENTAL: the best quality, but most experts come from the ""SSD on a 64 GB PC (7-8.5 tokens/s measured)", "download_gb": 111.3, "ram_gb": 48,- "arena_gb": 77.0, "families": ("unsloth",), "budget": True, "experimental": True},+ "arena_gb": 77.0, "families": ("unsloth",), "budget": True, "experimental": True,+ "vision": True}, # #967: images allowed (setup warns: untested with this file)"UD-IQ4_XS": {"about": "~4-bit i-quant (Unsloth Dynamic), between IQ3_S and UD-Q4_K_XL in quality; on a PC with ""less than ~80 GB of RAM part of its experts are read from the SSD","download_gb": 93.7, "ram_gb": 48, "arena_gb": 59.5, "families": ("unsloth",), "budget": True,diff --git a/tools/test_setup_unsloth.py b/tools/test_setup_unsloth.pyindex 9dd7514a5..6a467db48 100644--- a/tools/test_setup_unsloth.py+++ b/tools/test_setup_unsloth.py@@ -331,14 +331,18 @@ class Main(Base):self.assertEqual(code, 2) # argparse: N > 0self.assertIsNone(cfg)- def test_one_gpu_and_no_images(self):+ def test_one_gpu_and_images_with_a_warning(self):+ """#967: images are allowed with UD-Q4_K_XL, said to be untested."""code, out, cfg = self.main(["--context", "8192", "--vision", "yes", "--low-ram", "on"], n_gpus=2)self.assertEqual(code, 0, out)self.assertIn("(NVIDIA GeForce RTX 5070, 12 GB) only (--gpus 0,1 uses them together anyway)", out)- self.assertIn("images are not available with UD-Q4_K_XL", out)+ self.assertNotIn("images are not available", out)+ self.assertIn("images: on", out)+ self.assertIn("images with UD-Q4_K_XL are untested", out)self.assertIn("--low-ram on does not apply", out)self.assertNotIn("layer_split", cfg)- self.assertNotIn("--vision", cfg["args"])+ self.assertIn("--vision", cfg["args"])+ self.assertTrue(cfg["vision"]["model"].endswith("UD-Q4_K_XL-00001-of-00004.gguf"))self.assertNotIn("--mmap-experts", cfg["args"])self.assertFalse(any("--experts-bin" in r for r in self.runs))diff --git a/tools/test_strata_mcp.py b/tools/test_strata_mcp.pyindex e0b0d28cf..0006de0a1 100644--- a/tools/test_strata_mcp.py+++ b/tools/test_strata_mcp.py@@ -301,8 +301,9 @@ class Validation(FakeRoot):self.assertRejected("strata_install", {"backend": "rocm"}, "backend must be one of")self.assertRejected("strata_install", {"command": "setup.py --build"}, "unknown argument")self.assertRejected("strata_install", {"family": "swift", "model": "IQ3_S"}, "has no IQ3_S")- self.assertRejected("strata_install", {"family": "unsloth", "model": "UD-Q4_K_XL", "vision": "yes"},- "images are not available")+ res, err = self.call("strata_install", {"family": "unsloth", "model": "UD-Q4_K_XL", "vision": "yes"})+ self.assertFalse(err, res) # #967: images are allowed with UD-Q4_K_XL (setup warns)+ self.assertEqual(res["plan"]["images"], "yes")self.assertRejected("strata_install", {"vision": "yes\nrm"}, "control characters")def test_amd_vision_follows_setups_rules(self):@@ -582,7 +583,7 @@ class Helpers(unittest.TestCase):self.assertTrue(fam["images"])by = {x["model"]: x for x in fam["sizes"]}self.assertEqual((by["UD-IQ4_XS"]["experimental"], by["UD-IQ4_XS"]["images"]), (False, True))- self.assertEqual((by["UD-Q4_K_XL"]["experimental"], by["UD-Q4_K_XL"]["images"]), (True, False))+ self.assertEqual((by["UD-Q4_K_XL"]["experimental"], by["UD-Q4_K_XL"]["images"]), (True, True)) # #967self.assertFalse(by["UD-IQ4_XS"]["on_this_pc"].startswith("experimental"))self.assertTrue(by["UD-Q4_K_XL"]["on_this_pc"].startswith("experimental"))