Skip to content

Add workaround for default attn_type#578

Merged
feifeibear merged 1 commit intoxdit-project:mainfrom
avjves:fix/default-attn-type
Oct 21, 2025
Merged

Add workaround for default attn_type#578
feifeibear merged 1 commit intoxdit-project:mainfrom
avjves:fix/default-attn-type

Conversation

@avjves
Copy link
Collaborator

@avjves avjves commented Oct 21, 2025

What?

Adds a workaround for allowing the default attn_type to be AttnType.FA for legacy reasons while still being able to run xDiT without yunchang installed.

Why?

As discussed in the issue #576 , for example Wan2.1 repo no longer works out-of-the-box with the xDiT, as it assumes the default value for attn_type to be AttnType.FA, which has been set to None by PR #559 .

How?

We set the default attn_type within init call itself, not as the default value. This keeps the support for Apple Silicon without interfering with legacy default values.

@feifeibear

Copy link
Collaborator

@feifeibear feifeibear left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@feifeibear feifeibear merged commit 9b64954 into xdit-project:main Oct 21, 2025
@jcaraban jcaraban mentioned this pull request Nov 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants