  image = pipe(prompt).images[0] SDPA should be as fast and memory efficient as xFormers; check the benchmark for more details. In some cases - such as making the pipeline more deterministic or converting it to other formats - it may be helpful to use the vanilla attention processor, AttnProcessor. To revert to AttnProcessor, call the set_default_attn_processor() function on the pipeline:   Copied   import torch