-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
25 lines (19 loc) · 1.06 KB
/
Dockerfile
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
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 lsof && \
apt-get install -y python3.10 python3.10-dev python3.10-venv python3-pip
RUN ln -s /usr/bin/python3.10 /usr/bin/python
# 파이썬 관련 유틸
RUN pip install -U pip wheel setuptools && \
pip install git+https://github.com/huggingface/transformers.git@919220dab1e29f4d04eacd61a197a45a4fec2613 && \
pip install accelerate datasets evaluate trl peft deepspeed liger-kernel && \
pip install bitsandbytes scipy sentencepiece pillow && \
pip install ruff natsort setproctitle glances[gpu] wandb cmake
RUN pip install torch==2.5.1+cu121 torchvision==0.20.1+cu121 torchaudio==2.5.1+cu121 --index-url https://download.pytorch.org/whl/cu121 && \
pip install flash-attn==2.7.2.post1