Ali-C137 commited on
Commit
74470fd
β€’
1 Parent(s): b561c76

Update src/display/utils.py

Browse files
Files changed (1) hide show
  1. src/display/utils.py +5 -5
src/display/utils.py CHANGED
@@ -74,15 +74,15 @@ class ModelType(Enum):
74
 
75
  @staticmethod
76
  def from_str(type):
77
- if "fine-tuned" in type or "πŸ”Ά" in type:
78
- return ModelType.FT
79
- if "continously pretrained" in type or "🟩" in type:
80
- return ModelType.CPT
81
  if "pretrained" in type or "🟒" in type:
82
  return ModelType.PT
 
 
 
 
83
  if any([k in type for k in ["instruction-tuned", "RL-tuned", "chat", "🟦", "β­•", "πŸ’¬"]]):
84
  return ModelType.chat
85
- if "merge" in type or "🀝" in type:
86
  return ModelType.merges
87
  return ModelType.Unknown
88
 
 
74
 
75
  @staticmethod
76
  def from_str(type):
 
 
 
 
77
  if "pretrained" in type or "🟒" in type:
78
  return ModelType.PT
79
+ if "continously pretrained" in type or "🟩" in type:
80
+ return ModelType.CPT
81
+ if "fine-tuned" in type or "πŸ”Ά" in type:
82
+ return ModelType.FT
83
  if any([k in type for k in ["instruction-tuned", "RL-tuned", "chat", "🟦", "β­•", "πŸ’¬"]]):
84
  return ModelType.chat
85
+ if "merges" in type or "🀝" in type:
86
  return ModelType.merges
87
  return ModelType.Unknown
88