arpanraj commited on
Commit
2a9a9c7
1 Parent(s): 9a52f7d

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This dockerfile is forked from ai2/cuda11.8-cudnn8-dev-ubuntu20.04
2
+ FROM gcr.io/ai2-beaker-core/public/cjvktq5s0r0fr8pb7470:latest
3
+
4
+ RUN apt update && apt install -y openjdk-8-jre-headless
5
+
6
+ RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
7
+ RUN apt-get -y install git-lfs
8
+
9
+ WORKDIR /stage/
10
+
11
+ COPY requirements.txt .
12
+ RUN pip install --upgrade pip setuptools wheel
13
+ RUN pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
14
+ RUN pip install packaging
15
+ RUN pip install flash-attn --no-build-isolation
16
+ RUN pip install -r requirements.txt
17
+
18
+ COPY open_instruct open_instruct
19
+ COPY eval eval
20
+ COPY ds_configs ds_configs
21
+ COPY scripts scripts
22
+ RUN chmod +x scripts/*
23
+
24
+ # for interactive session
25
+ RUN chmod -R 777 /stage/