Skip to content

Conversation

@sayakpaul
Copy link
Member

@sayakpaul sayakpaul commented Dec 12, 2025

What does this PR do?

We should be able to error out when an attention backend isn't supported with CP.

Refer to #12829 (comment) and #12829 (comment).

Additionally, when we specify parallel_config to from_pretrained() and then set an attention backend through set_attention_backend() (which is CP-incompatible), it goes through silently.

This PR eliminates those and gracefully errors out.

@sayakpaul sayakpaul requested a review from DN6 December 12, 2025 09:52
@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.

@sayakpaul sayakpaul requested a review from DN6 December 30, 2025 08:44
@sayakpaul sayakpaul requested a review from DN6 January 2, 2026 16:08
@sayakpaul
Copy link
Member Author

@DN6 a gentle ping.

Copy link
Collaborator

@DN6 DN6 left a comment

Choose a reason for hiding this comment

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

Small nit for error message.

sayakpaul and others added 2 commits January 16, 2026 19:41
Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com>
@sayakpaul sayakpaul merged commit ebf891a into main Jan 16, 2026
27 of 32 checks passed
@sayakpaul sayakpaul deleted the cp-fixes-attn-backends branch January 16, 2026 16:00
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