Skip to content

[tests] refactor b* pipeline tests - #14625

Merged
sayakpaul merged 5 commits into
mainfrom
b-pipeline-tests
Aug 28, 2026
Merged

[tests] refactor b* pipeline tests#14625
sayakpaul merged 5 commits into
mainfrom
b-pipeline-tests

Conversation

@sayakpaul

Copy link
Copy Markdown
Member

Similar to #14622

@github-actions github-actions Bot added tests size/M PR with diff < 200 LOC labels Aug 27, 2026

# fmt: off
expected_slice = torch.tensor([0.5615, 0.4469, 0.4043, 0.4312, 0.3783, 0.4426, 0.4081, 0.4446, 0.6549, 0.6302, 0.6324, 0.5871, 0.6117, 0.6647, 0.5871, 0.6246])
expected_slice = torch.tensor([0.5594, 0.4469, 0.4011, 0.4329, 0.3747, 0.4408, 0.4074, 0.4452, 0.6472, 0.6353, 0.6258, 0.5867, 0.6104, 0.6624, 0.5824, 0.6277])

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using a small text encoder, that is why.


# fmt: off
expected_slice = torch.tensor([0.4025, 0.4722, 0.4377, 0.6178, 0.3643, 0.4914, 0.3694, 0.5096, 0.5980, 0.5516, 0.5228, 0.4731, 0.6202, 0.2424, 0.6280, 0.3556])
expected_slice = torch.tensor([0.3804, 0.4799, 0.5112, 0.5784, 0.3970, 0.4709, 0.4027, 0.4882, 0.5627, 0.4635, 0.4718, 0.3876, 0.5741, 0.2936, 0.5912, 0.4014])

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using a small text encoder that is why


torch.manual_seed(0)
text_encoder = SmolLM3ForCausalLM(SmolLM3Config(hidden_size=32))
text_encoder = SmolLM3ForCausalLM(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to set eval() on this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get_pipeline() already does it. Made sure we are using that method always.

@sayakpaul

Copy link
Copy Markdown
Member Author

/diffusers-bot pytest tests/pipelines/bria/

@github-actions

github-actions Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

pytest tests/pipelines/bria/ passed on GPU — view logs.

@sayakpaul
sayakpaul merged commit a6c181c into main Aug 28, 2026
14 checks passed
@sayakpaul
sayakpaul deleted the b-pipeline-tests branch August 28, 2026 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M PR with diff < 200 LOC tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants