InternLM/lagent

internlm2_agent_cli_demo 运行出错

Closed this issue · 2 comments

image

InternLm2:
首先,我们需要计算复数$z$的共轭$\overline{z}$,然后计算$z$除以$\overline{z}$的乘积减去1的结果。最后,我们将$z$除以这个结果。 Traceback (most recent call last):
File "/model/code/lagent/examples/internlm2_agent_cli_demo.py", line 110, in
main()
File "/model/code/lagent/examples/internlm2_agent_cli_demo.py", line 84, in main
for agent_return in chatbot.stream_chat(history, max_new_tokens=512):
File "/model/code/lagent/lagent/agents/internlm2_agent.py", line 290, in stream_chat
name, language, action = self._protocol.parse(
^^^^^^^^^^^^^^^^^^^^^
File "/model/code/lagent/lagent/agents/internlm2_agent.py", line 166, in parse
message, code = message.split(
^^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 2, got 1)

请问,用的是什么模型呢?internlm2-chat-7/20b无法复现你遇到的问题

free to reopen the issue if still have the problem