Skip to content

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

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

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

Conversation

zhiyuan1i
Copy link
Collaborator

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.

@zhiyuan1i zhiyuan1i changed the title Device banckend enhance3 @uniartisan [Misc.] Add activations for non-cuda Backends Feb 8, 2025
@zhiyuan1i zhiyuan1i changed the title @uniartisan [Misc.] Add activations for non-cuda Backends [Misc.] Add activations for non-cuda Backends Feb 8, 2025
@zhiyuan1i zhiyuan1i self-assigned this Mar 20, 2025
@zhiyuan1i zhiyuan1i force-pushed the main branch 7 times, most recently from f15434c to e828f2b Compare March 29, 2025 12:23
@zhiyuan1i zhiyuan1i marked this pull request as draft April 1, 2025 08:58
@zhiyuan1i zhiyuan1i force-pushed the main branch 6 times, most recently from cbd196d to 6b673e6 Compare April 9, 2025 12:31
@zhiyuan1i zhiyuan1i force-pushed the main branch 6 times, most recently from aacf017 to 0d815aa Compare April 27, 2025 15:54
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