forked from LiveCarta/ContentGeneration
Removed --system flag
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -33,7 +33,7 @@ WORKDIR /app
|
||||
# Install app Python dependencies first for better layer caching.
|
||||
COPY pyproject.toml README.md /app/
|
||||
|
||||
RUN uv sync --system --no-dev --no-install-project
|
||||
RUN uv sync --no-dev --no-install-project
|
||||
|
||||
# Ensure HunyuanVideo source exists in the image.
|
||||
ARG HUNYUAN_REPO=https://github.com/Tencent-Hunyuan/HunyuanVideo-1.5.git
|
||||
@@ -43,15 +43,15 @@ RUN if [ ! -f /app/HunyuanVideo-1.5/requirements.txt ]; then \
|
||||
fi
|
||||
|
||||
# Install HunyuanVideo dependencies from upstream README guidance.
|
||||
RUN uv pip install --system -r /app/HunyuanVideo-1.5/requirements.txt \
|
||||
&& uv pip install --system --upgrade tencentcloud-sdk-python \
|
||||
&& uv pip install --system sgl-kernel==0.3.18
|
||||
RUN uv pip install -r /app/HunyuanVideo-1.5/requirements.txt \
|
||||
&& uv pip install --upgrade tencentcloud-sdk-python \
|
||||
&& uv pip install sgl-kernel==0.3.18
|
||||
|
||||
# Optional attention backends from Hunyuan docs.
|
||||
# Build with: --build-arg INSTALL_OPTIONAL_ATTENTION=1
|
||||
ARG INSTALL_OPTIONAL_ATTENTION=0
|
||||
RUN if [ "$INSTALL_OPTIONAL_ATTENTION" = "1" ]; then \
|
||||
uv pip install --system flash-attn --no-build-isolation && \
|
||||
uv pip install flash-attn --no-build-isolation && \
|
||||
git clone --depth 1 https://github.com/Tencent-Hunyuan/flex-block-attn.git /tmp/flex-block-attn && \
|
||||
cd /tmp/flex-block-attn && git submodule update --init --recursive && python setup.py install && \
|
||||
git clone --depth 1 https://github.com/cooper1637/SageAttention.git /tmp/SageAttention && \
|
||||
|
||||
Reference in New Issue
Block a user