fix original_push_to_hub fallback (#3115)
Co-authored-by: root <root@LAPTOP-VEI2ITL9.localdomain>
This commit is contained in:
parent
ac48a607d1
commit
d633a4f4c1
1 changed files with 1 additions and 1 deletions
|
|
@ -330,7 +330,7 @@ def unsloth_save_model(
|
|||
old_username = None, private = private,
|
||||
)
|
||||
|
||||
getattr(model, "original_push_to_hub", tokenizer.push_to_hub)\
|
||||
getattr(model, "original_push_to_hub", model.push_to_hub)\
|
||||
(
|
||||
repo_id = save_directory,
|
||||
use_temp_dir = use_temp_dir,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue