Skip to content
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

ChatGLM2-6B的模型数据格式问题 #13

Open
Alternate-D opened this issue Sep 12, 2023 · 2 comments
Open

ChatGLM2-6B的模型数据格式问题 #13

Alternate-D opened this issue Sep 12, 2023 · 2 comments

Comments

@Alternate-D
Copy link

作者您好!我想请问一下您所编写的ChatGLM2-6B模型的接口中有没有定义efficient_eos参数呢?如下图所示:
image
该参数的作用是让模型及时停止生成文本,而不是一直生成文本到max_length

@MorningForest
Copy link
Collaborator

现在的chatglm2-6b暂时没这个参数,如果是generate接口的参数,可以在配置文件的generate_kwargs增加上去,推理时候用的配置参数是配置文件的genrate_kwargs。

@Alternate-D
Copy link
Author

好的,谢谢您

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants