Clémentine commited on
Commit
e64f3ca
·
1 Parent(s): 42406f0

updated filter sizes

Browse files
frontend/src/pages/LeaderboardPage/components/Leaderboard/context/LeaderboardContext.js CHANGED
@@ -53,6 +53,7 @@ const createInitialCounts = () => {
53
  merged: 0,
54
  notOnHub: 0,
55
  parameterRanges: {
 
56
  small: 0,
57
  medium: 0,
58
  large: 0,
@@ -227,9 +228,10 @@ const calculateModelCounts = (models) => {
227
  model.metadata?.params_billions || model.features?.params_billions
228
  );
229
  if (!isNaN(params)) {
230
- if (isInParamRange(params, [1.7, 7])) counts.parameterRanges.small++;
231
- if (isInParamRange(params, [7, 70])) counts.parameterRanges.medium++;
232
- if (isInParamRange(params, [70, 140])) counts.parameterRanges.large++;
 
233
  }
234
  });
235
  });
 
53
  merged: 0,
54
  notOnHub: 0,
55
  parameterRanges: {
56
+ edge: 0,
57
  small: 0,
58
  medium: 0,
59
  large: 0,
 
228
  model.metadata?.params_billions || model.features?.params_billions
229
  );
230
  if (!isNaN(params)) {
231
+ if (isInParamRange(params, [0, 3])) counts.parameterRanges.edge++;
232
+ if (isInParamRange(params, [3, 7])) counts.parameterRanges.small++;
233
+ if (isInParamRange(params, [7, 65])) counts.parameterRanges.medium++;
234
+ if (isInParamRange(params, [65, 140])) counts.parameterRanges.large++;
235
  }
236
  });
237
  });