Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: sallyom <[email protected]>
  • Loading branch information
sallyom committed Apr 11, 2024
1 parent 327c49e commit d0eda22
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 13 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/model_servers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,19 @@ jobs:
- image_name: llamacpp_python
model: mistral
flavor: base
- image_name: llamacpp_python_vulkan
model: mistral
flavor: vulkan
directory: llamacpp_python
#- image_name: llamacpp_python_vulkan
# model: mistral
# flavor: vulkan
# directory: llamacpp_python
- image_name: llamacpp_python_cuda
model: mistral
flavor: cuda
directory: llamacpp_python
- image_name: whispercpp
model: whisper-small
flavor: base
directory: whispercpp
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -60,11 +64,11 @@ jobs:
image: ${{ env.REGISTRY }}/${{ github.repository_owner}}/${{ matrix.image_name }}
platforms: linux/amd64, linux/arm64
tags: latest
containerfiles: ./model_servers/${{ matrix.image_name }}/${{ matrix.flavor }}/Containerfile
containerfiles: ./model_servers/${{ matrix.directory }}/${{ matrix.flavor }}/Containerfile
context: model_servers/${{ matrix.image_name }}/

- name: Download model
working-directory: ./model_servers/${{ matrix.image_name }}/
working-directory: ./model_servers/${{ matrix.directory }}/
run: make ${{ matrix.model }}

- name: Set up Python
Expand All @@ -73,11 +77,11 @@ jobs:
python-version: '3.11'

- name: Install python dependencies
working-directory: ./model_servers/${{ matrix.image_name }}/
working-directory: ./model_servers/${{ matrix.directory }}/
run: make install

- name: Run tests
working-directory: ./model_servers/${{ matrix.image_name }}/
working-directory: ./model_servers/${{ matrix.directory }}/
run: make test
env:
IMAGE_NAME: ${{ matrix.image_name }}
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/rag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ on:
pull_request:
branches:
- main
# paths:
# - ./recipes/natural_language_processing/rag/**
# - .github/workflows/rag.yaml
paths:
- ./recipes/natural_language_processing/rag/**
- .github/workflows/rag.yaml
push:
branches:
- main
# paths:
# - ./recipes/natural_language_processing/rag/**
# - .github/workflows/rag.yaml
paths:
- ./recipes/natural_language_processing/rag/**
- .github/workflows/rag.yaml

workflow_dispatch:

Expand All @@ -32,6 +32,11 @@ jobs:
ports:
- 5000:5000
steps:
- name: Remove unnecessary files
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- uses: actions/[email protected]

- name: Install qemu dependency
Expand Down

0 comments on commit d0eda22

Please sign in to comment.