Skip to content

Fix failing PegasusX, Mvp & LED model integration tests#43245

Merged
Rocketknight1 merged 2 commits intohuggingface:mainfrom
Sai-Suraj-27:fix_batch_encode_plus
Jan 14, 2026
Merged

Fix failing PegasusX, Mvp & LED model integration tests#43245
Rocketknight1 merged 2 commits intohuggingface:mainfrom
Sai-Suraj-27:fix_batch_encode_plus

Conversation

@Sai-Suraj-27
Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes these failing PegasusXModelIntegrationTests, MvpModelIntegrationTests & LEDModelIntegrationTests.

image

As mentioned in the V5 Migration guide: The encode_plus & batch_decode methods are deprecated in favor of __call__ & decode methods respectively. And the clean_up_tokenization_spaces argument is also no longer used as mentioned here

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline,
    Pull Request section?
  • Was this discussed/approved via a Github issue or the forum? Please add a link
    to it if that's the case.
  • Did you make sure to update the documentation with your changes? Here are the
    documentation guidelines, and
    here are tips on formatting docstrings.
  • Did you write any new necessary tests?

Who can review?

@vasqu

@Rocketknight1
Copy link
Copy Markdown
Member

run-slow: led, mvp, pegasus_x

Copy link
Copy Markdown
Member

@Rocketknight1 Rocketknight1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, will wait for the slow tests before merging!

@github-actions
Copy link
Copy Markdown
Contributor

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

models: ["models/led", "models/mvp", "models/pegasus_x"]
quantizations: []

@github-actions
Copy link
Copy Markdown
Contributor

CI Results

Workflow Run ⚙️

✅ No failing test specific to this PR 🎉 !

@Sai-Suraj-27
Copy link
Copy Markdown
Contributor Author

LGTM, will wait for the slow tests before merging!

Sorry, For got to update the expected strings in LED test. Will update.

@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

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.

@Sai-Suraj-27 Sai-Suraj-27 force-pushed the fix_batch_encode_plus branch from 9c8e62b to 0a04d07 Compare January 13, 2026 13:34
@github-actions
Copy link
Copy Markdown
Contributor

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

run-slow: led, mvp, pegasus_x

@Rocketknight1 Rocketknight1 enabled auto-merge (squash) January 14, 2026 13:00
@Rocketknight1 Rocketknight1 merged commit 1efe1a6 into huggingface:main Jan 14, 2026
19 checks passed
SangbumChoi pushed a commit to SangbumChoi/transformers that referenced this pull request Jan 23, 2026
…gface#43245)

* Fix failing tests due to batch_encode_plus

* Updated expected values.
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