Skip to content

Commit

Permalink
[hotfix] yunchang 0.4.0 import error (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
feifeibear authored Nov 15, 2024
1 parent dcd8310 commit 748677f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ Furthermore, xDiT incorporates optimization techniques from [DiTFastAttn](https:

| Model Name | CFG | SP | PipeFusion |
| --- | --- | --- | --- |
| [🎬 Mochi-1](https://github.com/xdit-project/mochi-xdit) | ✔️ | ✔️ ||
| [🎬 CogVideoX](https://huggingface.co/THUDM/CogVideoX-2b) | ✔️ | ✔️ ||
| [🎬 Latte](https://huggingface.co/maxin-cn/Latte-1) || ✔️ ||
| [🔵 HunyuanDiT-v1.2-Diffusers](https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers) | ✔️ | ✔️ | ✔️ |
Expand Down Expand Up @@ -154,27 +155,27 @@ Currently, if you need the parallel version of ComfyUI, please fill in this [app

<h3 id="perf_cogvideox">CogVideo</h3>

1. [CogVideo Performance Report](./docs/performance/cogvideo.md)
2. [CogVideo Performance Report](./docs/performance/cogvideo.md)

<h3 id="perf_flux">Flux.1</h3>

2. [Flux Performance Report](./docs/performance/flux.md)
3. [Flux Performance Report](./docs/performance/flux.md)

<h3 id="perf_latte">Latte</h3>

3. [Latte Performance Report](./docs/performance/latte.md)
4. [Latte Performance Report](./docs/performance/latte.md)

<h3 id="perf_hunyuandit">HunyuanDiT</h3>

4. [HunyuanDiT Performance Report](./docs/performance/hunyuandit.md)
5. [HunyuanDiT Performance Report](./docs/performance/hunyuandit.md)

<h3 id="perf_sd3">SD3</h3>

5. [Stable Diffusion 3 Performance Report](./docs/performance/sd3.md)
6. [Stable Diffusion 3 Performance Report](./docs/performance/sd3.md)

<h3 id="perf_pixart">Pixart</h3>

6. [Pixart-Alpha Performance Report (legacy)](./docs/performance/pixart_alpha_legacy.md)
7. [Pixart-Alpha Performance Report (legacy)](./docs/performance/pixart_alpha_legacy.md)


<h2 id="QuickStart">🚀 QuickStart</h2>
Expand Down
10 changes: 9 additions & 1 deletion xfuser/core/long_ctx_attention/ulysses/attn_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@
from yunchang import UlyssesAttention
from yunchang.globals import PROCESS_GROUP
from yunchang.comm.all_to_all import SeqAllToAll4D
from yunchang.ulysses.attn_layer import torch_attn
try:
# yunchang > 0.4.0
from yunchang.ulysses.attn_layer import torch_attn
except:
print(f"detect you are not use the latest yunchang. Please install yunchang>=0.4.0")
try:
from yunchang.kernels.attention import torch_attn
except:
raise ImportError(f"yunchang import torch_attn error")


class xFuserUlyssesAttention(UlyssesAttention):
Expand Down

0 comments on commit 748677f

Please sign in to comment.