Skip to content

Commit

Permalink
Use matrix to build several models
Browse files Browse the repository at this point in the history
  • Loading branch information
brmzkw committed Oct 29, 2024
1 parent 3773614 commit d2fceee
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ on:
jobs:
docker:
runs-on: koyeb-runner-xlarge
strategy:
matrix:
model:
- name: meta-llama/Llama-3.1-8B
tag: koyeb/meta-llama-3.1-8b:latest
- name: NousResearch/Hermes-3-Llama-3.1-8B
tag: koyeb/nousresearch-hermes-3-llama-3.1-8b:latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -24,11 +31,11 @@ jobs:
push: true
context: .
file: Dockerfile.bundled_model
tags: koyeb/meta-llama-3.1-8b:latest
cache-from: type=registry,ref=koyeb/meta-llama-3.1-8b:latest
tags: ${{ matrix.model.tag }}
cache-from: type=registry,ref=${{ matrix.model.tag }}
cache-to: type=inline
outputs: |
type=registry,compression=zstd
build-args: |
MODEL_NAME=meta-llama/Llama-3.1-8B
MODEL_NAME=${{ matrix.model.name }}
HF_TOKEN=${{ secrets.HUGGINGFACE_TOKEN }}

0 comments on commit d2fceee

Please sign in to comment.