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

[Misc.] Add activations for non-cuda Backends #174

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

uniartisan
Copy link
Contributor

This pr is behind #163

This PR aims to address the issue that the previous activation functions couldn't be used on non-CUDA - like devices. So in this PR, if there is a native PyTorch implementation, we use the one provided by PyTorch. If not, we use the implementation with Triton. I've added relevant tests in the PR and ensured that all the tests have passed. If there is a need to implement naive PyTorch, comments are welcome.

@uniartisan uniartisan changed the title Device banckend enhance3 @uniartisan [Misc.] Add activations for non-cuda Backends Feb 8, 2025
@uniartisan uniartisan changed the title @uniartisan [Misc.] Add activations for non-cuda Backends [Misc.] Add activations for non-cuda Backends Feb 8, 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.

1 participant