Skip to content

[Bug]: Major issues with transformers version causing rubbish generations with Gemma3 family using vllm #22475

@AbdelrahmanHagrass

Description

@AbdelrahmanHagrass

Your current environment

.

🐛 Describe the bug

Major issues with transformers version when used with Gemma3 family models on vllm. The output generations are incorrect and not usable—appears to be due to incompatibility or regression in transformers. Please advise on compatible versions or fixes.

Example: Generations are rubbish or meaningless compared to expected outputs.

Tested with latest vllm and Gemma3 models.

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions