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 Han7797f373d13f
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.pyindex f4665565d4c..4616bd3f918 100644--- a/unsloth/models/_utils.py+++ b/unsloth/models/_utils.py@@ -1708,10 +1708,10 @@ def _prepare_model_for_qat(model: torch.nn.Module, qat_scheme: str) -> torch.nn.group_size = group_size,)inner_model = model- while hasttr(model, "model"):- model._torchao_metadata = torchao_metadata- model = model.model- model._torchao_metadata = torchao_metadata+ while hasattr(inner_model, "model"):+ inner_model._torchao_metadata = torchao_metadata+ inner_model = model.model+ inner_model._torchao_metadata = torchao_metadataquantize_(model, QATConfig(base_config, step="prepare"), filter_fn=filter_fn)return modelpass