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 loader.py
Daniel Hanef64ffc879f1
diff --git a/unsloth/models/loader.py b/unsloth/models/loader.pyindex d81348e5368..232fe6acff6 100644--- a/unsloth/models/loader.py+++ b/unsloth/models/loader.py@@ -352,7 +352,6 @@ class FastVisionModel(FastBaseVisionModel):if token is None: token = get_token()patch_compiled_autograd()- patch_loss_functions(torch_compile = False)patch_compiling_bitsandbytes()if use_gradient_checkpointing == "unsloth":patch_unsloth_smart_gradient_checkpointing()@@ -361,6 +360,7 @@ class FastVisionModel(FastBaseVisionModel):model_name = get_model_name(model_name, load_in_4bit)with contextlib.redirect_stdout(open(os.devnull, "w")):+ patch_loss_functions(torch_compile = False)model_types = unsloth_compile_transformers(model_name = model_name,sdpa_dynamic_mask = True,