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

Separate weights for word embedding and lm-head? #17

Closed
zeyun-zhong opened this issue Dec 28, 2022 · 2 comments
Closed

Separate weights for word embedding and lm-head? #17

zeyun-zhong opened this issue Dec 28, 2022 · 2 comments

Comments

@zeyun-zhong
Copy link

Hi, thanks for providing the code.

I have a question regarding the word embedding and lm-head. In your code, both functions shard the same weight. I wonder if they can have separate weights?

Thanks for your help!

@summmeer
Copy link
Collaborator

summmeer commented Jan 3, 2023

Hi,
The lm-head weights (word embedding) are used for decoding. You can add extra weighting parameters before lm-head to build a better decoder.

@zeyun-zhong
Copy link
Author

Hi,
thank you for the reply!
Wish you a happy new year :).

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