Skip to content

fix some ut failures on XPU w/ torch 2.9 - #41923

Merged
ydshieh merged 3 commits into
huggingface:mainfrom
yao-matrix:ut-xpu
Oct 29, 2025
Merged

ydshieh merged 3 commits into
huggingface:mainfrom
yao-matrix:ut-xpu

Conversation

@yao-matrix

@yao-matrix yao-matrix commented Oct 28, 2025 •

Copy link
Copy Markdown
Contributor

cases are below, all passed. @ydshieh , pls help review, thx very much.

tests/models/aya_vision/test_modeling_aya_vision.py::AyaVisionIntegrationTest::test_small_model_integration_generate_text_only
tests/models/aya_vision/test_modeling_aya_vision.py::AyaVisionIntegrationTest::test_small_model_integration_forward
tests/models/aya_vision/test_modeling_aya_vision.py::AyaVisionIntegrationTest::test_small_model_integration_batched_generate_multi_image
tests/pipelines/test_pipelines_automatic_speech_recognition.py::AutomaticSpeechRecognitionPipelineTests::test_whisper_longform
tests/test_pipeline_mixin.py::AutomaticSpeechRecognitionPipelineTests::test_whisper_longform
tests/models/aria/test_modeling_aria.py::AriaForConditionalGenerationIntegrationTest::test_generation_no_images

tests/models/gemma3/test_modeling_gemma3.py::Gemma3IntegrationTest::test_model_4b_bf16
tests/models/gemma3/test_modeling_gemma3.py::Gemma3IntegrationTest::test_model_4b_crops
tests/models/glm4v/test_modeling_glm4v.py::Glm4vIntegrationTest::test_small_model_integration_test_expand
tests/models/mistral3/test_modeling_mistral3.py::Mistral3IntegrationTest::test_mistral3_integration_generate
tests/models/mllama/test_modeling_mllama.py::MllamaForConditionalGenerationIntegrationTest::test_11b_model_integration_generate_text_only

Signed-off-by: Yao, Matrix <matrix.yao@intel.com>
Signed-off-by: Yao, Matrix <matrix.yao@intel.com>
@yao-matrix yao-matrix changed the title fix 6 ut failures on XPU w/ torch 2.9 fix some ut failures on XPU w/ torch 2.9 Oct 28, 2025
@github-actions

Copy link
Copy Markdown
Contributor

[For maintainers] Suggested jobs to run (before merge)

run-slow: aria, aya_vision, gemma3, glm4v, mistral3, mllama

self.assertEqual(decoded_output, expected_output)

@require_read_token
@require_deterministic_for_xpu

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.

hmm, still random (on xpu)?

I hope it's not related to 38989

@ydshieh
ydshieh merged commit a43b36c into huggingface:main Oct 29, 2025
15 checks passed
@yao-matrix
yao-matrix deleted the ut-xpu branch October 29, 2025 15:20
i3hz pushed a commit to i3hz/transformers that referenced this pull request Oct 30, 2025
* fix 6 ut failures on XPU w/ torch 2.9

Signed-off-by: Yao, Matrix <matrix.yao@intel.com>

* fix UT failures for 4 models on XPU

Signed-off-by: Yao, Matrix <matrix.yao@intel.com>

---------

Signed-off-by: Yao, Matrix <matrix.yao@intel.com>
SangbumChoi pushed a commit to SangbumChoi/transformers that referenced this pull request Jan 23, 2026
* fix 6 ut failures on XPU w/ torch 2.9

Signed-off-by: Yao, Matrix <matrix.yao@intel.com>

* fix UT failures for 4 models on XPU

Signed-off-by: Yao, Matrix <matrix.yao@intel.com>

---------

Signed-off-by: Yao, Matrix <matrix.yao@intel.com>
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