Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
6ace2f72
Unverified
Commit
6ace2f72
authored
Aug 26, 2025
by
Huy Do
Committed by
GitHub
Aug 26, 2025
Browse files
Fix writing benchmark results with tuple keys (#23633)
Signed-off-by:
Huy Do
<
huydhn@gmail.com
>
parent
b00e69f8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
vllm/benchmarks/lib/utils.py
vllm/benchmarks/lib/utils.py
+6
-1
No files found.
vllm/benchmarks/lib/utils.py
View file @
6ace2f72
...
...
@@ -54,7 +54,12 @@ class InfEncoder(json.JSONEncoder):
def
clear_inf
(
self
,
o
:
Any
):
if
isinstance
(
o
,
dict
):
return
{
k
:
self
.
clear_inf
(
v
)
for
k
,
v
in
o
.
items
()}
return
{
str
(
k
)
if
not
isinstance
(
k
,
(
str
,
int
,
float
,
bool
,
type
(
None
)))
else
k
:
self
.
clear_inf
(
v
)
for
k
,
v
in
o
.
items
()
}
elif
isinstance
(
o
,
list
):
return
[
self
.
clear_inf
(
v
)
for
v
in
o
]
elif
isinstance
(
o
,
float
)
and
math
.
isinf
(
o
):
...
...
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