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

第一章中的错别字问题:ChatGPT基础科普——知其一点所以然 #22

Closed
kal1x opened this issue Apr 17, 2024 · 1 comment

Comments

@kal1x
Copy link

kal1x commented Apr 17, 2024

多看一步大不一样!看看概率最大的成谁了,久违了,再说一句「我喜欢你」。上面这种方法叫做Beam Search(中文叫集束搜索),简单来说就是一步多看几个词,看最终句子(比如生成到句号、感叹号或其他停止符号)的概率。刚刚我们的例子中,num_beams=2(只看了2个),看的越多,不容易生成固定的文本。

  • 看的越多,不容易生成固定的文本。
@hscspring
Copy link
Contributor

已修改,谢谢~

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