Skip to content

Commit 6a6ae07

Browse files
chore: bump Llama Stack version to 0.2.21 (#23)
* chore: bump Llama Stack version to 0.2.21 to align with d/s change Signed-off-by: Nathan Weinberg <nweinber@redhat.com> * fix: package parsing in build script Signed-off-by: Nathan Weinberg <nweinber@redhat.com> * chore: add files provider Signed-off-by: Nathan Weinberg <nweinber@redhat.com> --------- Signed-off-by: Nathan Weinberg <nweinber@redhat.com>
1 parent 4d50ebe commit 6a6ae07

File tree

5 files changed

+15
-7
lines changed

5 files changed

+15
-7
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ repos:
5656
always_run: true
5757
files: ^distribution/.*$
5858
additional_dependencies:
59-
- llama-stack==0.2.18
59+
- llama-stack==0.2.21

distribution/Containerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN pip install \
99
aiosqlite \
1010
autoevals \
1111
chardet \
12-
datasets \
12+
datasets>=4.0.0 \
1313
fastapi \
1414
fire \
1515
httpx \
@@ -38,9 +38,9 @@ RUN pip install \
3838
tqdm \
3939
transformers \
4040
uvicorn
41-
RUN pip install --index-url https://download.pytorch.org/whl/cpu torch torchvision
41+
RUN pip install --extra-index-url https://download.pytorch.org/whl/cpu torch torchao>=0.12.0 torchvision
4242
RUN pip install --no-deps sentence-transformers
43-
RUN pip install --no-cache llama-stack==0.2.18
43+
RUN pip install --no-cache llama-stack==0.2.21
4444
RUN mkdir -p ${HOME}/.llama/providers.d ${HOME}/.cache
4545
COPY distribution/run.yaml ${APP_ROOT}/run.yaml
4646
COPY distribution/providers.d/ ${HOME}/.llama/providers.d/

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.18
6+
RUN pip install --no-cache llama-stack==0.2.21
77
RUN mkdir -p ${{HOME}}/.llama/providers.d ${{HOME}}/.cache
88
COPY distribution/run.yaml ${{APP_ROOT}}/run.yaml
99
COPY distribution/providers.d/ ${{HOME}}/.llama/providers.d/

distribution/build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from pathlib import Path
1414

1515
BASE_REQUIREMENTS = [
16-
"llama-stack==0.2.18",
16+
"llama-stack==0.2.21",
1717
]
1818

1919

@@ -81,7 +81,7 @@ def get_dependencies():
8181
) # Sort the package names and remove duplicates
8282

8383
# Determine command type and format accordingly
84-
if "--index-url" in line:
84+
if ("--index-url" in line) or ("--extra-index-url" in line):
8585
full_cmd = " ".join(cmd_parts + [" ".join(packages)])
8686
torch_deps.append(full_cmd)
8787
elif "--no-deps" in line:

distribution/run.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,14 @@ providers:
106106
- provider_id: model-context-protocol
107107
provider_type: remote::model-context-protocol
108108
config: {}
109+
files:
110+
- provider_id: meta-reference-files
111+
provider_type: inline::localfs
112+
config:
113+
storage_dir: /opt/app-root/src/.llama/distributions/rh/files
114+
metadata_store:
115+
type: sqlite
116+
db_path: /opt/app-root/src/.llama/distributions/rh/files_metadata.db
109117
metadata_store:
110118
type: sqlite
111119
db_path: /opt/app-root/src/.llama/distributions/rh/registry.db

0 commit comments

Comments
 (0)