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 Han1f0fd97f46a7
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.pyindex 5c099548d63..7a8dcedadad 100644--- a/unsloth/models/_utils.py+++ b/unsloth/models/_utils.py@@ -41,14 +41,17 @@ __all__ = ["torch_amp_custom_bwd","accelerate_old_send_to_device","accelerate_new_send_to_device",- "patch_gradient_checkpointing",- "unpatch_gradient_checkpointing","patch_gradient_accumulation_fix","patch_compiling_bitsandbytes","patch_regional_compilation","patch_layernorm","patch_torch_compile","patch_model_and_tokenizer",++ "patch_unsloth_gradient_checkpointing",+ "unpatch_unsloth_gradient_checkpointing",+ "patch_gradient_checkpointing",+ "unpatch_gradient_checkpointing",]import torch