Spaces:
Paused
Paused
Husnain
commited on
💎 [Feature] New model supported: command-r-plus (CohereForai/c4ai-com…
Browse files- constants/models.py +7 -6
constants/models.py
CHANGED
|
@@ -3,18 +3,19 @@ MODEL_MAP = {
|
|
| 3 |
"nous-mixtral-8x7b": "NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO",
|
| 4 |
"mistral-7b": "mistralai/Mistral-7B-Instruct-v0.2",
|
| 5 |
"openchat-3.5": "openchat/openchat-3.5-0106",
|
| 6 |
-
"gemma-
|
| 7 |
"command-r-plus": "CohereForAI/c4ai-command-r-plus",
|
| 8 |
"default": "mistralai/Mixtral-8x7B-Instruct-v0.1",
|
| 9 |
}
|
| 10 |
|
|
|
|
| 11 |
|
| 12 |
STOP_SEQUENCES_MAP = {
|
| 13 |
"mixtral-8x7b": "</s>",
|
| 14 |
"nous-mixtral-8x7b": "<|im_end|>",
|
| 15 |
"mistral-7b": "</s>",
|
| 16 |
"openchat-3.5": "<|end_of_turn|>",
|
| 17 |
-
"gemma-
|
| 18 |
"command-r-plus": "<|END_OF_TURN_TOKEN|>",
|
| 19 |
}
|
| 20 |
|
|
@@ -23,7 +24,7 @@ TOKEN_LIMIT_MAP = {
|
|
| 23 |
"nous-mixtral-8x7b": 32768,
|
| 24 |
"mistral-7b": 32768,
|
| 25 |
"openchat-3.5": 8192,
|
| 26 |
-
"gemma-
|
| 27 |
"gpt-3.5-turbo": 8192,
|
| 28 |
"command-r-plus": 32768,
|
| 29 |
}
|
|
@@ -62,8 +63,8 @@ AVAILABLE_MODELS_DICTS = [
|
|
| 62 |
"owned_by": "openchat",
|
| 63 |
},
|
| 64 |
{
|
| 65 |
-
"id": "gemma-
|
| 66 |
-
"description": "[google/gemma-
|
| 67 |
"object": "model",
|
| 68 |
"created": 1700000000,
|
| 69 |
"owned_by": "Google",
|
|
@@ -74,7 +75,7 @@ AVAILABLE_MODELS_DICTS = [
|
|
| 74 |
"object": "model",
|
| 75 |
"created": 1700000000,
|
| 76 |
"owned_by": "CohereForAI",
|
| 77 |
-
},
|
| 78 |
{
|
| 79 |
"id": "gpt-3.5-turbo",
|
| 80 |
"description": "[openai/gpt-3.5-turbo]: https://platform.openai.com/docs/models/gpt-3-5-turbo",
|
|
|
|
| 3 |
"nous-mixtral-8x7b": "NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO",
|
| 4 |
"mistral-7b": "mistralai/Mistral-7B-Instruct-v0.2",
|
| 5 |
"openchat-3.5": "openchat/openchat-3.5-0106",
|
| 6 |
+
"gemma-7b": "google/gemma-7b-it",
|
| 7 |
"command-r-plus": "CohereForAI/c4ai-command-r-plus",
|
| 8 |
"default": "mistralai/Mixtral-8x7B-Instruct-v0.1",
|
| 9 |
}
|
| 10 |
|
| 11 |
+
AVAILABLE_MODELS = list(MODEL_MAP.keys())
|
| 12 |
|
| 13 |
STOP_SEQUENCES_MAP = {
|
| 14 |
"mixtral-8x7b": "</s>",
|
| 15 |
"nous-mixtral-8x7b": "<|im_end|>",
|
| 16 |
"mistral-7b": "</s>",
|
| 17 |
"openchat-3.5": "<|end_of_turn|>",
|
| 18 |
+
"gemma-7b": "<eos>",
|
| 19 |
"command-r-plus": "<|END_OF_TURN_TOKEN|>",
|
| 20 |
}
|
| 21 |
|
|
|
|
| 24 |
"nous-mixtral-8x7b": 32768,
|
| 25 |
"mistral-7b": 32768,
|
| 26 |
"openchat-3.5": 8192,
|
| 27 |
+
"gemma-7b": 8192,
|
| 28 |
"gpt-3.5-turbo": 8192,
|
| 29 |
"command-r-plus": 32768,
|
| 30 |
}
|
|
|
|
| 63 |
"owned_by": "openchat",
|
| 64 |
},
|
| 65 |
{
|
| 66 |
+
"id": "gemma-7b",
|
| 67 |
+
"description": "[google/gemma-7b-it]: https://huggingface.co/google/gemma-7b-it",
|
| 68 |
"object": "model",
|
| 69 |
"created": 1700000000,
|
| 70 |
"owned_by": "Google",
|
|
|
|
| 75 |
"object": "model",
|
| 76 |
"created": 1700000000,
|
| 77 |
"owned_by": "CohereForAI",
|
| 78 |
+
},
|
| 79 |
{
|
| 80 |
"id": "gpt-3.5-turbo",
|
| 81 |
"description": "[openai/gpt-3.5-turbo]: https://platform.openai.com/docs/models/gpt-3-5-turbo",
|