Skip to content

[Bugfix] fix activation in cpu_fused_moe_torch call#34696

Merged
vllm-bot merged 1 commit intovllm-project:mainfrom
michalowski-arm:fix-activation-moe-torch
Feb 18, 2026
Merged

[Bugfix] fix activation in cpu_fused_moe_torch call#34696
vllm-bot merged 1 commit intovllm-project:mainfrom
michalowski-arm:fix-activation-moe-torch

Conversation

@michalowski-arm
Copy link
Contributor

@michalowski-arm michalowski-arm commented Feb 17, 2026

Fixes the bug in #34689 introduced by #33843. Now passing activation.value instead of activation to cpu_fused_moe_torch since it expects a str argument.

Signed-off-by: Marek Michalowski <marek.michalowski@arm.com>
Copy link
Contributor

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

Choose a reason for hiding this comment

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

Code Review

This pull request addresses a bug in the cpu_fused_moe_torch call within the forward_torch method. The activation parameter was previously passed as a MoEActivation enum object, but the cpu_fused_moe_torch function expects a string. The change correctly passes activation.value, which provides the string representation of the activation function. This fix is correct and resolves the type mismatch issue.

@mergify mergify bot added cpu Related to CPU backends bug Something isn't working labels Feb 17, 2026
Copy link
Contributor

@fadara01 fadara01 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@fadara01
Copy link
Contributor

@mgoin / @bigPYJ1151 could you please take a look?

Copy link
Member

@mgoin mgoin left a comment

Choose a reason for hiding this comment

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

Sorry about that, LGTM!

@mgoin mgoin added the ready ONLY add when PR is ready to merge/full CI is needed label Feb 17, 2026
@mgoin mgoin enabled auto-merge (squash) February 17, 2026 16:59
@vllm-bot vllm-bot merged commit e89a91d into vllm-project:main Feb 18, 2026
60 of 65 checks passed
jasonozuzu-cohere pushed a commit to jasonozuzu-cohere/vllm that referenced this pull request Feb 18, 2026
Signed-off-by: Marek Michalowski <marek.michalowski@arm.com>
Signed-off-by: Jason Ozuzu <jasonozuzu@cohere.com>
ZJY0516 pushed a commit to ZJY0516/vllm that referenced this pull request Feb 23, 2026
Signed-off-by: Marek Michalowski <marek.michalowski@arm.com>
Signed-off-by: zjy0516 <riverclouds.zhu@qq.com>
llsj14 pushed a commit to llsj14/vllm that referenced this pull request Mar 1, 2026
Signed-off-by: Marek Michalowski <marek.michalowski@arm.com>
tunglinwood pushed a commit to tunglinwood/vllm that referenced this pull request Mar 4, 2026
Signed-off-by: Marek Michalowski <marek.michalowski@arm.com>
askliar pushed a commit to askliar/vllm that referenced this pull request Mar 9, 2026
Signed-off-by: Marek Michalowski <marek.michalowski@arm.com>
Signed-off-by: Andrii Skliar <askliar@nvidia.com>
Copilot AI pushed a commit to machov/vllm that referenced this pull request Mar 10, 2026
Signed-off-by: Marek Michalowski <marek.michalowski@arm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cpu Related to CPU backends ready ONLY add when PR is ready to merge/full CI is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants