-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PERF] Increase accuracy of pick up the best candidate (#269)
In this review, I redo the pick-up of the best candidate. Now statistical t-test is used to estimate what schedule is better. Moved this code to python/hidet/utils/benchmark/bench.py` together with another similar code. **Performance improvement for bs=1, A10G** `python tests/benchmarks/bench_vision.py resnet50 --params 1x3x224x224 --dtype float16` _**Before**_ 0.7848 0.7803 0.7808 0.7839 0.7821 0.7887 0.7785 0.7843 0.7857 0.7939 median = 0.7841 stddev = 0.45% _**After**_ 0.7717 0.7708 0.7679 0.7662 0.7717 0.7715 0.7698 0.7692 0.7706 0.7720 median = 0.7707 (**improvement 1.7%**) stddev = 0.19% (**improvement 2.37x**) **Compilation time improvement** g5.x16large instance. 64 threads/32 cores `time python tests/benchmarks/bench_op.py batch_matmul --params 1x4096x4096,1x4096x4096 --dtype float16` **_Before_** real 5m9s _**After**_ real 2m27s
- Loading branch information
1 parent
d0877d5
commit 8add3b7
Showing
7 changed files
with
104 additions
and
35 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,3 +42,7 @@ tomlkit | |
|
||
# for parser | ||
lark | ||
|
||
# for performance measurements | ||
scipy | ||
|
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