Ilyas KHIAT commited on
Commit
64d6dba
·
1 Parent(s): a306650

emission export fin fin

Browse files
Files changed (2) hide show
  1. emissions.csv +19 -1
  2. empreinte_carbone.py +5 -1
emissions.csv CHANGED
@@ -1591,4 +1591,22 @@ timestamp,project_name,run_id,duration,emissions,emissions_rate,cpu_power,gpu_po
1591
  2024-07-17T18:34:39,codecarbon,c5ccb98c-56c5-45df-8c2f-2063a3ef816c,404.151828289032,0.0004980585432608,1.2323550418401285e-06,42.5,3.518182016542716,5.86829710006714,0.0047704967796802,0.000439860907444,0.0006575076654469,0.0058678653525712,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
1592
  2024-07-17T18:34:40,codecarbon,c5ccb98c-56c5-45df-8c2f-2063a3ef816c,404.8156716823578,0.0004992809776485,1.2333538757865364e-06,42.5,30.207986240624955,5.86829710006714,0.0047783101624912,0.00044539757854,0.0006585596943598,0.0058822674353911,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
1593
  2024-07-17T18:34:40,codecarbon,c5ccb98c-56c5-45df-8c2f-2063a3ef816c,404.9339051246643,0.0004996029910711,1.2337889832102275e-06,42.5,69.4651394210638,5.86829710006714,0.0047797072293029,0.000447640080334,0.0006587139195375,0.0058860612291745,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
1594
- 2024-07-17T18:34:40,codecarbon,c5ccb98c-56c5-45df-8c2f-2063a3ef816c,405.02332520484924,0.0005000046772351699,1.2345083508024676e-06,42.5,147.09287469615646,5.86829710006714,0.004780762883027394,0.00045119563873400464,0.000658835163781194,0.005890793685542595,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1591
  2024-07-17T18:34:39,codecarbon,c5ccb98c-56c5-45df-8c2f-2063a3ef816c,404.151828289032,0.0004980585432608,1.2323550418401285e-06,42.5,3.518182016542716,5.86829710006714,0.0047704967796802,0.000439860907444,0.0006575076654469,0.0058678653525712,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
1592
  2024-07-17T18:34:40,codecarbon,c5ccb98c-56c5-45df-8c2f-2063a3ef816c,404.8156716823578,0.0004992809776485,1.2333538757865364e-06,42.5,30.207986240624955,5.86829710006714,0.0047783101624912,0.00044539757854,0.0006585596943598,0.0058822674353911,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
1593
  2024-07-17T18:34:40,codecarbon,c5ccb98c-56c5-45df-8c2f-2063a3ef816c,404.9339051246643,0.0004996029910711,1.2337889832102275e-06,42.5,69.4651394210638,5.86829710006714,0.0047797072293029,0.000447640080334,0.0006587139195375,0.0058860612291745,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
1594
+ 2024-07-17T18:34:40,codecarbon,c5ccb98c-56c5-45df-8c2f-2063a3ef816c,405.0233252048493,0.0005000046772351,1.2345083508024676e-06,42.5,147.09287469615646,5.86829710006714,0.0047807628830273,0.000451195638734,0.0006588351637811,0.0058907936855425,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
1595
+ 2024-07-17T18:45:36,codecarbon,c5ccb98c-56c5-45df-8c2f-2063a3ef816c,1060.7999675273895,0.0012903306459858,1.2163750805851136e-06,42.5,2.747399370383817,5.86829710006714,0.0125225704660018,0.0009516604835499,0.001727770087051,0.0152020010366028,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
1596
+ 2024-07-17T18:45:36,codecarbon,c5ccb98c-56c5-45df-8c2f-2063a3ef816c,1061.5936725139618,0.0012915337545639,1.2165989568357883e-06,42.5,16.107053718982126,5.86829710006714,0.0125319405943155,0.000955202708606,0.0017290321299176,0.0152161754328392,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
1597
+ 2024-07-17T18:46:30,codecarbon,50836191-d7be-4848-a848-224a9fca2ec4,0.0554196834564209,5.5697469989352766e-08,1.0050124164485764e-06,42.5,0.0,5.86829710006714,6.307886706458198e-07,0.0,2.5409799993004378e-08,6.561984706388241e-07,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
1598
+ 2024-07-17T18:46:31,codecarbon,50836191-d7be-4848-a848-224a9fca2ec4,1.795803785324097,2.8183789773792826e-06,1.5694247892848923e-06,42.5,19.13008011457156,5.86829710006714,2.1165179544025e-05,9.226951826001029e-06,2.812536184719932e-06,3.320466755474596e-05,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
1599
+ 2024-07-17T18:47:01,codecarbon,f9c9b55d-6391-47e4-8278-b22a5380f149,0.0493884086608886,5.197481807804374e-07,1.0523687538692307e-05,42.5,477.6184326187451,5.86829710006714,5.531517995728388e-07,5.546948882002856e-06,2.330064007556605e-08,6.1234013216512605e-06,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
1600
+ 2024-07-17T18:47:03,codecarbon,f9c9b55d-6391-47e4-8278-b22a5380f149,1.3528220653533936,2.0951343635944573e-06,1.5487139197771378e-06,42.5,3.061873063937673,5.86829710006714,1.592573357952966e-05,6.651949765998366e-06,2.106094309657086e-06,2.468377765518511e-05,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
1601
+ 2024-07-17T18:47:03,codecarbon,f9c9b55d-6391-47e4-8278-b22a5380f149,1.5553205013275146,2.430798119051571e-06,1.5628920965015306e-06,42.5,23.62352305599585,5.86829710006714,1.8304532600773708e-05,7.95333969599854e-06,2.380520227309925e-06,2.8638392524082173e-05,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
1602
+ 2024-07-17T18:47:03,codecarbon,f9c9b55d-6391-47e4-8278-b22a5380f149,1.7367587089538574,2.7532494668759373e-06,1.585280357416124e-06,42.5,28.43689397864905,5.86829710006714,2.043472081422806e-05,9.362785268002272e-06,2.639839631973852e-06,3.2437345714204186e-05,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
1603
+ 2024-07-17T18:47:25,codecarbon,f9c9b55d-6391-47e4-8278-b22a5380f149,23.83020806312561,2.998329286530029e-05,1.2582052488117314e-06,42.5,3.909841301681901,5.86829710006714,0.0002812601645787,3.335669335200603e-05,3.863062219153335e-05,0.0003532474801222,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
1604
+ 2024-07-17T18:47:28,codecarbon,f9c9b55d-6391-47e4-8278-b22a5380f149,27.16477751731873,3.398498542155605e-05,1.2510680567837949e-06,42.5,2.5834656473920017,5.86829710006714,0.0003206148048241,3.5747528598001344e-05,4.403099615939851e-05,0.0004003933295815,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
1605
+ 2024-07-17T18:47:30,codecarbon,f9c9b55d-6391-47e4-8278-b22a5380f149,28.8342604637146,3.623839516649967e-05,1.2567825421464346e-06,42.5,9.077204079555631,5.86829710006714,0.0003403119289212,3.994947640400398e-05,4.668041970210832e-05,0.0004269418250273,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
1606
+ 2024-07-17T18:47:35,codecarbon,f9c9b55d-6391-47e4-8278-b22a5380f149,33.23533821105957,4.1507747526313664e-05,1.2489040208563704e-06,42.5,2.5584976543894853,5.86829710006714,0.0003921561724609,4.306836778800172e-05,5.379803926201229e-05,0.0004890225795109,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
1607
+ 2024-07-17T18:47:43,codecarbon,f9c9b55d-6391-47e4-8278-b22a5380f149,41.35506892204285,5.19750007886157e-05,1.2567987950060524e-06,42.5,6.28993672803548,5.86829710006714,0.0004880852619806,5.725699025000558e-05,6.700003253485856e-05,0.0006123422847655,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
1608
+ 2024-07-17T18:47:43,codecarbon,f9c9b55d-6391-47e4-8278-b22a5380f149,41.5412585735321,5.239326787437103e-05,1.2612344852679368e-06,42.5,48.92230193613374,5.86829710006714,0.0004902833342552,5.9743936684002186e-05,6.724281794461414e-05,0.0006172700888838,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
1609
+ 2024-07-17T18:47:43,codecarbon,f9c9b55d-6391-47e4-8278-b22a5380f149,42.06853246688843,5.3144389009696754e-05,1.2632812673350557e-06,42.5,12.367174890098632,5.86829710006714,0.0004965080954962,6.154671590400534e-05,6.806459398503885e-05,0.0006261194053852,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
1610
+ 2024-07-17T18:47:45,codecarbon,f9c9b55d-6391-47e4-8278-b22a5380f149,44.08906841278076,5.586070916414056e-05,1.2669968129321458e-06,42.5,8.748207981336316,5.86829710006714,0.0005203497332003,6.645060871600383e-05,7.132132733212407e-05,0.0006581216692484,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
1611
+ 2024-07-17T18:47:46,codecarbon,f9c9b55d-6391-47e4-8278-b22a5380f149,44.31232833862305,5.6564232329881214e-05,1.2764897366175925e-06,42.5,87.99239824056778,5.86829710006714,0.000522962546183,7.181200189399634e-05,7.163566328130107e-05,0.0006664102113583,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
1612
+ 2024-07-17T18:47:46,codecarbon,f9c9b55d-6391-47e4-8278-b22a5380f149,44.54373002052307,5.7438589132641374e-05,1.2894876362212399e-06,42.5,116.90270465852157,5.86829710006714,0.0005256544315152699,7.909839661199985e-05,7.19585979338452e-05,0.0006767114260611149,France,FRA,nouvelle-aquitaine,,,Windows-11-10.0.22631-SP0,3.12.3,2.5.0,16.0,12th Gen Intel(R) Core(TM) i5-12500H,1.0,1 x NVIDIA GeForce RTX 4050 Laptop GPU,-0.6455,44.8152,15.648792266845703,machine,N,1.0
empreinte_carbone.py CHANGED
@@ -77,7 +77,11 @@ def display_carbon_footprint():
77
  table = get_table_empreintes_detailed()
78
  table.replace({0.00: '-'}, inplace=True)
79
  styled_df = table[['Consommation Totale']].rename(columns={'Consommation Totale': 'Consommation Cumulée (g eqCo2)'})
 
80
  styled_df = styled_df.style.applymap(color_scale, subset=['Consommation Cumulée (g eqCo2)'])
 
 
 
81
  st.markdown("---")
82
  st.markdown("### DETAIL PAR TACHE")
83
  st.table(styled_df)
@@ -97,7 +101,7 @@ def display_carbon_footprint():
97
  df = pd.DataFrame({"Categorie": ["Identification + dessin","Dialogue avec IA (extraction pp + dialogue)"], "valeur": [pourcentage_serveur, pourcentage_api]})
98
  base=alt.Chart(df).encode(
99
  theta=alt.Theta(field="valeur", type="quantitative", stack=True),
100
- color=alt.Color(field="Categorie", type="nominal")
101
  )
102
 
103
 
 
77
  table = get_table_empreintes_detailed()
78
  table.replace({0.00: '-'}, inplace=True)
79
  styled_df = table[['Consommation Totale']].rename(columns={'Consommation Totale': 'Consommation Cumulée (g eqCo2)'})
80
+ styled_df = styled_df.round(2)
81
  styled_df = styled_df.style.applymap(color_scale, subset=['Consommation Cumulée (g eqCo2)'])
82
+ styled_df = styled_df.set_properties(subset=['Consommation Cumulée (g eqCo2)'], **{'text-align': 'center'})
83
+
84
+
85
  st.markdown("---")
86
  st.markdown("### DETAIL PAR TACHE")
87
  st.table(styled_df)
 
101
  df = pd.DataFrame({"Categorie": ["Identification + dessin","Dialogue avec IA (extraction pp + dialogue)"], "valeur": [pourcentage_serveur, pourcentage_api]})
102
  base=alt.Chart(df).encode(
103
  theta=alt.Theta(field="valeur", type="quantitative", stack=True),
104
+ color=alt.Color(field="Catégorie", type="nominal")
105
  )
106
 
107