Skip to content

[chore] fix fused_moe_layer DefaultMoERunner#287

Open
co63oc wants to merge 1 commit into
MetaX-MACA:masterfrom
co63oc:fix2
Open

[chore] fix fused_moe_layer DefaultMoERunner#287
co63oc wants to merge 1 commit into
MetaX-MACA:masterfrom
co63oc:fix2

Conversation

@co63oc

@co63oc co63oc commented Jun 14, 2026

Copy link
Copy Markdown

Purpose

vllm-project/vllm#40560 已合并 MoERunnerBase + DefaultMoERunner 为 MoERunner
当前PR修改 import 路径

gitee 上vllm最新版本为 0.17.0,运行测试代码错误,暂未验证修改
image

from vllm import LLM, SamplingParams
llm = LLM(model="Qwen/Qwen2.5-0.5B-Instruct")
sampling_params = SamplingParams(temperature=0.8, top_p=0.95, max_tokens=256)
prompts = [
    "Hello, my name is",
]
outputs = llm.generate(prompts, sampling_params)
for prompt, output in zip(prompts, outputs):
    print(f"Prompt: {prompt}")
    print(f"Output: {output.outputs[0].text}")
    print("-" * 50)

输出错误信息
image

Test Plan

Test Result

(Optional) Documentation Update


Essential Elements of an Effective PR Description Checklist
  • The purpose of the PR, such as "Fix some issue (link existing issues this PR will resolve)".
  • The test plan, such as providing test command.
  • The test results, such as pasting the results comparison before and after, or e2e results
  • (Optional) The necessary documentation update, such as updating supported_models.md and examples for a new model.

Signed-off-by: co63oc <4617245+co63oc@users.noreply.github.com>

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

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.

Code Review

This pull request updates the import in fused_moe_layer.py to import MoERunner as DefaultMoERunner from vllm.model_executor.layers.fused_moe.runner.moe_runner instead of importing DefaultMoERunner from default_moe_runner. There are no review comments, and I have no additional feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant