diff --git a/flux/Dockerfile b/flux/Dockerfile index 0085adb..0c2dbdb 100644 --- a/flux/Dockerfile +++ b/flux/Dockerfile @@ -10,9 +10,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ WORKDIR /app # PyTorch CUDA-Wheels zuerst, damit diffusers nicht CPU-Torch zieht. -# Versionsmatrix wie bei f5tts gehalten (cu121, Torch 2.3.1) — gleicher -# Treiber-Footprint, gleicher HF-Cache-Pfad. -RUN pip3 install --no-cache-dir torch==2.3.1 \ +# Torch 2.4+ ist Pflicht: aktuelle transformers (>=4.43, von diffusers +# transitiv reingezogen) lehnt aeltere Versionen ab ("Disabling PyTorch +# because PyTorch >= 2.4 is required"). torchvision wird von den +# CLIP-/Siglip-ImageProcessors verlangt, sonst Fallback auf PIL + +# Warnings. cu121 bleibt — passt zum CUDA 12.2 Base-Image. +RUN pip3 install --no-cache-dir \ + torch==2.4.1 torchvision==0.19.1 \ --index-url https://download.pytorch.org/whl/cu121 COPY requirements.txt .