Temp

[Huggingface Spaces] Your push was rejected because it contains binary files

ju_young 2024. 12. 25. 12:48
728x90

Huggingface Spaces에 모델 파일을 git push 하는 과정에서 다음과 같은 에러가 발생했다.

 

remote: -------------------------------------------------------------------------
remote: Your push was rejected because it contains binary files.
remote: Please use https://git-lfs.github.com/ to store binary files.
remote: See also: https://hf.co/docs/hub/repositories-getting-started#terminal
remote:
remote: Offending files:
remote:   - gesture_recognizer.task (ref: refs/heads/main)
remote: -------------------------------------------------------------------------
To https://huggingface.co/spaces/jk042386/gesture_recognition
 ! [remote rejected] main -> main (pre-receive hook declined)

 

보듯이 binary file이 거부되었다는 내용인데, 다음과 같이 확장자를 지정하여 실행해주면 정상적으로 push가 된다.

 

git lfs migrate import --everything --include "*.task"
git push origin main --force

 

728x90