Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.add deepspeed,diffusers and nvidia-pyindex whl file for pip install… #165

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,30 @@ docker image ls
docker run -dit --gpus all --init --net=host --uts=host --ipc=host --name hunyuandit --security-opt=seccomp=unconfined --ulimit=stack=67108864 --ulimit=memlock=-1 --privileged docker_image_tag
```

### Installation Guide for windows
build Windows environments with python=3.10 and torch=2.1.2 cuda=12.1 for mathing comfyUI
```shell
# 1. Prepare conda environment
conda create -n HunyuanDiT python==3.10.11

# 2. Activate the environment
conda activate HunyuanDiT

# 3. Install pytorch
pip install torch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 --index-url https://download.pytorch.org/whl/cu121

# 4. Install deepspeed diffusers and nvidia-pyindex
pip install deepspeed-0.6.3-py3-none-any.whl
pip install diffusers-0.21.2-py3-none-any.whl
pip install nvidia_pyindex-1.0.9-py3-none-any.whl

# 5. Install pip dependencies
pip install -r requirements.txt

# 6. Install flash attention v2 for acceleration (requires CUDA 11.6 or above)
pip install git+https://github.com/Dao-AILab/[email protected]
```

## 🧱 Download Pretrained Models
To download the model, first install the huggingface-cli. (Detailed instructions are available [here](https://huggingface.co/docs/huggingface_hub/guides/cli).)

Expand Down
Binary file added deepspeed-0.6.3-py3-none-any.whl
Binary file not shown.
Binary file added diffusers-0.21.2-py3-none-any.whl
Binary file not shown.
4 changes: 2 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ channels:
- pytorch
- nvidia
dependencies:
- python=3.8.12
- pytorch=1.13.1
- python=3.10.11
- pytorch=2.1.2+cu121
- pip
Binary file added nvidia_pyindex-1.0.9-py3-none-any.whl
Binary file not shown.