-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
23 lines (19 loc) · 991 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from nvcr.io/nvidia/cuda:12.1.0-cudnn8-devel-ubuntu22.04
WORKDIR /root
USER root
ENV PATH /usr/local/cuda/bin:$PATH
ENV LD_LIBRARY_PATH /usr/local/cuda/lib64:$LD_LIBRARY_PATH
# 서버 관련 유틸
RUN apt-get update && \
apt-get install -y --no-install-recommends apt-utils && \
apt-get install -y ffmpeg wget net-tools build-essential git curl vim nmon tmux && \
apt-get install -y python3.10 python3.10-dev python3.10-venv python3-pip
# 파이썬 관련 유틸
RUN pip install -U pip wheel setuptools && \
pip install transformers==4.39.3 accelerate==0.29.2 datasets==2.18.0 evaluate==0.4.1 && \
pip install trl==0.8.1 scipy==1.12.0 sentencepiece==0.2.0 deepspeed==0.14.0 wandb==0.16.6 && \
pip install soundfile librosa && \
pip install setproctitle glances[gpu] && \
pip install black flake8 isort natsort && \
pip install torch==2.2.0 torchvision==0.17.0 --index-url https://download.pytorch.org/whl/cu121 && \
pip install flash-attn==2.5.7