File tree 2 files changed +28
-1
lines changed 2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change
1
+ FROM pytorch/pytorch:2.5.1-cuda11.8-cudnn9-devel
2
+
3
+ ENV DEBIAN_FRONTEND=noninteractive \
4
+ PYTHONUNBUFFERED=1 \
5
+ CUDA_HOME=/usr/local/cuda \
6
+ PATH="$CUDA_HOME/bin:$PATH"
7
+
8
+ RUN apt-get update && apt-get install -y --no-install-recommends \
9
+ git \
10
+ curl \
11
+ ffmpeg \
12
+ libsm6 \
13
+ libxext6 \
14
+ && apt-get clean && rm -rf /var/lib/apt/lists/*
15
+
16
+ WORKDIR /workspace/
17
+
18
+ COPY requirements.txt /workspace/requirements.txt
19
+
20
+ RUN pip install --upgrade pip \
21
+ && pip install ninja \
22
+ && MAX_JOBS=1 pip install flash-attn --no-build-isolation \
23
+ && pip install -r requirements.txt \
24
+ && pip install opencv-fixer==0.2.5 \
25
+ && python -c "from opencv_fixer import AutoFix; AutoFix()"
26
+
27
+ CMD ["/bin/bash"]
Original file line number Diff line number Diff line change 16
16
from torch .utils .checkpoint import checkpoint
17
17
from PIL import Image
18
18
import numpy as np
19
- from torch .nn .attention .flex_attention import flex_attention
19
+ # from torch.nn.attention.flex_attention import flex_attention
20
20
21
21
import infinity .utils .dist as dist
22
22
from infinity .utils .dist import for_visualize
You can’t perform that action at this time.
0 commit comments