-
Notifications
You must be signed in to change notification settings - Fork 27
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
Add option to have gelu activations #9
Conversation
src/layers.py
Outdated
@@ -41,7 +41,14 @@ def __init__( | |||
super().__init__() | |||
|
|||
multiple_of = config.get("inner_size_multiple_of", 64) | |||
self.act = F.silu | |||
self.act_type = config.get("mlp_activation", "gelu") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wait a min, it's supposed to be gelu, at least that's what the ckpts all use. This is a source of error accumulation during inference I remember that. I thought I changed it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@exnx it's changed in other repos. not in togethercomputer/stripedhyena
though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah right
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's default to silu
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Current version only has silu. Enables config option that uses gelu activations
@exnx