Download exp_code/1_benchmark/Open-Sora_v12/Dockerfile from SuperCS/useful_code: direct link, hf CLI and curl.
- Browser
- Download file 993 Bytes
-
https://huggingface.co/datasets/SuperCS/useful_code/resolve/main/exp_code/1_benchmark/Open-Sora_v12/Dockerfile
- Command line
-
hf download hf://datasets/SuperCS/useful_code/exp_code/1_benchmark/Open-Sora_v12/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/datasets/SuperCS/useful_code/resolve/main/exp_code/1_benchmark/Open-Sora_v12/Dockerfile
993 Bytes
| 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" | |
| # Set the working directory | |
| WORKDIR /workspace/Open-Sora | |
| # Copy the current directory contents into the container at /workspace/Open-Sora | |
| COPY . . | |
| # 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 pip install -v . | |