1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
|
from g4f import Provider
class Model:
class model:
name: str
base_provider: str
best_provider: str
class gpt_35_turbo:
name: str = 'gpt-3.5-turbo'
base_provider: str = 'openai'
best_provider: Provider.Provider = Provider.Forefront
class gpt_4:
name: str = 'gpt-4'
base_provider: str = 'openai'
best_provider: Provider.Provider = Provider.Bing
best_providers: list = [Provider.Bing, Provider.Lockchat]
class claude_instant_v1_100k:
name: str = 'claude-instant-v1-100k'
base_provider: str = 'anthropic'
best_provider: Provider.Provider = Provider.Vercel
class claude_instant_v1:
name: str = 'claude-instant-v1'
base_provider: str = 'anthropic'
best_provider: Provider.Provider = Provider.Vercel
class claude_v1_100k:
name: str = 'claude-v1-100k'
base_provider: str = 'anthropic'
best_provider: Provider.Provider = Provider.Vercel
class claude_v1:
name: str = 'claude-v1'
base_provider: str = 'anthropic'
best_provider: Provider.Provider = Provider.Vercel
class alpaca_7b:
name: str = 'alpaca-7b'
base_provider: str = 'replicate'
best_provider: Provider.Provider = Provider.Vercel
class stablelm_tuned_alpha_7b:
name: str = 'stablelm-tuned-alpha-7b'
base_provider: str = 'replicate'
best_provider: Provider.Provider = Provider.Vercel
class bloom:
name: str = 'bloom'
base_provider: str = 'huggingface'
best_provider: Provider.Provider = Provider.Vercel
class bloomz:
name: str = 'bloomz'
base_provider: str = 'huggingface'
best_provider: Provider.Provider = Provider.Vercel
class flan_t5_xxl:
name: str = 'flan-t5-xxl'
base_provider: str = 'huggingface'
best_provider: Provider.Provider = Provider.Vercel
class flan_ul2:
name: str = 'flan-ul2'
base_provider: str = 'huggingface'
best_provider: Provider.Provider = Provider.Vercel
class gpt_neox_20b:
name: str = 'gpt-neox-20b'
base_provider: str = 'huggingface'
best_provider: Provider.Provider = Provider.Vercel
class oasst_sft_4_pythia_12b_epoch_35:
name: str = 'oasst-sft-4-pythia-12b-epoch-3.5'
base_provider: str = 'huggingface'
best_provider: Provider.Provider = Provider.Vercel
class santacoder:
name: str = 'santacoder'
base_provider: str = 'huggingface'
best_provider: Provider.Provider = Provider.Vercel
class command_medium_nightly:
name: str = 'command-medium-nightly'
base_provider: str = 'cohere'
best_provider: Provider.Provider = Provider.Vercel
class command_xlarge_nightly:
name: str = 'command-xlarge-nightly'
base_provider: str = 'cohere'
best_provider: Provider.Provider = Provider.Vercel
class code_cushman_001:
name: str = 'code-cushman-001'
base_provider: str = 'openai'
best_provider: Provider.Provider = Provider.Vercel
class code_davinci_002:
name: str = 'code-davinci-002'
base_provider: str = 'openai'
best_provider: Provider.Provider = Provider.Vercel
class text_ada_001:
name: str = 'text-ada-001'
base_provider: str = 'openai'
best_provider: Provider.Provider = Provider.Vercel
class text_babbage_001:
name: str = 'text-babbage-001'
base_provider: str = 'openai'
best_provider: Provider.Provider = Provider.Vercel
class text_curie_001:
name: str = 'text-curie-001'
base_provider: str = 'openai'
best_provider: Provider.Provider = Provider.Vercel
class text_davinci_002:
name: str = 'text-davinci-002'
base_provider: str = 'openai'
best_provider: Provider.Provider = Provider.Vercel
class text_davinci_003:
name: str = 'text-davinci-003'
base_provider: str = 'openai'
best_provider: Provider.Provider = Provider.Vercel
class palm:
name: str = 'palm'
base_provider: str = 'google'
best_provider: Provider.Provider = Provider.Bard
""" 'falcon-40b': Model.falcon_40b,
'falcon-7b': Model.falcon_7b,
'llama-13b': Model.llama_13b,"""
class falcon_40b:
name: str = 'falcon-40b'
base_provider: str = 'huggingface'
best_provider: Provider.Provider = Provider.H2o
class falcon_7b:
name: str = 'falcon-7b'
base_provider: str = 'huggingface'
best_provider: Provider.Provider = Provider.H2o
class llama_13b:
name: str = 'llama-13b'
base_provider: str = 'huggingface'
best_provider: Provider.Provider = Provider.H2o
class ModelUtils:
convert: dict = {
'gpt-3.5-turbo': Model.gpt_35_turbo,
'gpt-4': Model.gpt_4,
'claude-instant-v1-100k': Model.claude_instant_v1_100k,
'claude-v1-100k': Model.claude_v1_100k,
'claude-instant-v1': Model.claude_instant_v1,
'claude-v1': Model.claude_v1,
'alpaca-7b': Model.alpaca_7b,
'stablelm-tuned-alpha-7b': Model.stablelm_tuned_alpha_7b,
'bloom': Model.bloom,
'bloomz': Model.bloomz,
'flan-t5-xxl': Model.flan_t5_xxl,
'flan-ul2': Model.flan_ul2,
'gpt-neox-20b': Model.gpt_neox_20b,
'oasst-sft-4-pythia-12b-epoch-3.5': Model.oasst_sft_4_pythia_12b_epoch_35,
'santacoder': Model.santacoder,
'command-medium-nightly': Model.command_medium_nightly,
'command-xlarge-nightly': Model.command_xlarge_nightly,
'code-cushman-001': Model.code_cushman_001,
'code-davinci-002': Model.code_davinci_002,
'text-ada-001': Model.text_ada_001,
'text-babbage-001': Model.text_babbage_001,
'text-curie-001': Model.text_curie_001,
'text-davinci-002': Model.text_davinci_002,
'text-davinci-003': Model.text_davinci_003,
'palm2': Model.palm,
'palm': Model.palm,
'google': Model.palm,
'google-bard': Model.palm,
'google-palm': Model.palm,
'bard': Model.palm,
'falcon-40b': Model.falcon_40b,
'falcon-7b': Model.falcon_7b,
'llama-13b': Model.llama_13b,
}
|