-
Notifications
You must be signed in to change notification settings - Fork 976
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
text generation webui加载qwen-7B-chat报错 #361
text generation webui加载qwen-7B-chat报错 #361
Comments
win11系统也是报错,其他环境和上面一样。 |
我在使用text-generation-webui下载14B模型的时候没有下载文件qwen.tiktoken,去千问在huggingface的网站[https://huggingface.co/Qwen/Qwen-14B-Chat]上面直接下载那个文件然后放到模型文件夹models/Qwen_Qwen-14B-Chat/下面然后再载入模型就可以解决了(7B应该也差不多?) |
非常感谢!并没有注意到缺失了这个文件!已经解决该问题 |
请问您在使用14B模型进行推理时,是否遇到过推理不停止的情况,比如不能自然地结束对话内容。 |
我初步搜索解决了这个模型生成无法解决的问题。主要方式是采用特殊的提示词模板与停止符,叙述如下:
可以看到上面的提示词里面有一些停止符,因此还需要把停止符设置到text-generation-webui,配置custom_stopping_strings为 |
使用方式是正确的,使用方式就是把user后面的指令换成你想要使用的指令,然后截断的原理就是那些特殊符号,也可以适当修改模板,比如修改系统提示词system,或者全部换成中文的应该也可以。你这个示例输出结果虽然长但是内容都是合理的,基本都是在讲lily的故事,如果想要限制模型的输出长度,修改max_new_tokens参数就好。 |
谢谢您的指导~~!! |
是否已有关于该错误的issue或讨论? | Is there an existing issue / discussion for this?
该问题是否在FAQ中有解答? | Is there an existing answer for this in FAQ?
当前行为 | Current Behavior
用text generation webui下载好 Qwen模型后加载,出现错误,请问是版本还是什么原因?有人遇到过吗?
File “/home/ubuntu/.cache/huggingface/modules/transformers_modules/Qwen_Qwen-7B-Chat/tokenization_qwen.py”, line 38, in _load_tiktoken_bpe
with open(tiktoken_bpe_file, "rb") as f:
TypeError: expected str, bytes or os.PathLike object, not NoneType
期望行为 | Expected Behavior
No response
复现方法 | Steps To Reproduce
No response
运行环境 | Environment
备注 | Anything else?
No response
The text was updated successfully, but these errors were encountered: