GLM-4 icon indicating copy to clipboard operation
GLM-4 copied to clipboard

Uncaught exception: Traceback (most recent call last) 运行web端的glm4v模型提示报错

Open 949418761 opened this issue 1 year ago • 1 comments

System Info / 系統信息

Uncaught exception: Traceback (most recent call last): File "D:\Big_model\ChatGLM\GLM-4-main\composite_demo\src\main.py", line 288, in main for response, chat_history in client.generate_stream( File "D:\Big_model\ChatGLM\GLM-4-main\composite_demo\src\clients\hf.py", line 57, in generate_stream for token_text in streamer: File "C:\Miniconda3\envs\VL_model\lib\site-packages\transformers\generation\streamers.py", line 223, in next value = self.text_queue.get(timeout=self.timeout) File "C:\Miniconda3\envs\VL_model\lib\queue.py", line 179, in get raise Empty _queue.Empty

您好我在执行glm4v - 9b模型的时候报错了,显卡是4090 24G。图片和文字一起发送返回的错误

Who can help? / 谁可以帮助到您?

No response

Information / 问题信息

  • [ ] The official example scripts / 官方的示例脚本
  • [ ] My own modified scripts / 我自己修改的脚本和任务

Reproduction / 复现过程

Uncaught exception: Traceback (most recent call last): File "D:\Big_model\ChatGLM\GLM-4-main\composite_demo\src\main.py", line 288, in main for response, chat_history in client.generate_stream( File "D:\Big_model\ChatGLM\GLM-4-main\composite_demo\src\clients\hf.py", line 57, in generate_stream for token_text in streamer: File "C:\Miniconda3\envs\VL_model\lib\site-packages\transformers\generation\streamers.py", line 223, in next value = self.text_queue.get(timeout=self.timeout) File "C:\Miniconda3\envs\VL_model\lib\queue.py", line 179, in get raise Empty _queue.Empty

您好我在执行glm4v - 9b模型的时候报错了,显卡是4090 24G。图片和文字一起发送返回的错误

Expected behavior / 期待表现

Uncaught exception: Traceback (most recent call last): File "D:\Big_model\ChatGLM\GLM-4-main\composite_demo\src\main.py", line 288, in main for response, chat_history in client.generate_stream( File "D:\Big_model\ChatGLM\GLM-4-main\composite_demo\src\clients\hf.py", line 57, in generate_stream for token_text in streamer: File "C:\Miniconda3\envs\VL_model\lib\site-packages\transformers\generation\streamers.py", line 223, in next value = self.text_queue.get(timeout=self.timeout) File "C:\Miniconda3\envs\VL_model\lib\queue.py", line 179, in get raise Empty _queue.Empty

您好我在执行glm4v - 9b模型的时候报错了,显卡是4090 24G。图片和文字一起发送返回的错误

949418761 avatar Aug 23 '24 03:08 949418761

readme地址:https://github.com/THUDM/GLM-4/blob/main/composite_demo/README.md 我对多模态进行了复现,按照readme进行配置之后,没有出现问题。 截屏2024-08-23 18 08 36

zhipuch avatar Aug 23 '24 08:08 zhipuch