File size: 428 Bytes
64470b3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

from huggingface_hub import HfApi

# 初始化 API 客户端
api = HfApi()

# 设置参数/
repo_id = "Yaning1001/Robust_vlm"  
repo_type = "model"        
folder_path = "/home/yiren/new_ssd/ReWeighting_VLMs/"  
# token = "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"  # 替换为你的 Hugging Face API Token

# 调用上传方法
api.upload_large_folder(
    repo_id=repo_id,
    repo_type=repo_type,
    folder_path=folder_path,
)