Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tests/test_diffusers.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,7 @@ def test_no_throughput_regression_bf16(self):
gaudi_config=GaudiConfig.from_pretrained("Habana/stable-diffusion"),
torch_dtype=torch.bfloat16,
)
pipeline.unet.set_default_attn_processor(pipeline.unet)
set_seed(27)
outputs = pipeline(
prompt=prompts,
Expand Down Expand Up @@ -714,6 +715,7 @@ def test_no_generation_regression(self):
use_hpu_graphs=True,
gaudi_config=GaudiConfig(use_torch_autocast=False),
)
pipeline.unet.set_default_attn_processor(pipeline.unet)

prompt = "An image of a squirrel in Picasso style"
generator = torch.manual_seed(seed)
Expand Down Expand Up @@ -3745,6 +3747,7 @@ def test_deterministic_image_generation_no_throughput_regression_bf16(self):
"CompVis/stable-diffusion-v1-4",
**kwargs,
)
pipeline.unet.set_default_attn_processor(pipeline.unet)

num_images_per_prompt = 20
res = {}
Expand Down