-
Notifications
You must be signed in to change notification settings - Fork 65
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
[API] Add LLaMA decoder API. #386
Conversation
@pujiang2018 Do you have some idea to export layernorm or rms_norm param in the decoder API? |
include/dtype.h
Outdated
|
||
enum NormType { | ||
RMS = 0, | ||
Layer, |
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.
Is "LN" better than "Layer"?
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.
Done
int accSeqLen = pastSeqLen + currentSeqLen; | ||
float *mask = nullptr; | ||
|
||
auto getAttnMask = [](int sizeRequired) { |
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.
we are deprecating attention mask, so need to change this in future.
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.
Add TODO.
I think like this is OK. |
@pujiang2018 @Duyi-Wang Done |
No description provided.