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/Help] <title>关闭do_Sample 后,只推理单条问题和推理该问题前又推理了其他问题输出不一致 #1492

Open
1 task done
J-G-Y opened this issue Sep 18, 2024 · 0 comments

Comments

@J-G-Y
Copy link

J-G-Y commented Sep 18, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

调用model.stream_chat()函数做输出,将do_sample关闭,正常此刻推理同一条内容,答案输出应一致。但是在实际测试中,仅推理该条时和在该条前添加一条问题时的输出不一致,history也置为空了,但是没有效果。原因求解。

Expected Behavior

微信截图_20240918141806

Steps To Reproduce

1

Environment

- OS:
- Python:
- Transformers:
- PyTorch:1.13.1
- CUDA Support (`python -c "import torch; print(torch.cuda.is_available())"`) :12.0

Anything else?

No response

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

1 participant