wenjiao commited on
Commit
08847a4
β€’
1 Parent(s): c3c6a41

update logo

Browse files
Files changed (1) hide show
  1. src/display/utils.py +14 -14
src/display/utils.py CHANGED
@@ -148,9 +148,9 @@ class ModelDetails:
148
  class ModelType(Enum):
149
  PT = ModelDetails(name="GPTQ", symbol="🟒")
150
  CPT = ModelDetails(name="AWQ", symbol="🟩")
151
- FT = ModelDetails(name="llama.cpp", symbol="πŸ”Ά")
152
- chat = ModelDetails(name="Bisandbytes", symbol="πŸ’¬")
153
- merges = ModelDetails(name="AutoRound", symbol="🌐")
154
  Unknown = ModelDetails(name="", symbol="?")
155
 
156
  def to_str(self, separator=" "):
@@ -158,15 +158,15 @@ class ModelType(Enum):
158
 
159
  @staticmethod
160
  def from_str(type):
161
- if "fine-tuned" in type or "πŸ”Ά" in type:
162
  return ModelType.FT
163
  if "continously pretrained" in type or "🟩" in type:
164
  return ModelType.CPT
165
  if "pretrained" in type or "🟒" in type:
166
  return ModelType.PT
167
- if any([k in type for k in ["instruction-tuned", "RL-tuned", "chat", "🟦", "β­•", "πŸ’¬"]]):
168
  return ModelType.chat
169
- if "merge" in type or "🌐" in type:
170
  return ModelType.merges
171
  return ModelType.Unknown
172
  """
@@ -174,9 +174,9 @@ class ModelType(Enum):
174
  class ModelType(Enum):
175
  PT = ModelDetails(name="pretrained", symbol="🟒")
176
  CPT = ModelDetails(name="continuously pretrained", symbol="🟩")
177
- FT = ModelDetails(name="fine-tuned on domain-specific datasets", symbol="πŸ”Ά")
178
- chat = ModelDetails(name="chat models (RLHF, DPO, IFT, ...)", symbol="πŸ’¬")
179
- merges = ModelDetails(name="base merges and moerges", symbol="🌐")
180
  Unknown = ModelDetails(name="", symbol="?")
181
 
182
  def to_str(self, separator=" "):
@@ -184,15 +184,15 @@ class ModelType(Enum):
184
 
185
  @staticmethod
186
  def from_str(type):
187
- if "fine-tuned" in type or "πŸ”Ά" in type:
188
  return ModelType.FT
189
  if "continously pretrained" in type or "🟩" in type:
190
  return ModelType.CPT
191
  if "pretrained" in type or "🟒" in type or "quantization" in type:
192
  return ModelType.PT
193
- if any([k in type for k in ["instruction-tuned", "RL-tuned", "chat", "🟦", "β­•", "πŸ’¬"]]):
194
  return ModelType.chat
195
- if "merge" in type or "🌐" in type:
196
  return ModelType.merges
197
  return ModelType.Unknown
198
 
@@ -206,8 +206,8 @@ class QuantType(Enum):
206
  gptq = ModelDetails(name="GPTQ", symbol="🟒")
207
  aqlm = ModelDetails(name="AQLM", symbol="⭐")
208
  awq = ModelDetails(name="AWQ", symbol="🟩")
209
- llama_cpp = ModelDetails(name="llama.cpp", symbol="πŸ”Ά")
210
- bnb = ModelDetails(name="bitsandbytes", symbol="πŸ’¬")
211
  autoround = ModelDetails(name="AutoRound", symbol="πŸ’")
212
  Unknown = ModelDetails(name="?", symbol="?")
213
 
 
148
  class ModelType(Enum):
149
  PT = ModelDetails(name="GPTQ", symbol="🟒")
150
  CPT = ModelDetails(name="AWQ", symbol="🟩")
151
+ FT = ModelDetails(name="llama.cpp", symbol="πŸ”·")
152
+ chat = ModelDetails(name="Bisandbytes", symbol="πŸ”΅")
153
+ merges = ModelDetails(name="AutoRound", symbol="πŸ’")
154
  Unknown = ModelDetails(name="", symbol="?")
155
 
156
  def to_str(self, separator=" "):
 
158
 
159
  @staticmethod
160
  def from_str(type):
161
+ if "fine-tuned" in type or "πŸ”·" in type:
162
  return ModelType.FT
163
  if "continously pretrained" in type or "🟩" in type:
164
  return ModelType.CPT
165
  if "pretrained" in type or "🟒" in type:
166
  return ModelType.PT
167
+ if any([k in type for k in ["instruction-tuned", "RL-tuned", "chat", "🟦", "β­•", "πŸ”΅"]]):
168
  return ModelType.chat
169
+ if "merge" in type or "πŸ’" in type:
170
  return ModelType.merges
171
  return ModelType.Unknown
172
  """
 
174
  class ModelType(Enum):
175
  PT = ModelDetails(name="pretrained", symbol="🟒")
176
  CPT = ModelDetails(name="continuously pretrained", symbol="🟩")
177
+ FT = ModelDetails(name="fine-tuned on domain-specific datasets", symbol="πŸ”·")
178
+ chat = ModelDetails(name="chat models (RLHF, DPO, IFT, ...)", symbol="πŸ”΅")
179
+ merges = ModelDetails(name="base merges and moerges", symbol="πŸ’")
180
  Unknown = ModelDetails(name="", symbol="?")
181
 
182
  def to_str(self, separator=" "):
 
184
 
185
  @staticmethod
186
  def from_str(type):
187
+ if "fine-tuned" in type or "πŸ”·" in type:
188
  return ModelType.FT
189
  if "continously pretrained" in type or "🟩" in type:
190
  return ModelType.CPT
191
  if "pretrained" in type or "🟒" in type or "quantization" in type:
192
  return ModelType.PT
193
+ if any([k in type for k in ["instruction-tuned", "RL-tuned", "chat", "🟦", "β­•", "πŸ”΅"]]):
194
  return ModelType.chat
195
+ if "merge" in type or "πŸ’" in type:
196
  return ModelType.merges
197
  return ModelType.Unknown
198
 
 
206
  gptq = ModelDetails(name="GPTQ", symbol="🟒")
207
  aqlm = ModelDetails(name="AQLM", symbol="⭐")
208
  awq = ModelDetails(name="AWQ", symbol="🟩")
209
+ llama_cpp = ModelDetails(name="llama.cpp", symbol="πŸ”·")
210
+ bnb = ModelDetails(name="bitsandbytes", symbol="πŸ”΅")
211
  autoround = ModelDetails(name="AutoRound", symbol="πŸ’")
212
  Unknown = ModelDetails(name="?", symbol="?")
213