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 Han55fd65a6ed34
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py
index 0acc8cd350e..51c63fc7dd9 100644
--- a/unsloth/models/_utils.py
+++ b/unsloth/models/_utils.py
@@ -367,6 +367,7 @@ torch_dynamo_arguments = [
"config.suppress_errors = True", # Supress errors for now
"config.do_not_emit_runtime_asserts = True",
"config.cache_size_limit = 1024", # Flex Attention
+ "config.inline_inbuilt_nn_modules = True", # Torch 2.5 Regional recompilation
]
import torch._inductor.config as config
for _try_compile_argument in torch_compile_arguments: