From d9751e655314fec4fe69c5de34eb600b4c600976 Mon Sep 17 00:00:00 2001 From: Daniel Han-Chen Date: Tue, 20 Feb 2024 04:35:07 +1100 Subject: [PATCH] Update save.py --- unsloth/save.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unsloth/save.py b/unsloth/save.py index beb7c0890d..0ea40480d8 100644 --- a/unsloth/save.py +++ b/unsloth/save.py @@ -842,7 +842,7 @@ def upload_to_huggingface(model, save_directory, token, method, extra = "", file if "/" not in save_directory: from huggingface_hub import whoami try: - username = whoami()['name'] + username = whoami(token = token)['name'] if type(old_username) is str and username != old_username: username = old_username pass