-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (19 loc) · 920 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
24
25
26
FROM ubuntu:18.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt -y upgrade
RUN apt-get -y update
RUN apt -y install software-properties-common git vim htop tmux wget
RUN add-apt-repository -y ppa:deadsnakes/ppa
RUN apt -y upgrade
RUN apt-get -y update
RUN apt -y install python3.9 python3-pip python3.9-distutils python3.9-dev
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1
WORKDIR /root
RUN pip3 install --upgrade pip
RUN pip3 install --upgrade setuptools
# Be careful with the torch version that you need to use, decide it according to your cuda version
RUN pip3 install torch==1.8.1+cu101 -f https://download.pytorch.org/whl/torch_stable.html
# RUN pip3 install torch --extra-index-url https://download.pytorch.org/whl/cu116
RUN pip3 install transformers==4.21.1 scikit-learn==1.1.2 tree-sitter==0.20.0
ENV NVIDIA_VISIBLE_DEVICES all
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility