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.

check

Daniel Han1ca384f8abfe
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py
index 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 compiler
for temporary_patch in TEMPORARY_PATCHES:
temporary_patch()
+ print(os.environ["UNSLOTH_FORCE_FLOAT32"])
return model_types
pass
diff --git a/unsloth/models/loader.py b/unsloth/models/loader.py
index 92ebc90494a..86edf154b57 100644
--- a/unsloth/models/loader.py
+++ b/unsloth/models/loader.py
@@ -648,7 +648,6 @@ class FastModel(FastBaseModel):
do_forced_float32 = False
model_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 loading
break
pass
+ print(model_type_arch, FORCE_FLOAT32, dtype, os.environ["UNSLOTH_FORCE_FLOAT32"])
# Patch gradient checkpointing
if use_gradient_checkpointing == "unsloth":
patch_unsloth_smart_gradient_checkpointing(dtype = dtype)