vllm - 💡(How to fix) Fix [Bug]: Gemma 4 E4B weight loading fails `Gemma4ClippableLinear` parameter `input_max` not recognized [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
vllm-project/vllm#38886Fetched 2026-04-08 02:34:22
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
1
Author
Participants
Timeline (top)
labeled ×1subscribed ×1

Error Message

(EngineCore pid=322) INFO 04-03 03:39:22 [base.py:115] Using Transformers modeling backend. (EngineCore pid=322) WARNING 04-03 03:38:21 [utils.py:187] TransformersMultiModalForCausalLM has no vLLM implementation, falling back to Transformers implementation.

(EngineCore pid=322) ValueError: There is no module or parameter named 'model.audio_tower.layers.0.feed_forward1.ffw_layer_1.input_max' in TransformersMultiModalForCausalLM. The available parameters belonging to model.audio_tower.layers.0.feed_forward1.ffw_layer_1 (Gemma4ClippableLinear) are: {'model.audio_tower.layers.0.feed_forward1.ffw_layer_1.linear.weight'}

Root Cause

The input_max parameter in the checkpoint is not recognized by the fallback weight mapper because Gemma4ClippableLinear wraps a standard Linear layer with an extra input_max buffer that the generic loader does not expect.

Code Example

(EngineCore pid=322) INFO 04-03 03:39:22 [base.py:115] Using Transformers modeling backend.
(EngineCore pid=322) WARNING 04-03 03:38:21 [utils.py:187] TransformersMultiModalForCausalLM has no vLLM implementation, falling back to Transformers implementation.

(EngineCore pid=322) ValueError: There is no module or parameter named
  'model.audio_tower.layers.0.feed_forward1.ffw_layer_1.input_max'
  in TransformersMultiModalForCausalLM.
  The available parameters belonging to
  model.audio_tower.layers.0.feed_forward1.ffw_layer_1 (Gemma4ClippableLinear) are:
  {'model.audio_tower.layers.0.feed_forward1.ffw_layer_1.linear.weight'}
RAW_BUFFERClick to expand / collapse

Your current environment

PyTorch version : 2.8.0+cu128 vLLM Version : 0.18.0 transformers : 5.4.x (bundled in vllm/vllm-openai:v0.18.0)

🐛 Describe the bug

When loading google/gemma-4-e4b-it on vLLM v0.18.0, the model resolves to TransformersMultiModalForCausalLM (fallback path, no native Gemma 4 implementation) and fails during weight loading with a ValueError on the audio tower's Gemma4ClippableLinear layer.

The input_max parameter in the checkpoint is not recognized by the fallback weight mapper because Gemma4ClippableLinear wraps a standard Linear layer with an extra input_max buffer that the generic loader does not expect.

(EngineCore pid=322) INFO 04-03 03:39:22 [base.py:115] Using Transformers modeling backend.
(EngineCore pid=322) WARNING 04-03 03:38:21 [utils.py:187] TransformersMultiModalForCausalLM has no vLLM implementation, falling back to Transformers implementation.

(EngineCore pid=322) ValueError: There is no module or parameter named
  'model.audio_tower.layers.0.feed_forward1.ffw_layer_1.input_max'
  in TransformersMultiModalForCausalLM.
  The available parameters belonging to
  model.audio_tower.layers.0.feed_forward1.ffw_layer_1 (Gemma4ClippableLinear) are:
  {'model.audio_tower.layers.0.feed_forward1.ffw_layer_1.linear.weight'}

The engine core crashes and the service fails to start. On restart it loops the same error indefinitely.

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.

extent analysis

TL;DR

The most likely fix is to update the weight mapper in the fallback path to recognize the input_max parameter in the Gemma4ClippableLinear layer.

Guidance

  • Verify that the issue is specific to the google/gemma-4-e4b-it model and the vLLM version 0.18.0 by trying to load other models.
  • Check the documentation for TransformersMultiModalForCausalLM to see if there are any known issues or limitations with loading weights for the Gemma4ClippableLinear layer.
  • Consider updating the vLLM version or the transformers library to see if the issue is resolved in a later version.
  • If possible, try to modify the weight mapper to recognize the input_max parameter, or create a custom loader for the Gemma4ClippableLinear layer.

Notes

The issue seems to be specific to the Gemma4ClippableLinear layer and the TransformersMultiModalForCausalLM model, and may require a custom solution or an update to the vLLM or transformers libraries.

Recommendation

Apply a workaround by modifying the weight mapper or creating a custom loader for the Gemma4ClippableLinear layer, as updating to a fixed version is not clearly implied in the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING