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
c224a4c6
Unverified
Commit
c224a4c6
authored
Oct 14, 2025
by
Baizhou Zhang
Committed by
GitHub
Oct 14, 2025
Browse files
Fix log for chunked prefix cache (#11624)
parent
49345a68
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
python/sglang/srt/model_executor/model_runner.py
python/sglang/srt/model_executor/model_runner.py
+14
-1
No files found.
python/sglang/srt/model_executor/model_runner.py
View file @
c224a4c6
...
@@ -174,6 +174,15 @@ MLA_ATTENTION_BACKENDS = [
...
@@ -174,6 +174,15 @@ MLA_ATTENTION_BACKENDS = [
"nsa"
,
"nsa"
,
]
]
CHUNKED_PREFIX_CACHE_SUPPORTED_ATTENTION_BACKENDS
=
[
"flashinfer"
,
"fa3"
,
"fa4"
,
"flashmla"
,
"cutlass_mla"
,
"trtllm_mla"
,
]
def
add_mla_attention_backend
(
backend_name
):
def
add_mla_attention_backend
(
backend_name
):
if
backend_name
not
in
MLA_ATTENTION_BACKENDS
:
if
backend_name
not
in
MLA_ATTENTION_BACKENDS
:
...
@@ -604,7 +613,11 @@ class ModelRunner:
...
@@ -604,7 +613,11 @@ class ModelRunner:
f
"
{
self
.
model_config
.
hf_config
.
model_type
}
"
f
"
{
self
.
model_config
.
hf_config
.
model_type
}
"
)
)
if
not
self
.
use_mla_backend
:
if
(
not
self
.
use_mla_backend
or
server_args
.
attention_backend
not
in
CHUNKED_PREFIX_CACHE_SUPPORTED_ATTENTION_BACKENDS
):
server_args
.
disable_chunked_prefix_cache
=
True
server_args
.
disable_chunked_prefix_cache
=
True
if
not
server_args
.
disable_chunked_prefix_cache
:
if
not
server_args
.
disable_chunked_prefix_cache
:
...
...
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