Skip to content

Conversation

@a-r-r-o-w
Copy link
Contributor

What does this PR do?

Context: https://github.com/huggingface/diffusers/actions/runs/10414785958/job/28844261331#logs

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@DN6

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@yiyixuxu yiyixuxu requested a review from DN6 August 17, 2024 06:11
key = attn.head_to_batch_dim(key).contiguous()
value = attn.head_to_batch_dim(value).contiguous()

if attn.norm_q is not None:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Which test is this meant to fix?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The CogVideoX tests. This was needed because we added QK norm in Attn2.0 and FusedAttn2.0.

However, after the new CogVideoX-5B PR, I think we can no longer support XFormers due to needing a custom attention processor. Maybe we can skip the test here because otherwise we'd need a custom XFormers processor variant for it?


if test_mean_pixel_difference:
assert_mean_pixel_difference(output_with_offload[0], output_without_offload[0])
if torch.is_tensor(output_without_offload):
Copy link
Collaborator

Choose a reason for hiding this comment

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

If the issue is the output shapes it would be better to redefine the tests for that output shape inside the pipeline test modules. Similar to what's done here:

def test_xformers_attention_forwardGenerator_pass(self):

@DN6 DN6 merged commit 0ec64fe into main Aug 22, 2024
yiyixuxu pushed a commit that referenced this pull request Aug 24, 2024
* fix xformers tests

* remove unnecessary modifications to cogvideox tests

* update
sayakpaul pushed a commit that referenced this pull request Dec 23, 2024
* fix xformers tests

* remove unnecessary modifications to cogvideox tests

* update
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.

4 participants