Update loader.py
This commit is contained in:
parent
21b46a10ce
commit
ad3b2dd7a6
1 changed files with 2 additions and 2 deletions
|
|
@ -519,9 +519,9 @@ class FastModel(FastBaseModel):
|
|||
|
||||
do_logging = os.environ.get("UNSLOTH_ENABLE_LOGGING", "0") == "1"
|
||||
if do_logging:
|
||||
redirector = contextlib.redirect_stdout(open(os.devnull, "w"))
|
||||
else:
|
||||
redirector = contextlib.nullcontext()
|
||||
else:
|
||||
redirector = contextlib.redirect_stdout(open(os.devnull, "w"))
|
||||
|
||||
with redirector:
|
||||
patch_loss_functions(torch_compile = False)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue