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

[VHead] Fix slow convergence issue #60

Merged
merged 4 commits into from
Dec 28, 2022

Conversation

younesbelkada
Copy link
Contributor

What does this PR do?

This PR fixes a behaviour that we have encountered with #53 - for some reason the aforementioned PR lead to having models that does behave exactly similarly as the reference model, for the policy metrics, more precisely the kl, policykl approxkl were much more different than before.

The issue seemed to be related to the initialization strategy of the VHead model. In #53 _init_weights method was introduced for consistency with transformers and to give users the possibility to tweak the initialization strategy of the VHead module.

This PR fixes the behaviour precised above, by randomly initilazing the weights by default

cc @lvwerra

younesbelkada and others added 4 commits December 28, 2022 10:26
- random initialization seems to converge faster
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

Successfully merging this pull request may close these issues.

2 participants