-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add opensora dockerfile * update README
- Loading branch information
1 parent
42f0449
commit 8db6870
Showing
3 changed files
with
56 additions
and
0 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
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,25 @@ | ||
FROM hpcaitech/pytorch-cuda:2.1.0-12.1.0 | ||
|
||
# metainformation | ||
LABEL org.opencontainers.image.source = "https://github.com/hpcaitech/Open-Sora" | ||
LABEL org.opencontainers.image.licenses = "Apache License 2.0" | ||
LABEL org.opencontainers.image.base.name = "docker.io/library/hpcaitech/pytorch-cuda:2.1.0-12.1.0" | ||
|
||
COPY . /workspace/Open-Sora | ||
|
||
# inatall library dependencies | ||
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y | ||
|
||
# install flash attention | ||
RUN pip install flash-attn --no-build-isolation | ||
|
||
# install apex | ||
RUN pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation --config-settings "--build-option=--cpp_ext" --config-settings "--build-option=--cuda_ext" git+https://github.com/NVIDIA/apex.git | ||
|
||
# install xformers | ||
RUN pip install xformers --index-url https://download.pytorch.org/whl/cu121 | ||
|
||
# install this project | ||
RUN git clone https://github.com/hpcaitech/Open-Sora && \ | ||
cd Open-Sora && \ | ||
pip install -v . |
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