Spaces:
Running
Running
Commit
β’
9243e5d
1
Parent(s):
3f0a11e
fix order and size
Browse files- app.py +3 -5
- src/assets/css_html_js.py +2 -2
app.py
CHANGED
@@ -29,9 +29,9 @@ OPTIMUM_TOKEN = os.environ.get("OPTIMUM_TOKEN", None)
|
|
29 |
|
30 |
|
31 |
ALL_COLUMNS_MAPPING = {
|
32 |
-
"model_type": "Model Type π€",
|
33 |
-
"weight_class": "Weight Class ποΈ",
|
34 |
"best_scored_model": "Best Scored Model π",
|
|
|
|
|
35 |
#
|
36 |
"backend.name": "Backend π",
|
37 |
"backend.torch_dtype": "Dtype π₯",
|
@@ -45,9 +45,9 @@ ALL_COLUMNS_MAPPING = {
|
|
45 |
#
|
46 |
}
|
47 |
ALL_COLUMNS_DATATYPES = [
|
|
|
48 |
"str",
|
49 |
"str",
|
50 |
-
"markdown",
|
51 |
#
|
52 |
"str",
|
53 |
"str",
|
@@ -131,7 +131,6 @@ def get_benchmark_plot(bench_df):
|
|
131 |
x="generate.latency(s)",
|
132 |
y="best_score",
|
133 |
color="model_type",
|
134 |
-
symbol="backend.name",
|
135 |
size="forward.peak_memory(MB)",
|
136 |
custom_data=[
|
137 |
"best_scored_model",
|
@@ -141,7 +140,6 @@ def get_benchmark_plot(bench_df):
|
|
141 |
"forward.peak_memory(MB)",
|
142 |
"generate.throughput(tokens/s)",
|
143 |
],
|
144 |
-
symbol_sequence=["triangle-up", "circle"],
|
145 |
color_discrete_sequence=px.colors.qualitative.Light24,
|
146 |
)
|
147 |
|
|
|
29 |
|
30 |
|
31 |
ALL_COLUMNS_MAPPING = {
|
|
|
|
|
32 |
"best_scored_model": "Best Scored Model π",
|
33 |
+
"model_type": "Type π€",
|
34 |
+
"weight_class": "Class ποΈ",
|
35 |
#
|
36 |
"backend.name": "Backend π",
|
37 |
"backend.torch_dtype": "Dtype π₯",
|
|
|
45 |
#
|
46 |
}
|
47 |
ALL_COLUMNS_DATATYPES = [
|
48 |
+
"markdown",
|
49 |
"str",
|
50 |
"str",
|
|
|
51 |
#
|
52 |
"str",
|
53 |
"str",
|
|
|
131 |
x="generate.latency(s)",
|
132 |
y="best_score",
|
133 |
color="model_type",
|
|
|
134 |
size="forward.peak_memory(MB)",
|
135 |
custom_data=[
|
136 |
"best_scored_model",
|
|
|
140 |
"forward.peak_memory(MB)",
|
141 |
"generate.throughput(tokens/s)",
|
142 |
],
|
|
|
143 |
color_discrete_sequence=px.colors.qualitative.Light24,
|
144 |
)
|
145 |
|
src/assets/css_html_js.py
CHANGED
@@ -25,8 +25,8 @@ custom_css = """
|
|
25 |
border: none;
|
26 |
}
|
27 |
|
28 |
-
table td:
|
29 |
-
table th:
|
30 |
max-width: 300px;
|
31 |
overflow: auto;
|
32 |
white-space: nowrap;
|
|
|
25 |
border: none;
|
26 |
}
|
27 |
|
28 |
+
table td:first-child,
|
29 |
+
table th:first-child {
|
30 |
max-width: 300px;
|
31 |
overflow: auto;
|
32 |
white-space: nowrap;
|