Skip to content

[XPU] refactor of block_attn param 'pos_emb_type' - #5511

Merged
iosmers merged 1 commit into
PaddlePaddle:developfrom
cqulilujia:pos
Dec 12, 2025
Merged

iosmers merged 1 commit into
PaddlePaddle:developfrom
cqulilujia:pos

Conversation

@cqulilujia

Copy link
Copy Markdown
Contributor

Motivation

重构XPU block_attention算子中的pos_emb_type参数,将pos_emb_type的赋值从框架下沉到自定义算子,增加算子的通用性,减少新模型的适配成本和出错风险。

@paddle-bot

paddle-bot Bot commented Dec 11, 2025

Copy link
Copy Markdown

Thanks for your contribution!

@paddle-bot paddle-bot Bot added the XPU label Dec 11, 2025

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

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@c3aaa7e). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #5511   +/-   ##
==========================================
  Coverage           ?   60.28%           
==========================================
  Files              ?      329           
  Lines              ?    41114           
  Branches           ?     6261           
==========================================
  Hits               ?    24785           
  Misses             ?    14440           
  Partials           ?     1889           
Flag Coverage Δ
GPU 60.28% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

@iosmers

iosmers commented Dec 12, 2025

Copy link
Copy Markdown
Collaborator

LGTM

@iosmers
iosmers merged commit 888c4b9 into PaddlePaddle:develop Dec 12, 2025
14 of 17 checks passed
chang-wenbin pushed a commit to chang-wenbin/FastDeploy that referenced this pull request Mar 2, 2026
xiaoguoguo626807 pushed a commit to xiaoguoguo626807/FastDeploy that referenced this pull request May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants