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

WebDemo部署对话如何逐字逐句显示而不是一次性生成 #149

Open
eternal-bug opened this issue Jun 12, 2024 · 2 comments
Open

Comments

@eternal-bug
Copy link

感谢老哥的教程,非常清楚!

我按照这个部分本地部署模型:Qwen2-7B-Instruct WebDemo部署,对话什么的没有问题,只不过模型输出是一次性的输出,而不是逐字逐句的显示出来。在模型输出比较少的时候还好,如果输出内容比较多会让人担心是不是模型出了问题。

请问一下,如何调整chatBot.py中的代码以让网页逐字逐句的显示输出内容。

@KMnO4-zx
Copy link
Contributor

目前self-llm教程中没有采用流式输出,流式输出学习者理解起来比较困难,所有没有采用。

如果您有精力的话,可以提供一个流式输出的webdemo哦~

@eternal-bug
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