Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +7 -5
Dockerfile
CHANGED
|
@@ -7,18 +7,20 @@ RUN apt-get update && \
|
|
| 7 |
|
| 8 |
RUN python3 -m pip install --upgrade pip
|
| 9 |
|
| 10 |
-
WORKDIR /app
|
| 11 |
-
COPY . .
|
| 12 |
-
|
| 13 |
RUN pip install --no-cache-dir torch==2.4.0+cu121 torchvision==0.19.0 --extra-index-url https://download.pytorch.org/whl/cu121
|
| 14 |
-
|
| 15 |
RUN pip install --no-cache-dir \
|
| 16 |
"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"
|
| 17 |
-
|
| 18 |
RUN pip install --no-cache-dir \
|
| 19 |
diffusers transformers accelerate safetensors opencv-python datasets dataclasses \
|
| 20 |
scikit-learn huggingface-hub tensorboard peft ftfy jinja2 bitsandbytes
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
RUN mkdir /.cache && chmod 777 /.cache && chmod 777 /app
|
| 23 |
|
| 24 |
CMD ["python3", "train.py"]
|
|
|
|
| 7 |
|
| 8 |
RUN python3 -m pip install --upgrade pip
|
| 9 |
|
|
|
|
|
|
|
|
|
|
| 10 |
RUN pip install --no-cache-dir torch==2.4.0+cu121 torchvision==0.19.0 --extra-index-url https://download.pytorch.org/whl/cu121
|
|
|
|
| 11 |
RUN pip install --no-cache-dir \
|
| 12 |
"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"
|
|
|
|
| 13 |
RUN pip install --no-cache-dir \
|
| 14 |
diffusers transformers accelerate safetensors opencv-python datasets dataclasses \
|
| 15 |
scikit-learn huggingface-hub tensorboard peft ftfy jinja2 bitsandbytes
|
| 16 |
|
| 17 |
+
WORKDIR /app
|
| 18 |
+
COPY . .
|
| 19 |
+
|
| 20 |
+
ENV PYTHONUNBUFFERED=1
|
| 21 |
+
ENV TQDM_POSITION=-1
|
| 22 |
+
ENV TQDM_MININTERVAL=1
|
| 23 |
+
|
| 24 |
RUN mkdir /.cache && chmod 777 /.cache && chmod 777 /app
|
| 25 |
|
| 26 |
CMD ["python3", "train.py"]
|