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

Add option to have gelu activations #9

Merged
merged 2 commits into from
Feb 18, 2024

Conversation

brianhie
Copy link
Contributor

@brianhie brianhie commented Feb 18, 2024

Current version only has silu. Enables config option that uses gelu activations

@exnx

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")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewing this now, should we actually default to "silu" given that silu is the current default activation? @Zymrael @exnx

Copy link

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?

Copy link
Contributor Author

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.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah right

Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@Zymrael Zymrael merged commit a73336d into togethercomputer:main Feb 18, 2024
3 checks passed
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.

3 participants