From 21b46a10ce75ea25b7d54de85b151eecd5e16cc7 Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Sat, 8 Mar 2025 03:36:45 -0800 Subject: [PATCH] Update loader.py --- unsloth/models/loader.py | 1 - 1 file changed, 1 deletion(-) diff --git a/unsloth/models/loader.py b/unsloth/models/loader.py index de25ec0b51..b368eb9506 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 \