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
1 change: 1 addition & 0 deletions vllm/model_executor/models/mistral_large_3_eagle.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def __init__(
prefix=maybe_prefix(prefix, "fc"),
)
self.norm = RMSNorm(config.hidden_size, eps=config.rms_norm_eps)
self.aux_hidden_state_layers: tuple[int, ...] = ()
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.

high

While this change correctly initializes aux_hidden_state_layers, it highlights a broader maintainability issue. The __init__ method of EagleMistralLarge3Model does not call super().__init__() from its base class DeepseekV2Model, but instead re-implements much of its logic. This is why aux_hidden_state_layers had to be added here manually after it was added to the base class.

To prevent similar issues in the future and to track this technical debt, I suggest adding a TODO comment. This will make it clear that a refactoring is needed to make the class more robust against changes in its parent.

        # TODO: Refactor to call super().__init__ from DeepseekV2Model
        # to avoid missing future attributes.
        self.aux_hidden_state_layers: tuple[int, ...] = ()

self.make_empty_intermediate_tensors = make_empty_intermediate_tensors_factory(
["hidden_states", "residual"], config.hidden_size
)
Expand Down
Loading