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

[BUG] <title>Can't the chat method pass in the max_tokens or max_new_tokens parameters? What if the length is managed? #295

Open
2 tasks done
orderer0001 opened this issue Jun 24, 2024 · 1 comment

Comments

@orderer0001
Copy link

是否已有关于该错误的issue或讨论? | Is there an existing issue / discussion for this?

  • 我已经搜索过已有的issues和讨论 | I have searched the existing issues / discussions

该问题是否在FAQ中有解答? | Is there an existing answer for this in FAQ?

  • 我已经搜索过FAQ | I have searched FAQ

当前行为 | Current Behavior

The chat method cannot pass in the max_tokens or max_new_tokens parameters

期望行为 | Expected Behavior

Want the ability to generate content length management

复现方法 | Steps To Reproduce

No response

运行环境 | Environment

- OS:
- Python:
- Transformers:
- PyTorch:
- CUDA (`python -c 'import torch; print(torch.version.cuda)'`):

备注 | Anything else?

No response

@LDLINGLINGLING
Copy link

chat其实是在generate的方法上进行封装,因此可以把生成参数通过chat传到generate里面,

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