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
9305ea6c
Unverified
Commit
9305ea6c
authored
Jul 31, 2025
by
Zhiqiang Xie
Committed by
GitHub
Aug 01, 2025
Browse files
HiCache, fixing hash value indexing (#8636)
parent
aa4c66b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python/sglang/srt/mem_cache/hiradix_cache.py
python/sglang/srt/mem_cache/hiradix_cache.py
+2
-2
No files found.
python/sglang/srt/mem_cache/hiradix_cache.py
View file @
9305ea6c
...
...
@@ -436,7 +436,7 @@ class HiRadixCache(RadixCache):
last_host_node
,
fetched_token_ids
,
written_indices
,
hash_value
[:
min_completed_tokens
],
hash_value
[:
min_completed_tokens
//
self
.
page_size
],
)
if
len
(
written_indices
):
self
.
cache_controller
.
mem_pool_host
.
update_prefetch
(
written_indices
)
...
...
@@ -529,7 +529,7 @@ class HiRadixCache(RadixCache):
prefix_len
=
self
.
key_match_fn
(
node
.
key
,
key
)
key
=
key
[
prefix_len
:]
host_value
=
host_value
[
prefix_len
:]
hash_value
=
hash_value
[
prefix_len
:]
hash_value
=
hash_value
[
prefix_len
//
self
.
page_size
:]
matched_length
+=
prefix_len
if
prefix_len
<
len
(
node
.
key
):
...
...
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