Skip to content

Fix pe uts - #43672

Closed
YangKai0616 wants to merge 4 commits into
huggingface:mainfrom
YangKai0616:fix-pe-uts
Closed

YangKai0616 wants to merge 4 commits into
huggingface:mainfrom
YangKai0616:fix-pe-uts

Conversation

@YangKai0616

Copy link
Copy Markdown
Contributor

What does this PR do?

According to PR #43030, update test files tests/models/pe_audio/test_modeling_pe_audio.py and tests/models/pe_video/test_modeling_pe_video.py.

The changes to src/transformers/models/pe_audio/modeling_pe_audio.py were made because of the following error:

pytest -rA tests/models/pe_audio/test_modeling_pe_audio.py::PeAudioModelTest::test_model_parallelism

FAILED tests/models/pe_audio/test_modeling_pe_audio.py::PeAudioModelTest::test_model_parallelism - RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:1 and cuda:0!

@vasqu , @ydshieh please help review this PR. Thans!

@vasqu vasqu left a comment

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.

This is becoming more and more annoying having to overwrite it each time. Imo, it would be better to not allow modernbert to default to fa anymore - it is slightly breaking but better than having this huge effort of maintaining the model and all its dependencies

@github-actions

github-actions Bot commented Feb 5, 2026

Copy link
Copy Markdown
Contributor

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

run-slow: pe_audio, pe_video

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