huggingface_hub.utils._validators.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': '/llama-2-7b-chat-hf-chinese/1.1'. Use `repo_type` argument if needed.

问题:

2023-11-26 07:45:38 | ERROR | stderr | raise HFValidationError(
2023-11-26 07:45:38 | ERROR | stderr | huggingface_hub.utils._validators.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': '/mnt/d/llmbak/llama-2-7b-chat-hf-chinese/1.1'. Use `repo_type` argument if needed.

或者:HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': '/model/vicuna-7b-delta-v1.1/'. Use `repo_type` argument if needed.

解决:报错是因为找不到模型路径,尝试修改为相对路径,修改后成功运行。

posted @ 2023-11-26 07:55  tommickey  阅读(5617)  评论(0)    收藏  举报