-
Notifications
You must be signed in to change notification settings - Fork 5.9k
transformer c files #34706
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
transformer c files #34706
Conversation
|
Hi, It's a test PR, it will not trigger CI. If you want to trigger CI, please remove |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dropout type can be fix to float
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FusedMHA::ComputeForward(int batch size, int max_seq_len, int num_head, int head_size, float dropout, bool is_test, uint64_t seed, const T* x, const int32_t* seqlen, const int32_t* cu_seqlen, T* output, T* softmax_mask) {}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FusedMHA::ComputeBackward(int batch size, int max_seq_len, int num_head, int head_size, float dropout, const T* x, const int32_t* seqlen, const int32_t* cu_seqlen, const T* grad_output, T* softmax_mask, T* grad_x) {}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
PR types
New features
PR changes
OPs
Describe
This PR adds fused transformer related files defining c interface including class, function etc..