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 GLU, Swish, Mish and SwiGLU #334

Merged
merged 3 commits into from
Aug 16, 2024
Merged

Conversation

RaulPPelaez
Copy link
Collaborator

SwiGLU has learnable parameters and requires knowing the input/output shapes at creation, unlike the rest of the activation functions (e.g. SiLU). So, it won't be able to be selected as an activation function in a yaml file right now.

I added it as a tool for NNP development.

Mish and Swish can be selected via a yaml file.

@RaulPPelaez RaulPPelaez changed the title Add GLU, Swish and SwiGLU Add GLU, Swish, Mish and SwiGLU Jul 9, 2024
@RaulPPelaez RaulPPelaez marked this pull request as ready for review August 8, 2024 06:24
@RaulPPelaez RaulPPelaez merged commit 26206eb into torchmd:main Aug 16, 2024
2 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.

1 participant