Spaces:
Runtime error
Runtime error
Create Dockerfile
Browse files- Dockerfile +49 -0
Dockerfile
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM runpod/pytorch:2.2.1-py3.10-cuda12.1.1-devel-ubuntu22.04
|
2 |
+
WORKDIR /content
|
3 |
+
ENV PATH="/home/camenduru/.local/bin:${PATH}"
|
4 |
+
|
5 |
+
RUN adduser --disabled-password --gecos '' camenduru && \
|
6 |
+
adduser camenduru sudo && \
|
7 |
+
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && \
|
8 |
+
chown -R camenduru:camenduru /content && \
|
9 |
+
chmod -R 777 /content && \
|
10 |
+
chown -R camenduru:camenduru /home && \
|
11 |
+
chmod -R 777 /home && \
|
12 |
+
apt update -y && add-apt-repository -y ppa:git-core/ppa && apt update -y && apt install -y aria2 git git-lfs unzip ffmpeg
|
13 |
+
|
14 |
+
USER camenduru
|
15 |
+
|
16 |
+
RUN pip install torch==2.5.0+cu124 torchvision==0.20.0+cu124 torchaudio==2.5.0+cu124 torchtext==0.18.0 torchdata==0.8.0 --extra-index-url https://download.pytorch.org/whl/cu124 && \
|
17 |
+
pip install xformers==0.0.28.post2 https://github.com/camenduru/wheels/releases/download/torch-2.5.0-cu124/flash_attn-2.6.3-cp310-cp310-linux_x86_64.whl && \
|
18 |
+
pip install opencv-python imageio imageio-ffmpeg ffmpeg-python av runpod && \
|
19 |
+
pip install torchsde einops diffusers transformers accelerate peft timm && \
|
20 |
+
git clone https://github.com/comfyanonymous/ComfyUI /content/ComfyUI && \
|
21 |
+
git clone https://github.com/ltdrdata/ComfyUI-Manager /content/ComfyUI/custom_nodes/ComfyUI-Manager && \
|
22 |
+
git clone https://github.com/kijai/ComfyUI-CogVideoXWrapper /content/ComfyUI/custom_nodes/ComfyUI-CogVideoXWrapper && \
|
23 |
+
git clone https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite /content/ComfyUI/custom_nodes/ComfyUI-VideoHelperSuite && \
|
24 |
+
git clone https://github.com/kijai/ComfyUI-KJNodes /content/ComfyUI/custom_nodes/ComfyUI-KJNodes && \
|
25 |
+
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/camenduru/FLUX.1-dev/resolve/main/t5xxl_fp16.safetensors -d /content/ComfyUI/models/clip -o t5xxl_fp16.safetensors && \
|
26 |
+
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/camenduru/DimensionX/resolve/main/orbit_left_lora_weights.safetensors -d /content/ComfyUI/models/CogVideo/loras -o orbit_left_lora_weights.safetensors && \
|
27 |
+
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/camenduru/DimensionX/resolve/main/orbit_up_lora_weights.safetensors -d /content/ComfyUI/models/CogVideo/loras -o orbit_up_lora_weights.safetensors && \
|
28 |
+
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/vdo/CogVideoX-5b-I2V/raw/main/scheduler/scheduler_config.json -d /content/ComfyUI/models/CogVideo/CogVideoX-5b-I2V/scheduler -o scheduler_config.json && \
|
29 |
+
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/vdo/CogVideoX-5b-I2V/raw/main/text_encoder/config.json -d /content/ComfyUI/models/CogVideo/CogVideoX-5b-I2V/text_encoder -o config.json && \
|
30 |
+
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/vdo/CogVideoX-5b-I2V/resolve/main/text_encoder/model-00001-of-00002.safetensors -d /content/ComfyUI/models/CogVideo/CogVideoX-5b-I2V/text_encoder -o model-00001-of-00002.safetensors && \
|
31 |
+
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/vdo/CogVideoX-5b-I2V/resolve/main/text_encoder/model-00002-of-00002.safetensors -d /content/ComfyUI/models/CogVideo/CogVideoX-5b-I2V/text_encoder -o model-00002-of-00002.safetensors && \
|
32 |
+
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/vdo/CogVideoX-5b-I2V/raw/main/text_encoder/model.safetensors.index.json -d /content/ComfyUI/models/CogVideo/CogVideoX-5b-I2V/text_encoder -o model.safetensors.index.json && \
|
33 |
+
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/vdo/CogVideoX-5b-I2V/raw/main/tokenizer/added_tokens.json -d /content/ComfyUI/models/CogVideo/CogVideoX-5b-I2V/tokenizer -o added_tokens.json && \
|
34 |
+
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/vdo/CogVideoX-5b-I2V/raw/main/tokenizer/special_tokens_map.json -d /content/ComfyUI/models/CogVideo/CogVideoX-5b-I2V/tokenizer -o special_tokens_map.json && \
|
35 |
+
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/vdo/CogVideoX-5b-I2V/resolve/main/tokenizer/spiece.model -d /content/ComfyUI/models/CogVideo/CogVideoX-5b-I2V/tokenizer -o spiece.model && \
|
36 |
+
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/vdo/CogVideoX-5b-I2V/raw/main/tokenizer/tokenizer_config.json -d /content/ComfyUI/models/CogVideo/CogVideoX-5b-I2V/tokenizer -o tokenizer_config.json && \
|
37 |
+
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/vdo/CogVideoX-5b-I2V/raw/main/transformer/config.json -d /content/ComfyUI/models/CogVideo/CogVideoX-5b-I2V/transformer -o config.json && \
|
38 |
+
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/vdo/CogVideoX-5b-I2V/resolve/main/transformer/diffusion_pytorch_model-00001-of-00003.safetensors -d /content/ComfyUI/models/CogVideo/CogVideoX-5b-I2V/transformer -o diffusion_pytorch_model-00001-of-00003.safetensors && \
|
39 |
+
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/vdo/CogVideoX-5b-I2V/resolve/main/transformer/diffusion_pytorch_model-00002-of-00003.safetensors -d /content/ComfyUI/models/CogVideo/CogVideoX-5b-I2V/transformer -o diffusion_pytorch_model-00002-of-00003.safetensors && \
|
40 |
+
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/vdo/CogVideoX-5b-I2V/resolve/main/transformer/diffusion_pytorch_model-00003-of-00003.safetensors -d /content/ComfyUI/models/CogVideo/CogVideoX-5b-I2V/transformer -o diffusion_pytorch_model-00003-of-00003.safetensors && \
|
41 |
+
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/vdo/CogVideoX-5b-I2V/raw/main/transformer/diffusion_pytorch_model.safetensors.index.json -d /content/ComfyUI/models/CogVideo/CogVideoX-5b-I2V/transformer -o diffusion_pytorch_model.safetensors.index.json && \
|
42 |
+
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/vdo/CogVideoX-5b-I2V/raw/main/vae/config.json -d /content/ComfyUI/models/CogVideo/CogVideoX-5b-I2V/vae -o config.json && \
|
43 |
+
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/vdo/CogVideoX-5b-I2V/resolve/main/vae/diffusion_pytorch_model.safetensors -d /content/ComfyUI/models/CogVideo/CogVideoX-5b-I2V/vae -o diffusion_pytorch_model.safetensors && \
|
44 |
+
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/vdo/CogVideoX-5b-I2V/raw/main/configuration.json -d /content/ComfyUI/models/CogVideo/CogVideoX-5b-I2V -o configuration.json && \
|
45 |
+
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/vdo/CogVideoX-5b-I2V/raw/main/model_index.json -d /content/ComfyUI/models/CogVideo/CogVideoX-5b-I2V -o model_index.json
|
46 |
+
|
47 |
+
COPY ./worker_runpod.py /content/ComfyUI/worker_runpod.py
|
48 |
+
WORKDIR /content/ComfyUI
|
49 |
+
CMD python worker_runpod.py
|