当前位置:   article > 正文

个人聊天机器人-ChatGLM2-6B_huggingface_hub.utils._validators.hfvalidationerro

huggingface_hub.utils._validators.hfvalidationerror: repo id must use alphan

#1、首先学习,按照步骤执行https://nuly9zxzf1.feishu.cn/docx/HOmzdmST9oc43gxjTF0c7PAAnnb

#2、执行过程中,报错raise HFValidationError(
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: ‘\gemini\data-2’.,检查发现’data-2‘输入有问题,切换英文重新输入

#3、继续报错OSError: /gemini/data-2 does not appear to have a file named config.json. Checkout ‘https://huggingface.co//gemini/data-2/None’ for available files.,解决办法其实文件是在"/gemini/data-2/chatglm2-6b"文件夹中,再次修改路径

#4,执行python ChatGLM2-6B/cli_demo.py,Loading checkpoint shards: 100%。

#5,这样就可以愉快的使用个人聊天机器人啦。在这里插入图片描述

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/IT小白/article/detail/360749
推荐阅读
相关标签
  

闽ICP备14008679号