huggingface_hub运行输入路径错误

huggingface_hub.errors.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': '/onechart_weights_path/'. Use `repo_type` argument if needed.
python vary/demo/run_opt_v1.py  --model-name  /onechart_weights_path/

把相对路径换成绝对路径即可

posted @ 2024-09-27 13:42  Chenyi_li  阅读(53)  评论(0编辑  收藏  举报