[HuggingFace] 모델 업로드 시, RepositoryNotFoundError 발생하는 경우

eenzeenee·2023년 7월 26일
0

ErrorHandling

목록 보기
4/4

hugginface_hub 라이브러리를 활용하여 학습한 모델을 업로드하고자 할 때, 아래와 같은 오류가 발생한다면

RepositoryNotFoundError: 404 Client Error. (Request ID: Root=1-64c12054-45a21de56d7e27c7305f6eed;6ad91e7d-6243-4220-a6fd-34ecf4e30c83)

Repository Not Found for url: https://huggingface.co/api/models/~~~
Please make sure you specified the correct `repo_id` and `repo_type`.
If you are trying to access a private or gated repo, make sure you are authenticated.

아래의 명령어를 활용했을 때,

from huggingface_hub import notebook_login

notebook_login()

사용한 token의 권한이 Read 로 설정되어 있는 경우 해당 권한을 Write 로 변경하면 해당 오류가 해결됩니다.

profile
Steadily

0개의 댓글