forked from Stability-AI/stablediffusion
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf1d67a
commit 083f326
Showing
2 changed files
with
23 additions
and
1 deletion.
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,21 @@ | ||
FROM pytorch/pytorch:1.12.1-cuda11.3-cudnn8-devel | ||
|
||
RUN apt update && apt install --yes git ffmpeg libsm6 libxext6 | ||
|
||
# Create conda environment | ||
RUN git clone https://github.com/Stability-AI/stablediffusion.git | ||
|
||
WORKDIR /workspace/stablediffusion/ | ||
|
||
# Overwrite the environment.yaml file | ||
COPY environment.yaml . | ||
RUN conda env create -f environment.yaml | ||
|
||
# Make RUN commands use the new environment: | ||
SHELL ["conda", "run", "-n", "ldm", "/bin/bash", "-c"] | ||
|
||
# Install xformers for memory efficient flash attention | ||
RUN conda install xformers -c xformers/label/dev | ||
|
||
RUN conda init bash | ||
RUN echo "conda activate ldm" >> $HOME/.bashrc |
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