Skip to content

[MRV2] Use fp32 for draft logits - #37526

Merged
WoosukKwon merged 1 commit into
mainfrom
woosuk/mrv2-draft-prob
Mar 19, 2026
Merged

WoosukKwon merged 1 commit into
mainfrom
woosuk/mrv2-draft-prob

Conversation

@WoosukKwon

Copy link
Copy Markdown
Collaborator

We haven't verified the safety of downcasting draft_logits to BF16. Hence, we should use fp32 for now.

Signed-off-by: Woosuk Kwon <woosuk@inferact.ai>
@WoosukKwon
WoosukKwon requested a review from njhill as a code owner March 19, 2026 07:33
@mergify mergify Bot added the v1 label Mar 19, 2026

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

The pull request successfully addresses the concern regarding the safety of downcasting draft_logits to BF16 by explicitly setting their data type to torch.float32. This change ensures that the draft logits are always processed in FP32, mitigating potential issues until BF16 verification is complete. The modifications are clear and directly align with the stated objective of the pull request.

@WoosukKwon WoosukKwon added the ready ONLY add when PR is ready to merge/full CI is needed label Mar 19, 2026
@WoosukKwon
WoosukKwon merged commit 40b8363 into main Mar 19, 2026
58 of 60 checks passed
@WoosukKwon
WoosukKwon deleted the woosuk/mrv2-draft-prob branch March 19, 2026 15:41
chooper26 pushed a commit to intellistream/vllm-hust-legacy-20260831 that referenced this pull request Mar 21, 2026
Signed-off-by: Woosuk Kwon <woosuk@inferact.ai>
SouthWest7 pushed a commit to SouthWest7/vllm that referenced this pull request Mar 27, 2026
Signed-off-by: Woosuk Kwon <woosuk@inferact.ai>
khairulkabir1661 pushed a commit to khairulkabir1661/vllm that referenced this pull request Mar 27, 2026
Signed-off-by: Woosuk Kwon <woosuk@inferact.ai>
JiantaoXu pushed a commit to JiantaoXu/vllm that referenced this pull request Mar 28, 2026
Signed-off-by: Woosuk Kwon <woosuk@inferact.ai>
mtparet pushed a commit to blackfuel-ai/vllm that referenced this pull request Apr 9, 2026
Signed-off-by: Woosuk Kwon <woosuk@inferact.ai>
mystous pushed a commit to mystous/vllm_hybrid that referenced this pull request May 10, 2026
Signed-off-by: Woosuk Kwon <woosuk@inferact.ai>
my-other-github-account pushed a commit to my-other-github-account/vllm that referenced this pull request May 15, 2026
Signed-off-by: Woosuk Kwon <woosuk@inferact.ai>
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 v1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant