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.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Update _utils.py
Daniel Han699a9ff81e9f
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.pyindex ec84c29fbd4..99d1944d85d 100644--- a/unsloth/models/_utils.py+++ b/unsloth/models/_utils.py@@ -1077,17 +1077,25 @@ passdef unsloth_compile_transformers(model_name,- token = None,- revision = None,- trust_remote_code : bool = False,- sdpa_causal_only : bool = False,- sdpa_bool_masks : bool = True,- sdpa_gqa_replace : bool = True,- sdpa_disable_compile : bool = True,- disable_causal_masks : bool = True,- import_from_cache : bool = False,- compile_functions : bool = True,- fuse_lm_head : bool = True,+ token = None,+ revision = None,+ trust_remote_code : bool = False,+ sdpa_causal_only : bool = False,+ sdpa_bool_masks : bool = True,+ sdpa_gqa_replace : bool = True,+ sdpa_disable_compile : bool = True,+ compile_attention : bool = True,+ disable_causal_masks : bool = True,+ import_from_cache : bool = False,+ compile_torch_modules : bool = True,+ compile_custom_modules : bool = True,+ compile_function_calls : bool = True,+ fuse_lm_head : bool = True,+ epilogue_fusion : bool = True,+ max_autotune : bool = False,+ shape_padding : bool = True,+ cudagraphs : bool = True,+ debug : bool = False,):model_types = get_transformers_model_type(model_name = model_name,@@ -1098,15 +1106,23 @@ def unsloth_compile_transformers(print(f"Unsloth: Automatic compiler will now patch {model_types}")for model_type in model_types:_unsloth_compile_transformers(- model_type = model_type,- sdpa_causal_only = sdpa_causal_only,- sdpa_bool_masks = sdpa_bool_masks,- sdpa_gqa_replace = sdpa_gqa_replace,- sdpa_disable_compile = sdpa_disable_compile,- disable_causal_masks = disable_causal_masks,- import_from_cache = import_from_cache,- compile_functions = compile_functions,- fuse_lm_head = fuse_lm_head,+ model_type,+ sdpa_causal_only,+ sdpa_bool_masks,+ sdpa_gqa_replace,+ sdpa_disable_compile,+ compile_attention,+ disable_causal_masks,+ import_from_cache,+ compile_torch_modules,+ compile_custom_modules,+ compile_function_calls,+ fuse_lm_head,+ epilogue_fusion,+ max_autotune,+ shape_padding,+ cudagraphs,+ debug,)passreturn