diff --git a/.github/workflows/dockerize.yml b/.github/workflows/dockerize.yml index 764bac4..4591c19 100644 --- a/.github/workflows/dockerize.yml +++ b/.github/workflows/dockerize.yml @@ -10,10 +10,10 @@ permissions: jobs: rocm: runs-on: ubuntu-22.04 - env: - LLAMACPP_VERSION: b4600 strategy: fail-fast: false + matrix: + version: [b4600] steps: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -25,16 +25,16 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Free Disk Space (Ubuntu) - uses: ggml-org/free-disk-space@v1.3.1 - with: - tool-cache: false - android: true - dotnet: true - haskell: true - large-packages: true - docker-images: true - swap-storage: true + # - name: Free Disk Space (Ubuntu) + # uses: ggml-org/free-disk-space@v1.3.1 + # with: + # tool-cache: false + # android: true + # dotnet: true + # haskell: true + # large-packages: true + # docker-images: true + # swap-storage: true - name: Build and push server Docker image (tagged + versioned) uses: docker/build-push-action@v6 @@ -42,11 +42,11 @@ jobs: push: true platforms: linux/amd64 tags: | - ghcr.io/${{ github.repository }}:server-rocm-${{ env.LLAMACPP_VERSION }} + ghcr.io/${{ github.repository }}:server-rocm-${{ matrix.version }} file: docker/rocm.Dockerfile target: server build-args: | - LLAMACPP_VERSION=${{ env.LLAMACPP_VERSION }} + LLAMACPP_VERSION=${{ matrix.version }} provenance: false cache-from: type=gha cache-to: type=gha,mode=max diff --git a/docker/rocm.Dockerfile b/docker/rocm.Dockerfile index 638d124..d865d53 100644 --- a/docker/rocm.Dockerfile +++ b/docker/rocm.Dockerfile @@ -2,7 +2,6 @@ ARG UBUNTU_VERSION=24.04 ARG ROCM_VERSION=6.3 ARG AMDGPU_VERSION=6.3 -ARG LLAMACPP_VERSION=b4600 ARG BASE_ROCM_DEV_CONTAINER=rocm/dev-ubuntu-${UBUNTU_VERSION}:${ROCM_VERSION}-complete @@ -10,6 +9,7 @@ ARG BASE_ROCM_DEV_CONTAINER=rocm/dev-ubuntu-${UBUNTU_VERSION}:${ROCM_VERSION}-co FROM ${BASE_ROCM_DEV_CONTAINER} AS build ARG ROCM_DOCKER_ARCH='gfx1010,gfx1030,gfx1032,gfx1100,gfx1101,gfx1102' +ARG LLAMACPP_VERSION=master ENV AMDGPU_TARGETS=${ROCM_DOCKER_ARCH} @@ -24,7 +24,7 @@ RUN apt-get update \ WORKDIR /app -RUN git clone https://github.com/ggerganov/llama.cpp --branch=${LLAMACPP_VERSION} --depth=1 . +RUN git clone https://github.com/ggerganov/llama.cpp --branch=$LLAMACPP_VERSION --depth=1 . RUN HIPCXX="$(hipconfig -l)/clang" HIP_PATH="$(hipconfig -R)" \ cmake -S . -B build -DLLAMA_HIPBLAS=ON -DGGML_HIP=ON -DAMDGPU_TARGETS=$ROCM_DOCKER_ARCH -DCMAKE_BUILD_TYPE=Release -DLLAMA_CURL=ON \