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
2a37b24d
"encoding/vscode:/vscode.git/clone" did not exist on "7e19143c318894b25635bcb3814c9d02640edf33"
Unverified
Commit
2a37b24d
authored
Sep 15, 2025
by
hzh0425
Committed by
GitHub
Sep 14, 2025
Browse files
[HotFix]: Hot fix import path in 3fs_bench_client.py (#10463)
parent
f73aae0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
benchmark/hf3fs/bench_client.py
benchmark/hf3fs/bench_client.py
+3
-3
No files found.
benchmark/hf3fs/bench_client.py
View file @
2a37b24d
...
...
@@ -7,7 +7,7 @@ from typing import List
import
torch
from
tqdm
import
tqdm
from
sglang.srt.mem_cache.storage.hf3fs.client
_hf3fs
import
Hf3fsClient
from
sglang.srt.mem_cache.storage.hf3fs.
hf3fs_usrbio_
client
import
Hf3fs
UsrBio
Client
def
print_stats
(
x
:
List
[
int
]):
...
...
@@ -29,7 +29,7 @@ def test():
file_size
=
1
<<
40
bytes_per_page
=
16
<<
20
entries
=
32
file_ops
=
Hf3fsClient
(
file_path
,
file_size
,
bytes_per_page
,
entries
)
file_ops
=
Hf3fs
UsrBio
Client
(
file_path
,
file_size
,
bytes_per_page
,
entries
)
print
(
"test batch_read / batch_write"
)
num_pages
=
128
...
...
@@ -74,7 +74,7 @@ def bench():
numel
=
bytes_per_page
//
dtype
.
itemsize
file_ops
=
[
Hf3fsClient
(
file_path
,
file_size
,
bytes_per_page
,
entries
)
Hf3fs
UsrBio
Client
(
file_path
,
file_size
,
bytes_per_page
,
entries
)
for
_
in
range
(
numjobs
)
]
...
...
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