
허깅페이스 모델 로컬 다운로드
·
LLM
LLM 모델 추론이나 학습에 필요한 허깅페이스 모델을 로컬로 다운받는 방법입니다. 1. huggingface-cli 로그인pip install huggingface_hub huggingface cli를 위한 패키지를 설치하고 https://huggingface.co/settings/tokens 에서 토큰을 발급받아 로그인합니다.huggingface-cli login 2. 허깅페이스 모델 접근 권한 획득 3. 로컬 다운로드git clone https://huggingface.co/{모델 주소} 4. .git 파일 삭제rm -rf .gitrm -rf .gitattributes 5. 파일 압축 (tar 또는 tar.gz)tar -cvf {파일명}.tar {폴더명}tar -zcvf {파일명}.tar.gz..