Skip to content

Conversation

@yao-matrix
Copy link
Contributor

pytest -rA tests/pipelines/flux/test_pipeline_flux_redux.py::FluxReduxSlowTests::test_flux_redux_inference fail on XPU.

After comparing the output btw XPU and A100, we can confirm the image is similar perceptually.

XPU:
XPU

A100:
A100

So, I changed the XPU expectation to make it pass.

I also update the model per legacy comments.

test status:

A100: before this PR pass, after this PR pass
XPU: before this PR fail, after this PR pass

@yao-matrix
Copy link
Contributor Author

@hlky, pls help review, thx.

Copy link
Contributor

@hlky hlky left a comment

Choose a reason for hiding this comment

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

Thanks @yao-matrix. Left a comment but good to go after CI is finished.

class FluxReduxSlowTests(unittest.TestCase):
pipeline_class = FluxPriorReduxPipeline
repo_id = "YiYiXu/yiyi-redux" # update to "black-forest-labs/FLUX.1-Redux-dev" once PR is merged
repo_id = "black-forest-labs/FLUX.1-Redux-dev"
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice, thanks for updating this.

@unittest.skipIf(torch_device not in ["cuda", "xpu"], reason="float16 requires CUDA or XPU")
@require_accelerator
def test_float16_inference(self, expected_max_diff=5e-2):
def test_float16_inference(self, expected_max_diff=6e-2):
Copy link
Contributor

Choose a reason for hiding this comment

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

6e-2 vs 5e-2 is ok, what's the context of this change though?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sorry, it's an un-deleted experimental change, will change back in next PR. Sorry for unnecessary confusion

@hlky
Copy link
Contributor

hlky commented Apr 9, 2025

Failing tests are unrelated.

@hlky hlky merged commit c36c745 into huggingface:main Apr 9, 2025
24 of 25 checks passed
@yao-matrix yao-matrix deleted the issue125 branch April 9, 2025 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants