Spaces:
Running
Running
BenchmarkBot
commited on
Commit
β’
c5c2773
1
Parent(s):
bc255c5
transform energy tokens to int
Browse files
app.py
CHANGED
@@ -84,9 +84,9 @@ def get_benchmark_df(benchmark="Succeeded-1xA100-80GB"):
|
|
84 |
clusters_df, left_on="model", right_on="best_scored_model"
|
85 |
)
|
86 |
# transpose energy consumption
|
87 |
-
merged_df["generate.energy_consumption(tokens/kWh)"] =
|
88 |
-
"generate.energy_consumption(kWh/token)"
|
89 |
-
|
90 |
# fix nan values
|
91 |
merged_df.loc[
|
92 |
merged_df["generate.energy_consumption(tokens/kWh)"] == 1,
|
|
|
84 |
clusters_df, left_on="model", right_on="best_scored_model"
|
85 |
)
|
86 |
# transpose energy consumption
|
87 |
+
merged_df["generate.energy_consumption(tokens/kWh)"] = (
|
88 |
+
1 / merged_df["generate.energy_consumption(kWh/token)"].fillna(1)
|
89 |
+
).astype(int)
|
90 |
# fix nan values
|
91 |
merged_df.loc[
|
92 |
merged_df["generate.energy_consumption(tokens/kWh)"] == 1,
|