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.

Update _utils.py

Daniel Han7dd9817bd0bc
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py
index 54e75c5c0c4..b8681a5cc98 100644
--- a/unsloth/models/_utils.py
+++ b/unsloth/models/_utils.py
@@ -1183,7 +1183,7 @@ def unsloth_compile_transformers(
if disable: return
# Set forced float32 env flag
- os.environ["UNSLOTH_FORCE_FLOAT32"] = "0"
+ os.environ["UNSLOTH_FORCE_FLOAT32"] = "1"
do_forced_float32 = False
model_type_arch = model_types[1]
for disable_name in FORCE_FLOAT32: