Clémentine commited on
Commit
06acefd
1 Parent(s): 0e318e9
Files changed (2) hide show
  1. requirements.txt +1 -1
  2. src/manage_collections.py +3 -2
requirements.txt CHANGED
@@ -60,7 +60,7 @@ sniffio==1.3.0
60
  starlette==0.26.1
61
  toolz==0.12.0
62
  tqdm==4.65.0
63
- transformers==4.34.0
64
  typing_extensions==4.5.0
65
  tzdata==2023.3
66
  tzlocal==4.3
 
60
  starlette==0.26.1
61
  toolz==0.12.0
62
  tqdm==4.65.0
63
+ transformers
64
  typing_extensions==4.5.0
65
  tzdata==2023.3
66
  tzlocal==4.3
src/manage_collections.py CHANGED
@@ -16,7 +16,7 @@ intervals = {
16
  "7B": pd.Interval(6, 8, closed="neither"),
17
  "13B": pd.Interval(10, 14, closed="neither"),
18
  "30B":pd.Interval(25, 35, closed="neither"),
19
- "60B": pd.Interval(55, 65, closed="neither"),
20
  }
21
 
22
  def update_collections(df: DataFrame):
@@ -39,6 +39,7 @@ def update_collections(df: DataFrame):
39
  filtered_df = filtered_df.loc[mask]
40
 
41
  best_models = list(filtered_df.sort_values(AutoEvalColumn.average.name, ascending=False)[AutoEvalColumn.dummy.name])
 
42
 
43
  # We add them one by one to the leaderboard
44
  for model in best_models:
@@ -50,7 +51,7 @@ def update_collections(df: DataFrame):
50
  item_id=model,
51
  item_type="model",
52
  exists_ok=True,
53
- note=f"Best {type.to_str(' ')} model of {size} on the leaderboard today!",
54
  token=H4_TOKEN
55
  )
56
  cur_best_models.append(model)
 
16
  "7B": pd.Interval(6, 8, closed="neither"),
17
  "13B": pd.Interval(10, 14, closed="neither"),
18
  "30B":pd.Interval(25, 35, closed="neither"),
19
+ "65B": pd.Interval(60, 70, closed="neither"),
20
  }
21
 
22
  def update_collections(df: DataFrame):
 
39
  filtered_df = filtered_df.loc[mask]
40
 
41
  best_models = list(filtered_df.sort_values(AutoEvalColumn.average.name, ascending=False)[AutoEvalColumn.dummy.name])
42
+ print(type.value.symbol, size, best_models[:10])
43
 
44
  # We add them one by one to the leaderboard
45
  for model in best_models:
 
51
  item_id=model,
52
  item_type="model",
53
  exists_ok=True,
54
+ note=f"Best {type.to_str(' ')} model of around {size} on the leaderboard today!",
55
  token=H4_TOKEN
56
  )
57
  cur_best_models.append(model)