sasha HF staff commited on
Commit
2dc39dd
β€’
1 Parent(s): ae3e5b2

adding other tasks

Browse files
app.py CHANGED
@@ -4,6 +4,7 @@ from huggingface_hub import list_models
4
  import plotly.express as px
5
 
6
  def get_plots(task_data):
 
7
  task_df= pd.read_csv(task_data)
8
  task_df['Total GPU Energy (Wh)'] = task_df['total_gpu_energy']*1000
9
  task_df = task_df.sort_values(by=['Total GPU Energy (Wh)'])
@@ -12,9 +13,9 @@ def get_plots(task_data):
12
  return task_df
13
 
14
  def get_model_names(task_data):
 
15
  task_df= pd.read_csv(task_data)
16
  model_names = task_df[['model']]
17
- print(model_names)
18
  return model_names
19
 
20
  demo = gr.Blocks()
@@ -28,14 +29,18 @@ with demo:
28
  with gr.Tabs():
29
  with gr.TabItem("Text Generation πŸ’¬"):
30
  with gr.Row():
31
- animal_data = gr.components.Dataframe(
32
- type="pandas", datatype=["number", "markdown", "markdown", "number"]
33
- )
 
 
34
  with gr.TabItem("Image Generation πŸ“·"):
35
  with gr.Row():
36
- science_data = gr.components.Dataframe(
37
- type="pandas", datatype=["number", "markdown", "markdown", "number"]
38
- )
 
 
39
  with gr.TabItem("Text Classification 🎭"):
40
  with gr.Row():
41
  with gr.Column():
@@ -45,14 +50,16 @@ with demo:
45
 
46
  with gr.TabItem("Image Classification πŸ–ΌοΈ"):
47
  with gr.Row():
48
- landscape_data = gr.components.Dataframe(
49
- type="pandas", datatype=["number", "markdown", "markdown", "number"]
50
- )
 
 
51
  with gr.TabItem("Extractive QA ❔"):
52
  with gr.Row():
53
- wildcard_data = gr.components.Dataframe(
54
- type="pandas", datatype=["number", "markdown", "markdown", "number"]
55
- )
56
-
57
 
58
  demo.launch()
 
4
  import plotly.express as px
5
 
6
  def get_plots(task_data):
7
+ #TO DO : hover text with energy efficiency number, parameters
8
  task_df= pd.read_csv(task_data)
9
  task_df['Total GPU Energy (Wh)'] = task_df['total_gpu_energy']*1000
10
  task_df = task_df.sort_values(by=['Total GPU Energy (Wh)'])
 
13
  return task_df
14
 
15
  def get_model_names(task_data):
16
+ #TODO: add link to results in model card of each model
17
  task_df= pd.read_csv(task_data)
18
  model_names = task_df[['model']]
 
19
  return model_names
20
 
21
  demo = gr.Blocks()
 
29
  with gr.Tabs():
30
  with gr.TabItem("Text Generation πŸ’¬"):
31
  with gr.Row():
32
+ with gr.Column():
33
+ plot = gr.Plot(get_plots('data/text_generation.csv'))
34
+ with gr.Column():
35
+ table = gr.Dataframe(get_model_names('data/text_generation.csv'))
36
+
37
  with gr.TabItem("Image Generation πŸ“·"):
38
  with gr.Row():
39
+ with gr.Column():
40
+ plot = gr.Plot(get_plots('data/image_generation.csv'))
41
+ with gr.Column():
42
+ table = gr.Dataframe(get_model_names('data/image_generation.csv'))
43
+
44
  with gr.TabItem("Text Classification 🎭"):
45
  with gr.Row():
46
  with gr.Column():
 
50
 
51
  with gr.TabItem("Image Classification πŸ–ΌοΈ"):
52
  with gr.Row():
53
+ with gr.Column():
54
+ plot = gr.Plot(get_plots('data/image_classification.csv'))
55
+ with gr.Column():
56
+ table = gr.Dataframe(get_model_names('data/image_classification.csv'))
57
+
58
  with gr.TabItem("Extractive QA ❔"):
59
  with gr.Row():
60
+ with gr.Column():
61
+ plot = gr.Plot(get_plots('data/question_answering.csv'))
62
+ with gr.Column():
63
+ table = gr.Dataframe(get_model_names('data/question_answering.csv'))
64
 
65
  demo.launch()
