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
08af8ffb
Unverified
Commit
08af8ffb
authored
Oct 04, 2025
by
pansicheng
Committed by
GitHub
Oct 04, 2025
Browse files
fix 3fs indices (#10855)
parent
2c7f4ca2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
python/sglang/srt/mem_cache/storage/hf3fs/storage_hf3fs.py
python/sglang/srt/mem_cache/storage/hf3fs/storage_hf3fs.py
+6
-2
No files found.
python/sglang/srt/mem_cache/storage/hf3fs/storage_hf3fs.py
View file @
08af8ffb
...
...
@@ -524,7 +524,9 @@ class HiCacheHF3FS(HiCacheStorage):
flat
=
not
self
.
is_zero_copy
values
=
(
[
self
.
mem_pool_host
.
get_data_page
(
host_indices
[
i
*
page_num
],
flat
=
flat
)
self
.
mem_pool_host
.
get_data_page
(
host_indices
[
i
*
self
.
mem_pool_host
.
page_size
],
flat
=
flat
)
for
i
in
range
(
page_num
)
]
if
self
.
is_zero_copy
...
...
@@ -574,7 +576,9 @@ class HiCacheHF3FS(HiCacheStorage):
# host_indices to kv_buffer
flat
=
not
self
.
is_zero_copy
values
=
[
self
.
mem_pool_host
.
get_data_page
(
host_indices
[
i
*
page_num
],
flat
=
flat
)
self
.
mem_pool_host
.
get_data_page
(
host_indices
[
i
*
self
.
mem_pool_host
.
page_size
],
flat
=
flat
)
for
i
in
range
(
page_num
)
]
...
...
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