Files
diffusers/docs/source/en/api/attnprocessor.md
Steven Liu e365d749a1
Some checks failed
Build documentation / build (push) Has been cancelled
CodeQL Security Analysis For Github Actions / CodeQL Analysis (push) Has been cancelled
Run dependency tests / check_dependencies (push) Has been cancelled
Run Torch dependency tests / check_torch_dependencies (push) Has been cancelled
Fast GPU Tests on main / Setup Torch Pipelines CUDA Slow Tests Matrix (push) Has been cancelled
Fast GPU Tests on main / Torch CUDA Tests (lora) (push) Has been cancelled
Fast GPU Tests on main / Torch CUDA Tests (models) (push) Has been cancelled
Fast GPU Tests on main / Torch CUDA Tests (others) (push) Has been cancelled
Fast GPU Tests on main / Torch CUDA Tests (schedulers) (push) Has been cancelled
Fast GPU Tests on main / Torch CUDA Tests (single_file) (push) Has been cancelled
Fast GPU Tests on main / PyTorch Compile CUDA tests (push) Has been cancelled
Fast GPU Tests on main / PyTorch xformers CUDA tests (push) Has been cancelled
Fast GPU Tests on main / Examples PyTorch CUDA tests on Ubuntu (push) Has been cancelled
Fast tests on main / Fast PyTorch CPU tests on Ubuntu (push) Has been cancelled
Fast tests on main / PyTorch Example CPU tests on Ubuntu (push) Has been cancelled
Secret Leaks / trufflehog (push) Has been cancelled
Update Diffusers metadata / update_metadata (push) Has been cancelled
Nightly and release tests on main/release branch / Setup Torch Pipelines CUDA Slow Tests Matrix (push) Has been cancelled
Nightly and release tests on main/release branch / Nightly Torch CUDA Tests (examples) (push) Has been cancelled
Nightly and release tests on main/release branch / Nightly Torch CUDA Tests (lora) (push) Has been cancelled
Nightly and release tests on main/release branch / Nightly Torch CUDA Tests (models) (push) Has been cancelled
Nightly and release tests on main/release branch / Nightly Torch CUDA Tests (others) (push) Has been cancelled
Nightly and release tests on main/release branch / Nightly Torch CUDA Tests (schedulers) (push) Has been cancelled
Nightly and release tests on main/release branch / Nightly Torch CUDA Tests (single_file) (push) Has been cancelled
Nightly and release tests on main/release branch / PyTorch Compile CUDA tests (push) Has been cancelled
Nightly and release tests on main/release branch / Torch tests on big GPU (push) Has been cancelled
Nightly and release tests on main/release branch / Torch Minimum Version CUDA Tests (push) Has been cancelled
Nightly and release tests on main/release branch / Torch quantization nightly tests (map[additional_deps:[] backend:nvidia_modelopt test_location:modelopt]) (push) Has been cancelled
Nightly and release tests on main/release branch / Torch quantization nightly tests (map[additional_deps:[] backend:optimum_quanto test_location:quanto]) (push) Has been cancelled
Nightly and release tests on main/release branch / Torch quantization nightly tests (map[additional_deps:[] backend:torchao test_location:torchao]) (push) Has been cancelled
Nightly and release tests on main/release branch / Torch quantization nightly tests (map[additional_deps:[peft kernels] backend:gguf test_location:gguf]) (push) Has been cancelled
Nightly and release tests on main/release branch / Torch quantization nightly tests (map[additional_deps:[peft] backend:bitsandbytes test_location:bnb]) (push) Has been cancelled
Nightly and release tests on main/release branch / Torch quantization nightly tests (push) Has been cancelled
Test, build, and push Docker images / test-build-docker-images (push) Has been cancelled
Test, build, and push Docker images / build-and-push-docker-images (diffusers-doc-builder) (push) Has been cancelled
Test, build, and push Docker images / build-and-push-docker-images (diffusers-pytorch-cpu) (push) Has been cancelled
Test, build, and push Docker images / build-and-push-docker-images (diffusers-pytorch-cuda) (push) Has been cancelled
Test, build, and push Docker images / build-and-push-docker-images (diffusers-pytorch-minimum-cuda) (push) Has been cancelled
Test, build, and push Docker images / build-and-push-docker-images (diffusers-pytorch-xformers-cuda) (push) Has been cancelled
Fast GPU Tests on main / Torch Pipelines CUDA Tests (push) Has been cancelled
Nightly and release tests on main/release branch / Nightly Torch Pipelines CUDA Tests (push) Has been cancelled
Nightly and release tests on main/release branch / Generate Consolidated Test Report (push) Has been cancelled
Stale Bot / Close Stale Issues (push) Has been cancelled
[docs] deprecate pipelines (#13157)
* deprecate

* fix

* fix

* fix

* fix

* remove deprecated .md files

* update links

* fix
2026-04-01 10:16:23 -07:00

4.6 KiB

Attention Processor

An attention processor is a class for applying different types of attention mechanisms.

AttnProcessor

autodoc models.attention_processor.AttnProcessor

autodoc models.attention_processor.AttnProcessor2_0

autodoc models.attention_processor.AttnAddedKVProcessor

autodoc models.attention_processor.AttnAddedKVProcessor2_0

autodoc models.attention_processor.AttnProcessorNPU

autodoc models.attention_processor.FusedAttnProcessor2_0

Allegro

autodoc models.attention_processor.AllegroAttnProcessor2_0

AuraFlow

autodoc models.attention_processor.AuraFlowAttnProcessor2_0

autodoc models.attention_processor.FusedAuraFlowAttnProcessor2_0

CogVideoX

autodoc models.attention_processor.CogVideoXAttnProcessor2_0

autodoc models.attention_processor.FusedCogVideoXAttnProcessor2_0

CrossFrameAttnProcessor

autodoc pipelines.deprecated.text_to_video_synthesis.pipeline_text_to_video_zero.CrossFrameAttnProcessor

Custom Diffusion

autodoc models.attention_processor.CustomDiffusionAttnProcessor

autodoc models.attention_processor.CustomDiffusionAttnProcessor2_0

autodoc models.attention_processor.CustomDiffusionXFormersAttnProcessor

Flux

autodoc models.attention_processor.FluxAttnProcessor2_0

autodoc models.attention_processor.FusedFluxAttnProcessor2_0

autodoc models.attention_processor.FluxSingleAttnProcessor2_0

Hunyuan

autodoc models.attention_processor.HunyuanAttnProcessor2_0

autodoc models.attention_processor.FusedHunyuanAttnProcessor2_0

autodoc models.attention_processor.PAGHunyuanAttnProcessor2_0

autodoc models.attention_processor.PAGCFGHunyuanAttnProcessor2_0

IdentitySelfAttnProcessor2_0

autodoc models.attention_processor.PAGIdentitySelfAttnProcessor2_0

autodoc models.attention_processor.PAGCFGIdentitySelfAttnProcessor2_0

IP-Adapter

autodoc models.attention_processor.IPAdapterAttnProcessor

autodoc models.attention_processor.IPAdapterAttnProcessor2_0

autodoc models.attention_processor.SD3IPAdapterJointAttnProcessor2_0

JointAttnProcessor2_0

autodoc models.attention_processor.JointAttnProcessor2_0

autodoc models.attention_processor.PAGJointAttnProcessor2_0

autodoc models.attention_processor.PAGCFGJointAttnProcessor2_0

autodoc models.attention_processor.FusedJointAttnProcessor2_0

LoRA

autodoc models.attention_processor.LoRAAttnProcessor

autodoc models.attention_processor.LoRAAttnProcessor2_0

autodoc models.attention_processor.LoRAAttnAddedKVProcessor

autodoc models.attention_processor.LoRAXFormersAttnProcessor

Lumina-T2X

autodoc models.attention_processor.LuminaAttnProcessor2_0

Mochi

autodoc models.attention_processor.MochiAttnProcessor2_0

autodoc models.attention_processor.MochiVaeAttnProcessor2_0

Sana

autodoc models.attention_processor.SanaLinearAttnProcessor2_0

autodoc models.attention_processor.SanaMultiscaleAttnProcessor2_0

autodoc models.attention_processor.PAGCFGSanaLinearAttnProcessor2_0

autodoc models.attention_processor.PAGIdentitySanaLinearAttnProcessor2_0

Stable Audio

autodoc models.attention_processor.StableAudioAttnProcessor2_0

SlicedAttnProcessor

autodoc models.attention_processor.SlicedAttnProcessor

autodoc models.attention_processor.SlicedAttnAddedKVProcessor

XFormersAttnProcessor

autodoc models.attention_processor.XFormersAttnProcessor

autodoc models.attention_processor.XFormersAttnAddedKVProcessor

XLAFlashAttnProcessor2_0

autodoc models.attention_processor.XLAFlashAttnProcessor2_0

XFormersJointAttnProcessor

autodoc models.attention_processor.XFormersJointAttnProcessor

IPAdapterXFormersAttnProcessor

autodoc models.attention_processor.IPAdapterXFormersAttnProcessor

FluxIPAdapterJointAttnProcessor2_0

autodoc models.attention_processor.FluxIPAdapterJointAttnProcessor2_0

XLAFluxFlashAttnProcessor2_0

autodoc models.attention_processor.XLAFluxFlashAttnProcessor2_0