Skip to content

[CI] Fix BnB tests#13481

Open
DN6 wants to merge 1 commit intomainfrom
bnb-test-fixes
Open

[CI] Fix BnB tests#13481
DN6 wants to merge 1 commit intomainfrom
bnb-test-fixes

Conversation

@DN6
Copy link
Copy Markdown
Collaborator

@DN6 DN6 commented Apr 15, 2026

What does this PR do?

Fix a few failures in the BnB test suite.

Fixes # (issue)

Before submitting

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.

@github-actions github-actions bot added models tests size/M PR with diff < 200 LOC labels Apr 15, 2026

# Flatten T and N so the K/V projections see a 3D tensor; BnB int8 matmul only
# accepts 2D/3D inputs and would otherwise fail on this 4D activation.
encoder_hidden_states = encoder_hidden_states.flatten(1, 2) # [B, T, N, C] --> [B, T * N, C]
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@dg845 Small shape change here to make WanAnimate compatible with BnB 8bit kernels.

@DN6 DN6 requested review from dg845 and sayakpaul April 15, 2026 10:26
@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

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.

Copy link
Copy Markdown
Collaborator

@dg845 dg845 left a comment

Choose a reason for hiding this comment

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

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

models size/M PR with diff < 200 LOC tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants