Skip to content

[tests] refactor l-series pipeline tests - #14637

Merged
sayakpaul merged 5 commits into
mainfrom
l-series-pipelines
Aug 31, 2026
Merged

[tests] refactor l-series pipeline tests#14637
sayakpaul merged 5 commits into
mainfrom
l-series-pipelines

Conversation

@sayakpaul

Copy link
Copy Markdown
Member

No description provided.

@github-actions github-actions Bot added tests pipelines size/L PR with diff > 200 LOC labels Aug 28, 2026
Comment on lines 223 to +229
image = (image / 2 + 0.5).clamp(0, 1)
image = image.cpu().permute(0, 2, 3, 1).numpy()
if output_type == "pil":
image = self.numpy_to_pil(image)

if output_type != "pt":
image = image.cpu().permute(0, 2, 3, 1).numpy()

if output_type == "pil":
image = self.numpy_to_pil(image)

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.

To support outputting in "pt" so that our testing mixin can handle it.



class LLaDA2PipelineTest(unittest.TestCase):
class TestLLaDA2Pipeline:

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.

Just pytest migration since it's a different kind of a pipeline altogether. And since it's not yet used much, I think it's fine to keep it this way.

@@ -0,0 +1,228 @@
# Copyright 2026 The HuggingFace Team.

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.

So that the LTX2 tests can share this stuff.

@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@sayakpaul
sayakpaul merged commit 45b32f4 into main Aug 31, 2026
16 checks passed
@sayakpaul
sayakpaul deleted the l-series-pipelines branch August 31, 2026 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pipelines size/L PR with diff > 200 LOC tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants