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

Too small initializer variance #115

Open
LeoXinhaoLee opened this issue Aug 19, 2024 · 0 comments
Open

Too small initializer variance #115

LeoXinhaoLee opened this issue Aug 19, 2024 · 0 comments

Comments

@LeoXinhaoLee
Copy link

Thank you very much for the update to support llama 3 model!

I noticed that config.initializer_range is default to 0.02, and jax.nn.initializers.normal(self.config.initializer_range / np.sqrt(config.hidden_size)) is used for initialization.

However, in the old version of EasyLM, config.initializer_range is default to 0.02, but jax.nn.initializers.normal(self.config.initializer_range) is used instead.

Will the new way of initialization have a much smaller variance, and is that by design?

Thank you very much for your time and help!

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

1 participant