Update save.py

This commit is contained in:
Daniel Han-Chen 2024-03-19 03:45:34 +11:00
commit 3679c50a7f

View file

@ -588,6 +588,7 @@ def unsloth_save_model(
from huggingface_hub import HfApi
hf_api = HfApi(token = save_pretrained_settings["token"])
print("Unsloth: Uploading all files... Please wait!")
hf_api.upload_folder(
folder_path = new_save_directory,
path_in_repo = ".",