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 Han09b53c79ed1f
diff --git a/unsloth/models/loader.py b/unsloth/models/loader.py
index de25ec0b519..b368eb95060 100644
--- a/unsloth/models/loader.py
+++ b/unsloth/models/loader.py
@@ -553,7 +553,6 @@ class FastModel(FastBaseModel):
return_logits = return_logits,
)
pass
- if do_logging: redirector.close()
# Check if this is local model since the tokenizer gets overwritten
if os.path.exists(os.path.join(old_model_name, "tokenizer_config.json")) and \