Skip to content

[XPU] add v1 support for bf16#4744

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

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

Conversation

@iosmers
Copy link
Copy Markdown
Collaborator

@iosmers iosmers commented Oct 31, 2025

XPU 支持V1 Loader

@paddle-bot
Copy link
Copy Markdown

paddle-bot bot commented Oct 31, 2025

Thanks for your contribution!

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Nov 3, 2025

CLA assistant check
All committers have signed the CLA.

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只有这里需要额外处理,其它都是一样的

Copy link
Copy Markdown
Collaborator

@plusNew001 plusNew001 left a comment

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
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