Skip to content

transformers in Python 3.14 failed to load #44938

@resc863

Description

@resc863

System Info

Python 3.14

Who can help?

No response

Information

  • The official example scripts
  • My own modified scripts

Tasks

  • An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • My own task or dataset (give details below)

Reproduction

transformers v5.3.0 has failed to load AutoModelForImageTextToText in Python 3.14, but it worked on Python 3.12.
It saids I need tensorflow even I only use torch.

ValueError: Backend should be defined in the BACKENDS_MAPPING. Offending backend: tf

Expected behavior

It seems old code is used for Python 3.14 wheel

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions