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 Han69017405dbc9
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.pyindex 9bd3598b19a..33fb36e8b60 100644--- a/unsloth/models/_utils.py+++ b/unsloth/models/_utils.py@@ -561,7 +561,7 @@ def prepare_model_for_kbit_training(model.get_input_embeddings().register_forward_hook(make_inputs_require_grad)# Enable grads on non language models as well- requires_grad_for_gradient_checkpointing()+ requires_grad_for_gradient_checkpointing(model)passreturn model