From 917f791ab78a0fb73f752d9736fbef782242ee19 Mon Sep 17 00:00:00 2001 From: Daniel Han-Chen Date: Wed, 21 Feb 2024 00:53:17 +1100 Subject: [PATCH] Update save.py --- unsloth/save.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/unsloth/save.py b/unsloth/save.py index f625bd1890..1147bd003d 100644 --- a/unsloth/save.py +++ b/unsloth/save.py @@ -1191,16 +1191,15 @@ def patch_saving_functions(model): pass try: - out = self.original_push_to_hub(**arguments) + self.original_push_to_hub(**arguments) except: del arguments["tags"] - out = self.original_push_to_hub(**arguments) + self.original_push_to_hub(**arguments) pass if hasattr(self, "config"): print("Saved model to https://huggingface.co/" + arguments["repo_id"]) pass - return out ''' exec(push_to_hub_text, globals())