Skip to content

[Feature] Bump the upper version bound of transformers to 5.18 #17847

Description

@Tialo

I use unsloth for post training of vision model with trl. Currently I can't use trl.SFTConfig(assistant_only_loss=True) because of the issue caused by bug in transformers<5.18.

Activity

  1. added
    feature request
    on Nov 15, 2026
  2. added a commit that references this issue on Nov 16, 2026
    501ad46
  3. added a commit that references this issue on Nov 16, 2026
    6aab357
  4. Tialo commented on Nov 23, 2026

    @Tialo
    Author

    Hi @danielhanchen, even though #17903 was merged, I still can't install latest unsloth with transformers 5.18 I get a resolving error. Btw I don't get any errors when installing latest unsloth-zoo with transformers 5.18

    % uv pip install unsloth==2026.11.10 transformers==5.18
    
    error: No solution found when resolving dependencies
      cause: Because unsloth>=2026.11.10 depends on one of:
                 transformers>=4.52.4,<4.53.0
                 transformers>4.53.0,<4.54.0
                 transformers>4.54.0,<4.55.0
                 transformers>4.55.0,<4.55.1
                 transformers>4.55.1,<4.57.0
                 transformers>4.57.0,<4.57.4
                 transformers>4.57.4,<4.57.5
                 transformers>4.57.5,<5.0.0
                 transformers>5.0.0,<5.1.0
                 transformers>5.1.0,<=5.17.0
             and you require unsloth==2026.11.10, we can conclude that you require one of:
                 transformers>=4.52.4,<4.53.0
                 transformers>4.53.0,<4.54.0
                 transformers>4.54.0,<4.55.0
                 transformers>4.55.0,<4.55.1
                 transformers>4.55.1,<4.57.0
                 transformers>4.57.0,<4.57.4
                 transformers>4.57.4,<4.57.5
                 transformers>4.57.5,<5.0.0
                 transformers>5.0.0,<5.1.0
                 transformers>5.1.0,<=5.17.0
    
             And because you require transformers==5.18, we can conclude that your requirements are
             unsatisfiable.
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions