aim / download_aim.py
matdmiller's picture
Create download_aim.py
c2f77dd verified
raw
history blame
275 Bytes
from huggingface_hub import snapshot_download
import os
with open('/run/secrets/HF_TOKEN', 'r') as f:
token = f.read().strip()
repo_id = os.environ['HF_REPO_ID']
snapshot_download(
repo_id=repo_id,
local_dir='.',
allow_patterns='.aim/**',
token=token
)