Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion vllm/model_executor/models/gpt_oss.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,8 +641,8 @@ def load_weights(self, weights: Iterable[tuple[str, torch.Tensor]]) -> set[str]:
)
else:
return self._load_weights_other(
ep_rank_end,
ep_rank_start,
ep_rank_end,
Copy link
Contributor

Choose a reason for hiding this comment

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

high

While this change correctly fixes the argument order, the root cause of the bug is the inconsistent parameter order between _load_weights_other and _load_weights_mxfp4. To improve readability and prevent similar bugs in the future, it's highly recommended to use keyword arguments for this call. This makes the code more explicit and robust against parameter reordering. For example:

return self._load_weights_other(
    ep_rank_start=ep_rank_start,
    ep_rank_end=ep_rank_end,
    heads_per_rank=heads_per_rank,
    head_start=head_start,
    weights=weights,
    stacked_params_mapping=stacked_params_mapping,
)

heads_per_rank,
head_start,
weights,
Expand Down