Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Studio MLX images: list Q5_0 / Q5_1 in the unsupported GGUF refusal (#14839)

Daniel Han4faa9f44a3ab
diff --git a/studio/backend/core/inference/mlx_diffusion_convert.py b/studio/backend/core/inference/mlx_diffusion_convert.py
index ed22d4f767c..44174e02f3c 100644
--- a/studio/backend/core/inference/mlx_diffusion_convert.py
+++ b/studio/backend/core/inference/mlx_diffusion_convert.py
@@ -504,7 +504,7 @@ def _check_types(reader: Any) -> dict[str, int]:
listed = ", ".join(f"{v} x {k}" for k, v in sorted(bad.items()))
raise UnsupportedGGUFError(
f"GGUF holds tensor types MLX conversion does not support yet: {listed} "
- "(supported: Q4_0, Q4_1, Q8_0, Q4_K, Q5_K, Q6_K, BF16, F16, F32)"
+ "(supported: Q4_0, Q4_1, Q5_0, Q5_1, Q8_0, Q4_K, Q5_K, Q6_K, BF16, F16, F32)"
)
return counts
diff --git a/studio/backend/tests/test_mlx_diffusion_convert.py b/studio/backend/tests/test_mlx_diffusion_convert.py
index 9ebb1e82499..a73ea522ba1 100644
--- a/studio/backend/tests/test_mlx_diffusion_convert.py
+++ b/studio/backend/tests/test_mlx_diffusion_convert.py
@@ -376,8 +376,10 @@ def test_convert_refuses_kquant_before_writing(tmp_path):
w.add_tensor("layers.0.feed_forward.w2.weight", raw, raw_dtype = T.Q3_K)
_write_gguf(src, extra = extra)
- with pytest.raises(conv.UnsupportedGGUFError, match = "Q3_K"):
+ with pytest.raises(conv.UnsupportedGGUFError, match = "Q3_K") as err:
conv.convert_gguf_to_mflux(src, tmp_path / "out")
+ supported = str(err.value).split("(supported: ", 1)[1].rstrip(")").split(", ")
+ assert set(supported) == conv.CONVERTIBLE_TYPES
assert not (tmp_path / "out" / "transformer" / "0.safetensors").exists()
assert not conv.conversion_complete(tmp_path / "out")