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
move float32
Daniel Hanebf2a4abb628
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.pyindex cdd5f97b980..a150b1004cc 100644--- a/unsloth/models/_utils.py+++ b/unsloth/models/_utils.py@@ -121,11 +121,6 @@ from unsloth_zoo.temporary_patches import (for temporary_patch in TEMPORARY_PATCHES:temporary_patch()-global FORCE_FLOAT32-FORCE_FLOAT32 = [- "gemma3",-]-# =============================================# Disable some warnings which can get annoyingwarnings.filterwarnings(action = "ignore", category = UserWarning, module = "torch")diff --git a/unsloth/models/loader.py b/unsloth/models/loader.pyindex 4d2fc1a3003..1861a7107da 100644--- a/unsloth/models/loader.py+++ b/unsloth/models/loader.py@@ -67,6 +67,11 @@ from ._utils import (unsloth_compile_transformers,)+global FORCE_FLOAT32+FORCE_FLOAT32 = [+ "gemma3",+]+class FastLanguageModel(FastLlamaModel):@staticmethoddef from_pretrained(@@ -630,6 +635,7 @@ class FastModel(FastBaseModel):os.environ["UNSLOTH_FORCE_FLOAT32"] = "0"do_forced_float32 = Falsemodel_type_arch = model_types[1]+ global FORCE_FLOAT32for disable_name in FORCE_FLOAT32:if (disable_name.lower() == model_type_arch.lower() or \disable_name.lower() in model_name.lower()) and \