-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile_for_train_and_test
More file actions
41 lines (29 loc) · 1.19 KB
/
Dockerfile_for_train_and_test
File metadata and controls
41 lines (29 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# For full fine-tuning, LoRA training, and evaluation
FROM nvidia/cuda:12.1.1-cudnn8-runtime-ubuntu22.04
RUN apt-get update && apt-get install -y --no-install-recommends \
git wget curl vim \
python3 python3-pip python3-dev \
build-essential \
&& rm -rf /var/lib/apt/lists/*
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash && \
apt-get update && \
apt-get install -y git-lfs && \
git lfs install
ENV CONDA_DIR=/opt/conda
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh && \
bash miniconda.sh -b -p $CONDA_DIR && \
rm miniconda.sh
ENV PATH=$CONDA_DIR/bin:$PATH
RUN conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main && \
conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r
RUN conda create -n emosum python=3.8
SHELL ["conda", "run", "-n", "emosum", "/bin/bash", "-c"]
WORKDIR /workspace
COPY requirements.txt /workspace/requirements.txt
RUN python -m pip install -U pip --user
RUN pip install --upgrade pip && pip install -r requirements.txt
RUN python - <<EOF
import nltk
nltk.download("punkt")
EOF
CMD ["/bin/bash"]