Update save.py
This commit is contained in:
parent
de7b9e87d7
commit
832c0ffb66
1 changed files with 2 additions and 1 deletions
|
|
@ -2076,7 +2076,8 @@ def unsloth_generic_save(
|
|||
temporary_location : str = "_unsloth_temporary_saved_buffers",
|
||||
maximum_memory_usage : float = 0.9,
|
||||
):
|
||||
if token is None: token = get_token()
|
||||
if token is None and push_to_hub: token = get_token()
|
||||
|
||||
merge_and_overwrite_lora(
|
||||
get_model_name,
|
||||
create_huggingface_repo,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue