Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
91fc5bb5
Unverified
Commit
91fc5bb5
authored
Oct 14, 2025
by
Yineng Zhang
Committed by
GitHub
Oct 14, 2025
Browse files
feat: add add_chunked_prefix_cache_attention_backend (#11636)
parent
780fbf2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
python/sglang/srt/model_executor/model_runner.py
python/sglang/srt/model_executor/model_runner.py
+8
-0
No files found.
python/sglang/srt/model_executor/model_runner.py
View file @
91fc5bb5
...
@@ -190,6 +190,14 @@ def add_mla_attention_backend(backend_name):
...
@@ -190,6 +190,14 @@ def add_mla_attention_backend(backend_name):
logger
.
info
(
f
"Added
{
backend_name
}
to MLA_ATTENTION_BACKENDS."
)
logger
.
info
(
f
"Added
{
backend_name
}
to MLA_ATTENTION_BACKENDS."
)
def
add_chunked_prefix_cache_attention_backend
(
backend_name
):
if
backend_name
not
in
CHUNKED_PREFIX_CACHE_SUPPORTED_ATTENTION_BACKENDS
:
CHUNKED_PREFIX_CACHE_SUPPORTED_ATTENTION_BACKENDS
.
append
(
backend_name
)
logger
.
info
(
f
"Added
{
backend_name
}
to CHUNKED_PREFIX_CACHE_SUPPORTED_ATTENTION_BACKENDS."
)
_is_hip
=
is_hip
()
_is_hip
=
is_hip
()
_is_npu
=
is_npu
()
_is_npu
=
is_npu
()
_is_cpu_amx_available
=
cpu_has_amx_support
()
_is_cpu_amx_available
=
cpu_has_amx_support
()
...
...
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