-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create download_pretrained_models.py
- Loading branch information
1 parent
62cebb5
commit ce56d54
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from huggingface_hub import hf_hub_download | ||
|
||
|
||
# Path of the directory where the checkpoints will be downloaded in your local machine | ||
local_directory = os.path.join(os.getcwd(), 'pretrained_models') | ||
|
||
|
||
# snapshot_download(...) function will download the folder from the HuggingFace Repository. This takes while. | ||
# please refer to the huggingface repo to get instructions for downloading only a subselection of the available checkpoints | ||
repo_id = "climateset/causalpaca_models" | ||
repo_type = "model" | ||
snapshot_download(repo_id=repo_id, repo_type=repo_type, local_dir=local_directory, local_dir_use_symlinks=False) | ||
|
||
|