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
5963e505
Unverified
Commit
5963e505
authored
Jul 31, 2025
by
yi wang
Committed by
GitHub
Jul 31, 2025
Browse files
[bugfix] Fix 2 minor bugs in the hicache storage layer (#8404)
parent
43118f5f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
examples/monitoring/grafana/dashboards/json/sglang-dashboard.json
.../monitoring/grafana/dashboards/json/sglang-dashboard.json
+5
-5
python/sglang/srt/mem_cache/hiradix_cache.py
python/sglang/srt/mem_cache/hiradix_cache.py
+1
-0
No files found.
examples/monitoring/grafana/dashboards/json/sglang-dashboard.json
View file @
5963e505
...
@@ -147,7 +147,7 @@
...
@@ -147,7 +147,7 @@
"hide"
:
false
,
"hide"
:
false
,
"includeNullMetadata"
:
true
,
"includeNullMetadata"
:
true
,
"instant"
:
false
,
"instant"
:
false
,
"legendFormat"
:
"P
9
5"
,
"legendFormat"
:
"P5
0
"
,
"range"
:
true
,
"range"
:
true
,
"refId"
:
"C"
,
"refId"
:
"C"
,
"useBackend"
:
false
"useBackend"
:
false
...
@@ -164,7 +164,7 @@
...
@@ -164,7 +164,7 @@
"hide"
:
false
,
"hide"
:
false
,
"includeNullMetadata"
:
true
,
"includeNullMetadata"
:
true
,
"instant"
:
false
,
"instant"
:
false
,
"legendFormat"
:
"
P50
"
,
"legendFormat"
:
"
Avg
"
,
"range"
:
true
,
"range"
:
true
,
"refId"
:
"D"
,
"refId"
:
"D"
,
"useBackend"
:
false
"useBackend"
:
false
...
@@ -393,7 +393,7 @@
...
@@ -393,7 +393,7 @@
"hide"
:
false
,
"hide"
:
false
,
"includeNullMetadata"
:
true
,
"includeNullMetadata"
:
true
,
"instant"
:
false
,
"instant"
:
false
,
"legendFormat"
:
"P
9
5"
,
"legendFormat"
:
"P5
0
"
,
"range"
:
true
,
"range"
:
true
,
"refId"
:
"C"
,
"refId"
:
"C"
,
"useBackend"
:
false
"useBackend"
:
false
...
@@ -405,12 +405,12 @@
...
@@ -405,12 +405,12 @@
},
},
"disableTextWrap"
:
false
,
"disableTextWrap"
:
false
,
"editorMode"
:
"code"
,
"editorMode"
:
"code"
,
"expr"
:
"avg(rate(sglang:time_to_first_token_seconds_
bucket
[$__rate_interval]) / rate(sglang:time_to_first_token_seconds_
bucke
t[$__rate_interval]))
\r\n
"
,
"expr"
:
"avg(rate(sglang:time_to_first_token_seconds_
sum
[$__rate_interval]) / rate(sglang:time_to_first_token_seconds_
coun
t[$__rate_interval]))
\r\n
"
,
"fullMetaSearch"
:
false
,
"fullMetaSearch"
:
false
,
"hide"
:
false
,
"hide"
:
false
,
"includeNullMetadata"
:
true
,
"includeNullMetadata"
:
true
,
"instant"
:
false
,
"instant"
:
false
,
"legendFormat"
:
"
P50
"
,
"legendFormat"
:
"
Avg
"
,
"range"
:
true
,
"range"
:
true
,
"refId"
:
"D"
,
"refId"
:
"D"
,
"useBackend"
:
false
"useBackend"
:
false
...
...
python/sglang/srt/mem_cache/hiradix_cache.py
View file @
5963e505
...
@@ -113,6 +113,7 @@ class HiRadixCache(RadixCache):
...
@@ -113,6 +113,7 @@ class HiRadixCache(RadixCache):
)
)
if
host_indices
is
not
None
:
if
host_indices
is
not
None
:
node
.
host_value
=
host_indices
node
.
host_value
=
host_indices
assert
len
(
node
.
host_value
)
>
0
self
.
ongoing_write_through
[
node
.
id
]
=
node
self
.
ongoing_write_through
[
node
.
id
]
=
node
if
not
write_back
:
if
not
write_back
:
# no need to lock nodes if write back
# no need to lock nodes if write back
...
...
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