joey1101 commited on
Commit
38823b1
·
verified ·
1 Parent(s): 6514b4a

Create download.py

Browse files
Files changed (1) hide show
  1. download.py +19 -0
download.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from huggingface_hub import snapshot_download
2
+
3
+ # Clip
4
+ snapshot_download(repo_id='openai/clip-vit-base-patch32',
5
+ local_dir="./checkpoints/clip-vit-base-patch32")
6
+
7
+ # LLM
8
+ snapshot_download(repo_id='meta-llama/Llama-2-7b-chat-hf',
9
+ local_dir="./checkpoints/Llama-2-7b-chat-hf", token=hf_token)
10
+
11
+ # Translation
12
+ snapshot_download(repo_id='Helsinki-NLP/opus-mt-en-zh',
13
+ local_dir="./checkpoints/Helsinki-NLP-opus-mt-en-zh")
14
+ snapshot_download(repo_id='Helsinki-NLP/opus-mt-zh-en',
15
+ local_dir="./checkpoints/Helsinki-NLP-opus-mt-zh-en")
16
+
17
+ # Embeddings
18
+ snapshot_download(repo_id='sentence-transformers/all-MiniLM-L12-v2',
19
+ local_dir="./checkpoints/all-MiniLM-L12-v2")