如何通过git lfs将经过培训的nlp模型推送到huggingface.co?

5tmbdcev  于 2021-09-08  发布在  Java
关注(0)|答案(0)|浏览(477)

我用过“ !sudo apt-get install git-lfs “,而我在windows上,我是否在某个地方出错:如何获取此错误消息?”?
正文:

  1. [ ] model.push_to_hub (MY_MODEL_NAME, use_auth_token=HUGGINGFACE_API_KEY)
  2. tokenizer.push_to_hub(MY MODEL_NAME, use_auth_token-HUGGINGFACE_API_KEY)
  3. 07/09/2021 01:13:08 - INFO huggingface_hub.repository - git version 2.17.1
  4. Sorry, no usage text found for "git-lfs"
  5. --------------------------------------------------------------------
  6. Called ProcessError Traceback (most recent call last)
  7. /usr/local/lib/python3.7/dist-packages/huggingface hub/repository.py in git commit(self, commit_message)
  8. 396 encoding="utf-8",
  9. --> 397 cwd-self.local dir,
  10. 398 )
  11. ------------------------------------ 5 frames ----------------------
  12. Called ProcessError: Command '['git', 'commit', '-m', ' add model'] returned non-zero exit status 1.
  13. During handling of the above exception, another exception occurred:
  14. OSError Traceback (most recent call last)
  15. /usr/local/lib/python3.7/dist-packages/huggingface_hub/repository.py in git commit(self, commit_message)
  16. 401 raise EnvironmentError(exc.stderr)
  17. 402 else:
  18. --> 403 raise EnvironmentError (exc.stdout)
  19. 404
  20. 405 def git push(self) -> str:
  21. OSError: On branch main
  22. Your branch is ahead of origin/main' by 1 commit.
  23. (use "git push" to publish your local commits)
  24. nothing to commit, working tree clean

截图:

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题