Skip to content

Transformers v5#2408

Merged
echarlaix merged 2 commits into
mainfrom
transformers-v5
Mar 13, 2026
Merged

Transformers v5#2408
echarlaix merged 2 commits into
mainfrom
transformers-v5

Conversation

@echarlaix
Copy link
Copy Markdown
Collaborator

AutoModelForVision2Seq deprecated and removed in Transformers v5

@echarlaix echarlaix marked this pull request as ready for review March 12, 2026 14:00
@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.

Comment on lines +197 to 203
@pytest.mark.skipif(
is_transformers_version(">=", "5"),
reason="requires transformers < v5 since image-to-text pipelines is deprecated",
)
def test_image_to_text_pipeline(self):
"""Test image to text ORT pipeline"""
pipe = optimum_pipeline(task="image-to-text", accelerator="ort")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

maybe we can use the image-text-to-text pipeline ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

hmm yeh maybe leave to abother pr as we don't really support that pipeline class here

Copy link
Copy Markdown
Member

@IlyasMoutawwakil IlyasMoutawwakil left a comment

Choose a reason for hiding this comment

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

LGTM ! thanks for the fix !

@echarlaix echarlaix merged commit ec676fd into main Mar 13, 2026
19 checks passed
@echarlaix echarlaix deleted the transformers-v5 branch March 13, 2026 15:41
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