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
cbd95a2d
Unverified
Commit
cbd95a2d
authored
Feb 22, 2026
by
Cyrus Leung
Committed by
GitHub
Feb 21, 2026
Browse files
[Benchmark] Use `sns.relplot` for plotting (#35027)
Signed-off-by:
DarkLight1337
<
tlleungac@connect.ust.hk
>
parent
970861ac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
23 deletions
+25
-23
vllm/benchmarks/sweep/plot.py
vllm/benchmarks/sweep/plot.py
+25
-23
No files found.
vllm/benchmarks/sweep/plot.py
View file @
cbd95a2d
...
...
@@ -346,27 +346,11 @@ def _plot_fig(
else
"(All)"
)
g
=
sns
.
FacetGrid
(
df
,
row
=
"row_group"
,
col
=
"col_group"
,
height
=
fig_height
)
if
row_by
and
col_by
:
g
.
set_titles
(
"{row_name}
\n
{col_name}"
)
elif
row_by
:
g
.
set_titles
(
"{row_name}"
)
elif
col_by
:
g
.
set_titles
(
"{col_name}"
)
else
:
g
.
set_titles
(
""
)
if
scale_x
:
g
.
set
(
xscale
=
scale_x
)
if
scale_y
:
g
.
set
(
yscale
=
scale_y
)
if
len
(
curve_by
)
<=
3
:
hue
,
style
,
size
,
*
_
=
(
*
curve_by
,
None
,
None
,
None
)
g
.
map_dataframe
(
sns
.
lineplot
,
g
=
sns
.
relplot
(
df
,
x
=
var_x
,
y
=
var_y
,
hue
=
hue
,
...
...
@@ -374,9 +358,11 @@ def _plot_fig(
size
=
size
,
markers
=
True
,
errorbar
=
"sd"
if
error_bars
else
None
,
kind
=
"line"
,
row
=
"row_group"
,
col
=
"col_group"
,
height
=
fig_height
,
)
g
.
add_legend
(
title
=
hue
)
else
:
df
[
"curve_group"
]
=
(
pd
.
concat
(
...
...
@@ -387,16 +373,32 @@ def _plot_fig(
else
"(All)"
)
g
.
map_dataframe
(
sns
.
lineplot
,
g
=
sns
.
relplot
(
df
,
x
=
var_x
,
y
=
var_y
,
hue
=
"curve_group"
,
markers
=
True
,
errorbar
=
"sd"
if
error_bars
else
None
,
kind
=
"line"
,
row
=
"row_group"
,
col
=
"col_group"
,
height
=
fig_height
,
)
g
.
add_legend
()
if
row_by
and
col_by
:
g
.
set_titles
(
"{row_name}
\n
{col_name}"
)
elif
row_by
:
g
.
set_titles
(
"{row_name}"
)
elif
col_by
:
g
.
set_titles
(
"{col_name}"
)
else
:
g
.
set_titles
(
""
)
if
scale_x
:
g
.
set
(
xscale
=
scale_x
)
if
scale_y
:
g
.
set
(
yscale
=
scale_y
)
g
.
savefig
(
fig_path
,
dpi
=
fig_dpi
)
plt
.
close
(
g
.
figure
)
...
...
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