2023-10-01 02:27:21 +00:00
|
|
|
from __future__ import annotations
|
2024-02-21 23:16:58 +00:00
|
|
|
|
2023-09-17 21:23:54 +00:00
|
|
|
from dataclasses import dataclass
|
2024-02-21 23:16:58 +00:00
|
|
|
|
2024-05-19 03:09:55 +00:00
|
|
|
from .Provider import IterListProvider, ProviderType
|
2024-04-12 16:06:54 +00:00
|
|
|
from .Provider import (
|
2024-07-09 08:18:26 +00:00
|
|
|
AI365VIP,
|
2024-07-08 20:41:19 +00:00
|
|
|
Bing,
|
|
|
|
Blackbox,
|
|
|
|
Chatgpt4o,
|
|
|
|
ChatgptFree,
|
|
|
|
DDG,
|
|
|
|
DeepInfra,
|
|
|
|
DeepInfraImage,
|
|
|
|
FreeChatgpt,
|
|
|
|
FreeGpt,
|
|
|
|
Gemini,
|
|
|
|
GeminiPro,
|
|
|
|
GeminiProChat,
|
|
|
|
GigaChat,
|
|
|
|
HuggingChat,
|
|
|
|
HuggingFace,
|
|
|
|
Koala,
|
|
|
|
Liaobots,
|
|
|
|
MetaAI,
|
|
|
|
OpenaiChat,
|
|
|
|
PerplexityLabs,
|
|
|
|
Pi,
|
|
|
|
Pizzagpt,
|
|
|
|
Reka,
|
|
|
|
Replicate,
|
|
|
|
ReplicateHome,
|
|
|
|
Vercel,
|
|
|
|
You,
|
2023-09-17 21:37:14 +00:00
|
|
|
)
|
2023-09-17 21:23:54 +00:00
|
|
|
|
2023-09-20 04:12:34 +00:00
|
|
|
@dataclass(unsafe_hash=True)
|
2023-09-17 21:23:54 +00:00
|
|
|
class Model:
|
2024-01-14 06:45:41 +00:00
|
|
|
"""
|
|
|
|
Represents a machine learning model configuration.
|
|
|
|
|
|
|
|
Attributes:
|
|
|
|
name (str): Name of the model.
|
|
|
|
base_provider (str): Default provider for the model.
|
|
|
|
best_provider (ProviderType): The preferred provider for the model, typically with retry logic.
|
|
|
|
"""
|
2023-09-17 21:23:54 +00:00
|
|
|
name: str
|
|
|
|
base_provider: str
|
2024-01-01 16:48:57 +00:00
|
|
|
best_provider: ProviderType = None
|
2024-04-05 19:00:35 +00:00
|
|
|
|
2023-10-19 14:14:48 +00:00
|
|
|
@staticmethod
|
|
|
|
def __all__() -> list[str]:
|
2024-01-14 06:45:41 +00:00
|
|
|
"""Returns a list of all model names."""
|
2023-10-19 14:14:48 +00:00
|
|
|
return _all_models
|
2023-09-17 21:23:54 +00:00
|
|
|
|
|
|
|
default = Model(
|
2023-10-01 02:27:21 +00:00
|
|
|
name = "",
|
|
|
|
base_provider = "",
|
2024-05-19 03:09:55 +00:00
|
|
|
best_provider = IterListProvider([
|
2023-11-16 15:56:23 +00:00
|
|
|
Bing,
|
|
|
|
You,
|
2024-05-19 03:09:55 +00:00
|
|
|
OpenaiChat,
|
2024-07-08 20:41:19 +00:00
|
|
|
FreeChatgpt,
|
|
|
|
AI365VIP,
|
|
|
|
Chatgpt4o,
|
|
|
|
DDG,
|
|
|
|
ChatgptFree,
|
|
|
|
Koala,
|
|
|
|
Pizzagpt,
|
2023-10-05 03:13:37 +00:00
|
|
|
])
|
|
|
|
)
|
|
|
|
|
2023-11-16 15:56:23 +00:00
|
|
|
# GPT-3.5 too, but all providers supports long requests and responses
|
2023-10-05 03:13:37 +00:00
|
|
|
gpt_35_long = Model(
|
|
|
|
name = 'gpt-3.5-turbo',
|
|
|
|
base_provider = 'openai',
|
2024-05-19 03:09:55 +00:00
|
|
|
best_provider = IterListProvider([
|
2024-04-05 19:00:35 +00:00
|
|
|
FreeGpt,
|
|
|
|
You,
|
|
|
|
OpenaiChat,
|
2024-05-19 03:09:55 +00:00
|
|
|
Koala,
|
2024-07-08 20:41:19 +00:00
|
|
|
ChatgptFree,
|
|
|
|
FreeChatgpt,
|
|
|
|
DDG,
|
|
|
|
AI365VIP,
|
|
|
|
Pizzagpt,
|
2023-09-21 18:10:59 +00:00
|
|
|
])
|
|
|
|
)
|
2023-09-17 21:23:54 +00:00
|
|
|
|
2024-07-08 20:41:19 +00:00
|
|
|
############
|
|
|
|
### Text ###
|
|
|
|
############
|
|
|
|
|
|
|
|
### OpenAI ###
|
|
|
|
### GPT-3.5 / GPT-4 ###
|
|
|
|
# gpt-3.5
|
2023-09-17 21:23:54 +00:00
|
|
|
gpt_35_turbo = Model(
|
2023-10-01 02:27:21 +00:00
|
|
|
name = 'gpt-3.5-turbo',
|
|
|
|
base_provider = 'openai',
|
2024-05-19 03:09:55 +00:00
|
|
|
best_provider = IterListProvider([
|
2024-04-12 16:06:54 +00:00
|
|
|
FreeGpt,
|
|
|
|
You,
|
|
|
|
Koala,
|
2024-04-12 21:56:38 +00:00
|
|
|
OpenaiChat,
|
2024-07-08 20:41:19 +00:00
|
|
|
ChatgptFree,
|
|
|
|
FreeChatgpt,
|
|
|
|
DDG,
|
|
|
|
AI365VIP,
|
|
|
|
Pizzagpt,
|
2024-04-12 16:06:54 +00:00
|
|
|
])
|
2023-09-17 21:23:54 +00:00
|
|
|
)
|
|
|
|
|
2024-07-08 20:41:19 +00:00
|
|
|
gpt_35_turbo_16k = Model(
|
|
|
|
name = 'gpt-3.5-turbo-16k',
|
|
|
|
base_provider = 'openai',
|
|
|
|
best_provider = gpt_35_long.best_provider
|
|
|
|
)
|
|
|
|
|
|
|
|
gpt_35_turbo_16k_0613 = Model(
|
|
|
|
name = 'gpt-3.5-turbo-16k-0613',
|
|
|
|
base_provider = 'openai',
|
|
|
|
best_provider = gpt_35_long.best_provider
|
|
|
|
)
|
|
|
|
|
|
|
|
gpt_35_turbo_0613 = Model(
|
|
|
|
name = 'gpt-3.5-turbo-0613',
|
|
|
|
base_provider = 'openai',
|
|
|
|
best_provider = gpt_35_turbo.best_provider
|
|
|
|
)
|
|
|
|
|
|
|
|
# gpt-4
|
2023-09-17 21:23:54 +00:00
|
|
|
gpt_4 = Model(
|
2023-10-01 02:27:21 +00:00
|
|
|
name = 'gpt-4',
|
|
|
|
base_provider = 'openai',
|
2024-05-19 03:09:55 +00:00
|
|
|
best_provider = IterListProvider([
|
2024-02-09 07:49:37 +00:00
|
|
|
Bing, Liaobots,
|
2023-10-10 13:11:17 +00:00
|
|
|
])
|
2023-09-22 23:44:09 +00:00
|
|
|
)
|
2023-09-17 21:23:54 +00:00
|
|
|
|
2024-07-08 20:41:19 +00:00
|
|
|
gpt_4_0613 = Model(
|
|
|
|
name = 'gpt-4-0613',
|
2024-05-14 22:45:13 +00:00
|
|
|
base_provider = 'openai',
|
2024-07-08 20:41:19 +00:00
|
|
|
best_provider = gpt_4.best_provider
|
|
|
|
)
|
|
|
|
|
|
|
|
gpt_4_32k = Model(
|
|
|
|
name = 'gpt-4-32k',
|
|
|
|
base_provider = 'openai',
|
|
|
|
best_provider = gpt_4.best_provider
|
|
|
|
)
|
|
|
|
|
|
|
|
gpt_4_32k_0613 = Model(
|
|
|
|
name = 'gpt-4-32k-0613',
|
|
|
|
base_provider = 'openai',
|
|
|
|
best_provider = gpt_4.best_provider
|
2024-05-14 22:45:13 +00:00
|
|
|
)
|
|
|
|
|
2023-12-21 00:03:28 +00:00
|
|
|
gpt_4_turbo = Model(
|
|
|
|
name = 'gpt-4-turbo',
|
|
|
|
base_provider = 'openai',
|
|
|
|
best_provider = Bing
|
|
|
|
)
|
|
|
|
|
2024-07-08 20:41:19 +00:00
|
|
|
gpt_4o = Model(
|
|
|
|
name = 'gpt-4o',
|
|
|
|
base_provider = 'openai',
|
|
|
|
best_provider = IterListProvider([
|
|
|
|
You, Liaobots, Chatgpt4o, AI365VIP
|
|
|
|
])
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
### GigaChat ###
|
2024-03-13 22:29:49 +00:00
|
|
|
gigachat = Model(
|
|
|
|
name = 'GigaChat:latest',
|
|
|
|
base_provider = 'gigachat',
|
|
|
|
best_provider = GigaChat
|
|
|
|
)
|
|
|
|
|
2024-07-08 20:41:19 +00:00
|
|
|
|
|
|
|
### Meta ###
|
2024-05-19 03:09:55 +00:00
|
|
|
meta = Model(
|
|
|
|
name = "meta",
|
2024-02-23 16:21:10 +00:00
|
|
|
base_provider = "meta",
|
2024-05-19 03:09:55 +00:00
|
|
|
best_provider = MetaAI
|
2024-04-19 07:27:33 +00:00
|
|
|
)
|
|
|
|
|
2024-07-08 20:41:19 +00:00
|
|
|
llama_2_70b_chat = Model(
|
|
|
|
name = "meta/llama-2-70b-chat",
|
|
|
|
base_provider = "meta",
|
|
|
|
best_provider = IterListProvider([ReplicateHome])
|
|
|
|
)
|
|
|
|
|
2024-04-19 12:10:56 +00:00
|
|
|
llama3_8b_instruct = Model(
|
2024-04-22 18:02:17 +00:00
|
|
|
name = "meta-llama/Meta-Llama-3-8B-Instruct",
|
2024-04-19 07:27:33 +00:00
|
|
|
base_provider = "meta",
|
2024-05-19 03:09:55 +00:00
|
|
|
best_provider = IterListProvider([DeepInfra, PerplexityLabs, Replicate])
|
2024-04-19 07:27:33 +00:00
|
|
|
)
|
|
|
|
|
2024-04-19 12:10:56 +00:00
|
|
|
llama3_70b_instruct = Model(
|
2024-04-22 18:02:17 +00:00
|
|
|
name = "meta-llama/Meta-Llama-3-70B-Instruct",
|
2024-04-19 07:27:33 +00:00
|
|
|
base_provider = "meta",
|
2024-07-08 20:41:19 +00:00
|
|
|
best_provider = IterListProvider([DeepInfra, PerplexityLabs, Replicate, HuggingChat, DDG])
|
2024-01-23 04:02:14 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
codellama_34b_instruct = Model(
|
|
|
|
name = "codellama/CodeLlama-34b-Instruct-hf",
|
2024-02-23 16:21:10 +00:00
|
|
|
base_provider = "meta",
|
2024-04-12 03:18:08 +00:00
|
|
|
best_provider = HuggingChat
|
2024-01-01 16:48:57 +00:00
|
|
|
)
|
2023-10-26 19:32:49 +00:00
|
|
|
|
2024-02-04 18:50:32 +00:00
|
|
|
codellama_70b_instruct = Model(
|
|
|
|
name = "codellama/CodeLlama-70b-Instruct-hf",
|
2024-02-23 16:21:10 +00:00
|
|
|
base_provider = "meta",
|
2024-07-08 20:41:19 +00:00
|
|
|
best_provider = IterListProvider([DeepInfra])
|
2024-02-04 18:50:32 +00:00
|
|
|
)
|
|
|
|
|
2024-07-08 20:41:19 +00:00
|
|
|
|
|
|
|
### Mistral ###
|
2023-12-13 12:15:27 +00:00
|
|
|
mixtral_8x7b = Model(
|
|
|
|
name = "mistralai/Mixtral-8x7B-Instruct-v0.1",
|
|
|
|
base_provider = "huggingface",
|
2024-07-08 20:41:19 +00:00
|
|
|
best_provider = IterListProvider([DeepInfra, HuggingFace, PerplexityLabs, HuggingChat, DDG])
|
2024-04-12 03:18:08 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
mistral_7b_v02 = Model(
|
|
|
|
name = "mistralai/Mistral-7B-Instruct-v0.2",
|
|
|
|
base_provider = "huggingface",
|
2024-07-08 20:41:19 +00:00
|
|
|
best_provider = IterListProvider([DeepInfra, HuggingFace, HuggingChat, ReplicateHome])
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
### NousResearch ###
|
|
|
|
Nous_Hermes_2_Mixtral_8x7B_DPO = Model(
|
|
|
|
name = "NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO",
|
|
|
|
base_provider = "NousResearch",
|
|
|
|
best_provider = IterListProvider([HuggingFace, HuggingChat])
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
### 01-ai ###
|
|
|
|
Yi_1_5_34B_Chat = Model(
|
|
|
|
name = "01-ai/Yi-1.5-34B-Chat",
|
|
|
|
base_provider = "01-ai",
|
|
|
|
best_provider = IterListProvider([HuggingFace, HuggingChat])
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
### Microsoft ###
|
|
|
|
Phi_3_mini_4k_instruct = Model(
|
|
|
|
name = "microsoft/Phi-3-mini-4k-instruct",
|
|
|
|
base_provider = "Microsoft",
|
|
|
|
best_provider = IterListProvider([HuggingFace, HuggingChat])
|
2024-01-01 16:48:57 +00:00
|
|
|
)
|
2023-12-13 12:15:27 +00:00
|
|
|
|
2024-07-08 20:41:19 +00:00
|
|
|
|
|
|
|
### Google ###
|
|
|
|
# gemini
|
2024-05-19 03:09:55 +00:00
|
|
|
gemini = Model(
|
2024-02-09 13:24:15 +00:00
|
|
|
name = 'gemini',
|
2024-07-08 20:41:19 +00:00
|
|
|
base_provider = 'Google',
|
2024-02-09 13:24:15 +00:00
|
|
|
best_provider = Gemini
|
2024-01-23 04:02:14 +00:00
|
|
|
)
|
2023-09-17 21:23:54 +00:00
|
|
|
|
2024-07-08 20:41:19 +00:00
|
|
|
gemini_pro = Model(
|
|
|
|
name = 'gemini-pro',
|
|
|
|
base_provider = 'Google',
|
|
|
|
best_provider = IterListProvider([GeminiPro, You, GeminiProChat])
|
|
|
|
)
|
|
|
|
|
|
|
|
# gemma
|
|
|
|
gemma_2_9b_it = Model(
|
|
|
|
name = 'gemma-2-9b-it',
|
|
|
|
base_provider = 'Google',
|
|
|
|
best_provider = IterListProvider([PerplexityLabs])
|
|
|
|
)
|
|
|
|
|
|
|
|
gemma_2_27b_it = Model(
|
|
|
|
name = 'gemma-2-27b-it',
|
|
|
|
base_provider = 'Google',
|
|
|
|
best_provider = IterListProvider([PerplexityLabs])
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
### Anthropic ###
|
2023-09-17 21:23:54 +00:00
|
|
|
claude_v2 = Model(
|
2023-10-01 02:27:21 +00:00
|
|
|
name = 'claude-v2',
|
|
|
|
base_provider = 'anthropic',
|
2024-05-19 03:09:55 +00:00
|
|
|
best_provider = IterListProvider([Vercel])
|
2024-01-23 04:02:14 +00:00
|
|
|
)
|
2023-09-17 21:23:54 +00:00
|
|
|
|
2024-03-11 01:41:59 +00:00
|
|
|
claude_3_opus = Model(
|
|
|
|
name = 'claude-3-opus',
|
|
|
|
base_provider = 'anthropic',
|
|
|
|
best_provider = You
|
|
|
|
)
|
|
|
|
|
|
|
|
claude_3_sonnet = Model(
|
|
|
|
name = 'claude-3-sonnet',
|
|
|
|
base_provider = 'anthropic',
|
|
|
|
best_provider = You
|
|
|
|
)
|
|
|
|
|
2024-05-19 03:09:55 +00:00
|
|
|
claude_3_haiku = Model(
|
|
|
|
name = 'claude-3-haiku',
|
|
|
|
base_provider = 'anthropic',
|
2024-07-08 20:41:19 +00:00
|
|
|
best_provider = IterListProvider([DDG, AI365VIP])
|
2024-05-19 03:09:55 +00:00
|
|
|
)
|
|
|
|
|
2023-09-20 03:00:19 +00:00
|
|
|
|
2024-07-08 20:41:19 +00:00
|
|
|
### Reka AI ###
|
|
|
|
reka_core = Model(
|
|
|
|
name = 'reka-core',
|
|
|
|
base_provider = 'Reka AI',
|
|
|
|
best_provider = Reka
|
2023-10-10 13:11:17 +00:00
|
|
|
)
|
2023-09-22 19:36:44 +00:00
|
|
|
|
2023-09-17 21:23:54 +00:00
|
|
|
|
2024-07-08 20:41:19 +00:00
|
|
|
### NVIDIA ###
|
|
|
|
nemotron_4_340b_instruct = Model(
|
|
|
|
name = 'nemotron-4-340b-instruct',
|
|
|
|
base_provider = 'NVIDIA',
|
|
|
|
best_provider = IterListProvider([PerplexityLabs])
|
2023-10-07 17:10:26 +00:00
|
|
|
)
|
2023-09-29 14:21:18 +00:00
|
|
|
|
2024-07-08 20:41:19 +00:00
|
|
|
|
|
|
|
### Blackbox ###
|
|
|
|
blackbox = Model(
|
|
|
|
name = 'blackbox',
|
|
|
|
base_provider = 'Blackbox',
|
|
|
|
best_provider = Blackbox
|
2023-10-07 17:10:26 +00:00
|
|
|
)
|
2023-09-29 14:21:18 +00:00
|
|
|
|
2024-07-08 20:41:19 +00:00
|
|
|
|
|
|
|
### Databricks ###
|
|
|
|
dbrx_instruct = Model(
|
|
|
|
name = 'databricks/dbrx-instruct',
|
|
|
|
base_provider = 'Databricks',
|
|
|
|
best_provider = IterListProvider([DeepInfra])
|
2023-10-07 17:10:26 +00:00
|
|
|
)
|
2023-09-17 21:23:54 +00:00
|
|
|
|
2024-07-08 20:41:19 +00:00
|
|
|
|
|
|
|
### CohereForAI ###
|
|
|
|
command_r_plus = Model(
|
|
|
|
name = 'CohereForAI/c4ai-command-r-plus',
|
|
|
|
base_provider = 'CohereForAI',
|
|
|
|
best_provider = IterListProvider([HuggingChat])
|
2024-01-13 14:58:12 +00:00
|
|
|
)
|
|
|
|
|
2024-07-08 20:41:19 +00:00
|
|
|
|
|
|
|
### Other ###
|
2023-12-01 22:11:52 +00:00
|
|
|
pi = Model(
|
|
|
|
name = 'pi',
|
|
|
|
base_provider = 'inflection',
|
2024-01-23 00:47:55 +00:00
|
|
|
best_provider = Pi
|
2023-12-01 22:11:52 +00:00
|
|
|
)
|
2023-09-17 21:23:54 +00:00
|
|
|
|
2024-04-13 02:09:11 +00:00
|
|
|
|
2024-07-08 20:41:19 +00:00
|
|
|
#############
|
|
|
|
### Image ###
|
|
|
|
#############
|
2024-04-13 01:46:20 +00:00
|
|
|
|
2024-07-08 20:41:19 +00:00
|
|
|
### Stability AI ###
|
|
|
|
sdxl = Model(
|
|
|
|
name = 'stability-ai/sdxl',
|
|
|
|
base_provider = 'Stability AI',
|
|
|
|
best_provider = IterListProvider([ReplicateHome, DeepInfraImage])
|
|
|
|
|
2024-04-19 12:10:56 +00:00
|
|
|
)
|
|
|
|
|
2024-07-08 20:41:19 +00:00
|
|
|
### AI Forever ###
|
|
|
|
kandinsky_2_2 = Model(
|
|
|
|
name = 'ai-forever/kandinsky-2.2',
|
|
|
|
base_provider = 'AI Forever',
|
|
|
|
best_provider = IterListProvider([ReplicateHome])
|
|
|
|
|
2024-04-24 23:06:11 +00:00
|
|
|
)
|
|
|
|
|
2023-09-17 21:23:54 +00:00
|
|
|
class ModelUtils:
|
2024-01-14 06:45:41 +00:00
|
|
|
"""
|
|
|
|
Utility class for mapping string identifiers to Model instances.
|
|
|
|
|
|
|
|
Attributes:
|
|
|
|
convert (dict[str, Model]): Dictionary mapping model string identifiers to Model instances.
|
|
|
|
"""
|
2023-09-17 21:23:54 +00:00
|
|
|
convert: dict[str, Model] = {
|
2024-07-08 20:41:19 +00:00
|
|
|
|
|
|
|
############
|
|
|
|
### Text ###
|
|
|
|
############
|
|
|
|
|
|
|
|
### OpenAI ###
|
|
|
|
### GPT-3.5 / GPT-4 ###
|
2023-10-01 02:27:21 +00:00
|
|
|
# gpt-3.5
|
|
|
|
'gpt-3.5-turbo' : gpt_35_turbo,
|
2023-10-06 18:53:17 +00:00
|
|
|
'gpt-3.5-turbo-0613' : gpt_35_turbo_0613,
|
2023-10-01 02:27:21 +00:00
|
|
|
'gpt-3.5-turbo-16k' : gpt_35_turbo_16k,
|
|
|
|
'gpt-3.5-turbo-16k-0613' : gpt_35_turbo_16k_0613,
|
2023-12-06 10:54:50 +00:00
|
|
|
'gpt-3.5-long': gpt_35_long,
|
2024-05-19 03:09:55 +00:00
|
|
|
|
2023-10-01 02:27:21 +00:00
|
|
|
# gpt-4
|
2024-05-14 22:45:13 +00:00
|
|
|
'gpt-4o' : gpt_4o,
|
2023-10-01 02:27:21 +00:00
|
|
|
'gpt-4' : gpt_4,
|
|
|
|
'gpt-4-0613' : gpt_4_0613,
|
|
|
|
'gpt-4-32k' : gpt_4_32k,
|
|
|
|
'gpt-4-32k-0613' : gpt_4_32k_0613,
|
2023-12-21 00:03:28 +00:00
|
|
|
'gpt-4-turbo' : gpt_4_turbo,
|
2024-07-08 20:41:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
### Meta ###
|
2024-05-19 03:09:55 +00:00
|
|
|
"meta-ai": meta,
|
2024-07-08 20:41:19 +00:00
|
|
|
|
|
|
|
'llama-2-70b-chat': llama_2_70b_chat,
|
2024-05-19 03:09:55 +00:00
|
|
|
'llama3-8b': llama3_8b_instruct, # alias
|
2024-04-24 23:06:11 +00:00
|
|
|
'llama3-70b': llama3_70b_instruct, # alias
|
2024-04-19 12:10:56 +00:00
|
|
|
'llama3-8b-instruct' : llama3_8b_instruct,
|
|
|
|
'llama3-70b-instruct': llama3_70b_instruct,
|
2024-05-19 03:09:55 +00:00
|
|
|
|
2024-01-23 04:02:14 +00:00
|
|
|
'codellama-34b-instruct': codellama_34b_instruct,
|
2024-02-04 18:50:32 +00:00
|
|
|
'codellama-70b-instruct': codellama_70b_instruct,
|
2024-03-13 22:29:49 +00:00
|
|
|
|
2024-07-08 20:41:19 +00:00
|
|
|
|
|
|
|
### Mistral (Opensource) ###
|
2023-12-13 12:15:27 +00:00
|
|
|
'mixtral-8x7b': mixtral_8x7b,
|
2024-04-12 03:18:08 +00:00
|
|
|
'mistral-7b-v02': mistral_7b_v02,
|
2024-07-08 20:41:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
### NousResearch ###
|
|
|
|
'Nous-Hermes-2-Mixtral-8x7B-DPO': Nous_Hermes_2_Mixtral_8x7B_DPO,
|
2024-05-19 03:09:55 +00:00
|
|
|
|
2024-07-08 20:41:19 +00:00
|
|
|
|
|
|
|
### 01-ai ###
|
|
|
|
'Yi-1.5-34B-Chat': Yi_1_5_34B_Chat,
|
|
|
|
|
|
|
|
|
|
|
|
### Microsoft ###
|
|
|
|
'Phi-3-mini-4k-instruct': Phi_3_mini_4k_instruct,
|
|
|
|
|
|
|
|
|
|
|
|
### Google ###
|
|
|
|
# gemini
|
2024-02-09 13:24:15 +00:00
|
|
|
'gemini': gemini,
|
2024-01-13 14:58:12 +00:00
|
|
|
'gemini-pro': gemini_pro,
|
2024-07-08 20:41:19 +00:00
|
|
|
|
|
|
|
# gemma
|
|
|
|
'gemma-2-9b-it': gemma_2_9b_it,
|
|
|
|
'gemma-2-27b-it': gemma_2_27b_it,
|
|
|
|
|
2024-05-19 03:09:55 +00:00
|
|
|
|
2024-07-08 20:41:19 +00:00
|
|
|
### Anthropic ###
|
2024-01-23 04:02:14 +00:00
|
|
|
'claude-v2': claude_v2,
|
2024-03-11 01:41:59 +00:00
|
|
|
'claude-3-opus': claude_3_opus,
|
|
|
|
'claude-3-sonnet': claude_3_sonnet,
|
2024-05-19 03:09:55 +00:00
|
|
|
'claude-3-haiku': claude_3_haiku,
|
|
|
|
|
2024-07-08 20:41:19 +00:00
|
|
|
|
|
|
|
### Reka AI ###
|
2024-04-24 23:06:11 +00:00
|
|
|
'reka': reka_core,
|
2024-05-19 03:09:55 +00:00
|
|
|
|
2024-07-08 20:41:19 +00:00
|
|
|
|
|
|
|
### NVIDIA ###
|
|
|
|
'nemotron-4-340b-instruct': nemotron_4_340b_instruct,
|
|
|
|
|
|
|
|
|
|
|
|
### Blackbox ###
|
|
|
|
'blackbox': blackbox,
|
|
|
|
|
|
|
|
|
|
|
|
### CohereForAI ###
|
2024-04-13 02:09:11 +00:00
|
|
|
'command-r+': command_r_plus,
|
2024-07-08 20:41:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
### Databricks ###
|
2024-04-13 01:46:20 +00:00
|
|
|
'dbrx-instruct': dbrx_instruct,
|
2024-07-08 20:41:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
### GigaChat ###
|
2024-05-19 03:09:55 +00:00
|
|
|
'gigachat': gigachat,
|
2024-07-08 20:41:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Other
|
|
|
|
'pi': pi,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#############
|
|
|
|
### Image ###
|
|
|
|
#############
|
|
|
|
|
|
|
|
### Stability AI ###
|
|
|
|
'sdxl': sdxl,
|
|
|
|
|
|
|
|
### AI Forever ###
|
|
|
|
'kandinsky-2.2': kandinsky_2_2,
|
2023-10-01 02:27:21 +00:00
|
|
|
}
|
2023-10-19 14:14:48 +00:00
|
|
|
|
2024-02-04 18:50:32 +00:00
|
|
|
_all_models = list(ModelUtils.convert.keys())
|