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

[AutoScheduler] Use a smaller iteration number for GA to acclerate the search #6994

Merged
merged 4 commits into from
Nov 30, 2020

Conversation

merrymercy
Copy link
Member

@merrymercy merrymercy commented Nov 29, 2020

The default value of evolutionary_search_num_iters is 10. I did some experiments and found this value is too large.
I changed it to 3 or 4 and got almost the same final latency for resnet-50. So I think we can change it to a smaller number to save some search time.

cc @comaniac @jcf94 Could you also verify this for your workloads?

Copy link
Contributor

@comaniac comaniac left a comment

Choose a reason for hiding this comment

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

I can give it a try, but it should be fine as long as it's configurable. One related issue is that it's not trivial to configure policy parameters in task scheduler. If we can expose them to task scheduler, I think it's fine to change the default value of most parameters to smaller numbers.

@merrymercy
Copy link
Member Author

merrymercy commented Nov 29, 2020

@comaniac I added a new argument to control the parameters of search policy from the task scheduler.

I tested evolutionary_search_num_iters=3 for resnet-50 on both CPU and GPU. I can confirm that it is enough. It can accelerate the search by 1.5x - 2x.

Copy link
Contributor

@comaniac comaniac left a comment

Choose a reason for hiding this comment

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

LGTM

@comaniac comaniac merged commit 8f65e6b into apache:main Nov 30, 2020
@merrymercy merrymercy deleted the pr-smaller-n-iter branch November 30, 2020 10:15
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Dec 2, 2020
…e search (apache#6994)

* [AutoScheduler] Use a smaller GA iteration number

* fix

* fix

* add a new argument to control the search policy from task scheduler
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Dec 4, 2020
…e search (apache#6994)

* [AutoScheduler] Use a smaller GA iteration number

* fix

* fix

* add a new argument to control the search policy from task scheduler
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Dec 4, 2020
…e search (apache#6994)

* [AutoScheduler] Use a smaller GA iteration number

* fix

* fix

* add a new argument to control the search policy from task scheduler
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

Successfully merging this pull request may close these issues.

2 participants