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
7fce2fd9
Unverified
Commit
7fce2fd9
authored
Sep 13, 2025
by
Teng Ma
Committed by
GitHub
Sep 12, 2025
Browse files
[HiCache] fix mooncake config in different tp size (#10377)
parent
16cd550c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
python/sglang/srt/mem_cache/storage/mooncake_store/mooncake_store.py
...ng/srt/mem_cache/storage/mooncake_store/mooncake_store.py
+9
-2
No files found.
python/sglang/srt/mem_cache/storage/mooncake_store/mooncake_store.py
View file @
7fce2fd9
...
@@ -134,11 +134,18 @@ class MooncakeStore(HiCacheStorage):
...
@@ -134,11 +134,18 @@ class MooncakeStore(HiCacheStorage):
self
.
config
=
MooncakeStoreConfig
.
load_from_env
()
self
.
config
=
MooncakeStoreConfig
.
load_from_env
()
logger
.
info
(
"Mooncake Configuration loaded from env successfully."
)
logger
.
info
(
"Mooncake Configuration loaded from env successfully."
)
tp_scale_factor
=
1
if
storage_config
is
None
else
storage_config
.
tp_size
per_tp_global_segment_size
=
(
self
.
config
.
global_segment_size
//
tp_scale_factor
)
per_tp_local_buffer_size
=
self
.
config
.
local_buffer_size
//
tp_scale_factor
ret_code
=
self
.
store
.
setup
(
ret_code
=
self
.
store
.
setup
(
self
.
config
.
local_hostname
,
self
.
config
.
local_hostname
,
self
.
config
.
metadata_server
,
self
.
config
.
metadata_server
,
self
.
config
.
global_segment_size
,
per_tp_
global_segment_size
,
self
.
config
.
local_buffer_size
,
per_tp_
local_buffer_size
,
self
.
config
.
protocol
,
self
.
config
.
protocol
,
self
.
config
.
device_name
,
self
.
config
.
device_name
,
self
.
config
.
master_server_address
,
self
.
config
.
master_server_address
,
...
...
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