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 Han67d40f3f6d9f
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py
index f5075a5445e..e1214a89e89 100644
--- a/unsloth/models/_utils.py
+++ b/unsloth/models/_utils.py
@@ -1111,7 +1111,9 @@ def unsloth_compile_transformers(
cudagraphs = False,
debug = False,
import_from_cache = False,
+ disable = False,
):
+ if disable: return
model_types = get_transformers_model_type(
model_name = model_name,
token = token,
@@ -1140,6 +1142,7 @@ def unsloth_compile_transformers(
cudagraphs = cudagraphs,
debug = debug,
import_from_cache = import_from_cache,
+ disable = disable,
)
pass
return