upload
Browse files- Dockerfile +0 -58
Dockerfile
DELETED
@@ -1,58 +0,0 @@
|
|
1 |
-
FROM nvidia/cuda:12.4.0-runtime-ubuntu22.04
|
2 |
-
LABEL maintainer="Bingchen Zhao"
|
3 |
-
LABEL repository="Semanticist"
|
4 |
-
|
5 |
-
ENV DEBIAN_FRONTEND=noninteractive
|
6 |
-
|
7 |
-
RUN apt-get -y update \
|
8 |
-
&& apt-get install -y software-properties-common \
|
9 |
-
&& add-apt-repository ppa:deadsnakes/ppa
|
10 |
-
|
11 |
-
RUN apt install -y bash \
|
12 |
-
build-essential \
|
13 |
-
git \
|
14 |
-
git-lfs \
|
15 |
-
curl \
|
16 |
-
ca-certificates \
|
17 |
-
libsndfile1-dev \
|
18 |
-
libgl1 \
|
19 |
-
python3.10 \
|
20 |
-
python3.10-dev \
|
21 |
-
python3-pip \
|
22 |
-
python3.10-venv rsync sudo tmux && \
|
23 |
-
rm -rf /var/lib/apt/lists
|
24 |
-
|
25 |
-
# make sure to use venv
|
26 |
-
RUN python3.10 -m venv /opt/venv
|
27 |
-
ENV PATH="/opt/venv/bin:$PATH"
|
28 |
-
|
29 |
-
# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
|
30 |
-
RUN python3.10 -m pip install --no-cache-dir --upgrade pip uv==0.1.11 && \
|
31 |
-
python3.10 -m uv pip install --no-cache-dir \
|
32 |
-
torch \
|
33 |
-
torchvision \
|
34 |
-
torchaudio \
|
35 |
-
invisible_watermark && \
|
36 |
-
python3.10 -m pip install --no-cache-dir \
|
37 |
-
accelerate \
|
38 |
-
datasets \
|
39 |
-
hf-doc-builder \
|
40 |
-
huggingface-hub \
|
41 |
-
hf_transfer \
|
42 |
-
Jinja2 \
|
43 |
-
librosa \
|
44 |
-
numpy==1.26.4 \
|
45 |
-
scipy \
|
46 |
-
tensorboard \
|
47 |
-
transformers \
|
48 |
-
pytorch-lightning matplotlib \
|
49 |
-
hf_transfer
|
50 |
-
|
51 |
-
# start Semanticist part
|
52 |
-
COPY . /work/Semanticist
|
53 |
-
WORKDIR /work/Semanticist
|
54 |
-
RUN ls && python3.10 -m pip install -r req_min.txt && \
|
55 |
-
python3.10 -m pip install git+https://github.com/cocodataset/panopticapi.git
|
56 |
-
|
57 |
-
CMD ["/bin/bash"]
|
58 |
-
# docker run -it --rm --runtime=nvidia --gpus all xx/xx:xx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|