Skip to content

Conversation

@limin2021
Copy link
Contributor

@limin2021 limin2021 commented Oct 22, 2021

PR types

Function optimization

PR changes

OPs

Describe

In fused_attention op and fused_ffn op, the fused bias_add+dropout+residual+layernorm kernel or bias_add+dropout+residual kernel is used. To ease the use of this kernel, we provide a wrapper in this PR.
1.To reuse the increment computing code, we exact the corresponding code to "GetSeedDataAndIncrement" routine in dropout_impl_util.h.
2.The fused_dropout_helper.h provides the fused dropout kernel wrapper.

Note: the test of this warper will be provided in the following fused_attention_op and fused_ffn PRs.

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot-old
Copy link

paddle-bot-old bot commented Oct 22, 2021

✅ This PR's description meets the template requirements!
Please wait for other CI results.

@limin2021 limin2021 changed the title Add fused_dropout wrapper to ease use. (#36185) [cherry-pick] Add fused_dropout wrapper to ease use. Oct 22, 2021
@lanxianghit lanxianghit merged commit 05d7e2f into PaddlePaddle:release/2.2 Oct 25, 2021
wangxicoding added a commit to wangxicoding/Paddle that referenced this pull request Oct 25, 2021
fuyinno4 pushed a commit that referenced this pull request Oct 25, 2021
… RandomSeedGenerator (#36682)

* Revert "Add fused_dropout wrapper to ease use. (#36185) (#36640)"

This reverts commit 05d7e2f.

* [hybrid] seed and dropout op support force-cpu (#35820)

* [HIP] fix op not support AMD GPU bug, the flag PADDLE_WITH_ROCM is invalid

* [HIP] fix op not support AMD GPU bug, the flag PADDLE_WITH_ROCM is invalid

* [HIP] fix op not support AMD GPU bug

* [hybrid] seed and dropout op support force-cpu

* [hybrid] seed and dropout op support force-cpu

* [hybrid] seed and dropout op support force-cpu

* [hybrid] seed and dropout op support force-cpu

* [hybrid] seed and dropout op support force-cpu

* [hybrid] fix seed ci failed issue

* add AsExtra for force_cpu of seed op

* Add fused_dropout wrapper to ease use. (#36185)

* [hybrid] static model parallel dropout support deterministic RandomSeedGenerator (#36228)

Co-authored-by: xiayanming <[email protected]>
Co-authored-by: Li Min <[email protected]>
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