Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 27 additions & 6 deletions docker/pyt_hy_video.ubuntu.amd.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ ARG work_dir=/hunyuanvideo

WORKDIR $work_dir

RUN pip install diffusers==0.32.2 distvae yunchang==0.6.0 opencv-python accelerate
#RUN pip install diffusers==0.32.2 distvae yunchang==0.6.0 opencv-python accelerate
RUN pip install transformers==4.56.2 diffusers==0.32.2 distvae yunchang==0.6.0 opencv-python-headless accelerate
RUN pip install imageio imageio-ffmpeg
RUN pip install beautifulsoup4==4.12.3
RUN pip install sentencepiece==0.1.99
RUN pip install sentencepiece>=0.2.0
RUN pip install numpy==1.26.4

# xDiT repository
Expand All @@ -19,7 +20,7 @@ RUN git clone https://github.com/xdit-project/xDiT && \
pip install --no-deps -e .

# flash attn
ARG FA_SHA="22c0358"
ARG FA_SHA="83f9e450cd10e20701fb109db9c7703d376f282b"
ARG FA_REPO="https://github.com/ROCm/flash-attention.git"
ARG PYTORCH_ROCM_ARCH="gfx942"
RUN git clone ${FA_REPO} && \
Expand All @@ -28,12 +29,32 @@ RUN git clone ${FA_REPO} && \
git submodule update --init && \
GPU_ARCHS=${PYTORCH_ROCM_ARCH} python3 setup.py bdist_wheel --dist-dir=dist && \
pip install dist/*.whl;
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
pkg-config \
xxd \
git \
python3-dev \
&& rm -rf /var/lib/apt/lists/*

# RPD profiling
#RUN apt update && \
# apt install -y sqlite3 libsqlite3-dev libfmt-dev
#RUN git clone https://github.com/ROCmSoftwarePlatform/rocmProfileData && \
# cd rocmProfileData && \
# make && make install && \
# cd rocpd_python && python setup.py install && cd .. && \
# cd rpd_tracer && python setup.py install && cd ..


# RPD profiling
RUN apt update && \
apt install -y sqlite3 libsqlite3-dev libfmt-dev
RUN git clone https://github.com/ROCmSoftwarePlatform/rocmProfileData && \
cd rocmProfileData && \
make && make install && \
cd rocpd_python && python setup.py install && cd .. && \
cd rpd_tracer && python setup.py install && cd ..
make && \
make install -C rocpd_python && \
make install -C rpd_tracer && \
ldconfig

2 changes: 1 addition & 1 deletion docker/pyt_mochi_inference.ubuntu.amd.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ RUN mkdir -p $WORKSPACE_DIR
WORKDIR $WORKSPACE_DIR

ARG FA_REPO="https://github.com/Dao-AILab/flash-attention.git"
ARG PYTORCH_ROCM_ARCH=gfx90a;gfx942;gfx1100;gfx1101;gfx1200;gfx1201
ARG PYTORCH_ROCM_ARCH=gfx950;gfx90a;gfx942;gfx1100;gfx1101;gfx1200;gfx1201
RUN git clone ${FA_REPO}
RUN cd flash-attention \
&& git submodule update --init \
Expand Down