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

Clean up run_bench script #197

Merged
merged 4 commits into from
Jan 27, 2021
Merged

Clean up run_bench script #197

merged 4 commits into from
Jan 27, 2021

Conversation

wconstab
Copy link
Contributor

remove upload steps since timing measurement and score upload are happening on pytorch CI now.

shorten the runtime of pytest test_bench.py to make this CI faster, and focused on correctness rather than timing.

remove upload steps since timing measurement and score upload are happening on pytorch CI now.

shorten the runtime of pytest test_bench.py to make this CI faster, and focused on correctness rather than timing.
# configure benchmark invocation to be as fast as possible since this run isn't used for actual timing results,
# but it's still useful to see (imprecise) timing output for debug/diagnosis of adding a new model
# 'real' timing and score computation are handled by pytorch CI github actions runner with performance-tuned machine
# use --benchmark-disable for now to make things fast; need to modify defaults in test_bench.py before possible to override runtime cmd line:
Copy link
Contributor

Choose a reason for hiding this comment

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

What does "benchmark-disable" do here? Does it run all models for just 1 iteration?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i didn't end up using this, but what it does is just runs all models once and not time them.

Since we wanted timing, and we also want a json file output to test compute_score.py, I switched to min_rounds=1, max_time= and warmup-disable. It makes the suite run quite a bit faster but still not as fast as the python test.py case, so there is some overhead.

@wconstab wconstab merged commit 2dc08cf into master Jan 27, 2021
@wconstab wconstab deleted the wconstab/cleanup_runbench branch January 27, 2021 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants