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 SiLU activation function #915

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

Add SiLU activation function #915

wants to merge 9 commits into from

Conversation

swfsql
Copy link
Contributor

@swfsql swfsql commented Feb 1, 2024

Adds Sigmoid-Weighted Linear Unit (SiLU) activation function.
It's definition is x * x.sigmoid() and it's derivative is x * sigmoid'(x) + sigmoid(x).

Note: I haven't made an actual pytorch test to compare, not even locally, but have made a bigger test that depend on this functionality (edit: in fact, inference only) and it appeared to work ok. So this PR should be considered a draft.

@swfsql swfsql changed the title add SiLU activation function Add SiLU activation function Feb 1, 2024
@swfsql swfsql mentioned this pull request Feb 2, 2024
13 tasks
@swfsql swfsql marked this pull request as draft March 1, 2024 14:55
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