-
Notifications
You must be signed in to change notification settings - Fork 84
/
Dockerfile
74 lines (42 loc) · 1.5 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
FROM nvidia/cuda:11.7.1-devel-ubuntu20.04
ARG DEBIAN_FRONTEND=noninteractive
SHELL [ "/bin/bash","-c" ]
#Used for GPU setup
ENV NVIDIA_VISIBLE_DEVICES all
ENV NVIDIA_DRIVER_CAPABILITIES compute,video,utility
RUN apt update -y \
&& apt upgrade -y
RUN apt install wget -y \
&& apt install git -y \
&& apt install libaio-dev -y \
&& apt install libaio1 -y
RUN apt install python3.9 -y \
&& apt install python3-pip -y \
&& apt install python-is-python3 -y
RUN apt install zsh -y
SHELL [ "/bin/zsh","-c" ]
RUN sh -c "$(wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
RUN pip install --upgrade pip setuptools wheel
RUN pip install ninja datasets pytest
RUN pip install torch torchvision torchaudio
RUN pip install datasets
RUN pip install git+https://github.com/huggingface/transformers.git
RUN pip install git+https://github.com/huggingface/accelerate.git
RUN pip install git+https://github.com/huggingface/peft.git
RUN pip install sentencepiece
RUN pip install einops
RUN pip install triton
RUN pip install git+https://github.com/microsoft/DeepSpeed.git@v0.14.0
# RUN pip install git+https://github.com/microsoft/DeepSpeed-MII.git
RUN pip install wandb
RUN pip install protobuf==3.20.1
RUN pip install bitsandbytes
RUN pip install scipy
RUN pip install --upgrade torch
RUN pip install trl
RUN pip install ninja packaging
RUN MAX_JOBS=4 pip install flash-attn --no-build-isolation
RUN pip install rich
RUN pip install text-generation
WORKDIR /workspace
CMD ["zsh"]