Skip to content

upgrade transformers to 5.1.0#74

Merged
JaredforReal merged 1 commit intomainfrom
upgrade
Feb 6, 2026
Merged

upgrade transformers to 5.1.0#74
JaredforReal merged 1 commit intomainfrom
upgrade

Conversation

@JaredforReal
Copy link
Collaborator

Contribution Guide

We welcome your contributions to this repository. To ensure elegant code style and better code quality, we have prepared
the following contribution guidelines.

What We Accept

  • This PR fixes a typo or improves the documentation (if this is the case, you may skip the other checks).
  • This PR fixes a specific issue — please reference the issue number in the PR description. Make sure your code strictly
    follows the coding standards below.
  • This PR introduces a new feature — please clearly explain the necessity and implementation of the feature. Make sure
    your code strictly follows the coding standards below.

Code Style Guide

Good code style is an art. We have prepared a pre-commit hook to enforce consistent code
formatting across the project. You can clean up your code following the steps below:

pre-commit run --all-files

If your code complies with the standards, you should not see any errors.

Naming Conventions

  • Please use English for naming; do not use Pinyin or other languages. All comments should also be in English.
  • Follow PEP8 naming conventions strictly, and use underscores to separate words. Avoid meaningless names such as
    a, b, c.

Signed-off-by: JaredforReal <w13431838023@gmail.com>
Copilot AI review requested due to automatic review settings February 6, 2026 09:28
@JaredforReal JaredforReal merged commit e6e8991 into main Feb 6, 2026
5 checks passed
@JaredforReal JaredforReal deleted the upgrade branch February 6, 2026 09:28
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR upgrades the HuggingFace Transformers library from version 4.30.0 to 5.1.0, which represents a major version upgrade. The change eliminates the previous requirement to install transformers from source, suggesting that the necessary features (particularly PPDocLayoutV3 support for layout detection) are now available in the stable 5.1.0 release.

Changes:

  • Updated transformers dependency from >=4.30.0 to >=5.1.0 in main dependencies and layout extras
  • Removed installation instructions for installing transformers from GitHub source in both English and Chinese READMEs

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
pyproject.toml Updated transformers version requirement in main dependencies (line 40) and layout optional dependencies (line 56)
README.md Removed instructions to install transformers from source, simplifying installation steps
README_zh.md Removed instructions to install transformers from source (Chinese version)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

1 participant