Skip to content
Open
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_ascend/ops/linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ def forward(
self,
input_,
is_prefill: bool = True,
is_force_scatter: bool = False,
) -> Union[torch.Tensor, tuple[torch.Tensor, Optional[Parameter]]]:
if self.custom_op is not None:
return self.custom_op.apply(input_)
Copy link
Contributor

Choose a reason for hiding this comment

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

critical

The newly added is_force_scatter parameter and the existing is_prefill parameter are not being passed to self.custom_op.apply(). This makes the fix incomplete as the custom op will not receive these values. You should pass them to the apply method. This will also require updating the signature of apply and apply_impl methods in CustomLinearOp and its subclasses in vllm_ascend/ops/linear_op.py.

Suggested change
return self.custom_op.apply(input_)
return self.custom_op.apply(input_, is_prefill=is_prefill, is_force_scatter=is_force_scatter)

Expand Down
Loading