DeepSpeed
DeepSpeed copied to clipboard
Update flops profiler to handle attn and __matmul__
Solves #4723
- handle
F.scaled_dot_product_attentionin transformer models. - handle expreesions like
a@b
@KimmiShi could you please run the pre-commit and commit any changed files? The formatting tests are failing currently.
pre-commit run --all-files
@KimmiShi could you please run the pre-commit and commit any changed files? The formatting tests are failing currently.
pre-commit run --all-files
Thanks, I fixed the yapf error and should be ok now.