Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
d04973ad
Unverified
Commit
d04973ad
authored
Apr 12, 2024
by
Bellk17
Committed by
GitHub
Apr 12, 2024
Browse files
Fix triton compilation issue (#3984)
Co-authored-by:
Woosuk Kwon
<
woosuk.kwon@berkeley.edu
>
parent
fbb9d9ee
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
vllm/attention/ops/triton_flash_attention.py
vllm/attention/ops/triton_flash_attention.py
+5
-1
No files found.
vllm/attention/ops/triton_flash_attention.py
View file @
d04973ad
...
...
@@ -415,7 +415,11 @@ def attn_fwd(
return
is_mqa
=
hq
!=
hk
off_h_k
=
off_h_q
%
hk
if
is_mqa
else
off_h_q
if
is_mqa
:
# noqa: SIM108
off_h_k
=
off_h_q
%
hk
else
:
off_h_k
=
off_h_q
n_extra_tokens
=
0
if
seqlen_k
<
BLOCK_N
:
n_extra_tokens
=
BLOCK_N
-
seqlen_k
...
...
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