Skip to content

Commit a60f0e1

Browse files
committed
feat: bump llama-stack to 0.3.0rc2+rhai0
https://github.com/opendatahub-io/llama-stack/releases/tag/v0.3.0rc2%2Brhai0 Relates to: RHAIENG-1685 Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>
1 parent eef1dce commit a60f0e1

6 files changed

Lines changed: 18 additions & 9 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ repos:
5656
always_run: true
5757
files: ^distribution/.*$
5858
additional_dependencies:
59-
- llama-stack==0.2.23
59+
- git+https://github.com/opendatahub-io/llama-stack.git@v0.3.0rc2+rhai0
6060

6161
- id: doc-gen
6262
name: Distribution Documentation

distribution/Containerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ RUN pip install \
2020
autoevals \
2121
boto3 \
2222
chardet \
23+
einops \
2324
faiss-cpu \
2425
fastapi \
2526
fire \
2627
google-cloud-aiplatform \
2728
httpx \
28-
ibm_watsonx_ai \
2929
litellm \
3030
matplotlib \
3131
nltk \
@@ -39,10 +39,12 @@ RUN pip install \
3939
pypdf \
4040
redis \
4141
requests \
42+
safetensors \
4243
scikit-learn \
4344
scipy \
4445
sentencepiece \
4546
sqlalchemy[asyncio] \
47+
tokenizers \
4648
tqdm \
4749
transformers \
4850
uvicorn
@@ -56,7 +58,7 @@ RUN pip install \
5658
llama_stack_provider_trustyai_fms==0.2.3
5759
RUN pip install 'torchao>=0.12.0' --extra-index-url https://download.pytorch.org/whl/cpu torch torchvision
5860
RUN pip install --no-deps sentence-transformers
59-
RUN pip install --no-cache llama-stack==0.2.23
61+
RUN pip install --no-cache llama-stack==0.3.0rc2+rhai0
6062
RUN mkdir -p ${HOME}/.llama ${HOME}/.cache
6163
COPY distribution/run.yaml ${APP_ROOT}/run.yaml
6264
ENTRYPOINT ["llama", "stack", "run", "/opt/app-root/run.yaml"]

distribution/Containerfile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ WORKDIR /opt/app-root
33

44
RUN pip install sqlalchemy # somehow sqlalchemy[asyncio] is not sufficient
55
{dependencies}
6-
RUN pip install --no-cache llama-stack==0.2.23
6+
RUN pip install --no-cache llama-stack==0.3.0rc2+rhai0
77
{llama_stack_install_source}
88
RUN mkdir -p ${{HOME}}/.llama ${{HOME}}/.cache
99
COPY distribution/run.yaml ${{APP_ROOT}}/run.yaml

distribution/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
This image contains the official Open Data Hub Llama Stack distribution, with all the packages and configuration needed to run a Llama Stack server in a containerized environment.
66

7-
The image is currently shipping with upstream Llama Stack version [0.2.23](https://github.com/llamastack/llama-stack/releases/tag/v0.2.23)
7+
The image is currently shipping with upstream Llama Stack version [0.3.0rc2+rhai0](https://github.com/opendatahub-io/llama-stack/releases/tag/v0.3.0rc2+rhai0)
88

99
You can see an overview of the APIs and Providers the image ships with in the table below.
1010

distribution/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import os
1414
from pathlib import Path
1515

16-
CURRENT_LLAMA_STACK_VERSION = "0.2.23"
16+
CURRENT_LLAMA_STACK_VERSION = "0.3.0rc2+rhai0"
1717
LLAMA_STACK_VERSION = os.getenv("LLAMA_STACK_VERSION", CURRENT_LLAMA_STACK_VERSION)
1818
BASE_REQUIREMENTS = [
1919
f"llama-stack=={LLAMA_STACK_VERSION}",

scripts/gen_distro_docs.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ def extract_llama_stack_version():
2121
content = file.read()
2222

2323
# Look for llama-stack version in pip install commands
24-
# Pattern matches: llama-stack==X.Y.Z
25-
pattern = r"llama-stack==([0-9]+\.[0-9]+\.[0-9]+)"
24+
# Pattern matches: llama-stack==X.Y.Z or llama-stack==X.Y.ZrcN+rhaiM
25+
pattern = r"llama-stack==([0-9]+\.[0-9]+\.[0-9]+(?:rc[0-9]+)?(?:\+rhai[0-9]+)?)"
2626
match = re.search(pattern, content)
2727

2828
if match:
@@ -163,14 +163,21 @@ def gen_distro_docs():
163163
# extract Llama Stack version from Containerfile
164164
version = extract_llama_stack_version()
165165

166+
# Determine repository URL based on version
167+
# If version contains +rhai, use opendatahub-io, otherwise use llamastack
168+
if "+rhai" in version:
169+
repo_url = "https://github.com/opendatahub-io/llama-stack"
170+
else:
171+
repo_url = "https://github.com/llamastack/llama-stack"
172+
166173
# header section
167174
header = f"""<!-- This file is automatically generated by scripts/gen_distro_doc.py - do not update manually -->
168175
169176
# Open Data Hub Llama Stack Distribution Image
170177
171178
This image contains the official Open Data Hub Llama Stack distribution, with all the packages and configuration needed to run a Llama Stack server in a containerized environment.
172179
173-
The image is currently shipping with upstream Llama Stack version [{version}](https://github.com/llamastack/llama-stack/releases/tag/v{version})
180+
The image is currently shipping with upstream Llama Stack version [{version}]({repo_url}/releases/tag/v{version})
174181
175182
You can see an overview of the APIs and Providers the image ships with in the table below.
176183

0 commit comments

Comments
 (0)