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
c9305344
Commit
c9305344
authored
Jul 25, 2024
by
zhuwenwen
Browse files
update prefix_prefill params
parent
8e56ae5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vllm/attention/ops/prefix_prefill.py
vllm/attention/ops/prefix_prefill.py
+2
-2
No files found.
vllm/attention/ops/prefix_prefill.py
View file @
c9305344
...
@@ -686,7 +686,7 @@ if triton.__version__ >= "2.1.0":
...
@@ -686,7 +686,7 @@ if triton.__version__ >= "2.1.0":
sliding_window
=
None
):
sliding_window
=
None
):
cap
=
current_platform
.
get_device_capability
()
cap
=
current_platform
.
get_device_capability
()
BLOCK
=
128
if
cap
[
0
]
>=
8
else
64
BLOCK
=
128
if
cap
[
0
]
>=
8
else
32
# need to reduce num. blocks when using fp32
# need to reduce num. blocks when using fp32
# due to increased use of GPU shared memory
# due to increased use of GPU shared memory
...
@@ -709,7 +709,7 @@ if triton.__version__ >= "2.1.0":
...
@@ -709,7 +709,7 @@ if triton.__version__ >= "2.1.0":
if
sliding_window
is
None
or
sliding_window
<=
0
:
if
sliding_window
is
None
or
sliding_window
<=
0
:
sliding_window
=
0
sliding_window
=
0
num_warps
=
8
if
Lk
<=
64
else
8
num_warps
=
8
if
Lk
<=
64
else
4
if
alibi_slopes
is
not
None
:
if
alibi_slopes
is
not
None
:
_fwd_kernel_alibi
[
grid
](
_fwd_kernel_alibi
[
grid
](
q
,
q
,
...
...
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