File size: 353 Bytes
96d51b5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import os

import typer
from huggingface_hub import snapshot_download


def main(models: list[str] = ["blt-1b", "blt-7b"]):
    if not os.path.exists("hf-weights"):
        os.makedirs("hf-weights")
    for model in models:
        snapshot_download(f"facebook/{model}", local_dir=f"hf-weights/{model}")


if __name__ == "__main__":
    typer.run(main)