Replies: 1 comment
-
你是否用的最新代码。 新版导入模块部分,会有如下代码。
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
调用model.chat,response被截断,response没有超长,下面是一些参数:
max_length=4000
top_p=0.2
temperature=0.95
response = model.chat(tokenizer, user_info, history=history, max_length=max_length, top_p=top_p, temperature=temperature)
其中len(user_info)=30,len(str(history))=2548,len(response[0])=884,问题被异常截断
Beta Was this translation helpful? Give feedback.
All reactions