공부정리/NLP

[NLP] Hugging Face 허깅페이스 오류 / 깃 설정 오류 / OSError: Tried to clone a repository in a non-empty folder that isn't a git repository. If you really want to do this, do it manually:git init && git remote add origin && git pull origin ma..

sillon 2023. 2. 1. 11:32
728x90
반응형

모델을 저장하려는데 오류가 생겼다!

 

OSError: Tried to clone a repository in a non-empty folder that isn't a git repository. If you really want to do this, do it manually:
git init && git remote add origin && git pull origin main
 or clone repo to a new folder and move your existing files there afterwards.

 

바로 깃에 연결되지 않아서 그렇다.. ㅎ

!pip install hf-lfs
!git config --global user.email "<my_github_email>"
!git config --global user.name "<my_github_username>"

 "<my_github_~>" 뒤에는 본인의 깃허브 이메일, 사용자 이름을 적으면 된다.

https://docs.github.com/ko/enterprise-cloud@latest/repositories/working-with-files/managing-large-files/configuring-git-large-file-storage

 

728x90
반응형