loubnabnl HF staff commited on
Commit
1a20ca0
1 Parent(s): 31c222e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -30,7 +30,7 @@ def plot_throughput(bs=1):
30
  name=df.loc[i, 'Models'],
31
  hovertemplate =
32
  '<b>%{text}</b><br><br>' +
33
- 'throughput_column: %{x}<br>' +
34
  'Average Score: %{y}<br>' +
35
  'Peak Memory (MB): ' + str(df.loc[i, 'Peak Memory (MB)']) + '<br>' +
36
  'Human Eval (Python): ' + str(df.loc[i, 'humaneval-python']),
@@ -40,10 +40,10 @@ def plot_throughput(bs=1):
40
 
41
  fig.update_layout(
42
  autosize=False,
43
- width=1000,
44
- height=800,
45
  title=f'Average Score Vs Throughput (A100-80GB, Batch Size {bs}, Float16)',
46
- xaxis_title='throughput_column',
47
  yaxis_title='Average Code Score',
48
  )
49
  return fig
@@ -53,7 +53,7 @@ demo = gr.Blocks()
53
  with demo:
54
  with gr.Row():
55
  gr.Markdown(
56
- """<div style="text-align: center;"><h1> ⭐ Base <span style='color: #e6b800;'>Code</span> Models <span style='color: #e6b800;'>Evaluation</span></h1></div>\
57
  <br>\
58
  <p>We compare base multilingual code generation models on <a href="https://huggingface.co/datasets/openai_humaneval">HumanEval</a> benchmark and <a href="https://huggingface.co/datasets/nuprl/MultiPL-E">MultiPL-E</a>, in addition to throughput measurment\
59
  and information about the model. We only compare pre-trained models without instruction tuning.</p>"""
@@ -82,11 +82,11 @@ with demo:
82
  gr.Markdown(
83
  """Notes:
84
  <ul>
85
- <li> Average score is the average pass@1 over all languages, for each model we exclude languages with a pass@1 score lower than 1 for the averaging.</li>
86
- <li> Throughputs are measured using <a href="https://github.com/huggingface/optimum-benchmark/tree/main">Optimum-Benchmark</a> which powers <a href="https://huggingface.co/spaces/optimum/llm-perf-leaderboard">LLM Perf LeaderBoard</a>.</li>
87
  <li> HumanEval-Python, reports the pass@1 on HumanEval, the rest is from MultiPL-E benchmark.</li>
88
- <li> All models were evaluated with the <a href="https://github.com/bigcode-project/bigcode-evaluation-harness/tree/main">bigcode-evaluation-harness</a> with top-p=0.95, temperature=0.2 and n_samples=50.</li>
89
- <li> #languages column represents the number of programming languages included during the pretraining.
90
  </ul>"""
91
  )
92
  demo.launch()
 
30
  name=df.loc[i, 'Models'],
31
  hovertemplate =
32
  '<b>%{text}</b><br><br>' +
33
+ f'{throughput_column}: %{{x}}<br>'+
34
  'Average Score: %{y}<br>' +
35
  'Peak Memory (MB): ' + str(df.loc[i, 'Peak Memory (MB)']) + '<br>' +
36
  'Human Eval (Python): ' + str(df.loc[i, 'humaneval-python']),
 
40
 
41
  fig.update_layout(
42
  autosize=False,
43
+ width=700,
44
+ height=600,
45
  title=f'Average Score Vs Throughput (A100-80GB, Batch Size {bs}, Float16)',
46
+ xaxis_title=f'{throughput_column}',
47
  yaxis_title='Average Code Score',
48
  )
49
  return fig
 
53
  with demo:
54
  with gr.Row():
55
  gr.Markdown(
56
+ """<div style="text-align: center;"><h1> ⭐ Multilingual <span style='color: #e6b800;'>Code</span> Models <span style='color: #e6b800;'>Evaluation</span></h1></div>\
57
  <br>\
58
  <p>We compare base multilingual code generation models on <a href="https://huggingface.co/datasets/openai_humaneval">HumanEval</a> benchmark and <a href="https://huggingface.co/datasets/nuprl/MultiPL-E">MultiPL-E</a>, in addition to throughput measurment\
59
  and information about the model. We only compare pre-trained models without instruction tuning.</p>"""
 
82
  gr.Markdown(
83
  """Notes:
84
  <ul>
85
+ <li> Throughputs and peak memory usage are measured using <a href="https://github.com/huggingface/optimum-benchmark/tree/main">Optimum-Benchmark</a> which powers <a href="https://huggingface.co/spaces/optimum/llm-perf-leaderboard">🤗 Open LLM-Perf Leaderboard 🏋️</a>. (0 throughput corresponds to OOM).</li>
86
+ <li> All models were evaluated with the <a href="https://github.com/bigcode-project/bigcode-evaluation-harness/tree/main">🔍 bigcode-evaluation-harness</a> with top-p=0.95, temperature=0.2 and n_samples=50.</li>
87
  <li> HumanEval-Python, reports the pass@1 on HumanEval, the rest is from MultiPL-E benchmark.</li>
88
+ <li> Average score is the average pass@1 over all languages. During the averaging, we exclude languages with a pass@1 score lower than 1 for each model.</li>
89
+ <li> #Languages column represents the number of programming languages included during the pretraining.
90
  </ul>"""
91
  )
92
  demo.launch()