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

ModelBenchmarks - Fix early stop logic due to num_steps. #522

Merged
merged 9 commits into from Apr 28, 2023

Conversation

guoshzhao
Copy link
Contributor

Description
Model benchmarks can stop due to num_steps or duration config which will take effect when the value is set greater than 0.
If both are set greater than 0, the earliest condition reached will work.

@guoshzhao guoshzhao requested a review from a team as a code owner April 17, 2023 08:58
@cp5555 cp5555 requested a review from yukirora April 17, 2023 11:03
@codecov
Copy link

codecov bot commented Apr 17, 2023

Codecov Report

Merging #522 (8ee1c8f) into main (664c59a) will decrease coverage by 0.05%.
The diff coverage is 25.00%.

@@            Coverage Diff             @@
##             main     #522      +/-   ##
==========================================
- Coverage   87.24%   87.20%   -0.05%     
==========================================
  Files          89       89              
  Lines        5965     5969       +4     
==========================================
+ Hits         5204     5205       +1     
- Misses        761      764       +3     
Flag Coverage Δ
cpu-python3.6-unit-test 73.44% <25.00%> (-0.04%) ⬇️
cpu-python3.7-unit-test 73.44% <25.00%> (-0.04%) ⬇️
cpu-python3.8-unit-test 73.92% <25.00%> (-0.04%) ⬇️
cuda-unit-test 87.13% <25.00%> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...perbench/benchmarks/model_benchmarks/model_base.py 84.26% <25.00%> (-1.37%) ⬇️

docs/superbench-config.mdx Outdated Show resolved Hide resolved
@cp5555 cp5555 mentioned this pull request Apr 23, 2023
21 tasks
@cp5555 cp5555 added benchmarks SuperBench Benchmarks model-benchmarks Model Benchmark Test for SuperBench Benchmarks labels Apr 26, 2023
@guoshzhao guoshzhao merged commit f38a982 into main Apr 28, 2023
21 of 22 checks passed
@guoshzhao guoshzhao deleted the guzhao/fix_numstep branch April 28, 2023 05:15
@yukirora yukirora mentioned this pull request Jul 12, 2023
18 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
benchmarks SuperBench Benchmarks model-benchmarks Model Benchmark Test for SuperBench Benchmarks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants