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
3c307dc0
Unverified
Commit
3c307dc0
authored
Jul 31, 2025
by
Ke Bao
Committed by
GitHub
Jul 31, 2025
Browse files
Fix hf3fs_fuse import error (#8623)
parent
5d15fb8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
python/sglang/srt/mem_cache/storage/hf3fs/client_hf3fs.py
python/sglang/srt/mem_cache/storage/hf3fs/client_hf3fs.py
+8
-2
No files found.
python/sglang/srt/mem_cache/storage/hf3fs/client_hf3fs.py
View file @
3c307dc0
...
...
@@ -14,6 +14,7 @@ hf3fs_utils = load(name="hf3fs_utils", sources=[f"{root}/hf3fs_utils.cpp"])
logger
=
logging
.
getLogger
(
__name__
)
HF3FS_AVAILABLE
=
True
try
:
from
hf3fs_fuse.io
import
(
deregister_fd
,
...
...
@@ -22,8 +23,8 @@ try:
make_iovec
,
register_fd
,
)
except
ImportError
as
e
:
logger
.
warning
(
f
"hf3fs_fuse.io is not available:
{
e
}
"
)
except
ImportError
:
HF3FS_AVAILABLE
=
False
def
rsynchronized
():
...
...
@@ -52,6 +53,11 @@ def wsynchronized():
class
Hf3fsClient
:
def
__init__
(
self
,
path
:
str
,
size
:
int
,
bytes_per_page
:
int
,
entries
:
int
):
if
not
HF3FS_AVAILABLE
:
raise
ImportError
(
"hf3fs_fuse.io is not available. Please install the hf3fs_fuse package."
)
self
.
path
=
path
self
.
size
=
size
self
.
bytes_per_page
=
bytes_per_page
...
...
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