fix cuda ut fail for transformers v5.0 - #1357
Merged
Merged
Conversation
Signed-off-by: n1ck-guo <heng.guo@intel.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request addresses test failures in CUDA unit tests caused by breaking changes in transformers v5.0. The changes add conditional test skipping using version checks to maintain test compatibility across different transformers versions.
Changes:
- Added version checking and conditional test skipping for transformers v5.0
- Updated imports to include transformers_version helper and packaging.version
- Skipped tests affected by breaking changes in MOE models, GGUF format support, MT5Tokenizer removal, and other transformers v5.0 incompatibilities
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| test/test_cuda/schemes/test_scheme.py | Added skip condition for MOE model test affected by transformers v5.0 breaking changes |
| test/test_cuda/models/test_support_vlms.py | Added skip decorator to test_glm for transformers <4.54.0 version constraint |
| test/test_cuda/models/test_get_block_name.py | Added skip condition for test_flux due to MT5Tokenizer removal in transformers v5.0 |
| test/test_cuda/models/test_diffusion.py | Added class-level skip decorator for TestAutoRound due to MT5Tokenizer removal |
| test/test_cuda/export/test_gguf.py | Added class-level skip decorator for GGUF format issues in transformers v5.0 |
| test/test_cuda/advanced/test_fp8_input.py | Added skip conditions for multiple tests affected by GGUF and other transformers v5.0 changes |
Signed-off-by: He, Xin3 <xin3.he@intel.com>
Signed-off-by: He, Xin3 <xin3.he@intel.com>
Signed-off-by: He, Xin3 <xin3.he@intel.com>
xin3he
marked this pull request as draft
January 28, 2026 06:12
Signed-off-by: He, Xin3 <xin3.he@intel.com>
Signed-off-by: He, Xin3 <xin3.he@intel.com>
wenhuach21
reviewed
Jan 28, 2026
wenhuach21
reviewed
Jan 28, 2026
…checks in tests Signed-off-by: He, Xin3 <xin3.he@intel.com>
xin3he
marked this pull request as ready for review
January 28, 2026 08:36
xin3he
requested changes
Jan 28, 2026
Signed-off-by: He, Xin3 <xin3.he@intel.com>
Signed-off-by: He, Xin3 <xin3.he@intel.com>
Signed-off-by: n1ck-guo <heng.guo@intel.com>
Signed-off-by: He, Xin3 <xin3.he@intel.com>
for more information, see https://pre-commit.ci
xin3he
approved these changes
Jan 29, 2026
Signed-off-by: He, Xin3 <xin3.he@intel.com>
lvliang-intel
pushed a commit
that referenced
this pull request
Feb 2, 2026
Signed-off-by: n1ck-guo <heng.guo@intel.com> Signed-off-by: He, Xin3 <xin3.he@intel.com> Co-authored-by: He, Xin3 <xin3.he@intel.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Please briefly describe your main changes, the motivation.
Type of Change
Related Issues
Fixes or relates to #1315
Checklist Before Submitting