forked from opendatahub-io/llama-stack-distribution
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.yaml
More file actions
198 lines (198 loc) · 6.25 KB
/
run.yaml
File metadata and controls
198 lines (198 loc) · 6.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
version: 2
image_name: rh
apis:
- agents
- datasetio
- eval
- inference
- safety
- scoring
- telemetry
- tool_runtime
- vector_io
- files
providers:
inference:
- provider_id: vllm-inference
provider_type: remote::vllm
config:
url: ${env.VLLM_URL:=http://localhost:8000/v1}
max_tokens: ${env.VLLM_MAX_TOKENS:=4096}
api_token: ${env.VLLM_API_TOKEN:=fake}
tls_verify: ${env.VLLM_TLS_VERIFY:=true}
- provider_id: ${env.AWS_ACCESS_KEY_ID:+bedrock}
provider_type: remote::bedrock
config:
aws_access_key_id: ${env.AWS_ACCESS_KEY_ID:=}
aws_secret_access_key: ${env.AWS_SECRET_ACCESS_KEY:=}
aws_session_token: ${env.AWS_SESSION_TOKEN:=}
region_name: ${env.AWS_DEFAULT_REGION:=}
profile_name: ${env.AWS_PROFILE:=}
total_max_attempts: ${env.AWS_MAX_ATTEMPTS:=}
retry_mode: ${env.AWS_RETRY_MODE:=}
connect_timeout: ${env.AWS_CONNECT_TIMEOUT:=60}
read_timeout: ${env.AWS_READ_TIMEOUT:=60}
session_ttl: ${env.AWS_SESSION_TTL:=3600}
- provider_id: sentence-transformers
provider_type: inline::sentence-transformers
config: {}
- provider_id: ${env.WATSONX_API_KEY:+watsonx}
provider_type: remote::watsonx
config:
url: ${env.WATSONX_BASE_URL:=https://us-south.ml.cloud.ibm.com}
api_key: ${env.WATSONX_API_KEY:=}
project_id: ${env.WATSONX_PROJECT_ID:=}
- provider_id: ${env.AZURE_API_KEY:+azure}
provider_type: remote::azure
config:
api_key: ${env.AZURE_API_KEY:=}
api_base: ${env.AZURE_API_BASE:=}
api_version: ${env.AZURE_API_VERSION:=}
api_type: ${env.AZURE_API_TYPE:=}
- provider_id: ${env.VERTEX_AI_PROJECT:+vertexai}
provider_type: remote::vertexai
config:
project: ${env.VERTEX_AI_PROJECT:=}
location: ${env.VERTEX_AI_LOCATION:=us-central1}
- provider_id: ${env.OPENAI_API_KEY:+openai}
provider_type: remote::openai
config:
api_key: ${env.OPENAI_API_KEY:=}
base_url: ${env.OPENAI_BASE_URL:=https://api.openai.com/v1}
vector_io:
- provider_id: milvus
provider_type: inline::milvus
config:
db_path: /opt/app-root/src/.llama/distributions/rh/milvus.db
kvstore:
type: sqlite
namespace: null
db_path: /opt/app-root/src/.llama/distributions/rh/milvus_registry.db
- provider_id: ${env.MILVUS_ENDPOINT:+milvus-remote}
provider_type: remote::milvus
config:
uri: ${env.MILVUS_ENDPOINT:=}
token: ${env.MILVUS_TOKEN:=}
secure: ${env.MILVUS_SECURE:=}
consistency_level: ${env.MILVUS_CONSISTENCY_LEVEL:=}
ca_pem_path: ${env.MILVUS_CA_PEM_PATH:=}
client_pem_path: ${env.MILVUS_CLIENT_PEM_PATH:=}
client_key_path: ${env.MILVUS_CLIENT_KEY_PATH:=}
kvstore:
type: sqlite
namespace: null
db_path: /opt/app-root/src/.llama/distributions/rh/milvus_remote_registry.db
safety:
- provider_id: trustyai_fms
provider_type: remote::trustyai_fms
module: llama_stack_provider_trustyai_fms==0.2.2
config:
orchestrator_url: ${env.FMS_ORCHESTRATOR_URL:=}
ssl_cert_path: ${env.FMS_SSL_CERT_PATH:=}
shields: {}
agents:
- provider_id: meta-reference
provider_type: inline::meta-reference
config:
persistence_store:
type: sqlite
namespace: null
db_path: /opt/app-root/src/.llama/distributions/rh/agents_store.db
responses_store:
type: sqlite
db_path: /opt/app-root/src/.llama/distributions/rh/responses_store.db
eval:
- provider_id: trustyai_lmeval
provider_type: remote::trustyai_lmeval
module: llama_stack_provider_lmeval==0.2.4
config:
use_k8s: ${env.TRUSTYAI_LMEVAL_USE_K8S:=true}
base_url: ${env.VLLM_URL:=http://localhost:8000/v1}
datasetio:
- provider_id: huggingface
provider_type: remote::huggingface
config:
kvstore:
type: sqlite
namespace: null
db_path: /opt/app-root/src/.llama/distributions/rh/huggingface_datasetio.db
- provider_id: localfs
provider_type: inline::localfs
config:
kvstore:
type: sqlite
namespace: null
db_path: /opt/app-root/src/.llama/distributions/rh/localfs_datasetio.db
scoring:
- provider_id: basic
provider_type: inline::basic
config: {}
- provider_id: llm-as-judge
provider_type: inline::llm-as-judge
config: {}
- provider_id: braintrust
provider_type: inline::braintrust
config:
openai_api_key: ${env.OPENAI_API_KEY:=}
telemetry:
- provider_id: meta-reference
provider_type: inline::meta-reference
config:
service_name: "${env.OTEL_SERVICE_NAME:=\u200B}"
sinks: ${env.TELEMETRY_SINKS:=console,sqlite}
sqlite_db_path: /opt/app-root/src/.llama/distributions/rh/trace_store.db
otel_exporter_otlp_endpoint: ${env.OTEL_EXPORTER_OTLP_ENDPOINT:=}
tool_runtime:
- provider_id: brave-search
provider_type: remote::brave-search
config:
api_key: ${env.BRAVE_SEARCH_API_KEY:=}
max_results: 3
- provider_id: tavily-search
provider_type: remote::tavily-search
config:
api_key: ${env.TAVILY_SEARCH_API_KEY:=}
max_results: 3
- provider_id: rag-runtime
provider_type: inline::rag-runtime
config: {}
- provider_id: model-context-protocol
provider_type: remote::model-context-protocol
config: {}
files:
- provider_id: meta-reference-files
provider_type: inline::localfs
config:
storage_dir: /opt/app-root/src/.llama/distributions/rh/files
metadata_store:
type: sqlite
db_path: /opt/app-root/src/.llama/distributions/rh/files_metadata.db
metadata_store:
type: sqlite
db_path: /opt/app-root/src/.llama/distributions/rh/registry.db
inference_store:
type: sqlite
db_path: /opt/app-root/src/.llama/distributions/rh/inference_store.db
models:
- metadata: {}
model_id: ${env.INFERENCE_MODEL}
provider_id: vllm-inference
model_type: llm
- metadata:
embedding_dimension: 768
model_id: granite-embedding-125m
provider_id: sentence-transformers
provider_model_id: ibm-granite/granite-embedding-125m-english
model_type: embedding
shields: []
vector_dbs: []
datasets: []
scoring_fns: []
benchmarks: []
tool_groups:
- toolgroup_id: builtin::websearch
provider_id: tavily-search
- toolgroup_id: builtin::rag
provider_id: rag-runtime
server:
port: 8321