Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Mtp cudagraph #7761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Mtp cudagraph #7761
Changes from all commits
4df1bedd08197c54374aeFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 建议
num_speculative_tokens被硬编码为0,原始动态值被注释掉。update_model_inputs接收到num_speculative_tokens=0后,依赖该字段的注意力 mask 构造或 token 计数逻辑可能产生错误结果,相当于在推理阶段也禁用了投机 token 数量感知。若这是 XPU 投机解码的特殊需求(如 attention mask 生成方式不同),请补充注释说明原因;若为调试遗留,请恢复为self.speculative_config.num_speculative_tokens。There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓ 疑问
cudagraph_only_prefill路径被静默移除。原代码支持:
新代码只保留了 decode-only 路径,
cudagraph_only_prefill=True的配置将无法触发 cudagraph。请确认 XPU 平台是否已不再使用该配置,若是请同步更新文档或配置注释。There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓ 疑问
envs.FD_XPU_ENABLE_MIXED_EP_MODE环境变量守卫被移除。原条件:
splitwise_role == "mixed" and envs.FD_XPU_ENABLE_MIXED_EP_MODE新条件:
use_ep and splitwise_role == "mixed"这意味着在
use_ep=True+splitwise_role=mixed的场景下,即使FD_XPU_ENABLE_MIXED_EP_MODE=False,MoE phase 切换逻辑也会生效,可能改变已有部署的行为。此变更是否为有意为之?建议在 PR 描述中说明。There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓ 疑问 残留 debug 注释含拼写错误,建议合入前清理。
# tep_use_cudagraph=False,中tep_use_cudagraph应为step_use_cudagraph(缺少首字母s)。同样,capture_model中的# accept_all_drafts=True,也是残留的调试注释,若不需要请一并移除。