Skip to content

Transformers v5 compatibility #978

Description

@Tcc0403

This is an issue tracker for transformers v5.

Known issues

Feel free to report if you find any issue that isn't listed below.

Monkey patch

Errors when running

python3 -m pytest test/transformers/test_monkey_patch.py

See details in #960 (comment)

Convergence test

Errors when running

python3 -m pytest test/convergence/*

Benchmarking

For Contributors

Since we want to keep backward compatibility for transformers>=4.49.0 as well, tests will focus on 1. transformers==4.49.0 (the oldest version) 2. transformers<5.0.0 (last v4 version) 3. transformers>=5.0.0 (the latest version)

Environment setup

uv pip install transformers==4.49.0
uv pip install transformers<5.0.0
uv pip install transformers>=5.0.0

Pull requests

Open pull requests on main branch directly.

It would be great if you can provide relevant tests on three version listed above in your PR description. Thanks for you contribution!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions