|
MODEL_MAP = {
|
|
"mixtral-8x7b": "mistralai/Mixtral-8x7B-Instruct-v0.1",
|
|
"nous-mixtral-8x7b": "NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO",
|
|
"Llama-3.1-70B-Instruct": "meta-llama/Meta-Llama-3.1-70B-Instruct",
|
|
"Mistral-Nemo-Instruct-2407": "mistralai/Mistral-Nemo-Instruct-2407",
|
|
"mistral-7b": "mistralai/Mistral-7B-Instruct-v0.2",
|
|
"yi-1.5-34b": "01-ai/Yi-1.5-34B-Chat",
|
|
"gemma-7b": "google/gemma-1.1-7b-it",
|
|
|
|
|
|
|
|
|
|
"default": "NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO",
|
|
}
|
|
|
|
AVAILABLE_MODELS = list(MODEL_MAP.keys())
|
|
|
|
PRO_MODELS = ["command-r-plus", "llama3-70b", "zephyr-141b"]
|
|
|
|
STOP_SEQUENCES_MAP = {
|
|
|
|
"mixtral-8x7b": "</s>",
|
|
|
|
"nous-mixtral-8x7b": "<|im_end|>",
|
|
|
|
"Llama-3.1-70B-Instruct": "<|eot_id|>",
|
|
|
|
"Mistral-Nemo-Instruct-2407": "</s>",
|
|
|
|
"mistral-7b": "</s>",
|
|
|
|
"yi-1.5-34b": "<|im_end|>",
|
|
|
|
"gemma-7b": "<eos>",
|
|
|
|
|
|
}
|
|
|
|
TOKEN_LIMIT_MAP = {
|
|
"mixtral-8x7b": 32768,
|
|
"nous-mixtral-8x7b": 32768,
|
|
"Llama-3.1-70B-Instruct": 32768,
|
|
"Mistral-Nemo-Instruct-2407": 1024000,
|
|
"mistral-7b": 32768,
|
|
"yi-1.5-34b": 4096,
|
|
"gemma-7b": 8192,
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
TOKEN_RESERVED = 20
|
|
|
|
|
|
|
|
AVAILABLE_MODELS_DICTS = [
|
|
{
|
|
"id": "mixtral-8x7b",
|
|
"description": "[mistralai/Mixtral-8x7B-Instruct-v0.1]: https://huggingface.co./mistralai/Mixtral-8x7B-Instruct-v0.1",
|
|
"object": "model",
|
|
"created": 1700000000,
|
|
"owned_by": "mistralai",
|
|
},
|
|
{
|
|
"id": "nous-mixtral-8x7b",
|
|
"description": "[NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO]: https://huggingface.co./NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO",
|
|
"object": "model",
|
|
"created": 1700000000,
|
|
"owned_by": "NousResearch",
|
|
},
|
|
{
|
|
"id": "Mistral-Nemo-Instruct-2407",
|
|
"description": "[mistralai/Mistral-Nemo-Instruct-2407]: https://huggingface.co./mistralai/Mistral-Nemo-Instruct-2407",
|
|
"object": "model",
|
|
"created": 1700000000,
|
|
"owned_by": "mistralai",
|
|
},
|
|
{
|
|
"id": "Llama-3.1-70B-Instruct",
|
|
"description": "[meta-llama/Llama-3.1-70B-Instruct]: https://huggingface.co./meta-llama/Llama-3.1-70B-Instruct",
|
|
"object": "model",
|
|
"created": 1700000000,
|
|
"owned_by": "mistralai",
|
|
},
|
|
{
|
|
"id": "mistral-7b",
|
|
"description": "[mistralai/Mistral-7B-Instruct-v0.2]: https://huggingface.co./mistralai/Mistral-7B-Instruct-v0.2",
|
|
"object": "model",
|
|
"created": 1700000000,
|
|
"owned_by": "mistralai",
|
|
},
|
|
{
|
|
"id": "yi-1.5-34b",
|
|
"description": "[01-ai/Yi-1.5-34B-Chat]: https://huggingface.co./01-ai/Yi-1.5-34B-Chat",
|
|
"object": "model",
|
|
"created": 1700000000,
|
|
"owned_by": "01-ai",
|
|
},
|
|
{
|
|
"id": "gemma-7b",
|
|
"description": "[google/gemma-1.1-7b-it]: https://huggingface.co./google/gemma-1.1-7b-it",
|
|
"object": "model",
|
|
"created": 1700000000,
|
|
"owned_by": "Google",
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
|