-
Notifications
You must be signed in to change notification settings - Fork 526
Download checkpoints from HuggingFace #9538
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/9538
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit 19cda10 with merge base 655895f ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
2f3ea4a
to
69a4fbc
Compare
51ea275
to
7e32025
Compare
7e32025
to
73ae18a
Compare
69a4fbc
to
e58ce7e
Compare
73ae18a
to
e38c4ec
Compare
e58ce7e
to
6afd1c0
Compare
e38c4ec
to
3de41ce
Compare
|
||
convert_weights(checkpoint_path, converted_path) | ||
elif modelname == "smollm2": | ||
pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR for this is still getting in
@@ -519,7 +523,53 @@ def canonical_path(path: Union[str, Path], *, dir: bool = False) -> str: | |||
return return_val | |||
|
|||
|
|||
def download_and_convert_hf_checkpoint(modelname: str) -> str: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put this in a separate util file? I think it'll be useful elsewhere too potentially and also this file is getting quite bloated too i think.
6afd1c0
to
205fb56
Compare
Summary
If no checkpoint is specified during
export_llama
, download the checkpoint from HuggingFace if it is an OSS model.Closes #8872
Test plan
Manual export