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
f39037ff
Unverified
Commit
f39037ff
authored
Jul 23, 2025
by
Zhiqiang Xie
Committed by
GitHub
Jul 23, 2025
Browse files
HiCache Fix (#8288)
Co-authored-by:
pansicheng
<
sicheng.pan.chn@gmail.com
>
parent
ce86e201
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
python/sglang/srt/managers/cache_controller.py
python/sglang/srt/managers/cache_controller.py
+1
-0
python/sglang/srt/model_executor/model_runner.py
python/sglang/srt/model_executor/model_runner.py
+4
-1
No files found.
python/sglang/srt/managers/cache_controller.py
View file @
f39037ff
...
...
@@ -358,6 +358,7 @@ class HiCacheController:
if
host_indices
is
None
:
return
None
self
.
mem_pool_host
.
protect_write
(
host_indices
)
torch
.
cuda
.
current_stream
().
synchronize
()
self
.
write_queue
.
put
(
CacheOperation
(
host_indices
,
device_indices
,
node_id
,
priority
)
)
...
...
python/sglang/srt/model_executor/model_runner.py
View file @
f39037ff
...
...
@@ -378,6 +378,7 @@ class ModelRunner:
is_hopper_with_cuda_12_3
()
and
is_no_spec_infer_or_topk_one
(
server_args
)
and
is_fa3_default_architecture
(
self
.
model_config
.
hf_config
)
and
(
not
server_args
.
enable_hierarchical_cache
)
):
server_args
.
attention_backend
=
"fa3"
elif
_is_hip
:
...
...
@@ -390,7 +391,9 @@ class ModelRunner:
)
else
:
# MLA architecture
if
is_hopper_with_cuda_12_3
():
if
is_hopper_with_cuda_12_3
()
and
(
not
server_args
.
enable_hierarchical_cache
):
server_args
.
attention_backend
=
"fa3"
elif
is_sm100_supported
():
server_args
.
attention_backend
=
"flashinfer"
...
...
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