Fix gpt oss weight loading with EP + bf16#28765
Merged
jikunshang merged 2 commits intovllm-project:mainfrom Nov 16, 2025
Merged
Fix gpt oss weight loading with EP + bf16#28765jikunshang merged 2 commits intovllm-project:mainfrom
jikunshang merged 2 commits intovllm-project:mainfrom
Conversation
Signed-off-by: ashors1 <ashors@nvidia.com>
5 tasks
Contributor
There was a problem hiding this comment.
Code Review
This pull request correctly identifies and fixes a bug in the _load_weights_other method within the GptOssModel class. The parameters ep_rank_start and ep_rank_end were swapped in the function signature, leading to incorrect weight slicing when using expert parallelism. The change aligns the signature with its call site and makes it consistent with the _load_weights_mxfp4 method, resolving the indexing issue. The fix is accurate and well-contained.
jikunshang
approved these changes
Nov 15, 2025
Collaborator
jikunshang
left a comment
There was a problem hiding this comment.
nice catch! thanks for fixing.
jeejeelee
approved these changes
Nov 16, 2025
devpatelio
pushed a commit
to SumanthRH/vllm
that referenced
this pull request
Nov 29, 2025
Signed-off-by: ashors1 <ashors@nvidia.com>
kitaekatt
pushed a commit
to kitaekatt/vllm
that referenced
this pull request
Dec 1, 2025
Signed-off-by: ashors1 <ashors@nvidia.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
The signature for
_load_weights_otheris incorrect. The start and end indices are flipped, which casues an indexing issue when attempting to extract the weights on the current EP rank. This fixes the signature to be consistent with_load_weights_mxfp4.Test Plan
Test Result
Running
_load_weights_otherwith EP now works as expected.Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.