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
f39feef5
"...git@developer.sourcefind.cn:2222/OpenDAS/vllm_cscc.git" did not exist on "fa4b70555bc1163c2ee8fa4b193be9957f05dda6"
Commit
f39feef5
authored
Aug 13, 2024
by
zhuwenwen
Browse files
update prefix_prefill params
parent
9807bb0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/attention/ops/prefix_prefill.py
vllm/attention/ops/prefix_prefill.py
+1
-1
No files found.
vllm/attention/ops/prefix_prefill.py
View file @
f39feef5
...
@@ -684,7 +684,7 @@ if triton.__version__ >= "2.1.0":
...
@@ -684,7 +684,7 @@ if triton.__version__ >= "2.1.0":
sliding_window
=
None
):
sliding_window
=
None
):
cap
=
torch
.
cuda
.
get_device_capability
()
cap
=
torch
.
cuda
.
get_device_capability
()
BLOCK
=
128
if
cap
[
0
]
>=
8
else
32
BLOCK
=
32
if
cap
[
0
]
>=
8
else
32
# 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