Skip to content

Commit 002e7ef

Browse files
committed
register _native_npu_attention to _supports_context_parallel
Signed-off-by: yyt <yangyit139@gmail.com>
1 parent 79c1107 commit 002e7ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/diffusers/models/attention_dispatch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2183,6 +2183,7 @@ def _native_math_attention(
21832183
@_AttentionBackendRegistry.register(
21842184
AttentionBackendName._NATIVE_NPU,
21852185
constraints=[_check_device, _check_qkv_dtype_bf16_or_fp16, _check_shape],
2186+
supports_context_parallel=True,
21862187
)
21872188
def _native_npu_attention(
21882189
query: torch.Tensor,

0 commit comments

Comments
 (0)