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

fx2ait low performance #921

Open
Oldpan opened this issue Sep 3, 2023 · 1 comment
Open

fx2ait low performance #921

Oldpan opened this issue Sep 3, 2023 · 1 comment

Comments

@Oldpan
Copy link

Oldpan commented Sep 3, 2023

When I run AITemplate/fx2ait/fx2ait/example/02_vision_model/test_vision_model.py

the performace is strange:

BS: 1, PT Eager time per iter: 0.0008954061126708984ms, PT Eager QPS: 1116.81, FX2AIT time per iter: 0.0008138240051269531ms, FX2AIT Eager QPS: 1228.77, Speedup: 1.10, 
== Benchmark Result for: TestResNet
BS: 8, PT Eager time per iter: 0.002293975067138672ms, PT Eager QPS: 3487.40, FX2AIT time per iter: 0.002814176635742188ms, FX2AIT Eager QPS: 2842.75, Speedup: 0.82, 
== Benchmark Result for: TestResNet
BS: 16, PT Eager time per iter: 0.003973939208984375ms, PT Eager QPS: 4026.23, FX2AIT time per iter: 0.00559388671875ms, FX2AIT Eager QPS: 2860.27, Speedup: 0.71, 
== Benchmark Result for: TestResNet
BS: 32, PT Eager time per iter: 0.006892441406250001ms, PT Eager QPS: 4642.77, FX2AIT time per iter: 0.011519876708984376ms, FX2AIT Eager QPS: 2777.81, Speedup: 0.60, 
== Benchmark Result for: TestResNet
BS: 256, PT Eager time per iter: 0.0491755615234375ms, PT Eager QPS: 5205.84, FX2AIT time per iter: 0.084581982421875ms, FX2AIT Eager QPS: 3026.65, Speedup: 0.58, 
== Benchmark Result for: TestResNet
BS: 512, PT Eager time per iter: 0.098196552734375ms, PT Eager QPS: 5214.03, FX2AIT time per iter: 0.1877259375ms, FX2AIT Eager QPS: 2727.38, Speedup: 0.52, 
.
----------------------------------------------------------------------
Ran 1 test in 254.248s

OK

My env is:

  • 3080
  • cuda11.8
@ipiszy
Copy link
Contributor

ipiszy commented Sep 6, 2023

This is weird, more debugging is needed.
Probably you could try to dump some gpu traces by using Nsight Systems.

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

No branches or pull requests

2 participants