-
Notifications
You must be signed in to change notification settings - Fork 158
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
[luci-interpreter] Support RoPE operation #14104
Conversation
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.
LGTM
@jinevening |
{ | ||
for (int32_t i2 = 0; i2 < i2_n; ++i2) | ||
{ | ||
for (int32_t i3 = 0; i3 < i3_n / 2; ++i3_n) |
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.
i3_n
is const int32_t
. How is this 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.
i made a mistake while changing the variable name.
i will update it. thanks
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.
CI just passed this code, which means that this code is not compiled. You should add RoPE to compiler/luci-interpreter/pal/linux/KernelsToBuild.lst
.
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.
i prepared another PR.
as you comment, it would be better to make it together.
i will make PR including kernelsToBuild.lst and loader.
e3950c1
to
6726d24
Compare
d43184f
to
b221cb9
Compare
This commit supports RoPE for luci-interpreter ONE-DCO-1.0-Signed-off-by: youngsik kim [email protected]
b221cb9
to
82d5df7
Compare
void RoPE::configure() | ||
{ | ||
LUCI_INTERPRETER_CHECK(input()->shape().num_dims() == 4); | ||
|
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.
from seanshpark,
the head size (dim(3)) of input and the size of sin/cos should be the same.
so, it is necessary to check the condition here.
This Commit adds check condition for sin/cos table ONE-DCO-1.0-Signed-off-by: youngsik kim <[email protected]>
This commit adds test case to check sin/cos table ONE-DCO-1.0-Signed-off-by: youngsik kim <[email protected]>
This commits add test case to check rope mode ONE-DCO-1.0-Signed-off-by: youngsik kim [email protected]
53983ce
to
a52fb0c
Compare
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.
LGTM
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.
LGTM
This commit supports RoPE kernel in luci-interpreter
ONE-DCO-1.0-Signed-off-by: youngsik kim [email protected]
draft : #13978
issue : #13972