Set to nvidia
This commit is contained in:
1 parent
55799b2de8
commit
61998b4d39
2 files changed
+7
-23
No files matched your search
@@ -10,18 +10,6 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build_and_push:
|
build_and_push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- image_name: "python:3.11-slim"
|
|
||||||
gpu_type: "other"
|
|
||||||
platforms: "linux/amd64,linux/arm64/v8"
|
|
||||||
tag_name: "other"
|
|
||||||
- image_name: "nvidia/cuda:12.1.1-devel-ubuntu22.04"
|
|
||||||
gpu_type: "nvidia"
|
|
||||||
platforms: "linux/amd64"
|
|
||||||
tag_name: "cuda"
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -41,11 +29,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
platforms: ${{ matrix.platforms }}
|
platforms: "linux/amd64"
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
ghcr.io/josh-xt/alltalk_tts:${{ matrix.tag_name }}
|
ghcr.io/josh-xt/alltalk_tts:latest
|
||||||
ghcr.io/josh-xt/alltalk_tts:${{ matrix.tag_name }}-${{ github.sha }}
|
ghcr.io/josh-xt/alltalk_tts:main-${{ github.sha }}
|
||||||
build-args: |
|
|
||||||
image_name=${{ matrix.image_name }}
|
|
||||||
gpu_type=${{ matrix.gpu_type }}
|
|
||||||
+4
-5
@@ -1,9 +1,8 @@
|
|||||||
ARG image_name=python:3.11-slim
|
FROM nvidia/cuda:12.1.1-devel-ubuntu22.04
|
||||||
FROM ${image_name}
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
# Argument for specifying the GPU type, defaulting to "other"
|
RUN pip install --no-cache-dir -r requirements_nvidia.txt && \
|
||||||
ARG gpu_type=other
|
pip install --no-cache-dir -r requirements_finetune.txt && \
|
||||||
RUN pip install --no-cache-dir -r requirements_${gpu_type}.txt
|
pip install --no-cache-dir -r requirements_other.txt
|
||||||
EXPOSE 7851
|
EXPOSE 7851
|
||||||
CMD ["python", "script.py"]
|
CMD ["python", "script.py"]
|
||||||
Reference in new issue
Block a user