Skip to content

Conversation

@yewentao256
Copy link
Member

@yewentao256 yewentao256 commented Nov 19, 2025

Purpose

Fix precommit issue introduced by #28968

Error: vllm/model_executor/models/deepseek_v2.py:994:22: F821 Undefined name `rope_theta`
Error: vllm/model_executor/models/deepseek_v2.py:995:30: F821 Undefined name `rope_scaling`

Signed-off-by: yewentao256 <[email protected]>
@mergify mergify bot added the deepseek Related to DeepSeek models label Nov 19, 2025
Copy link
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 addresses a pre-commit issue where rope_theta and rope_scaling were used without being defined. The fix correctly replaces these with rope_parameters=config.rope_parameters when initializing indexer_rope_emb. This change is consistent with how get_rope is called elsewhere in the file and effectively resolves the F821 Undefined name errors. The fix is correct and minimal. Good job.

Copy link
Member

@njhill njhill left a comment

Choose a reason for hiding this comment

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

Thanks @yewentao256

@njhill njhill added ready ONLY add when PR is ready to merge/full CI is needed force-merge labels Nov 19, 2025
@vllm-bot vllm-bot merged commit 0075bff into main Nov 19, 2025
14 of 21 checks passed
@vllm-bot vllm-bot deleted the wentao-fix-pre-commit-rope-theta branch November 19, 2025 22:22
Victor49152 pushed a commit to Victor49152/vllm that referenced this pull request Nov 20, 2025
LuminolT pushed a commit to LuminolT/vllm that referenced this pull request Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deepseek Related to DeepSeek models force-merge 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.

5 participants