Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
@@ -3,6 +3,9 @@ FROM nvidia/cuda:11.3.1-base-ubuntu20.04
|
|
3 |
ENV DEBIAN_FRONTEND=noninteractive \
|
4 |
TZ=Europe/Paris
|
5 |
|
|
|
|
|
|
|
6 |
# Remove any third-party apt sources to avoid issues with expiring keys.
|
7 |
# Install some basic utilities
|
8 |
RUN rm -f /etc/apt/sources.list.d/*.list && \
|
@@ -83,6 +86,8 @@ USER user
|
|
83 |
RUN --mount=target=requirements.txt,source=requirements.txt \
|
84 |
pip install --no-cache-dir --upgrade -r requirements.txt
|
85 |
|
|
|
|
|
86 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
87 |
COPY --chown=user . $HOME/app
|
88 |
|
|
|
3 |
ENV DEBIAN_FRONTEND=noninteractive \
|
4 |
TZ=Europe/Paris
|
5 |
|
6 |
+
# there is no gpu access during docker build time :(
|
7 |
+
ENV TORCH_CUDA_ARCH_LIST Turing
|
8 |
+
|
9 |
# Remove any third-party apt sources to avoid issues with expiring keys.
|
10 |
# Install some basic utilities
|
11 |
RUN rm -f /etc/apt/sources.list.d/*.list && \
|
|
|
86 |
RUN --mount=target=requirements.txt,source=requirements.txt \
|
87 |
pip install --no-cache-dir --upgrade -r requirements.txt
|
88 |
|
89 |
+
RUN pip install git+https://github.com/osbm/quant_cuda
|
90 |
+
|
91 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
92 |
COPY --chown=user . $HOME/app
|
93 |
|