-
Notifications
You must be signed in to change notification settings - Fork 6.5k
fix FluxReduxSlowTests::test_flux_redux_inference case failure on XPU #11245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
pass UT Signed-off-by: Matrix Yao <[email protected]>
Signed-off-by: Matrix Yao <[email protected]>
|
@hlky, pls help review, thx. |
There was a problem hiding this 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" |
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
|
Failing tests are unrelated. |
pytest -rA tests/pipelines/flux/test_pipeline_flux_redux.py::FluxReduxSlowTests::test_flux_redux_inferencefail on XPU.After comparing the output btw XPU and A100, we can confirm the image is similar perceptually.
XPU:

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