Skip to content

Conversation

@freeliuzc
Copy link
Collaborator

@freeliuzc freeliuzc commented Oct 29, 2025

Motivation

Support attention mask_offset in speculative decoding mode.

Modifications

Usage or Command

Accuracy Tests

Verified in Unit Test

Checklist

  • [✓ ] Add at least a tag in the PR title.
    • Tag list: [[FDConfig],[APIServer],[Engine], [Scheduler], [PD Disaggregation], [Executor], [Graph Optimization], [Speculative Decoding], [RL], [Models], [Quantization], [Loader], [OP], [KVCache], [DataProcessor], [BugFix], [Docs], [CI], [Optimization], [Feature], [Benchmark], [Others], [XPU], [HPU], [GCU], [DCU], [Iluvatar], [Metax]]
    • You can add new tags based on the PR content, but the semantics must be clear.
  • [✓ ] Format your code, run pre-commit before commit.
  • [✓ ] Add unit tests. Please write the reason in this PR if no unit tests.
  • [✓ ] Provide accuracy results.
  • [✓ ] If the current PR is submitting to the release branch, make sure the PR has been submitted to the develop branch, then cherry-pick it to the release branch with the [Cherry-Pick] PR tag.

@paddle-bot
Copy link

paddle-bot bot commented Oct 29, 2025

Thanks for your contribution!

* support mask_offset in speculate decoding

* fix dummpy run output

* add unit test

* fix unit test import
@freeliuzc freeliuzc force-pushed the support_attn_mask_offset_dev branch from c916f72 to 9e34794 Compare October 29, 2025 06:11
DDDivano
DDDivano previously approved these changes Oct 31, 2025
Deleter-D
Deleter-D previously approved these changes Oct 31, 2025
Copy link
Collaborator

@Deleter-D Deleter-D left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@jeff41404 jeff41404 left a comment

Choose a reason for hiding this comment

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

LGTM。新增 update_attn_mask_offsets,单测中用numpy实现了组合版本

@freeliuzc freeliuzc dismissed stale reviews from Deleter-D and DDDivano via 90663c8 November 1, 2025 04:27
@qingqing01 qingqing01 merged commit 1139879 into PaddlePaddle:develop Nov 3, 2025
14 of 16 checks passed
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.

5 participants