Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DiT with decorator, triton fused_AdaLN and fineGrained #552

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

YKTian-x2b
Copy link

@YKTian-x2b YKTian-x2b commented May 24, 2024

DiT with decorator, triton fused_AdaLN and fineGrained ffn+qkv

fp16 speedup +47.12%

Copy link

paddle-bot bot commented May 24, 2024

Thanks for your contribution!

def compute_activation(self, ffn1_out):
origin_batch_size = ffn1_out.shape[0]
origin_seq_len = ffn1_out.shape[1]
ffn1_out = ffn1_out.reshape([origin_batch_size*origin_seq_len, ffn1_out.shape[-1]])

Choose a reason for hiding this comment

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

这两个reshape加的不太好,建议拓展下fused_bias_act的实现

@YKTian-x2b YKTian-x2b changed the title DiT FFN fineGrained DiT with decorator, triton fused_AdaLN and fineGrained Jun 12, 2024
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.

None yet

3 participants