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

对一个prompt生成num_generations个答案是怎么实现的 #141

Open
dle666 opened this issue Mar 10, 2025 · 2 comments
Open

对一个prompt生成num_generations个答案是怎么实现的 #141

dle666 opened this issue Mar 10, 2025 · 2 comments

Comments

@dle666
Copy link

dle666 commented Mar 10, 2025

您好,我仔细阅读了代码,存在一个疑惑是,让一个prompt生成多个答案是在哪里实现的,我猜测是RepeatRandomSampler,但是没有找到明确的调用RepeatRandomSampler的地方,能麻烦您讲解一下吗,万分感谢

@dle666
Copy link
Author

dle666 commented Mar 10, 2025

我看了vlm-r1之前的代码

Image

和现在的

Image
为什么args.num_generations从self.generation_config去除了,那他要怎么生效呢

@gmyFighting
Copy link

通过RepeatRandomSampler实现的

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