Skip to content

Commit 06f7cbf

Browse files
committed
Finished deployment of llama and lightspeed stack
1 parent eeb65c9 commit 06f7cbf

7 files changed

Lines changed: 177 additions & 55 deletions

File tree

tests/e2e-prow/rhoai/config/lightspeed-stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ llama_stack:
1313
# Alternative for "as library use"
1414
# use_as_library_client: true
1515
# library_client_config_path: <path-to-llama-stack-run.yaml-file>
16-
url: http://llama-stack:8321
16+
url: http://${env.LLAMA_IP}:8321
1717
api_key: xyzzy
1818
user_data_collection:
1919
feedback_enabled: true
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
name: lightspeed-stack-service
5+
namespace: e2e-rhoai-dsc
6+
spec:
7+
containers:
8+
- name: lightspeed-stack-container
9+
env:
10+
- name: LLAMA_IP
11+
valueFrom:
12+
secretKeyRef:
13+
name: llama-stack-ip-secret
14+
key: key
15+
image: quay.io/lightspeed-core/lightspeed-stack:dev-latest
16+
ports:
17+
- containerPort: 8080
18+
volumeMounts:
19+
- name: config
20+
mountPath: /app-root/lightspeed-stack.yaml
21+
subPath: lightspeed-stack.yaml
22+
volumes:
23+
- name: config
24+
configMap:
25+
name: lightspeed-stack-config
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
name: llama-stack-service
5+
namespace: e2e-rhoai-dsc
6+
spec:
7+
containers:
8+
- name: llama-stack-container
9+
env:
10+
- name: KSVC_URL
11+
valueFrom:
12+
secretKeyRef:
13+
name: api-url-secret
14+
key: key
15+
- name: VLLM_API_KEY
16+
valueFrom:
17+
secretKeyRef:
18+
name: vllm-api-key-secret
19+
key: key
20+
image: quay.io/opendatahub/llama-stack:rhoai-v2.25-latest
21+
ports:
22+
- containerPort: 8321
23+
volumeMounts:
24+
- name: config
25+
mountPath: /opt/app-root/run.yaml
26+
subPath: run.yaml
27+
volumes:
28+
- name: config
29+
configMap:
30+
name: llama-stack-config

tests/e2e-prow/rhoai/config/run.yaml

Lines changed: 105 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,120 @@
1-
version: 2
2-
image_name: rag-configuration-demo3
1+
version: '2'
2+
image_name: minimal-viable-llama-stack-configuration
33

44
apis:
5-
- agents
6-
- inference
7-
- vector_io
8-
- tool_runtime
9-
- safety
10-
11-
models:
12-
- model_id: meta-llama/Llama-3.2-1B-Instruct
13-
provider_id: vllm
14-
model_type: llm
15-
provider_model_id: null
16-
- model_id: sentence-transformers/all-mpnet-base-v2
17-
metadata:
18-
embedding_dimension: 768
19-
model_type: embedding
20-
provider_id: sentence-transformers
21-
provider_model_id: /Users/cpompeia/Documents/Dev/lightspeed-rag-content/embeddings_model
22-
5+
- agents
6+
- datasetio
7+
- eval
8+
- inference
9+
- post_training
10+
- safety
11+
- scoring
12+
- telemetry
13+
- tool_runtime
14+
- vector_io
15+
benchmarks: []
16+
container_image: null
17+
datasets: []
18+
external_providers_dir: null
19+
inference_store:
20+
db_path: .llama/distributions/ollama/inference_store.db
21+
type: sqlite
22+
logging: null
23+
metadata_store:
24+
db_path: .llama/distributions/ollama/registry.db
25+
namespace: null
26+
type: sqlite
2327
providers:
28+
agents:
29+
- config:
30+
persistence_store:
31+
db_path: .llama/distributions/ollama/agents_store.db
32+
namespace: null
33+
type: sqlite
34+
responses_store:
35+
db_path: .llama/distributions/ollama/responses_store.db
36+
type: sqlite
37+
provider_id: meta-reference
38+
provider_type: inline::meta-reference
39+
datasetio:
40+
- config:
41+
kvstore:
42+
db_path: .llama/distributions/ollama/huggingface_datasetio.db
43+
namespace: null
44+
type: sqlite
45+
provider_id: huggingface
46+
provider_type: remote::huggingface
47+
- config:
48+
kvstore:
49+
db_path: .llama/distributions/ollama/localfs_datasetio.db
50+
namespace: null
51+
type: sqlite
52+
provider_id: localfs
53+
provider_type: inline::localfs
54+
eval:
55+
- config:
56+
kvstore:
57+
db_path: .llama/distributions/ollama/meta_reference_eval.db
58+
namespace: null
59+
type: sqlite
60+
provider_id: meta-reference
61+
provider_type: inline::meta-reference
2462
inference:
25-
- provider_id: sentence-transformers
26-
provider_type: inline::sentence-transformers
27-
config: {}
2863
- provider_id: vllm
2964
provider_type: remote::vllm
3065
config:
3166
url: ${env.KSVC_URL}/v1/
3267
api_token: ${env.VLLM_API_KEY}
3368
tls_verify: false
3469
max_tokens: 1024
35-
36-
agents:
37-
- provider_id: meta-reference
38-
provider_type: inline::meta-reference
39-
config:
40-
persistence_store:
41-
type: sqlite
42-
db_path: .llama/distributions/ollama/agents_store.db
43-
responses_store:
44-
type: sqlite
45-
db_path: .llama/distributions/ollama/responses_store.db
46-
70+
post_training:
71+
- config:
72+
checkpoint_format: huggingface
73+
device: cpu
74+
distributed_backend: null
75+
dpo_output_dir: "."
76+
provider_id: huggingface
77+
provider_type: inline::huggingface-gpu
4778
safety:
48-
- provider_id: llama-guard
49-
provider_type: inline::llama-guard
50-
config:
79+
- config:
5180
excluded_categories: []
81+
provider_id: llama-guard
82+
provider_type: inline::llama-guard
83+
scoring:
84+
- config: {}
85+
provider_id: basic
86+
provider_type: inline::basic
87+
- config: {}
88+
provider_id: llm-as-judge
89+
provider_type: inline::llm-as-judge
90+
- config:
91+
openai_api_key: '********'
92+
provider_id: braintrust
93+
provider_type: inline::braintrust
94+
telemetry:
95+
- config:
96+
service_name: 'lightspeed-stack-telemetry'
97+
sinks: sqlite
98+
sqlite_db_path: .llama/distributions/ollama/trace_store.db
99+
provider_id: meta-reference
100+
provider_type: inline::meta-reference
101+
tool_runtime: []
102+
vector_io: []
103+
scoring_fns: []
104+
server:
105+
auth: null
106+
host: null
107+
port: 8321
108+
quota: null
109+
tls_cafile: null
110+
tls_certfile: null
111+
tls_keyfile: null
112+
shields: []
113+
vector_dbs: []
52114

