Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
モデルタイプの追加・変更: マルチモーダルとベースマージを追加し、RL-tunedの名称を更新
Browse files- src/display/utils.py +7 -1
src/display/utils.py
CHANGED
@@ -104,7 +104,9 @@ class ModelType(Enum):
|
|
104 |
PT = ModelDetails(name="pretrained", symbol="🟢")
|
105 |
FT = ModelDetails(name="fine-tuned", symbol="🔶")
|
106 |
IFT = ModelDetails(name="instruction-tuned", symbol="⭕")
|
107 |
-
RL = ModelDetails(name="RL-tuned", symbol="🟦")
|
|
|
|
|
108 |
|
109 |
def to_str(self, separator=" "):
|
110 |
return f"{self.value.symbol}{separator}{self.value.name}"
|
@@ -119,6 +121,10 @@ class ModelType(Enum):
|
|
119 |
return ModelType.RL
|
120 |
if "instruction-tuned" in type or "⭕" in type:
|
121 |
return ModelType.IFT
|
|
|
|
|
|
|
|
|
122 |
raise ValueError(f"Unsupported model type: {type}")
|
123 |
|
124 |
|
|
|
104 |
PT = ModelDetails(name="pretrained", symbol="🟢")
|
105 |
FT = ModelDetails(name="fine-tuned", symbol="🔶")
|
106 |
IFT = ModelDetails(name="instruction-tuned", symbol="⭕")
|
107 |
+
RL = ModelDetails(name="RL-tuned (Preference optimization)", symbol="🟦")
|
108 |
+
MM = ModelDetails(name="multimodal", symbol="🌟")
|
109 |
+
BM = ModelDetails(name="base merges", symbol="💫")
|
110 |
|
111 |
def to_str(self, separator=" "):
|
112 |
return f"{self.value.symbol}{separator}{self.value.name}"
|
|
|
121 |
return ModelType.RL
|
122 |
if "instruction-tuned" in type or "⭕" in type:
|
123 |
return ModelType.IFT
|
124 |
+
if "multimodal" in type or "🌟" in type:
|
125 |
+
return ModelType.MM
|
126 |
+
if "base merges" in type or "💫" in type:
|
127 |
+
return ModelType.BM
|
128 |
raise ValueError(f"Unsupported model type: {type}")
|
129 |
|
130 |
|