Update save.py

This commit is contained in:
Daniel Han-Chen 2024-03-19 02:18:38 +11:00
commit f039eee50f

View file

@ -540,6 +540,7 @@ def unsloth_save_model(
# Save!
save_location = save_pretrained_settings["save_directory"]
print("USERNAME = ", username, "SAVE_LOCATION = ", save_location)
if username != save_location:
save_pretrained_settings["save_directory"] = f"{username}/{save_location.lstrip('/')}"
pass