Skip to content

Conversation

@sayakpaul
Copy link
Member

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, we specify parallel_config to from_pretrained() and then set an attention backend through set_attention_backend() (which 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.

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.

3 participants