data/image_classification.csv ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ,timestamp,task,model,dataset,total_gpu_energy
2
+ 0,2024-09-05-15-55-25,image_classification,deepmind/vision-perceiver-conv,EnergyStarAI/image_classification,0.002641365890868874
3
+ 0,2024-09-04-22-54-51,image_classification,microsoft/beit-base-patch16-224,EnergyStarAI/image_classification,0.0007415063154269319
4
+ 0,2024-09-04-22-06-45,image_classification,microsoft/resnet-50,EnergyStarAI/image_classification,0.0003904286734538687
5
+ 0,2024-09-05-15-31-45,image_classification,microsoft/swin-base-patch4-window12-384,EnergyStarAI/image_classification,0.0015308166135410417
6
+ 0,2024-09-05-15-37-23,image_classification,microsoft/resnet-18,EnergyStarAI/image_classification,0.00029911504484738673
7
+ 0,2024-09-04-22-58-16,image_classification,microsoft/swinv2-large-patch4-window12-192-22k,EnergyStarAI/image_classification,0.001290521115749399
8
+ 0,2024-09-04-22-58-53,image_classification,microsoft/swinv2-large-patch4-window12-192-22k,EnergyStarAI/image_classification,0.0013860879144246495
9
+ 0,2024-09-05-15-50-25,image_classification,microsoft/swinv2-tiny-patch4-window8-256,EnergyStarAI/image_classification,0.0007677747808859881
10
+ 0,2024-09-04-22-44-06,image_classification,microsoft/swinv2-tiny-patch4-window16-256,EnergyStarAI/image_classification,0.000848116678493227
11
+ 0,2024-09-04-22-09-01,image_classification,microsoft/beit-base-patch16-224-pt22k-ft22k,EnergyStarAI/image_classification,0.0007789863176341782
12
+ 0,2024-09-04-22-49-34,image_classification,apple/mobilevit-small,EnergyStarAI/image_classification,0.0005120553818661943
13
+ 0,2024-09-04-22-09-45,image_classification,WinKawaks/vit-tiny-patch16-224,EnergyStarAI/image_classification,0.0003847505022445574
14
+ 0,2024-09-04-22-49-24,image_classification,facebook/convnext-base-384-22k-1k,EnergyStarAI/image_classification,0.0011152139755038703
15
+ 0,2024-09-04-22-44-45,image_classification,facebook/convnext-tiny-224,EnergyStarAI/image_classification,0.00045075399949183747
16
+ 0,2024-09-04-22-49-56,image_classification,facebook/convnext-large-224,EnergyStarAI/image_classification,0.0009730105839629744
17
+ 0,2024-09-05-15-47-07,image_classification,nvidia/mit-b5,EnergyStarAI/image_classification,0.0024879305181205067
18
+ 0,2024-09-05-15-57-37,image_classification,google/efficientnet-b7,EnergyStarAI/image_classification,0.0018499837577637735
19
+ 0,2024-09-04-22-54-33,image_classification,google/vit-base-patch32-384,EnergyStarAI/image_classification,0.0007589946349732202
20
+ 0,2024-09-04-22-08-50,image_classification,google/vit-base-patch16-384,EnergyStarAI/image_classification,0.0009914635153924322
21
+ 0,2024-09-04-22-08-57,image_classification,google/vit-large-patch32-384,EnergyStarAI/image_classification,0.0011631231249422003
22
+ 0,2024-09-04-22-54-36,image_classification,google/mobilenet_v2_1.0_224,EnergyStarAI/image_classification,0.0004064683251744028
23
+ 0,2024-09-04-22-07-11,image_classification,google/vit-base-patch16-224,EnergyStarAI/image_classification,0.0005825953549653207
24
+ 0,2024-09-04-22-09-33,image_classification,google/bit-50,EnergyStarAI/image_classification,0.0008317437209498735
data/image_generation.csv ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ,timestamp,task,model,dataset,total_gpu_energy
2
+ 0,2024-09-04-17-08-46,image_generation_tiny_sd,Mitsua/mitsua-diffusion-one,EnergyStarAI/image_generation,0.18681191386607826
3
+ 0,2024-09-04-17-08-42,image_generation_tiny_sd,gsdf/Counterfeit-V2.5,EnergyStarAI/image_generation,0.18736638611521114
4
+ 0,2024-09-04-17-01-27,image_generation_tiny_sd,stabilityai/sd-turbo,EnergyStarAI/image_generation,0.18986494633628012
5
+ 0,2024-09-04-17-01-31,image_generation_tiny_sd,stabilityai/stable-cascade,EnergyStarAI/image_generation,1.2143555385669864
6
+ 0,2024-09-04-17-01-48,image_generation_tiny_sd,stabilityai/stable-diffusion-2-1,EnergyStarAI/image_generation,0.5344667333230447
7
+ 0,2024-09-04-17-01-38,image_generation_tiny_sd,stabilityai/sdxl-turbo,EnergyStarAI/image_generation,0.38556879787145704
8
+ 0,2024-09-04-16-52-34,image_generation_tiny_sd,stabilityai/stable-diffusion-xl-base-1.0,EnergyStarAI/image_generation,1.6398454721253273
9
+ 0,2024-09-04-17-08-19,image_generation_tiny_sd,dreamlike-art/dreamlike-photoreal-2.0,EnergyStarAI/image_generation,0.5813318923429195
10
+ 0,2024-09-04-17-01-18,image_generation_tiny_sd,prompthero/openjourney-v4,EnergyStarAI/image_generation,0.20336733122151288
11
+ 0,2024-09-04-17-01-27,image_generation_tiny_sd,prompthero/openjourney,EnergyStarAI/image_generation,0.1968802236707196
12
+ 0,2024-09-04-17-08-37,image_generation_tiny_sd,SimianLuo/LCM_Dreamshaper_v7,EnergyStarAI/image_generation,0.32204441110754656
13
+ 0,2024-09-04-17-08-08,image_generation_tiny_sd,Yntec/epiCPhotoGasm,EnergyStarAI/image_generation,0.5865744907036616
data/question_answering.csv ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ,timestamp,task,model,dataset,total_gpu_energy
2
+ 0,2024-09-06-14-58-58,question_answering,distilbert/distilbert-base-cased-distilled-squad,EnergyStarAI/extractive_qa,0.0002399711641988489
3
+ 0,2024-09-05-22-57-19,question_answering,csarron/mobilebert-uncased-squad-v2,EnergyStarAI/extractive_qa,0.0009365245547769518
4
+ 0,2024-09-06-14-56-03,question_answering,Intel/dynamic_tinybert,EnergyStarAI/extractive_qa,0.00020857152796818212
5
+ 0,2024-09-06-01-22-50,question_answering,Falconsai/question_answering_v2,EnergyStarAI/extractive_qa,0.0002254597081453369
6
+ 0,2024-09-06-01-22-48,question_answering,allenai/longformer-large-4096-finetuned-triviaqa,EnergyStarAI/extractive_qa,0.003970963176768194
7
+ 0,2024-09-06-15-15-47,question_answering,mrm8488/longformer-base-4096-finetuned-squadv2,EnergyStarAI/extractive_qa,0.0017923508227684515
8
+ 0,2024-09-06-01-22-27,question_answering,mrm8488/bert-tiny-finetuned-squadv2,EnergyStarAI/extractive_qa,5.536551651470489e-05
9
+ 0,2024-09-06-14-58-51,question_answering,deepset/deberta-v3-large-squad2,EnergyStarAI/extractive_qa,0.0018766848346800202
10
+ 0,2024-09-06-14-58-22,question_answering,deepset/minilm-uncased-squad2,EnergyStarAI/extractive_qa,0.00025281523002980145
11
+ 0,2024-09-05-22-53-34,question_answering,deepset/bert-large-uncased-whole-word-masking-squad2,EnergyStarAI/extractive_qa,0.0010475373935861399
12
+ 0,2024-09-05-22-56-47,question_answering,deepset/deberta-v3-base-squad2,EnergyStarAI/extractive_qa,0.0008124823444305207
13
+ 0,2024-09-05-23-01-01,question_answering,deepset/electra-base-squad2,EnergyStarAI/extractive_qa,0.00046862068045072647
14
+ 0,2024-09-05-22-53-25,question_answering,timpal0l/mdeberta-v3-base-squad2,EnergyStarAI/extractive_qa,0.0008576797694729521
15
+ 0,2024-09-06-01-32-55,question_answering_t5,google-t5/t5-large,EnergyStarAI/extractive_qa,0.07227845601716326
16
+ 0,2024-09-06-01-32-31,question_answering_t5,google-t5/t5-11b,EnergyStarAI/extractive_qa,0.17813010925397316
17
+ 0,2024-09-06-01-24-52,question_answering_t5,google-t5/t5-3b,EnergyStarAI/extractive_qa,0.08769785824156423
18
+ 0,2024-09-06-01-22-36,question_answering_t5,google-t5/t5-base,EnergyStarAI/extractive_qa,0.03436274993462298
19
+ 0,2024-09-06-01-24-00,question_answering_t5,google-t5/t5-small,EnergyStarAI/extractive_qa,0.020635068646930498
data/text_generation.csv ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ,timestamp,task,model,dataset,total_gpu_energy
2
+ 0,2024-09-03-20-36-27,text_generation,berkeley-nest/Starling-LM-7B-alpha,EnergyStarAI/text_generation,0.04829386649617336
3
+ 0,2024-09-03-17-53-29,text_generation,distilbert/distilgpt2,EnergyStarAI/text_generation,0.001425080278951185
4
+ 0,2024-09-03-19-35-39,text_generation,distilbert/distilgpt2,EnergyStarAI/text_generation,0.0014059794303420859
5
+ 0,2024-09-03-18-16-33,text_generation,openai-community/gpt2,EnergyStarAI/text_generation,0.002368695394954301
6
+ 0,2024-09-03-19-37-40,text_generation,openai-community/gpt2,EnergyStarAI/text_generation,0.002339770899592963
7
+ 0,2024-09-03-20-32-52,text_generation,openai-community/gpt2-xl,EnergyStarAI/text_generation,0.013101479925619941
8
+ 0,2024-09-03-18-24-01,text_generation,openai-community/gpt2-medium,EnergyStarAI/text_generation,0.004465207961052364
9
+ 0,2024-09-03-19-43-32,text_generation,openai-community/gpt2-medium,EnergyStarAI/text_generation,0.004732256035802606
10
+ 0,2024-09-03-19-51-07,text_generation,openai-community/gpt2-large,EnergyStarAI/text_generation,0.007908214937677993
11
+ 0,2024-09-03-18-23-56,text_generation,openai-community/gpt2-large,EnergyStarAI/text_generation,0.00795154244456233
12
+ 0,2024-09-03-18-01-05,text_generation,openai-community/openai-gpt,EnergyStarAI/text_generation,0.004929003832088341
13
+ 0,2024-09-03-19-35-45,text_generation,openai-community/openai-gpt,EnergyStarAI/text_generation,0.004807277651374564
14
+ 0,2024-09-03-19-49-03,text_generation,microsoft/phi-1,EnergyStarAI/text_generation,0.011351599942383217
15
+ 0,2024-09-03-18-23-24,text_generation,microsoft/phi-1,EnergyStarAI/text_generation,0.010815714652564878
16
+ 0,2024-09-03-18-23-52,text_generation,microsoft/phi-1_5,EnergyStarAI/text_generation,0.011129023847655618
17
+ 0,2024-09-03-19-50-04,text_generation,microsoft/phi-1_5,EnergyStarAI/text_generation,0.010834772973367013
18
+ 0,2024-09-03-20-03-08,text_generation,microsoft/phi-2,EnergyStarAI/text_generation,0.019046106403539653
19
+ 0,2024-09-04-19-48-08,text2text_generation_aya,CohereForAI/aya-101,EnergyStarAI/text_generation,0.0319398923852269
20
+ 0,2024-09-04-13-47-55,text_generation_mixtral-8x22B,CohereForAI/aya-23-35B,EnergyStarAI/text_generation,0.4242194862086494
21
+ 0,2024-09-04-13-49-57,text_generation_mixtral-8x22B,CohereForAI/aya-23-35B,EnergyStarAI/text_generation,0.4090310578356927
22
+ 0,2024-09-04-18-26-46,text_generation_mixtral-8x22B,CohereForAI/c4ai-command-r-v01,EnergyStarAI/text_generation,0.4270509165293489
23
+ 0,2024-09-03-20-46-29,text_generation,CohereForAI/aya-23-8B,EnergyStarAI/text_generation,0.050361238150069404
24
+ 0,2024-09-04-17-27-38,text_generation_mixtral-8x22B,CohereForAI/c4ai-command-r-plus,EnergyStarAI/text_generation,1.1198913853846122
25
+ 0,2024-09-04-13-41-25,text_generation,allenai/OLMo-1.7-7B-hf,EnergyStarAI/text_generation,0.040721423688223984
26
+ 0,2024-09-03-22-03-25,text_generation,allenai/OLMo-1B-hf,EnergyStarAI/text_generation,0.008888103499366019
27
+ 0,2024-09-03-20-01-42,text_generation,facebook/opt-2.7b,EnergyStarAI/text_generation,0.019248501371011
28
+ 0,2024-09-03-16-31-08,text_generation,facebook/opt-125m,EnergyStarAI/text_generation,0.002777412360817005
29
+ 0,2024-09-03-17-39-23,text_generation,facebook/opt-125m,EnergyStarAI/text_generation,0.0028910483128370855
30
+ 0,2024-09-03-19-35-29,text_generation,facebook/opt-125m,EnergyStarAI/text_generation,0.002757663511684605
31
+ 0,2024-09-04-13-47-53,text_generation_mixtral-8x22B,deepseek-ai/DeepSeek-V2-Lite,EnergyStarAI/text_generation,0.23619988082086446
32
+ 0,2024-09-03-20-38-22,text_generation,mistralai/Mistral-7B-v0.1,EnergyStarAI/text_generation,0.0490892784380577
33
+ 0,2024-09-04-17-10-56,text_generation_mixtral-8x22B,mistralai/Mixtral-8x7B-v0.1,EnergyStarAI/text_generation,0.3750990944401469
34
+ 0,2024-09-03-20-39-22,text_generation,tiiuae/falcon-7b,EnergyStarAI/text_generation,0.0339371245663445
35
+ 0,2024-09-04-15-04-54,text_generation_mixtral-8x22B,tiiuae/falcon-40b,EnergyStarAI/text_generation,0.47684789142245093
36
+ 0,2024-09-03-20-52-24,text_generation,meta-llama/Meta-Llama-3-8B,EnergyStarAI/text_generation,0.04461719274928115
37
+ 0,2024-09-03-20-34-55,text_generation,meta-llama/Llama-2-7b-hf,EnergyStarAI/text_generation,0.04190279988332577
38
+ 0,2024-09-04-17-27-41,text_generation_mixtral-8x22B,meta-llama/Meta-Llama-3-70B,EnergyStarAI/text_generation,0.8271958455617003
39
+ 0,2024-09-03-21-12-38,text_generation,meta-llama/Meta-Llama-3.1-8B,EnergyStarAI/text_generation,0.045918372318001666
40
+ 0,2024-09-04-17-27-38,text_generation_mixtral-8x22B,meta-llama/Meta-Llama-3.1-70B,EnergyStarAI/text_generation,0.85701887019788
41
+ 0,2024-09-03-21-47-51,text_generation,meta-llama/Llama-2-13b-hf,EnergyStarAI/text_generation,0.07833887903216237
42
+ 0,2024-09-04-17-19-03,text_generation_mixtral-8x22B,meta-llama/Llama-2-70b-hf,EnergyStarAI/text_generation,0.8505796536854
43
+ 0,2024-09-03-20-04-14,text_generation,HuggingFaceTB/SmolLM-1.7B,EnergyStarAI/text_generation,0.012785934645407337
44
+ 0,2024-09-03-18-24-07,text_generation,HuggingFaceTB/SmolLM-135M,EnergyStarAI/text_generation,0.006866622048852378
45
+ 0,2024-09-03-19-25-33,text_generation,HuggingFaceTB/SmolLM-135M,EnergyStarAI/text_generation,0.0072665603688051306
46
+ 0,2024-09-03-19-57-04,text_generation,HuggingFaceTB/SmolLM-360M,EnergyStarAI/text_generation,0.008566339603066186
47
+ 0,2024-09-03-18-24-12,text_generation,HuggingFaceTB/SmolLM-360M,EnergyStarAI/text_generation,0.008800369151400788
48
+ 0,2024-09-03-20-33-55,text_generation,google/gemma-2b,EnergyStarAI/text_generation,0.016848587562192385
49
+ 0,2024-09-03-22-09-00,text_generation,google/gemma-7b,EnergyStarAI/text_generation,0.05101926195426358
50
+ 0,2024-09-03-21-13-30,text_generation,01-ai/Yi-1.5-9B,EnergyStarAI/text_generation,0.055509722463298064
51
+ 0,2024-09-04-18-27-26,text_generation_mixtral-8x22B,01-ai/Yi-1.5-34B,EnergyStarAI/text_generation,0.4239666723119548
52
+ 0,2024-09-03-21-46-18,text_generation,01-ai/Yi-1.5-6B,EnergyStarAI/text_generation,0.036451677244651745