Skip to content

Conversation

@jeejeelee
Copy link
Collaborator

@jeejeelee jeejeelee commented Aug 26, 2025

Purpose

The e_score_correction_bias weights of the deepseek v3 model are FP32

Test Plan

Test Result


Essential Elements of an Effective PR Description Checklist
  • The purpose of the PR, such as "Fix some issue (link existing issues this PR will resolve)".
  • The test plan, such as providing test command.
  • The test results, such as pasting the results comparison before and after, or e2e results
  • (Optional) The necessary documentation update, such as updating supported_models.md and examples for a new model.
  • (Optional) Release notes update. If your change is user facing, please update the release notes draft in the Google Doc.

Signed-off-by: Jee Jee Li <pandaleefree@gmail.com>
@mergify mergify bot added the deepseek Related to DeepSeek models label Aug 26, 2025
@jeejeelee jeejeelee added the ready ONLY add when PR is ready to merge/full CI is needed label Aug 26, 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 correctly addresses a data type issue for the e_score_correction_bias parameter in DeepSeek V3 models. By explicitly setting the dtype to torch.float32 during tensor creation, the change ensures that the parameter's data type matches the precision of the model weights. This prevents potential dtype mismatches and precision loss that could occur during weight loading, especially when the default PyTorch dtype is set to a lower precision format like float16. The fix is accurate, well-targeted, and necessary for the correct operation of DeepSeek V3 models.

@youkaichao youkaichao changed the title [Model] Modify DeepSeek e_score_correction_bias [Model] fix DeepSeek e_score_correction_bias dtype to fp32 Aug 26, 2025
@youkaichao youkaichao merged commit fdeb3da into vllm-project:main Aug 26, 2025
38 of 41 checks passed
@jeejeelee jeejeelee deleted the fix-ds branch August 26, 2025 13:41
tc-mb pushed a commit to tc-mb/vllm that referenced this pull request Aug 27, 2025
…ect#23640)

Signed-off-by: Jee Jee Li <pandaleefree@gmail.com>
Signed-off-by: tc-mb <caitianchi@modelbest.cn>
epwalsh pushed a commit to epwalsh/vllm that referenced this pull request Aug 28, 2025
xiao-llm pushed a commit to xiao-llm/vllm that referenced this pull request Aug 28, 2025
…ect#23640)

Signed-off-by: Jee Jee Li <pandaleefree@gmail.com>
Signed-off-by: Xiao Yu <xiao.yu@amd.com>
zhewenl pushed a commit to zhewenl/vllm that referenced this pull request Aug 28, 2025
zhewenl pushed a commit to zhewenl/vllm that referenced this pull request Sep 3, 2025
FeiDaLI pushed a commit to FeiDaLI/vllm that referenced this pull request Sep 25, 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 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