-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from ZhikangNiu/main
Add Dockerfile & fix README bug
- Loading branch information
Showing
2 changed files
with
52 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters