Skip to content

[XPU] add v1 support for bf16#4744

Merged
plusNew001 merged 3 commits into
PaddlePaddle:developfrom
iosmers:unify_mdoel_style
Nov 3, 2025
Merged

[XPU] add v1 support for bf16#4744
plusNew001 merged 3 commits into
PaddlePaddle:developfrom
iosmers:unify_mdoel_style

Conversation

@iosmers

@iosmers iosmers commented Oct 31, 2025

Copy link
Copy Markdown
Collaborator

XPU 支持V1 Loader

@paddle-bot

paddle-bot Bot commented Oct 31, 2025

Copy link
Copy Markdown

Thanks for your contribution!

@CLAassistant

CLAassistant commented Nov 3, 2025

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Comment thread fastdeploy/model_executor/layers/backends/xpu/moe/fused_moe.py Outdated
Comment on lines +86 to +99
set_weight_attrs(
layer.up_gate_proj_weight,
{
"weight_loader": extra_weight_attrs.get("weight_loader", default_weight_loader(layer.fd_config)),
"weight_need_transpose": extra_weight_attrs.get("model_format") == "torch",
},
)
set_weight_attrs(
layer.down_proj_weight,
{
"weight_loader": extra_weight_attrs.get("weight_loader", default_weight_loader(layer.fd_config)),
"weight_need_transpose": extra_weight_attrs.get("model_format") == "torch",
},
)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

v1只有这里需要额外处理,其它都是一样的

@plusNew001 plusNew001 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@plusNew001 plusNew001 merged commit 377f3bf into PaddlePaddle:develop Nov 3, 2025
13 of 15 checks passed
chang-wenbin pushed a commit to chang-wenbin/FastDeploy that referenced this pull request Mar 2, 2026
* support v1 loader

* update code style

* update code
xiaoguoguo626807 pushed a commit to xiaoguoguo626807/FastDeploy that referenced this pull request May 7, 2026
* support v1 loader

* update code style

* update code
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.

4 participants