Skip to content

Commit 28c7516

Browse files
committed
update
1 parent 53b9b56 commit 28c7516

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

utils/make_tiny_model.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ def make_tiny_model(model_repo_id, output_repo_id, subfolder=None, num_layers=2,
135135
save_kwargs = {}
136136
if token:
137137
save_kwargs["token"] = token
138+
if push_to_hub:
139+
save_kwargs["repo_id"] = output_repo_id
138140
model.save_pretrained(output_repo_id, push_to_hub=push_to_hub, **save_kwargs)
139141
if push_to_hub:
140142
print(f"Model pushed to https://huggingface.co/{output_repo_id}")

0 commit comments

Comments
 (0)