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
6d105cc4
Commit
6d105cc4
authored
May 14, 2025
by
xiabo
Browse files
add kvint8
parent
45273722
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vllm/attention/ops/paged_attn.py
vllm/attention/ops/paged_attn.py
+3
-2
No files found.
vllm/attention/ops/paged_attn.py
View file @
6d105cc4
...
...
@@ -131,9 +131,10 @@ class PagedAttention:
# TODO(woosuk): Tune this heuristic.
# For context len > 8192, use V2 kernel to avoid shared memory shortage.
kvquant
=
False
if
(
kv_cache_dtype
==
"int8"
):
use_tc
=
Fals
e
if
use_tc
and
head_size
==
128
:
kvquant
=
Tru
e
if
use_tc
and
head_size
==
128
and
not
kvquant
:
if
envs
.
VLLM_USE_PA_PRINT_PARAM
:
print
(
"PA V1 SIZE:"
)
print
(
f
"query.shape =
{
query
.
shape
}
, key_cache.shape =
{
key_cache
.
shape
}
, value_cache.shape =
{
value_cache
.
shape
}
"
)
...
...
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