Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update src/display/utils.py
Browse files- 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 "
|
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 |
|