lyx97 commited on
Commit
bbbb44e
β€’
1 Parent(s): 79e46be
Files changed (1) hide show
  1. src/display/utils.py +13 -13
src/display/utils.py CHANGED
@@ -62,25 +62,25 @@ class ModelDetails:
62
 
63
 
64
  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
 
71
  def to_str(self, separator=" "):
72
  return f"{self.value.symbol}{separator}{self.value.name}"
73
 
74
  @staticmethod
75
  def from_str(type):
76
- if "fine-tuned" in type or "πŸ”Ά" in type:
77
- return ModelType.FT
78
- if "pretrained" in type or "🟒" in type:
79
- return ModelType.PT
80
- if "RL-tuned" in type or "🟦" in type:
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):
 
62
 
63
 
64
  class ModelType(Enum):
65
+ vid_llm = ModelDetails(name="Video-LLM")
66
+ img_llm = ModelDetails(name="Image-LLM")
67
+ llm = ModelDetails(name="LLM")
68
+ others = ModelDetails(name="others")
69
+ Unknown = ModelDetails(name="")
70
 
71
  def to_str(self, separator=" "):
72
  return f"{self.value.symbol}{separator}{self.value.name}"
73
 
74
  @staticmethod
75
  def from_str(type):
76
+ if "Video-LLM" in type:
77
+ return ModelType.vid_llm
78
+ if "Image-LLM" in type:
79
+ return ModelType.img_llm
80
+ if "LLM" in type:
81
+ return ModelType.llm
82
+ if "others" in type:
83
+ return ModelType.others
84
  return ModelType.Unknown
85
 
86
  class WeightType(Enum):