Spaces:
Paused
Paused
add more models
Browse files
app.py
CHANGED
|
@@ -51,11 +51,19 @@ MODELS_LIST = [
|
|
| 51 |
# local models:
|
| 52 |
("====== IGCS Fine-tuned SLMs ======", None),
|
| 53 |
("Qwen2.5-3b-GenCS-union (local)", "shmuelamar/Qwen2.5-3b-GenCS-union"),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
("====== Zero-shot SLMs ======", None),
|
| 55 |
("Qwen/Qwen2.5-3B-Instruct (local)", "Qwen/Qwen2.5-3B-Instruct"),
|
| 56 |
("Qwen/Qwen2.5-7B-Instruct (local)", "Qwen/Qwen2.5-7B-Instruct"),
|
| 57 |
-
|
| 58 |
-
("
|
|
|
|
| 59 |
("qwen/qwen3-14b (API)", "api:qwen/qwen3-14b:free"),
|
| 60 |
("moonshotai/kimi-k2 (API)", "api:moonshotai/kimi-k2:free"),
|
| 61 |
("deepseek/deepseek-chat-v3-0324 (API)", "api:deepseek/deepseek-chat-v3-0324:free"),
|
|
@@ -103,7 +111,7 @@ def completion(prompt: str, model_id: str):
|
|
| 103 |
)
|
| 104 |
|
| 105 |
# decode response
|
| 106 |
-
resp = tokenizer.decode(outputs[0][input_ids.shape[-1]:], skip_special_tokens=True)
|
| 107 |
|
| 108 |
# cleanup memory
|
| 109 |
del model, tokenizer
|
|
|
|
| 51 |
# local models:
|
| 52 |
("====== IGCS Fine-tuned SLMs ======", None),
|
| 53 |
("Qwen2.5-3b-GenCS-union (local)", "shmuelamar/Qwen2.5-3b-GenCS-union"),
|
| 54 |
+
("Qwen2.5-3b-GenCS-majority (local)", "shmuelamar/Qwen2.5-3b-GenCS-majority"),
|
| 55 |
+
("Qwen2.5-7b-GenCS-union (local)", "shmuelamar/Qwen2.5-7b-GenCS-union"),
|
| 56 |
+
("Qwen2.5-7b-GenCS-majority (local)", "shmuelamar/Qwen2.5-7b-GenCS-majority"),
|
| 57 |
+
("Llama-3-8B-GenCS-union (local)", "shmuelamar/Llama-3-8B-GenCS-union"),
|
| 58 |
+
("Llama-3-8B-GenCS-majority (local)", "shmuelamar/Llama-3-8B-GenCS-majority"),
|
| 59 |
+
("SmolLM2-1.7B-GenCS-union (local)", "shmuelamar/SmolLM2-1.7B-GenCS-union"),
|
| 60 |
+
("SmolLM2-1.7B-GenCS-majority (local)", "shmuelamar/SmolLM2-1.7B-GenCS-majority"),
|
| 61 |
("====== Zero-shot SLMs ======", None),
|
| 62 |
("Qwen/Qwen2.5-3B-Instruct (local)", "Qwen/Qwen2.5-3B-Instruct"),
|
| 63 |
("Qwen/Qwen2.5-7B-Instruct (local)", "Qwen/Qwen2.5-7B-Instruct"),
|
| 64 |
+
("meta-llama/Meta-Llama-3-8B-Instruct (local)", "meta-llama/Meta-Llama-3-8B-Instruct"),
|
| 65 |
+
("HuggingFaceTB/SmolLM2-1.7B-Instruct (local)", "HuggingFaceTB/SmolLM2-1.7B-Instruct"),
|
| 66 |
+
("====== API-based Models (OpenRouter) ======", None),
|
| 67 |
("qwen/qwen3-14b (API)", "api:qwen/qwen3-14b:free"),
|
| 68 |
("moonshotai/kimi-k2 (API)", "api:moonshotai/kimi-k2:free"),
|
| 69 |
("deepseek/deepseek-chat-v3-0324 (API)", "api:deepseek/deepseek-chat-v3-0324:free"),
|
|
|
|
| 111 |
)
|
| 112 |
|
| 113 |
# decode response
|
| 114 |
+
resp = tokenizer.decode(outputs[0][input_ids.shape[-1] :], skip_special_tokens=True)
|
| 115 |
|
| 116 |
# cleanup memory
|
| 117 |
del model, tokenizer
|