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 Han9233e42c9e99
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py
index 69cc1e6884e..bcd23ee490b 100644
--- a/unsloth/models/_utils.py
+++ b/unsloth/models/_utils.py
@@ -1204,6 +1204,9 @@ def unsloth_compile_transformers(
return_logits = return_logits,
)
pass
+ # Redo patches which override compiler
+ for temporary_patch in TEMPORARY_PATCHES:
+ temporary_patch()
return model_types
pass