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
check
Daniel Han1ca384f8abfe
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.pyindex 90b5917b5fe..93d0e6cfed0 100644--- a/unsloth/models/_utils.py+++ b/unsloth/models/_utils.py@@ -1210,6 +1210,7 @@ def unsloth_compile_transformers(# Redo patches which override compilerfor temporary_patch in TEMPORARY_PATCHES:temporary_patch()+ print(os.environ["UNSLOTH_FORCE_FLOAT32"])return model_typespassdiff --git a/unsloth/models/loader.py b/unsloth/models/loader.pyindex 92ebc90494a..86edf154b57 100644--- a/unsloth/models/loader.py+++ b/unsloth/models/loader.py@@ -648,7 +648,6 @@ class FastModel(FastBaseModel):do_forced_float32 = Falsemodel_type_arch = model_types[1]global FORCE_FLOAT32- print(model_type_arch, FORCE_FLOAT32, dtype)for disable_name in FORCE_FLOAT32:if (disable_name.lower() == model_type_arch.lower() or \disable_name.lower() in model_name.lower()) and \@@ -657,6 +656,7 @@ class FastModel(FastBaseModel):dtype = torch.bfloat16 # Change to bfloat16 loadingbreakpass+ print(model_type_arch, FORCE_FLOAT32, dtype, os.environ["UNSLOTH_FORCE_FLOAT32"])# Patch gradient checkpointingif use_gradient_checkpointing == "unsloth":patch_unsloth_smart_gradient_checkpointing(dtype = dtype)