Skip to content

Fix video interpolation in pe_audio_video#43811

Open
Rocketknight1 wants to merge 2 commits intomainfrom
fix_pe_audio_video_interpolation
Open

Fix video interpolation in pe_audio_video#43811
Rocketknight1 wants to merge 2 commits intomainfrom
fix_pe_audio_video_interpolation

Conversation

@Rocketknight1
Copy link
Member

The test tests/models/pe_audio_video/test_modeling_pe_audio_video.py::PeAudioVideoEncoderTest::test_model_forward_default_config_values is flaky in the CI. In local testing, it failed in 5 out of 100 runs for me. After some digging, I figured out that in the failing runs, it takes a fast path when all the audio and video samples are the same length. However, this fast path is incorrect, because it interpolates along seq_dim instead of the timestep dimension, so we get an output with the wrong shape and the test fails.

The fix is just to correct the fast path to interpolate the right dimension! cc @zucchini-nlp @tarekziade

Example failing run: https://app.circleci.com/pipelines/github/huggingface/transformers/163294/workflows/b07f04c5-f240-4601-aace-47f970ed7c1c/jobs/2151900

@Rocketknight1 Rocketknight1 marked this pull request as ready for review February 6, 2026 19:46
@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2026

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

run-slow: pe_audio_video

@Rocketknight1
Copy link
Member Author

run-slow: pe_audio_video

@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2026

This comment contains run-slow, running the specified jobs:

models: ["models/pe_audio_video"]
quantizations: []

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2026

CI Results

Workflow Run ⚙️

Commit Info

Context Commit Description
RUN dc10ec69 merge commit
PR 832fd0aa branch commit
main f70ec1e7 base commit

✅ No failing test specific to this PR 🎉 👏 !

@tarekziade
Copy link
Collaborator

nice finding!

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.

3 participants