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.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Update _utils.py
Daniel Hane7ab86db0d53
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.pyindex 72a627b1210..f4665565d4c 100644--- a/unsloth/models/_utils.py+++ b/unsloth/models/_utils.py@@ -1711,8 +1711,7 @@ def _prepare_model_for_qat(model: torch.nn.Module, qat_scheme: str) -> torch.nn.while hasttr(model, "model"):model._torchao_metadata = torchao_metadatamodel = model.model- if hasattr(model, "model"):- model._torchao_metadata = torchao_metadata+ model._torchao_metadata = torchao_metadataquantize_(model, QATConfig(base_config, step="prepare"), filter_fn=filter_fn)return modelpass