Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,6 +52,8 @@ BASE_MODEL_IDS: List[str] = [
|
|
| 52 |
"HuggingFaceTB/SmolLM2-135M",
|
| 53 |
"OpenCerebral/Boris-1.3-125M",
|
| 54 |
"OpenCerebral/Boris-1.3-75M",
|
|
|
|
|
|
|
| 55 |
]
|
| 56 |
|
| 57 |
BASE_MODEL_DISPLAY: Dict[str, str] = {
|
|
@@ -61,6 +63,8 @@ BASE_MODEL_DISPLAY: Dict[str, str] = {
|
|
| 61 |
"HuggingFaceTB/SmolLM2-135M": "SmolLM2-135M",
|
| 62 |
"OpenCerebral/Boris-1.3-125M": "Boris-1.3-125M",
|
| 63 |
"OpenCerebral/Boris-1.3-75M": "Boris-1.3-75M",
|
|
|
|
|
|
|
| 64 |
}
|
| 65 |
|
| 66 |
MODEL_PARAMS: Dict[str, float] = {
|
|
@@ -76,6 +80,8 @@ MODEL_PARAMS: Dict[str, float] = {
|
|
| 76 |
"HuggingFaceTB/SmolLM2-135M": 135.0e6,
|
| 77 |
"OpenCerebral/Boris-1.3-125M": 125.0e6,
|
| 78 |
"OpenCerebral/Boris-1.3-75M": 75.0e6,
|
|
|
|
|
|
|
| 79 |
}
|
| 80 |
|
| 81 |
FALLBACK_IDS: Dict[str, str] = {}
|
|
@@ -158,6 +164,8 @@ GEN_DEFAULTS: Dict[str, dict] = {
|
|
| 158 |
"OpenCerebral/Boris-1.3-75M-Instruct": {"max_new_tokens": 64, "temperature": 0.7, "top_p": 0.9, "repetition_penalty": 1.1, "do_sample": True},
|
| 159 |
"OpenCerebral/Boris-1.3-125M": {"max_new_tokens": 64, "temperature": 0.8, "top_p": 0.95, "repetition_penalty": 1.1, "do_sample": True},
|
| 160 |
"OpenCerebral/Boris-1.3-75M": {"max_new_tokens": 64, "temperature": 0.8, "top_p": 0.95, "repetition_penalty": 1.1, "do_sample": True},
|
|
|
|
|
|
|
| 161 |
}
|
| 162 |
|
| 163 |
MODEL_CONTEXT: Dict[str, int] = {
|
|
@@ -173,6 +181,8 @@ MODEL_CONTEXT: Dict[str, int] = {
|
|
| 173 |
"OpenCerebral/Boris-1.3-75M-Instruct": 2048,
|
| 174 |
"OpenCerebral/Boris-1.3-125M": 2048,
|
| 175 |
"OpenCerebral/Boris-1.3-75M": 2048,
|
|
|
|
|
|
|
| 176 |
}
|
| 177 |
|
| 178 |
|
|
|
|
| 52 |
"HuggingFaceTB/SmolLM2-135M",
|
| 53 |
"OpenCerebral/Boris-1.3-125M",
|
| 54 |
"OpenCerebral/Boris-1.3-75M",
|
| 55 |
+
"CodeSoft/sorbet-v2-25m",
|
| 56 |
+
"DALabCommunity/Haidass1.5-143M",
|
| 57 |
]
|
| 58 |
|
| 59 |
BASE_MODEL_DISPLAY: Dict[str, str] = {
|
|
|
|
| 63 |
"HuggingFaceTB/SmolLM2-135M": "SmolLM2-135M",
|
| 64 |
"OpenCerebral/Boris-1.3-125M": "Boris-1.3-125M",
|
| 65 |
"OpenCerebral/Boris-1.3-75M": "Boris-1.3-75M",
|
| 66 |
+
"CodeSoft/sorbet-v2-25m": "sorbet-v2-25m",
|
| 67 |
+
"DALabCommunity/Haidass1.5-143M": "Haidass1.5-143M",
|
| 68 |
}
|
| 69 |
|
| 70 |
MODEL_PARAMS: Dict[str, float] = {
|
|
|
|
| 80 |
"HuggingFaceTB/SmolLM2-135M": 135.0e6,
|
| 81 |
"OpenCerebral/Boris-1.3-125M": 125.0e6,
|
| 82 |
"OpenCerebral/Boris-1.3-75M": 75.0e6,
|
| 83 |
+
"CodeSoft/sorbet-v2-25m": 25.2e6,
|
| 84 |
+
"DALabCommunity/Haidass1.5-143M": 143.0e6,
|
| 85 |
}
|
| 86 |
|
| 87 |
FALLBACK_IDS: Dict[str, str] = {}
|
|
|
|
| 164 |
"OpenCerebral/Boris-1.3-75M-Instruct": {"max_new_tokens": 64, "temperature": 0.7, "top_p": 0.9, "repetition_penalty": 1.1, "do_sample": True},
|
| 165 |
"OpenCerebral/Boris-1.3-125M": {"max_new_tokens": 64, "temperature": 0.8, "top_p": 0.95, "repetition_penalty": 1.1, "do_sample": True},
|
| 166 |
"OpenCerebral/Boris-1.3-75M": {"max_new_tokens": 64, "temperature": 0.8, "top_p": 0.95, "repetition_penalty": 1.1, "do_sample": True},
|
| 167 |
+
"CodeSoft/sorbet-v2-25m": {"max_new_tokens": 64, "temperature": 0.8, "top_p": 0.95, "repetition_penalty": 1.1, "do_sample": True},
|
| 168 |
+
"DALabCommunity/Haidass1.5-143M": {"max_new_tokens": 64, "temperature": 0.8, "top_p": 0.95, "repetition_penalty": 1.1, "do_sample": True},
|
| 169 |
}
|
| 170 |
|
| 171 |
MODEL_CONTEXT: Dict[str, int] = {
|
|
|
|
| 181 |
"OpenCerebral/Boris-1.3-75M-Instruct": 2048,
|
| 182 |
"OpenCerebral/Boris-1.3-125M": 2048,
|
| 183 |
"OpenCerebral/Boris-1.3-75M": 2048,
|
| 184 |
+
"CodeSoft/sorbet-v2-25m": 4096,
|
| 185 |
+
"DALabCommunity/Haidass1.5-143M": 4096,
|
| 186 |
}
|
| 187 |
|
| 188 |
|