Skip to content

Fix Plamo 2/3 & LFM2 for Transformers v5#38090

Merged
DarkLight1337 merged 1 commit intovllm-project:mainfrom
hmellor:fix-some-models
Mar 25, 2026
Merged

Fix Plamo 2/3 & LFM2 for Transformers v5#38090
DarkLight1337 merged 1 commit intovllm-project:mainfrom
hmellor:fix-some-models

Conversation

@hmellor
Copy link
Copy Markdown
Member

@hmellor hmellor commented Mar 25, 2026

  • Make Plamo configs type checking only because they are not valid config classes for Transformers v5, but they are fine for type checking
  • block_ff_dim -> intermediate_size - This has always been remapped since LFM2 was added to Transformers in 4.54, but in v5 the old name is now poped from the config

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
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 refactors the Lfm2MLP class in vllm/model_executor/models/lfm2.py by renaming the ff_dim parameter to intermediate_size for improved clarity and consistency across its definition and usage. Additionally, it enhances type hinting in vllm/model_executor/models/plamo2.py and vllm/model_executor/models/plamo3.py by moving the Plamo2Config and Plamo3Config class definitions into if TYPE_CHECKING: blocks and updating corresponding type annotations to use forward references. There are no review comments to address.

@DarkLight1337 DarkLight1337 enabled auto-merge (squash) March 25, 2026 10:26
@github-actions github-actions bot added the ready ONLY add when PR is ready to merge/full CI is needed label Mar 25, 2026
@DarkLight1337 DarkLight1337 merged commit d6bb2a9 into vllm-project:main Mar 25, 2026
59 checks passed
@hmellor hmellor deleted the fix-some-models branch March 25, 2026 13:03
RhizoNymph pushed a commit to RhizoNymph/vllm that referenced this pull request Mar 26, 2026
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
nithinvc pushed a commit to nithinvc/vllm that referenced this pull request Mar 27, 2026
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>

Signed-off-by: Nithin Chalapathi <nithin.ch10@gmail.com>
JiantaoXu pushed a commit to JiantaoXu/vllm that referenced this pull request Mar 28, 2026
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
puririshi98 pushed a commit to puririshi98/vllm that referenced this pull request Apr 7, 2026
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Rishi Puri <riship@nvidia.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>
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.

2 participants