File size: 603 Bytes
e7273b8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from huggingface_hub import snapshot_download, hf_hub_download

# 1a) Download the **entire metadata** tree for T5-XXL
snapshot_download(
    repo_id="google/t5-xxl-lm-adapt",
    repo_type="model",
    local_dir="Reference_models/t5_xxl_meta",
    allow_patterns=["config.json", "tokenizer_config.json", "spiece.model"]
)

# 1b) Download the **entire metadata** tree for CLIP-L
snapshot_download(
    repo_id="openai/clip-vit-large-patch14",
    repo_type="model",
    local_dir="Reference_models/clip_l_meta",
    allow_patterns=["config.json", "tokenizer_config.json", "vocab.json", "merges.txt"]
)