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
Lmdeploy
Commits
816022e4
"...git@developer.sourcefind.cn:OpenDAS/lmdeploy.git" did not exist on "70e6ab26ba3791c351f948a20b86967eb46f693b"
Unverified
Commit
816022e4
authored
Dec 02, 2023
by
Li Zhang
Committed by
GitHub
Dec 02, 2023
Browse files
Fix early exit condition in attention kernel (#788)
parent
d3e2cee4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/turbomind/kernels/decoder_multihead_attention/decoder_multihead_attention_template.h
...ultihead_attention/decoder_multihead_attention_template.h
+1
-1
No files found.
src/turbomind/kernels/decoder_multihead_attention/decoder_multihead_attention_template.h
View file @
816022e4
...
...
@@ -736,7 +736,7 @@ struct DecoderMultiHeadAttentionKernel {
}
// early exit if split if out of bound
if
(
kSplitK
&&
step_begin_
>=
step_end_
)
{
if
(
kSplitK
&&
step_begin_
&&
step_begin_
>=
step_end_
)
{
return
;
}
...
...
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