diffusers icon indicating copy to clipboard operation
diffusers copied to clipboard

[core] gracefully error out when attn-backend x cp combo isn't supported.

Open sayakpaul opened this issue 1 month ago • 1 comments

What does this PR do?

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

Refer to https://github.com/huggingface/diffusers/pull/12829#issuecomment-3645237672 and https://github.com/huggingface/diffusers/pull/12829#issuecomment-3645582823.

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 avatar Dec 12 '25 09:12 sayakpaul

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.