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 0654510
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 18 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/model_servers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,23 @@ jobs:
- image_name: llamacpp_python
model: mistral
flavor: base
- image_name: llamacpp_python_vulkan
model: mistral
flavor: vulkan
directory: llamacpp_python
platforms: linux/amd64,linux/arm64
#- image_name: llamacpp_python_vulkan
# model: mistral
# flavor: vulkan
# directory: llamacpp_python
# platforms: linux/arm64
- image_name: llamacpp_python_cuda
model: mistral
flavor: cuda
directory: llamacpp_python
platforms: linux/amd64
- image_name: whispercpp
model: whisper-small
flavor: base
directory: whispercpp
platforms: linux/amd64,linux/arm64
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -58,13 +66,13 @@ jobs:
uses: redhat-actions/[email protected]
with:
image: ${{ env.REGISTRY }}/${{ github.repository_owner}}/${{ matrix.image_name }}
platforms: linux/amd64, linux/arm64
platforms: ${{ matrix.platforms }}
tags: latest
containerfiles: ./model_servers/${{ matrix.image_name }}/${{ matrix.flavor }}/Containerfile
context: model_servers/${{ matrix.image_name }}/
containerfiles: ./model_servers/${{ matrix.directory }}/${{ matrix.flavor }}/Containerfile
context: model_servers/${{ matrix.directory }}/

- 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 +81,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
11 changes: 8 additions & 3 deletions .github/workflows/testing-framework.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
working-directory: terraform-test-environment-module

- name: Ansible Collections
run: ansible-galaxy install -r ./provision/requirements.yml
run: ansible-galaxy install -r ./main/recipes/${{ matrix.app_path }}/provision/requirements.yml
working-directory: ./main/recipes/${{ matrix.app_path }}

- name: Provision
Expand Down Expand Up @@ -144,7 +144,7 @@ jobs:
matrix:
include:
- image: llamacpp_python
- image: llamacpp_python_vulkan
#- image: llamacpp_python_vulkan
- image: llamacpp_python_cuda
- image: whispercpp
- image: chatbot
Expand Down Expand Up @@ -186,14 +186,19 @@ jobs:
matrix:
include:
- app_path: natural_language_processing/chatbot
app: chatbot
- app_path: natural_language_processing/summarizer
app: summarizer
- app_path: natural_language_processing/codegen
app: codegen
- app_path: natural_language_processing/rag
app: rag
- app_path: audio/audio_to_text
app: transcribe
steps:
- uses: actions/[email protected]

- name:
- name: ${{ matrix.app }}
working-directory: ./recipes/${{ matrix.app_path }}
run: make bootc

Expand Down

0 comments on commit 0654510

Please sign in to comment.