-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodels.yaml
More file actions
312 lines (263 loc) · 7.25 KB
/
models.yaml
File metadata and controls
312 lines (263 loc) · 7.25 KB
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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
# Model Configuration Presets
# This file contains different model configurations for various hardware setups
# Preset: P4 (8GB VRAM) - Default for PullData
p4_preset:
embedder:
name: BAAI/bge-small-en-v1.5
dimension: 384
batch_size: 32
device: cuda
llm:
name: Qwen/Qwen2.5-3B-Instruct
quantization: int8
device: cuda
max_tokens: 2048
# Preset: CPU-Only (No GPU)
cpu_preset:
embedder:
name: BAAI/bge-small-en-v1.5
dimension: 384
batch_size: 16 # Smaller batch for CPU
device: cpu
llm:
name: Qwen/Qwen2.5-3B-Instruct
quantization: int8
device: cpu
max_tokens: 1024 # Reduce for CPU
# Preset: High-End GPU (24GB+ VRAM)
high_end_preset:
embedder:
name: BAAI/bge-large-en-v1.5
dimension: 1024
batch_size: 64
device: cuda
llm:
name: Qwen/Qwen2.5-7B-Instruct
quantization: fp16
device: cuda
max_tokens: 4096
# Preset: Budget (Minimal)
minimal_preset:
embedder:
name: sentence-transformers/all-MiniLM-L6-v2
dimension: 384
batch_size: 16
device: cpu
llm:
name: Qwen/Qwen2.5-1.5B-Instruct
quantization: int8
device: cpu
max_tokens: 1024
# Alternative Embedding Models
embedding_models:
bge_small:
name: BAAI/bge-small-en-v1.5
dimension: 384
description: "Fast, efficient, good quality (Default)"
bge_base:
name: BAAI/bge-base-en-v1.5
dimension: 768
description: "Balanced performance and quality"
bge_large:
name: BAAI/bge-large-en-v1.5
dimension: 1024
description: "Best quality, slower"
minilm:
name: sentence-transformers/all-MiniLM-L6-v2
dimension: 384
description: "Lightweight, fast, lower quality"
e5_small:
name: intfloat/e5-small-v2
dimension: 384
description: "Alternative to BGE-small"
# Alternative LLM Models
llm_models:
qwen_1_5b:
name: Qwen/Qwen2.5-1.5B-Instruct
description: "Smallest, fastest, lowest quality"
recommended_vram: "2-4GB"
qwen_3b:
name: Qwen/Qwen2.5-3B-Instruct
description: "Balanced (Default for P4)"
recommended_vram: "4-8GB"
qwen_7b:
name: Qwen/Qwen2.5-7B-Instruct
description: "Better quality, requires more VRAM"
recommended_vram: "12-16GB"
phi_2:
name: microsoft/phi-2
description: "Microsoft's efficient 2.7B model"
recommended_vram: "4-6GB"
llama_3b:
name: meta-llama/Llama-3.2-3B-Instruct
description: "Meta's 3B instruction-tuned model"
recommended_vram: "4-8GB"
# Reranking Models (Optional)
reranker_models:
bge_reranker_base:
name: BAAI/bge-reranker-base
description: "Good quality reranking"
bge_reranker_large:
name: BAAI/bge-reranker-large
description: "Best quality, slower"
# Quantization Guide
quantization_guide:
none:
description: "No quantization (FP32)"
vram_multiplier: 4.0
quality: "Best"
fp16:
description: "Half precision"
vram_multiplier: 2.0
quality: "Excellent"
int8:
description: "8-bit quantization (Default for P4)"
vram_multiplier: 1.0
quality: "Good"
int4:
description: "4-bit quantization"
vram_multiplier: 0.5
quality: "Acceptable"
# API-Based Presets (OpenAI-Compatible Endpoints)
# Use these when you want to use external API services or local API servers
# Preset: LM Studio (Local API Server)
lm_studio_preset:
embedder:
name: text-embedding-qwen3-embedding-0.6b
dimension: 384
device: cpu # Embeddings still run locally
llm:
provider: api
api:
base_url: http://localhost:1234/v1
api_key: sk-dummy # LM Studio doesn't require real API key
model: qwen3-1.7b
timeout: 120
# Preset: OpenAI API (GPT-3.5/GPT-4)
openai_preset:
embedder:
name: BAAI/bge-small-en-v1.5
dimension: 384
device: cpu
llm:
provider: api
api:
base_url: https://api.openai.com/v1
api_key: ${OPENAI_API_KEY}
model: gpt-3.5-turbo # or gpt-4, gpt-4-turbo
timeout: 60
# Preset: vLLM Server (Self-hosted)
vllm_preset:
embedder:
name: BAAI/bge-small-en-v1.5
dimension: 384
device: cpu
llm:
provider: api
api:
base_url: http://localhost:8000/v1
api_key: sk-dummy
model: meta-llama/Llama-3.2-3B-Instruct
timeout: 120
# Preset: Text Generation WebUI (Oobabooga)
text_gen_webui_preset:
embedder:
name: BAAI/bge-small-en-v1.5
dimension: 384
device: cpu
llm:
provider: api
api:
base_url: http://localhost:5000/v1
api_key: sk-dummy
model: default
timeout: 120
# Preset: Ollama (via OpenAI-compatible endpoint)
ollama_preset:
embedder:
name: BAAI/bge-small-en-v1.5
dimension: 384
device: cpu
llm:
provider: api
api:
base_url: http://localhost:11434/v1
api_key: sk-dummy
model: llama3.2:3b
timeout: 120
# API Provider Configurations
api_providers:
lm_studio:
name: "LM Studio"
default_base_url: "http://localhost:1234/v1"
requires_api_key: false
description: "Local LLM server with OpenAI-compatible API"
setup_url: "https://lmstudio.ai"
openai:
name: "OpenAI"
default_base_url: "https://api.openai.com/v1"
requires_api_key: true
description: "Official OpenAI API (GPT-3.5, GPT-4)"
setup_url: "https://platform.openai.com/api-keys"
popular_models:
- gpt-3.5-turbo
- gpt-4
- gpt-4-turbo
- gpt-4o
anthropic:
name: "Anthropic (via OpenAI SDK)"
default_base_url: "https://api.anthropic.com/v1"
requires_api_key: true
description: "Claude models via OpenAI-compatible endpoint"
setup_url: "https://console.anthropic.com"
note: "May require adapter middleware"
vllm:
name: "vLLM"
default_base_url: "http://localhost:8000/v1"
requires_api_key: false
description: "High-throughput LLM serving engine"
setup_url: "https://github.com/vllm-project/vllm"
text_gen_webui:
name: "Text Generation WebUI"
default_base_url: "http://localhost:5000/v1"
requires_api_key: false
description: "Oobabooga's text generation web UI"
setup_url: "https://github.com/oobabooga/text-generation-webui"
ollama:
name: "Ollama"
default_base_url: "http://localhost:11434/v1"
requires_api_key: false
description: "Run LLMs locally with easy setup"
setup_url: "https://ollama.ai"
together_ai:
name: "Together AI"
default_base_url: "https://api.together.xyz/v1"
requires_api_key: true
description: "Fast inference API for open-source models"
setup_url: "https://together.ai"
groq:
name: "Groq"
default_base_url: "https://api.groq.com/openai/v1"
requires_api_key: true
description: "Ultra-fast LLM inference"
setup_url: "https://console.groq.com"
# Hardware Recommendations
hardware_recommendations:
tesla_p4:
preset: p4_preset
notes: "Default target hardware - local models"
cpu_only:
preset: cpu_preset
notes: "Use for machines without GPU - local models"
rtx_3090:
preset: high_end_preset
notes: "Can handle larger local models"
m1_mac:
preset: cpu_preset
notes: "Use CPU mode, Metal support coming soon"
no_local_gpu:
preset: lm_studio_preset
notes: "Use LM Studio or other API providers when no GPU available"
cloud_api:
preset: openai_preset
notes: "Use cloud APIs (OpenAI, Groq, Together) for no local compute"