53-
tool_runtime:
54-
- provider_id: rag-runtime
55-
provider_type: inline::rag-runtime
56-
config: {}
115+
models:
116+
- model_id: meta-llama/Llama-3.2-1B-Instruct
117+
provider_id: vllm
118+
model_type: llm
119+
provider_model_id: null
57120

58-
tool_groups:
59-
- provider_id: rag-runtime
60-
toolgroup_id: builtin::rag
61-
args: null
62-
mcp_endpoint: null
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
BASE_DIR="$1"
4+
5+
oc apply -f "$BASE_DIR/config/lightspeed/llama-stack.yaml"
6+
7+
# Get IP address of llama-stack pod
8+
LLAMA_IP=$(oc get pod llama-stack-service -n e2e-rhoai-dsc -o jsonpath='{.status.podIP}')
9+
oc create secret generic llama-stack-ip-secret \
10+
--from-literal=key="$LLAMA_IP" \
11+
-n e2e-rhoai-dsc || echo "Secret exists"
12+
13+
oc apply -f "$BASE_DIR/config/lightspeed/lightspeed-stack.yaml"

tests/e2e-prow/rhoai/scripts/deploy-vllm.sh

Whitespace-only changes.

tests/e2e-prow/rhoai/scripts/get-pod-info.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,6 @@ until [ -n "$POD_NAME" ] || [ $ELAPSED -ge $TIMEOUT ]; do
2222
-l "serving.kserve.io/inferenceservice=$ISVC_NAME" \
2323
-o jsonpath="{.items[?(@.status.phase=='Running')].metadata.name}" 2>/dev/null)
2424
echo "Waiting for pod $POD_NAME in namespace $NAMESPACE"
25-
26-
echo "GET PODS"
27-
oc get pods -n $NAMESPACE || true
28-
29-
echo "END GET PODS"
30-
oc describe pod $POD_NAME -n $NAMESPACE || true
31-
oc logs $POD_NAME -n $NAMESPACE || true
3225

3326
if [ -z "$POD_NAME" ]; then
3427
echo " -> Pod not running yet, waiting $INTERVAL seconds..."
@@ -37,6 +30,9 @@ until [ -n "$POD_NAME" ] || [ $ELAPSED -ge $TIMEOUT ]; do
3730
fi
3831
done
3932

33+
oc describe pod $POD_NAME -n $NAMESPACE || true
34+
oc logs $POD_NAME -n $NAMESPACE || true
35+
4036
POD_NAME=$(oc get pods -n $NAMESPACE -o jsonpath='{.items[0].metadata.name}')
4137

4238
if [ -z "$POD_NAME" ]; then

0 commit comments

Comments
 (0)