v0.31.0rc5: [Misc] Add Transformers version upper bound in requirements (#59614)
The vLLM v0.31.0rc5 release introduces a strict upper bound constraint on the Hugging Face Transformers library dependency. This change prevents the installation of incompatible future versions of the Transformers package that could break vLLM's internal model loading logic.
Verified State Diff
Impact & Verification Analysis
Developers and DevOps engineers managing vLLM deployment environments and CI/CD pipelines.
It ensures architectural stability and prevents unexpected runtime failures caused by upstream dependency drift in the Hugging Face ecosystem.
Full Fact Overview
This update modifies the project's dependency management by pinning the maximum allowable version of the 'transformers' library. By enforcing an upper bound, the vLLM maintainers ensure that the codebase remains stable against breaking API changes or architectural shifts introduced in newer upstream Transformers releases. This is a standard defensive engineering practice in high-performance inference engines to maintain environment reproducibility and prevent runtime errors during model initialization.