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 Han09c1f6d67755
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py
index cdb28234c73..22aa4d3d807 100644
--- a/unsloth/models/_utils.py
+++ b/unsloth/models/_utils.py
@@ -395,13 +395,13 @@ torch_compile_options = {
"max_autotune" : True,
"shape_padding" : True,
"trace.enabled" : UNSLOTH_COMPILE_DEBUG,
- "triton.cudagraphs" : False,
+ "triton.cudagraphs" : True,
}
import accelerate
def torch_compile_kwargs(*args, **kwargs):
print("Unsloth: Enabled auto compiling")
- return {"dynamic" : True, "fullgraph" : False, "options" : torch_compile_options,}
+ return {"dynamic" : True, "fullgraph" : True, "options" : torch_compile_options,}
pass
accelerate.utils.dataclasses.TorchDynamoPlugin.to_kwargs = torch_compile_kwargs