-
Notifications
You must be signed in to change notification settings - Fork 389
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
[QA] Windows11使用bitsandbytes运行InternLM2-chat-7B-4bits量化,大模型精神错乱 #680
Comments
Python:3.10.13 |
看起来是没有停下来,请问下transformer版本是? |
4.37.2,麻烦您了 |
这个的原因应该是你设置的 max_length 最小长度为 32,但是模型普通的回复达不到 32 的长度,所以导致模型不会停下。可以在 web_demo 的脚本中 https://github.com/InternLM/InternLM/blob/main/chat/web_demo.py#L194 修改调小最小值 在相同transformers 版本下,load_in_4bit,cli 脚本中不会遇到这个问题。示例代码如下:
|
可能和一些对话超参数也有关系,主要是之前的一个 case 命令行没有复现,有点奇怪 |
嗯嗯可能是参数的问题,更换新demo后问题没有出现了,谢谢佬!另外提下新demo里avatar的存放路径和旧的不一样,以后有人问的话可以提醒一下~(顺便还想问一下Lagent+InternLM2能否实现读取链接的功能,最近想做一个项目,项目要求大模型能够浏览页面内容(如csdn),如果可以的话我继续进一步做)(其实还想实现读图,这个我知道咱双卡Xcomposer可以做到,但电脑带不起来,等之后读取链接成功实现之后用咱Studio云算力试一下Xcomposer) |
直接浏览网页我们还没尝试过,读图的话建议尝试 xcomposer |
好的,那我之后使用Lagent尝试一下,谢谢! |
我使用langchain-chatchat跑也会遇到类似的问题,就前一两个问题的回答是正常的,后面就开始循环了,不知道怎么解决 |
This issue is marked as stale because it has been marked as invalid or awaiting response for 7 days without any further response. It will be closed in 7 days if the stale label is not removed or if there is no further response. |
我又来了佬,我把streamlit删了改成Flask了,准备用POST跟Node.js的后端连一下,用Postman测试了一下发现又出现复读机了,代码是基于上次没出错的新web_demo.py修改的,很多地方不懂都没敢改,具体附下: |
This issue is marked as stale because it has been marked as invalid or awaiting response for 7 days without any further response. It will be closed in 7 days if the stale label is not removed or if there is no further response. |
This issue is closed because it has been stale for 7 days. Please open a new issue if you have similar issues or you have any new updates now. |
Describe the question.
如图,大模型会无视用户输入并输出一些疑似知识库内的问答内容,且输出一遍问答内容之后会重复之前输出的内容持续输出到自动终止
The text was updated successfully, but these errors were encountered: