Summary
Google released the Gemma 4 model family (gemma-4-E2B-it, gemma-4-E4B-it) which introduces a new model_type: gemma4. This model type was added in transformers >= 5.5.0, but vLLM currently ships with an older version.
Error
The checkpoint you are trying to load has model type `gemma4` but Transformers does not recognize this architecture.
Steps to reproduce
vllm serve 2imi9/gemma-4-E2B-it-NVFP4A16
Or with any Gemma 4 model (e.g. google/gemma-4-E2B-it, google/gemma-4-E4B-it).
Key details
- Gemma 4 is a multimodal model (vision + audio + text) using
AutoModelForImageTextToText
- Architecture includes
vision_tower, audio_tower, embed_vision, embed_audio modules
- Requires
transformers >= 5.5.0 for gemma4 model type registration
Related
Summary
Google released the Gemma 4 model family (gemma-4-E2B-it, gemma-4-E4B-it) which introduces a new
model_type: gemma4. This model type was added intransformers >= 5.5.0, but vLLM currently ships with an older version.Error
Steps to reproduce
Or with any Gemma 4 model (e.g.
google/gemma-4-E2B-it,google/gemma-4-E4B-it).Key details
AutoModelForImageTextToTextvision_tower,audio_tower,embed_vision,embed_audiomodulestransformers >= 5.5.0forgemma4model type registrationRelated