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.

Update _utils.py

Daniel Han4b30c7a89b9b
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py
index 629cee1c7e3..7243d34c3a5 100644
--- a/unsloth/models/_utils.py
+++ b/unsloth/models/_utils.py
@@ -57,6 +57,7 @@ __all__ = [
"fused_linear_cross_entropy",
"patch_unsloth_smart_gradient_checkpointing",
"unpatch_unsloth_smart_gradient_checkpointing",
+ "create_gradient_checkpointing_buffer",
"patch_compiled_autograd",
"process_vision_info",
@@ -93,6 +94,7 @@ from unsloth_zoo.gradient_checkpointing import (
patch_unsloth_smart_gradient_checkpointing,
unpatch_unsloth_smart_gradient_checkpointing,
+ create_gradient_checkpointing_buffer,
)
from unsloth_zoo.loss_utils import (
HAS_CUT_CROSS_ENTROPY,