Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
diffusers as optinal during install
Browse files Browse the repository at this point in the history
taocd committed Dec 5, 2024
1 parent 11c6249 commit 23ce94d
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -30,7 +30,6 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install build
pip install ".[diffusers]"
- name: Build package
run: python -m build
- name: Publish package
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -189,18 +189,21 @@ Currently, if you need the parallel version of ComfyUI, please fill in this [app

### 1. Install from pip

We set diffusers as an optional installation requirement.
First, if you only use the USP interface, you don't need to install diffusers. Second, different models have different requirements for diffusers - for example, the latest models may need to be installed from the diffusers main branch.

```
pip install xfuser
# Or optionally, with flash_attn
pip install "xfuser[flash_attn]"
# Or optionally, with diffusers
pip install "xfuser[diffusers]"
```

### 2. Install from source

```
pip install -e .
# Or optionally, with flash_attn
pip install -e ".[flash_attn]"
# Or optionally, with diffusers
pip install -e ".[diffusers]"
```

Note that we use two self-maintained packages:

0 comments on commit 23ce94d

Please sign in to comment.