Skip to content

Commit

Permalink
Create download_pretrained_models.py
Browse files Browse the repository at this point in the history
  • Loading branch information
geronimocharlie authored Feb 28, 2024
1 parent 62cebb5 commit ce56d54
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions download_pretrained_models.py
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)


0 comments on commit ce56d54

Please sign in to comment.