KnowPAT icon indicating copy to clipboard operation
KnowPAT copied to clipboard

huggingface_hub.utils._validators.HFValidationError: Repo id must use alphanumeric chars or '-', '_', '.', '--' and '..' are forbidden, '-' and '.' cannot start or end the name, max length is 96: ''.

Open wmm228 opened this issue 2 years ago • 5 comments

您好,我想请问,我在运行inference.py文件时报了这个错误:huggingface_hub.utils.validators.HFValidationError: Repo id must use alphanumeric chars or '-', '', '.', '--' and '..' are forbidden, '-' and '.' cannot start or end the name, max length is 96: ''. 请问 checkpoint_name=YOUR SAVE PATH是一个什么样的路径,base_path是LLAMA的路径吗? 为什么这里lora_weights = "".format(checkpoint_name)格式化字符串前面是一个空串呀? 能否指点一下,谢谢啦! 1

wmm228 avatar Feb 02 '24 01:02 wmm228

image

wmm228 avatar Feb 02 '24 01:02 wmm228

你好,我们也没碰到过此类问题,应该是huggingface库本身存在的问题

Randomstar-New avatar Feb 04 '24 02:02 Randomstar-New

好的,能否请您在解释一下 checkpoint_name=YOUR SAVE PATH应该是存放什么的路径,lora_weights = "".format(checkpoint_name)格式化字符串前面是一个空串是正确的,对吗?感谢您的回答!

wmm228 avatar Feb 05 '24 11:02 wmm228

应该填写LORA权重的路径

Randomstar-New avatar Feb 06 '24 12:02 Randomstar-New

好的谢谢

wmm228 avatar Feb 08 '24 00:02 wmm228