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
fb507b7b
Unverified
Commit
fb507b7b
authored
Jun 01, 2025
by
Yikai Zhang
Committed by
GitHub
May 31, 2025
Browse files
[FIX] mmmu bench serving result display error (#6525) (#6791)
parent
f90945c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python/sglang/bench_serving.py
python/sglang/bench_serving.py
+2
-2
No files found.
python/sglang/bench_serving.py
View file @
fb507b7b
...
...
@@ -1212,7 +1212,7 @@ async def benchmark(
if
"<image>"
in
test_prompt
:
import
re
image_match
=
re
.
search
(
r
"<image>(.*?)</image>(.*)"
,
test_prompt
)
image_match
=
re
.
search
(
r
"<image>(.*?)</image>(.*)"
,
test_prompt
,
re
.
DOTALL
)
image_data
=
image_match
.
group
(
1
)
if
image_match
else
None
test_prompt
=
image_match
.
group
(
2
)
if
image_match
else
test_prompt
else
:
...
...
@@ -1285,7 +1285,7 @@ async def benchmark(
if
"<image>"
in
prompt
:
import
re
image_match
=
re
.
search
(
r
"<image>(.*?)</image>(.*)"
,
prompt
)
image_match
=
re
.
search
(
r
"<image>(.*?)</image>(.*)"
,
prompt
,
re
.
DOTALL
)
image_data
=
image_match
.
group
(
1
)
if
image_match
else
None
prompt
=
image_match
.
group
(
2
)
if
image_match
else
prompt
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