brainz commited on
Commit
ec946d6
Β·
1 Parent(s): e48ac8d

update space

Browse files
Files changed (2) hide show
  1. app.py +14 -14
  2. src/display/utils.py +4 -0
app.py CHANGED
@@ -76,20 +76,20 @@ def init_leaderboard(dataframe):
76
  ),
77
  search_columns=[AutoEvalColumn.model.name, AutoEvalColumn.license.name],
78
  hide_columns=[c.name for c in fields(AutoEvalColumn) if c.hidden],
79
- # filter_columns=[
80
- # ColumnFilter(AutoEvalColumn.model_type.name, type="checkboxgroup", label="Model types"),
81
- # ColumnFilter(AutoEvalColumn.precision.name, type="checkboxgroup", label="Precision"),
82
- # ColumnFilter(
83
- # AutoEvalColumn.params.name,
84
- # type="slider",
85
- # min=0.01,
86
- # max=150,
87
- # label="Select the number of parameters (B)",
88
- # ),
89
- # ColumnFilter(
90
- # AutoEvalColumn.still_on_hub.name, type="boolean", label="Deleted/incomplete", default=True
91
- # ),
92
- # ],
93
  bool_checkboxgroup_label="Hide models",
94
  interactive=False,
95
  )
 
76
  ),
77
  search_columns=[AutoEvalColumn.model.name, AutoEvalColumn.license.name],
78
  hide_columns=[c.name for c in fields(AutoEvalColumn) if c.hidden],
79
+ filter_columns=[
80
+ ColumnFilter(AutoEvalColumn.model_type.name, type="checkboxgroup", label="Model types"),
81
+ ColumnFilter(AutoEvalColumn.precision.name, type="checkboxgroup", label="Precision"),
82
+ ColumnFilter(
83
+ AutoEvalColumn.params.name,
84
+ type="slider",
85
+ min=0.01,
86
+ max=150,
87
+ label="Select the number of parameters (B)",
88
+ ),
89
+ ColumnFilter(
90
+ AutoEvalColumn.still_on_hub.name, type="boolean", label="Deleted/incomplete", default=False
91
+ ),
92
+ ],
93
  bool_checkboxgroup_label="Hide models",
94
  interactive=False,
95
  )
src/display/utils.py CHANGED
@@ -65,6 +65,7 @@ class ModelType(Enum):
65
  PT = ModelDetails(name="pretrained", symbol="🟒")
66
  FT = ModelDetails(name="fine-tuned", symbol="πŸ”Ά")
67
  IFT = ModelDetails(name="instruction-tuned", symbol="β­•")
 
68
  RL = ModelDetails(name="RL-tuned", symbol="🟦")
69
  Unknown = ModelDetails(name="", symbol="?")
70
 
@@ -81,6 +82,8 @@ class ModelType(Enum):
81
  return ModelType.RL
82
  if "instruction-tuned" in type or "β­•" in type:
83
  return ModelType.IFT
 
 
84
  return ModelType.Unknown
85
 
86
  class WeightType(Enum):
@@ -103,6 +106,7 @@ class Precision(Enum):
103
  # Column selection
104
  COLS = [c.name for c in fields(AutoEvalColumn) if not c.hidden]
105
 
 
106
  EVAL_COLS = [c.name for c in fields(EvalQueueColumn)]
107
  EVAL_TYPES = [c.type for c in fields(EvalQueueColumn)]
108
 
 
65
  PT = ModelDetails(name="pretrained", symbol="🟒")
66
  FT = ModelDetails(name="fine-tuned", symbol="πŸ”Ά")
67
  IFT = ModelDetails(name="instruction-tuned", symbol="β­•")
68
+ CT = ModelDetails(name="chat-tuned", symbol="πŸ’¬")
69
  RL = ModelDetails(name="RL-tuned", symbol="🟦")
70
  Unknown = ModelDetails(name="", symbol="?")
71
 
 
82
  return ModelType.RL
83
  if "instruction-tuned" in type or "β­•" in type:
84
  return ModelType.IFT
85
+ if "chat-tuned" in type or "πŸ’¬" in type:
86
+ return ModelType.CT
87
  return ModelType.Unknown
88
 
89
  class WeightType(Enum):
 
106
  # Column selection
107
  COLS = [c.name for c in fields(AutoEvalColumn) if not c.hidden]
108
 
109
+
110
  EVAL_COLS = [c.name for c in fields(EvalQueueColumn)]
111
  EVAL_TYPES = [c.type for c in fields(EvalQueueColumn)]
112