@@ -15,6 +15,7 @@ COPY ./patches/xinference_device_utils.patch /tmp/
1515COPY ./patches/comfyui_for_multi_arc.patch /tmp/
1616COPY ./patches/comfyui_voxcpm_for_xpu.patch /tmp/
1717COPY ./patches/comfyui_hunyuan3d_for_xpu.patch /tmp/
18+ COPY ./patches/sglang_diffusion_for_multi_arc.patch /tmp/
1819
1920
2021# Add Intel oneAPI repo and PPA for GPU support
@@ -86,24 +87,26 @@ RUN wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRO
8687 git apply /tmp/comfyui_voxcpm_for_xpu.patch && \
8788 pip install -r requirements.txt && \
8889 cd .. && \
89- git clone https://github.com/visualbruno/ComfyUI-Hunyuan3d-2-1.git && \
90- cd ComfyUI-Hunyuan3d-2-1 && \
91- git checkout 9d7ef32509101495a7840b3ae8e718c8d1183305 && \
92- git apply /tmp/comfyui_hunyuan3d_for_xpu.patch && \
93- pip install bigdl-core==2.4.0b1 rembg realesrgan && \
94- pip install -r requirements.txt && \
95- cd hy3dpaint/custom_rasterizer && \
96- python setup.py install && \
97- cd ../DifferentiableRenderer && \
98- python setup.py install && \
99- cd /llm/ComfyUI/custom_nodes && \
10090 git clone https://github.com/billwuhao/ComfyUI_IndexTTS.git && \
10191 cd ComfyUI_IndexTTS && \
10292 pip install -r requirements.txt && \
10393# Install Xinference
10494 pip install "xinference[transformers]" && \
10595 patch /usr/local/lib/python3.10/dist-packages/xinference/device_utils.py < /tmp/xinference_device_utils.patch && \
10696 pip install kokoro Jinja2==3.1.6 jieba ordered-set pypinyin cn2an pypinyin-dict && \
97+ # Install SGlang Diffusion
98+ cd /llm && \
99+ git clone https://github.com/sgl-project/sglang.git && \
100+ cd sglang && \
101+ git checkout 236a7c237002250b148c79bd93780d870b8b50d2 && \
102+ git apply /tmp/sglang_diffusion_for_multi_arc.patch && \
103+ pip install -e "python[diffusion]" && \
104+ pip install triton==3.5.0 && \
105+ pip install pytorch-triton-xpu==3.5.0 --index-url https://download.pytorch.org/whl/xpu --force-reinstall && \
106+ cd /llm && \
107+ git clone https://github.com/sgl-project/sgl-kernel-xpu.git && \
108+ cd sgl-kernel-xpu && \
109+ pip install -v . && \
107110 # Clean
108111 rm -rf /tmp/*
109112RUN cd /llm/ComfyUI/custom_nodes && \
@@ -114,5 +117,8 @@ RUN cd /llm/ComfyUI/custom_nodes && \
114117COPY ./workflows/* /llm/ComfyUI/user/default/workflows/
115118COPY ./example_inputs/* /llm/ComfyUI/input/
116119COPY ./tools/* /llm/tools/
120+ COPY ./entrypoints/* /llm/entrypoints/
121+
122+ RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1
117123
118- WORKDIR /llm/ComfyUI
124+ WORKDIR /llm/entrypoints
0 commit comments