-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Paddle] Add RMSNorm, RoPE and SwiGLU (#599)
* use separate qkv Signed-off-by: jaywan <[email protected]> add support for GQA Signed-off-by: jaywan <[email protected]> minor changes Signed-off-by: Shijie Wang <[email protected]> change rtol Signed-off-by: Shijie Wang <[email protected]> fix reshape issue Signed-off-by: Shijie Wang <[email protected]> add rmsnorm and rotary position embedding Signed-off-by: Shijie Wang <[email protected]> update rmsnorm Signed-off-by: Shijie Wang <[email protected]> refactor layernorm and rmsnorm Signed-off-by: Shijie Wang <[email protected]> support swiglu Signed-off-by: Shijie Wang <[email protected]> add fused rope Signed-off-by: Shijie Wang <[email protected]> minor changes Signed-off-by: Shijie Wang <[email protected]> add rope api to __init__ Signed-off-by: Shijie Wang <[email protected]> minor changes Signed-off-by: Shijie Wang <[email protected]> fix fp8 dtype issue Signed-off-by: Shijie Wang <[email protected]> * simplify ut cases Signed-off-by: jaywan <[email protected]> * Update transformer_engine/paddle/layer/attention.py Co-authored-by: Tim Moon <[email protected]> Signed-off-by: Shijie <[email protected]> * fix name issue Signed-off-by: Shijie Wang <[email protected]> --------- Signed-off-by: Shijie Wang <[email protected]> Signed-off-by: jaywan <[email protected]> Signed-off-by: Shijie <[email protected]> Co-authored-by: Tim Moon <[email protected]>
- Loading branch information
Showing
12 changed files
with
881 additions
and
237 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.