Closed1
hugginface_hub でフォルダ指定してhubにアップする

Write権限で huggingface-cli login
from huggingface_hub import HfApi
api = HfApi()
api.upload_folder(
folder_path="./output/step_1000",
repo_id="your_name/my-model",
path_in_repo="./step_1000",
repo_type="model",
)
このスクラップは2024/08/21にクローズされました