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
a85ebf50
"examples/vscode:/vscode.git/clone" did not exist on "27a6eb564c88b815c15df296cc4718908fa35210"
Unverified
Commit
a85ebf50
authored
Jul 30, 2025
by
hzh0425
Committed by
GitHub
Jul 29, 2025
Browse files
feat(hicache): support file backend reading directory config form env. (#8498)
parent
9effeb5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/srt/mem_cache/hicache_storage.py
python/sglang/srt/mem_cache/hicache_storage.py
+1
-1
No files found.
python/sglang/srt/mem_cache/hicache_storage.py
View file @
a85ebf50
...
@@ -85,7 +85,7 @@ class HiCacheStorage(ABC):
...
@@ -85,7 +85,7 @@ class HiCacheStorage(ABC):
class
HiCacheFile
(
HiCacheStorage
):
class
HiCacheFile
(
HiCacheStorage
):
def
__init__
(
self
,
file_path
:
str
=
"/tmp/hicache"
):
def
__init__
(
self
,
file_path
:
str
=
"/tmp/hicache"
):
self
.
file_path
=
file_path
self
.
file_path
=
os
.
getenv
(
"SGLANG_HICACHE_FILE_BACKEND_STORAGE_DIR"
,
file_path
)
tp_rank
=
get_tensor_model_parallel_rank
()
tp_rank
=
get_tensor_model_parallel_rank
()
tp_size
=
get_tensor_model_parallel_world_size
()
tp_size
=
get_tensor_model_parallel_world_size
()
self
.
tp_suffix
=
f
"_
{
tp_rank
}
_
{
tp_size
}
"
if
tp_size
>
1
else
""
self
.
tp_suffix
=
f
"_
{
tp_rank
}
_
{
tp_size
}
"
if
tp_size
>
1
else
""
...
...
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