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
norm
vllm
Commits
64da65b3
Unverified
Commit
64da65b3
authored
Feb 16, 2024
by
shiyi.c_98
Committed by
GitHub
Feb 16, 2024
Browse files
Prefix Caching- fix t4 triton error (#2517)
parent
5255d99d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
vllm/model_executor/layers/triton_kernel/prefix_prefill.py
vllm/model_executor/layers/triton_kernel/prefix_prefill.py
+3
-1
No files found.
vllm/model_executor/layers/triton_kernel/prefix_prefill.py
View file @
64da65b3
...
@@ -618,7 +618,9 @@ if triton.__version__ >= "2.1.0":
...
@@ -618,7 +618,9 @@ if triton.__version__ >= "2.1.0":
b_ctx_len
,
b_ctx_len
,
max_input_len
,
max_input_len
,
alibi_slopes
=
None
):
alibi_slopes
=
None
):
BLOCK
=
128
cap
=
torch
.
cuda
.
get_device_capability
()
BLOCK
=
128
if
cap
[
0
]
>=
8
else
64
# shape constraints
# shape constraints
Lq
,
Lk
,
Lv
=
q
.
shape
[
-
1
],
k
.
shape
[
-
1
],
v
.
shape
[
-
1
]
Lq
,
Lk
,
Lv
=
q
.
shape
[
-
1
],
k
.
shape
[
-
1
],
v
.
shape
[
-
1
]
assert
Lq
==
Lk
and
Lk
==
Lv
assert
Lq
==
Lk
and
Lk
==
Lv
...
...
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