Skip to content

Commit

Permalink
update for restructure
Browse files Browse the repository at this point in the history
Signed-off-by: sallyom <[email protected]>
  • Loading branch information
sallyom committed Mar 28, 2024
1 parent 6e19049 commit a50c9db
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM quay.io/containers/podman:v4.9.3

USER root

COPY playground/tests/requirements.txt .
COPY model_servers/llamacpp_python/base/tests/requirements.txt .

RUN dnf install -y python3.11 python3-pip buildah git && \
dnf clean all && \
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "recepies",
"name": "recipes",
"build": {
"dockerfile": "Containerfile",
"context": ".."
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
uses: tj-actions/changed-files@v42
with:
files: |
playground/**
model_servers/llamacpp_python/base/**
- name: Get changed rag files
id: changed-files-rag
Expand Down Expand Up @@ -96,8 +96,8 @@ jobs:
image: ${{ env.MODEL_SERVICE_IMAGE }}
tags: latest ${{ github.sha }}
platforms: linux/amd64, linux/arm64
context: playground
containerfiles: ./playground/Containerfile
context: model_servers/llamacpp_python/base
containerfiles: ./model_servers/llamacpp_python/base/Containerfile

- name: Push model-service image
id: push_model_service
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/playground.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ jobs:
with:
image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: latest
containerfiles: ./playground/Containerfile
context: playground
containerfiles: ./model_servers/llamacpp_python/base/Containerfile
context: model_servers/llamacpp_python/base

- name: Set up Python
uses: actions/[email protected]

- name: Run tests
run: make -f playground/Makefile test
run: make -f model_servers/llamacpp_python/base/Makefile test
2 changes: 1 addition & 1 deletion model_servers/llamacpp_python/base/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: build
build:
podman build -f Containerfile -t ghcr.io/ai-lab-recipes/playground --format docker playground
podman build -f Containerfile -t ghcr.io/ai-lab-recipes/playground --format docker .

models/llama-2-7b-chat.Q5_K_S.gguf:
curl -s -S -L -f https://huggingface.co/TheBloke/Llama-2-7B-Chat-GGUF/resolve/main/llama-2-7b-chat.Q5_K_S.gguf -z $@ -o $@.tmp && mv -f $@.tmp $@ 2>/dev/null || rm -f $@.tmp $@
Expand Down

0 comments on commit a50c9db

Please sign in to comment.