huggingface_hub运行输入路径错误

Chenyi_li / 2024-09-27 / 原文

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/

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