Skip to content

Remove unused config field from Gemma2#36672

Merged
vllm-bot merged 1 commit into
vllm-project:mainfrom
hmellor:fix-gemma2
Mar 11, 2026
Merged

Remove unused config field from Gemma2#36672
vllm-bot merged 1 commit into
vllm-project:mainfrom
hmellor:fix-gemma2

Conversation

@hmellor
Copy link
Copy Markdown
Member

@hmellor hmellor commented Mar 10, 2026

Supersedes #30411.

hidden_act was only ever used in Gemma 1 but was copied over to Gemma 2.

No version of Transformers supported by vLLM has hidden_act in Gemma2Config, so we remove it here which should have no effect.

It is only a coincidence that the official Gemma 2 config.jsons contain hidden_act and hidden_activation. Any fine-tunes or quants generated with Transformers would not have hidden_act and would therefore not be loadable in vLLM prior to this PR.

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
@DarkLight1337 DarkLight1337 enabled auto-merge (squash) March 10, 2026 15:52
@github-actions github-actions Bot added the ready ONLY add when PR is ready to merge/full CI is needed label Mar 10, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request successfully removes the unused hidden_act configuration field from the Gemma2 model. The changes correctly update the Gemma2MLP constructor and the associated validation logic and error messages, ensuring consistency and removing dead code. This improves the maintainability and clarity of the codebase.

@vllm-bot vllm-bot merged commit f4ae58b into vllm-project:main Mar 11, 2026
63 of 67 checks passed
wendyliu235 pushed a commit to wendyliu235/vllm-public that referenced this pull request Mar 18, 2026
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
khairulkabir1661 pushed a commit to khairulkabir1661/vllm that referenced this pull request Mar 27, 2026
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
mtparet pushed a commit to blackfuel-ai/vllm that referenced this pull request Apr 9, 2026
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
mystous pushed a commit to mystous/vllm_hybrid that referenced this pull request May 10, 2026
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready ONLY add when PR is ready to merge/full CI is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants