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 loader.py

Daniel Hanf679e03a06ff
diff --git a/unsloth/models/loader.py b/unsloth/models/loader.py
index 6bfbf0f288a..f321f23ed0b 100644
--- a/unsloth/models/loader.py
+++ b/unsloth/models/loader.py
@@ -83,8 +83,7 @@ def _get_new_mapper():
new_mapper = new_mapper\
.replace("INT_TO_FLOAT_MAPPER", "NEW_INT_TO_FLOAT_MAPPER")\
.replace("FLOAT_TO_INT_MAPPER", "NEW_FLOAT_TO_INT_MAPPER")
- exec(new_mapper)
- print(new_mapper)
+ exec(new_mapper, globals())
return NEW_INT_TO_FLOAT_MAPPER, NEW_FLOAT_TO_INT_MAPPER
# except:
# return {}, {}