Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +14 -19
Dockerfile
CHANGED
|
@@ -67,7 +67,7 @@ RUN mkdir -p /home/user/.cache/models && ln -sf /home/user/.cache/models /app/mo
|
|
| 67 |
|
| 68 |
# ---------------- Sistema & Python ----------------
|
| 69 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 70 |
-
build-essential cmake git git-lfs curl wget ffmpeg
|
| 71 |
python3.10 python3.10-dev python3.10-distutils python3-pip \
|
| 72 |
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
| 73 |
|
|
@@ -75,10 +75,17 @@ RUN ln -sf /usr/bin/python3.10 /usr/bin/python3 && \
|
|
| 75 |
ln -sf /usr/bin/python3.10 /usr/bin/python && \
|
| 76 |
python3 -m pip install --upgrade pip
|
| 77 |
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
|
| 83 |
# FlashAttention 2.8.x
|
| 84 |
RUN pip install flash-attn==2.8.3 --no-build-isolation || \
|
|
@@ -90,7 +97,7 @@ RUN pip install flash-attn==2.8.3 --no-build-isolation || \
|
|
| 90 |
RUN pip install --no-cache-dir diffusers==0.31.0 transformers==4.44.2 accelerate==0.34.2 omegaconf==2.3.0
|
| 91 |
|
| 92 |
# Opcional: seu fork de otimiza莽玫es
|
| 93 |
-
RUN pip install -U git+https://github.com/carlex22/diffusers-aduc-sdr
|
| 94 |
|
| 95 |
# ---------------- Reposit贸rios auxiliares ----------------
|
| 96 |
RUN git clone https://github.com/bytedance-seed/VINCIE.git && \
|
|
@@ -111,19 +118,8 @@ COPY requirements.txt ./requirements.txt
|
|
| 111 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 112 |
|
| 113 |
|
| 114 |
-
# ---------------- PyTorch cu128 (pinado) ----------------
|
| 115 |
-
RUN pip install --index-url https://download.pytorch.org/whl/cu128 \
|
| 116 |
-
torch==2.8.0+cu128 torchvision==0.23.0+cu128 torchaudio==2.8.0+cu128
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
RUN pip uninstall -y triton || true && \
|
| 121 |
-
pip install -v --no-build-isolation triton==3.4.0
|
| 122 |
-
|
| 123 |
-
|
| 124 |
RUN pip install --upgrade bitsandbytes
|
| 125 |
|
| 126 |
-
|
| 127 |
# Scripts e configs
|
| 128 |
COPY info.sh ./info.sh
|
| 129 |
COPY start.sh ./start.sh
|
|
@@ -146,10 +142,9 @@ ENV TORCH_HOME=/data/.cache/torch
|
|
| 146 |
ENV HF_DATASETS_CACHE=/data/.cache/datasets
|
| 147 |
ENV TRANSFORMERS_CACHE=/data/.cache/transformers
|
| 148 |
ENV DIFFUSERS_CACHE=/data/.cache/diffusers
|
| 149 |
-
ENV FLASH_ATTENTION_TRITON_AMD_ENABLE="TRUE"
|
| 150 |
|
| 151 |
|
| 152 |
|
| 153 |
# ---------------- Entry ----------------
|
| 154 |
ENTRYPOINT ["./start.sh"]
|
| 155 |
-
CMD ["gradio"]
|
|
|
|
| 67 |
|
| 68 |
# ---------------- Sistema & Python ----------------
|
| 69 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 70 |
+
build-essential cmake git git-lfs curl wget ffmpeg ninja-build \
|
| 71 |
python3.10 python3.10-dev python3.10-distutils python3-pip \
|
| 72 |
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
| 73 |
|
|
|
|
| 75 |
ln -sf /usr/bin/python3.10 /usr/bin/python && \
|
| 76 |
python3 -m pip install --upgrade pip
|
| 77 |
|
| 78 |
+
|
| 79 |
+
# ---------------- PyTorch cu128 (pinado) ----------------
|
| 80 |
+
RUN pip install --index-url https://download.pytorch.org/whl/cu128 \
|
| 81 |
+
torch==2.8.0+cu128 torchvision==0.23.0+cu128 torchaudio==2.8.0+cu128
|
| 82 |
+
|
| 83 |
+
# ---------------- Toolchain, Triton, FA2 (sem bnb) ----------------
|
| 84 |
+
RUN pip install packaging ninja cmake pybind11 scikit-build cython hf_transfer numpy==1.24.4
|
| 85 |
+
|
| 86 |
+
# Triton 3.x (sem triton.ops)
|
| 87 |
+
RUN pip uninstall -y triton || true && \
|
| 88 |
+
pip install -v --no-build-isolation triton==3.4.0
|
| 89 |
|
| 90 |
# FlashAttention 2.8.x
|
| 91 |
RUN pip install flash-attn==2.8.3 --no-build-isolation || \
|
|
|
|
| 97 |
RUN pip install --no-cache-dir diffusers==0.31.0 transformers==4.44.2 accelerate==0.34.2 omegaconf==2.3.0
|
| 98 |
|
| 99 |
# Opcional: seu fork de otimiza莽玫es
|
| 100 |
+
# RUN pip install -U git+https://github.com/carlex22/diffusers-aduc-sdr
|
| 101 |
|
| 102 |
# ---------------- Reposit贸rios auxiliares ----------------
|
| 103 |
RUN git clone https://github.com/bytedance-seed/VINCIE.git && \
|
|
|
|
| 118 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 119 |
|
| 120 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
RUN pip install --upgrade bitsandbytes
|
| 122 |
|
|
|
|
| 123 |
# Scripts e configs
|
| 124 |
COPY info.sh ./info.sh
|
| 125 |
COPY start.sh ./start.sh
|
|
|
|
| 142 |
ENV HF_DATASETS_CACHE=/data/.cache/datasets
|
| 143 |
ENV TRANSFORMERS_CACHE=/data/.cache/transformers
|
| 144 |
ENV DIFFUSERS_CACHE=/data/.cache/diffusers
|
|
|
|
| 145 |
|
| 146 |
|
| 147 |
|
| 148 |
# ---------------- Entry ----------------
|
| 149 |
ENTRYPOINT ["./start.sh"]
|
| 150 |
+
CMD ["gradio"]
|