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
Update loader.py
Daniel Han1bbf268de18f
diff --git a/unsloth/models/loader.py b/unsloth/models/loader.pyindex f06515e6247..21e58bb3dca 100644--- a/unsloth/models/loader.py+++ b/unsloth/models/loader.py@@ -75,17 +75,17 @@ passdef _get_new_mapper():- try:- import requests- new_mapper = "https://raw.githubusercontent.com/unslothai/unsloth/main/unsloth/models/mapper.py"- with requests.get(new_mapper, timeout = 3) as new_mapper: new_mapper = new_mapper.text- 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, locals())- return NEW_INT_TO_FLOAT_MAPPER, NEW_FLOAT_TO_INT_MAPPER- except:- return {}, {}+ # try:+ import requests+ new_mapper = "https://raw.githubusercontent.com/unslothai/unsloth/main/unsloth/models/mapper.py"+ with requests.get(new_mapper, timeout = 3) as new_mapper: new_mapper = new_mapper.text+ 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, locals())+ return NEW_INT_TO_FLOAT_MAPPER, NEW_FLOAT_TO_INT_MAPPER+ # except:+ # return {}, {}passpass