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
19d64f2b
Unverified
Commit
19d64f2b
authored
Sep 08, 2025
by
Yineng Zhang
Committed by
GitHub
Sep 08, 2025
Browse files
fix: resolve lint issue (#10181)
parent
a02071a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
python/sglang/bench_serving.py
python/sglang/bench_serving.py
+4
-2
No files found.
python/sglang/bench_serving.py
View file @
19d64f2b
...
...
@@ -701,12 +701,14 @@ def get_dataset(args, tokenizer):
# For mooncake, we don't generate the prompts here.
# We just load the raw trace data. The async generator will handle the rest.
if
not
args
.
dataset_path
:
local_path
=
os
.
path
.
join
(
"/tmp"
,
args
.
mooncake_workload
+
"_trace.jsonl"
)
local_path
=
os
.
path
.
join
(
"/tmp"
,
args
.
mooncake_workload
+
"_trace.jsonl"
)
else
:
local_path
=
args
.
dataset_path
if
not
os
.
path
.
exists
(
local_path
):
download_and_cache_file
(
MOONCAKE_DATASET_URL
[
args
.
mooncake_workload
],
local_path
)
download_and_cache_file
(
MOONCAKE_DATASET_URL
[
args
.
mooncake_workload
],
local_path
)
with
open
(
local_path
,
"r"
)
as
f
:
all_requests_data
=
[
json
.
loads
(
line
)
for
line
in
f
if
line
.
strip
()]
...
...
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