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
78c13e30
Unverified
Commit
78c13e30
authored
Jul 23, 2025
by
Yong Hoon Shin
Committed by
GitHub
Jul 23, 2025
Browse files
[V1] Fix local chunked attention always disabled (#21419)
Signed-off-by:
Yong Hoon Shin
<
yhshin@meta.com
>
parent
5c9b807b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
vllm/attention/layer.py
vllm/attention/layer.py
+2
-1
No files found.
vllm/attention/layer.py
View file @
78c13e30
...
@@ -143,6 +143,8 @@ class Attention(nn.Module):
...
@@ -143,6 +143,8 @@ class Attention(nn.Module):
# the backends)
# the backends)
if
envs
.
VLLM_USE_V1
:
if
envs
.
VLLM_USE_V1
:
self
.
use_irope
=
extra_impl_args
.
pop
(
"use_irope"
,
False
)
self
.
use_irope
=
extra_impl_args
.
pop
(
"use_irope"
,
False
)
else
:
self
.
use_irope
=
extra_impl_args
.
get
(
"use_irope"
,
False
)
quant_method
=
quant_config
.
get_quant_method
(
quant_method
=
quant_config
.
get_quant_method
(
self
,
prefix
=
prefix
)
if
quant_config
else
None
self
,
prefix
=
prefix
)
if
quant_config
else
None
...
@@ -177,7 +179,6 @@ class Attention(nn.Module):
...
@@ -177,7 +179,6 @@ class Attention(nn.Module):
kv_sharing_target_layer_name
,
**
extra_impl_args
)
kv_sharing_target_layer_name
,
**
extra_impl_args
)
self
.
backend
=
backend_name_to_enum
(
attn_backend
.
get_name
())
self
.
backend
=
backend_name_to_enum
(
attn_backend
.
get_name
())
self
.
dtype
=
dtype
self
.
dtype
=
dtype
self
.
use_irope
=
extra_impl_args
.
get
(
"use_irope"
,
False
)
# For cuda-alike (CUDA and ROCM) and cpu platforms, we control how
# For cuda-alike (CUDA and ROCM) and cpu platforms, we control how
# torch.compile works by registering the attention as one giant
# torch.compile works by registering the attention as one giant
...
...
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