nroggendorff commited on
Commit
8412424
·
verified ·
1 Parent(s): 748af01

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -10
Dockerfile CHANGED
@@ -8,7 +8,8 @@ RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
8
 
9
  RUN pip install --no-cache-dir --upgrade pip && \
10
  pip install --no-cache-dir \
11
- "git+https://github.com/huggingface/diffusers.git@main#egg=diffusers" \
 
12
  transformers \
13
  accelerate \
14
  safetensors \
@@ -24,18 +25,12 @@ RUN pip install --no-cache-dir --upgrade pip && \
24
  torchvision \
25
  bitsandbytes \
26
  torch \
27
- --extra-index-url https://download.pytorch.org/whl/cu121
 
 
28
 
29
  RUN mkdir /.cache && chmod 777 /.cache && chmod 777 /app
30
 
31
- ARG OUTPUT_DIR=fry-diffusion
32
- ARG INPUT_DS=nroggendorff/fries
33
- ARG BASE=glides/illustriousxl
34
-
35
- ENV OUTPUT_DIR=${OUTPUT_DIR} \
36
- INPUT_DS=${INPUT_DS} \
37
- BASE=${BASE}
38
-
39
  RUN mkdir /app/${OUTPUT_DIR} && chmod 777 /app/${OUTPUT_DIR}
40
 
41
  RUN accelerate config default
 
8
 
9
  RUN pip install --no-cache-dir --upgrade pip && \
10
  pip install --no-cache-dir \
11
+ "git+https://github.com/huggingface/diffusers.git@main#egg=diffusers" && \
12
+ pip install --no-cache-dir --prefer-binary \
13
  transformers \
14
  accelerate \
15
  safetensors \
 
25
  torchvision \
26
  bitsandbytes \
27
  torch \
28
+ --extra-index-url https://download.pytorch.org/whl/cu121 && \
29
+ pip install --no-cache-dir \
30
+ "https://github.com/mjun0812/flash-attention-prebuild-wheels/releases/download/v0.3.11/flash_attn-2.8.0+cu121torch2.4-cp310-cp310-linux_x86_64.whl"
31
 
32
  RUN mkdir /.cache && chmod 777 /.cache && chmod 777 /app
33
 
 
 
 
 
 
 
 
 
34
  RUN mkdir /app/${OUTPUT_DIR} && chmod 777 /app/${OUTPUT_DIR}
35
 
36
  RUN accelerate config default