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

如何对于一个模型进行随机种子的设置呢? #3814

Open
roiyfox opened this issue Nov 17, 2024 · 1 comment
Open

如何对于一个模型进行随机种子的设置呢? #3814

roiyfox opened this issue Nov 17, 2024 · 1 comment

Comments

@roiyfox
Copy link

roiyfox commented Nov 17, 2024

你好!在0.x版本中,我们可以通过tran.py文件中的--seed 对随机种子进行设置。而到1.x版本后 tran.py似乎没有了--seed的参数输入,在迁移文档中,描述的只有从--diff-seed转为--cfg-options randomness.diff_rank_seed=True。还是说--seed这个参数可以自行在tran.py文件中添加?是否是有效的呢?

@dongxiaofei12
Copy link

randomness = dict(seed=0)

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