-
Notifications
You must be signed in to change notification settings - Fork 55
/
Dockerfile
41 lines (29 loc) · 1.31 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
FROM pytorch/pytorch:2.1.0-cuda11.8-cudnn8-runtime
USER root
ARG DEBIAN_FRONTEND=noninteractive
LABEL github_repo="https://github.com/ddlBoJack/SLAM-LLM"
RUN set -x \
&& apt-get update \
&& apt-get -y install wget curl man git less openssl libssl-dev unzip unar build-essential aria2 tmux vim ninja-build\
&& apt-get install -y openssh-server sox libsox-fmt-all libsox-fmt-mp3 libsndfile1-dev ffmpeg \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean
RUN pip install --no-cache-dir packaging editdistance gpustat wandb einops debugpy tqdm soundfile matplotlib scipy sentencepiece pandas \
&& pip install --no-cache-dir torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/cu118
WORKDIR /workspace
RUN git clone https://github.com/huggingface/transformers.git \
&& cd transformers \
&& git checkout tags/v4.35.2 \
&& pip install --no-cache-dir -e .
RUN git clone https://github.com/huggingface/peft.git \
&& cd peft \
&& git checkout tags/v0.6.0 \
&& pip install --no-cache-dir -e .
RUN git clone https://github.com/pytorch/fairseq \
&& cd fairseq \
&& pip install --no-cache-dir --editable ./
RUN git clone https://github.com/ddlBoJack/SLAM-LLM.git \
&& cd SLAM-LLM \
&& pip install --no-cache-dir -e .
ENV SHELL=/bin/bash
WORKDIR /workspace/SLAM-LLM