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
79ce3688
Unverified
Commit
79ce3688
authored
Aug 27, 2025
by
hzh0425
Committed by
GitHub
Aug 26, 2025
Browse files
BugFix(hicache): Fix host indices out of bound error (#9637)
Co-authored-by:
Zhiqiang Xie
<
xiezhq@stanford.edu
>
parent
44ffe2cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
python/sglang/srt/managers/cache_controller.py
python/sglang/srt/managers/cache_controller.py
+7
-6
No files found.
python/sglang/srt/managers/cache_controller.py
View file @
79ce3688
...
@@ -616,12 +616,13 @@ class HiCacheController:
...
@@ -616,12 +616,13 @@ class HiCacheController:
f
"Prefetch operation
{
operation
.
request_id
}
failed to retrieve page
{
hash_values
[
i
]
}
."
f
"Prefetch operation
{
operation
.
request_id
}
failed to retrieve page
{
hash_values
[
i
]
}
."
)
)
break
break
self
.
mem_pool_host
.
set_from_flat_data_page
(
if
operation
.
increment
(
self
.
page_size
):
host_indices
[
operation
.
completed_tokens
],
self
.
mem_pool_host
.
set_from_flat_data_page
(
page_data
[
i
],
host_indices
[
i
*
self
.
page_size
],
)
page_data
[
i
],
if
not
operation
.
increment
(
self
.
page_size
):
)
break
# Operation terminated by controller
else
:
break
def
_page_transfer
(
self
,
operation
):
def
_page_transfer
(
self
,
operation
):
# Select the get function and batch size
# Select the get function and batch size
...
...
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