Set to nvidia

This commit is contained in:
Josh XT committed 2024-01-22 11:21:15 -05:00
1 parent 55799b2de8
commit 61998b4d39
2 files changed
+7 -23

No files matched your search

+4 -5
View File
@@ -1,9 +1,8 @@
ARG image_name=python:3.11-slim
FROM ${image_name}
FROM nvidia/cuda:12.1.1-devel-ubuntu22.04
WORKDIR /app
COPY . .
# Argument for specifying the GPU type, defaulting to "other"
ARG gpu_type=other
RUN pip install --no-cache-dir -r requirements_${gpu_type}.txt
RUN pip install --no-cache-dir -r requirements_nvidia.txt && \
pip install --no-cache-dir -r requirements_finetune.txt && \
pip install --no-cache-dir -r requirements_other.txt
EXPOSE 7851
CMD ["python", "script.py"]