Skip to content

[Feature] Update Transformers to v5 #5080

@ji-huazhong

Description

@ji-huazhong

Feature request

This RFC proposes upgrading the transformers library dependency from version 4.x to the recently released v5.0.0 across the Verl infrastructure stack. The upgrade is motivated by new features and breaking changes that require coordinated updates across multiple components.

Motivation

https://github.com/huggingface/transformers/releases/tag/v5.0.0

Prerequisites

The upgrade must be performed in a specific order due to dependency chains:

Phase 1: Foundation Layer Updates

  1. Rollout Engines must support transformers v5 first:
  1. Model engines:
  • Megatron-Bridge: Update model conversion utilities and checkpoint compatibility layers

Phase 2: Application Layer Updates

  1. Verl Core:
  • Update model registry and loader
  • Adapt to new configuration APIs
  • Test integrations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions