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
81db702e
Unverified
Commit
81db702e
authored
Nov 25, 2025
by
Jiangyun Zhu
Committed by
GitHub
Nov 25, 2025
Browse files
[Attention] add `_cudagraph_support` for linear attention (#28934)
Signed-off-by:
zjy0516
<
riverclouds.zhu@qq.com
>
parent
92effb07
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
vllm/v1/attention/backends/linear_attn.py
vllm/v1/attention/backends/linear_attn.py
+3
-0
No files found.
vllm/v1/attention/backends/linear_attn.py
View file @
81db702e
...
@@ -7,6 +7,7 @@ import torch
...
@@ -7,6 +7,7 @@ import torch
from
vllm.attention.backends.abstract
import
AttentionBackend
from
vllm.attention.backends.abstract
import
AttentionBackend
from
vllm.config
import
VllmConfig
from
vllm.config
import
VllmConfig
from
vllm.v1.attention.backends.utils
import
(
from
vllm.v1.attention.backends.utils
import
(
AttentionCGSupport
,
AttentionMetadataBuilder
,
AttentionMetadataBuilder
,
CommonAttentionMetadata
,
CommonAttentionMetadata
,
split_decodes_and_prefills
,
split_decodes_and_prefills
,
...
@@ -35,6 +36,8 @@ class LinearAttentionMetadata:
...
@@ -35,6 +36,8 @@ class LinearAttentionMetadata:
class
LinearAttentionMetadataBuilder
(
AttentionMetadataBuilder
[
LinearAttentionMetadata
]):
class
LinearAttentionMetadataBuilder
(
AttentionMetadataBuilder
[
LinearAttentionMetadata
]):
reorder_batch_threshold
:
int
=
1
reorder_batch_threshold
:
int
=
1
_cudagraph_support
=
AttentionCGSupport
.
UNIFORM_SINGLE_TOKEN_DECODE
def
__init__
(
def
__init__
(
self
,
self
,
kv_cache_spec
:
AttentionSpec
,
kv_cache_spec
:
AttentionSpec
,
...
...
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