Skip to content

Commit d3cd3e1

Browse files
committed
Run llama directly
Signed-off-by: Fabian von Feilitzsch <fabian@fabianism.us>
1 parent 022e598 commit d3cd3e1

2 files changed

Lines changed: 6 additions & 42 deletions

File tree

roles/tackle/templates/kai/llm-proxy-configmap.yaml.j2

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -9,41 +9,9 @@ metadata:
99
app.kubernetes.io/component: kai
1010
app.kubernetes.io/part-of: tackle
1111
data:
12-
lightspeed-stack.yaml: |
13-
# Minimal Lightspeed Stack configuration for running ONLY Llama Stack server
14-
# This config disables all LCS features and just uses the project to start Llama Stack
15-
name: Llama Stack Server Only
16-
service:
17-
# LCS service won't actually run with this config - we're just using it for Llama Stack
18-
host: 0.0.0.0
19-
port: 8080
20-
auth_enabled: false
21-
workers: 1
22-
23-
# This is the key - we're NOT using Llama Stack as a library or connecting to external server
24-
# Instead, we'll use the project's ability to start Llama Stack as a separate server
25-
llama_stack:
26-
use_as_library_client: false
27-
# Dummy URL since we're not actually connecting to anything
28-
url: http://localhost:8321
29-
api_key: unused
30-
31-
# Disable all LCS features since we only want Llama Stack
32-
user_data_collection:
33-
feedback_enabled: false
34-
transcripts_enabled: false
35-
36-
# Use in-memory cache (minimal)
37-
conversation_cache:
38-
type: "noop"
39-
40-
# No authentication
41-
authentication:
42-
module: "noop"
4312
run.yaml: |
4413
version: 2
4514
image_name: starter
46-
external_providers_dir: /tmp/.llama/providers.d
4715
apis:
4816
- inference
4917
providers:

roles/tackle/templates/kai/llm-proxy-deployment.yaml.j2

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,13 @@ spec:
2828
containers:
2929
- name: llm-proxy
3030
image: "{{ kai_llm_proxy_image_fqin }}"
31+
command: ["/app-root/.venv/bin/llama"]
3132
args:
32-
- --config
33-
- /app/lightspeed-stack.yaml
33+
- stack
34+
- run
35+
- /app/run.yaml
36+
- --port
37+
- "8321"
3438
ports:
3539
- containerPort: 8321
3640
name: http
@@ -58,14 +62,6 @@ spec:
5862
successThreshold: 1
5963
failureThreshold: 3
6064
env:
61-
- name: RUN_CONFIG_PATH
62-
value: /app/run.yaml
63-
- name: INPUT_CONFIG
64-
value: /app/run.yaml
65-
- name: LIGHTSPEED_STACK_CONFIG_PATH
66-
value: /app/lightspeed-stack.yaml
67-
- name: LLAMA_STACK_CONFIG_DIR
68-
value: /tmp/.llama
6965
{% if trusted_ca_enabled | default(false) | bool %}
7066
# For self-signed certificates
7167
- name: SSL_CERT_FILE

0 commit comments

Comments
 (0)