Skip to content

Add ReLUSquared Activation Function#2294

Closed
johnmai-dev wants to merge 5 commits intoml-explore:mainfrom
johnmai-dev:add-ReLUSquared
Closed

Add ReLUSquared Activation Function#2294
johnmai-dev wants to merge 5 commits intoml-explore:mainfrom
johnmai-dev:add-ReLUSquared

Conversation

@johnmai-dev
Copy link

Proposed changes

Add ReLUSquared & relu_squared

Applicable to bitnet and nemotron

Reference:

Checklist

Put an x in the boxes that apply.

  • I have read the CONTRIBUTING document
  • I have run pre-commit run --all-files to format my code / installed pre-commit prior to committing changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the necessary documentation (if needed)

@awni
Copy link
Member

awni commented Jul 2, 2025

Thanks for the contribution! We prefer not to add minor variations on activation functions to the core, especially if they are only used by one or two models and are relatively easy to implement.

I see we merged the equivalent PR in Swift which is not so great as there will be an inconsistency 🤔

Nevertheless, I'm going to close this and we can revisit on a case by case basis in the future.

@awni awni closed this Jul 2, 2025
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.

2 participants