Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
AutoAWQ
Commits
88964968
Commit
88964968
authored
Sep 06, 2023
by
Casper Hansen
Browse files
Update kernel to original
parent
97af18e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
awq_cuda/position_embedding/pos_encoding_kernels.cu
awq_cuda/position_embedding/pos_encoding_kernels.cu
+3
-3
No files found.
awq_cuda/position_embedding/pos_encoding_kernels.cu
View file @
88964968
...
@@ -94,10 +94,10 @@ void rotary_embedding(
...
@@ -94,10 +94,10 @@ void rotary_embedding(
int
head_size
,
int
head_size
,
torch
::
Tensor
&
cos_sin_cache
,
// [max_position, rot_dim]
torch
::
Tensor
&
cos_sin_cache
,
// [max_position, rot_dim]
bool
is_neox
)
{
bool
is_neox
)
{
int
num_tokens
=
query
.
size
(
0
)
*
query
.
size
(
1
)
;
int
num_tokens
=
query
.
size
(
0
);
int
rot_dim
=
cos_sin_cache
.
size
(
1
);
int
rot_dim
=
cos_sin_cache
.
size
(
1
);
int
num_heads
=
query
.
size
(
-
2
)
;
int
num_heads
=
query
.
size
(
1
)
/
head_size
;
int
num_kv_heads
=
key
.
size
(
-
2
)
;
int
num_kv_heads
=
key
.
size
(
1
)
/
head_size
;
int
query_stride
=
query
.
stride
(
0
);
int
query_stride
=
query
.
stride
(
0
);
int
key_stride
=
key
.
stride
(
0
);
int
key_stride
=
key
.
stride
(
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment