BenchmarkBot commited on
Commit
9243e5d
β€’
1 Parent(s): 3f0a11e

fix order and size

Browse files
Files changed (2) hide show
  1. app.py +3 -5
  2. 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:nth-child(3),
29
- table th:nth-child(3) {
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;