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

[MetaSchedule] Add "disabled_pass" option in tuning API #13659

Merged
merged 2 commits into from
Dec 28, 2022

Conversation

ibsidorenko
Copy link
Contributor

Now there is no way to disable passes in MetaShedule tuner. This commit adds new parameter disabled_pass in tuning API (tune_relay/compile_relay). It can be used for different experiments and non default behavoir.

@tvm-bot
Copy link
Collaborator

tvm-bot commented Dec 26, 2022

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

Generated by tvm-bot

@ibsidorenko
Copy link
Contributor Author

cc @masahi @junrushao

Copy link
Contributor

@echuraev echuraev left a comment

Choose a reason for hiding this comment

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

Also, I have a question. Should we add a test for this option or not?

@@ -250,6 +252,7 @@ def tune_relay(
seed: Optional[int] = None,
module_equality: str = "structural",
num_tuning_cores: Union[Literal["physical", "logical"], int] = "physical",
disabled_pass: Optional[Union[List[str], Set[str], Tuple[str]]] = None,
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please add information about this parameter to the docstring?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -345,6 +350,7 @@ def compile_relay(
}
),
executor: Optional["relay.backend.Executor"] = None,
disabled_pass: Optional[Union[List[str], Set[str], Tuple[str]]] = None,
Copy link
Contributor

Choose a reason for hiding this comment

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

Add information to doc

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Now there is no way to disable passes in MetaShedule tuner. This commit adds
new parameter "disabled_pass" in tuning API (tune_relay/compile_relay).
It can be used for different experiments and non default behavoir.
@ibsidorenko ibsidorenko force-pushed the metaschedule-disable-pass-option branch from 22522d8 to 545781e Compare December 28, 2022 07:32
@ibsidorenko
Copy link
Contributor Author

Also, I have a question. Should we add a test for this option or not?

I thought about that... since this is rather trivial change, not a bug fixing + it can be checked with tuning only (time consuming operation) I decided not to add unit test.

This commit adds unit test for 'disabled_pass' parameter in
MetaSchedule tuner. Test should throw TVMError exception. That's why it
is marked as XFAIL.
Copy link
Contributor

@echuraev echuraev left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks

@echuraev echuraev merged commit 8551a5c into apache:main Dec 28, 2022
fzi-peccia pushed a commit to fzi-peccia/tvm that referenced this pull request Mar 27, 2023
* [MetaSchedule] Add "disabled_pass" option in tuning API

Now there is no way to disable passes in MetaShedule tuner. This commit adds
new parameter "disabled_pass" in tuning API (tune_relay/compile_relay).
It can be used for different experiments and non default behavoir.

* Add unit test for 'disabled_pass' parameter in MetaScheduler tuner

This commit adds unit test for 'disabled_pass' parameter in
MetaSchedule tuner. Test should throw TVMError exception. That's why it
is marked as XFAIL.
@ibsidorenko ibsidorenko deleted the metaschedule-disable-pass-option branch March 29, 2023 06:24
mikeseven pushed a commit to mikeseven/tvm that referenced this pull request Sep 27, 2023
* [MetaSchedule] Add "disabled_pass" option in tuning API

Now there is no way to disable passes in MetaShedule tuner. This commit adds
new parameter "disabled_pass" in tuning API (tune_relay/compile_relay).
It can be used for different experiments and non default behavoir.

* Add unit test for 'disabled_pass' parameter in MetaScheduler tuner

This commit adds unit test for 'disabled_pass' parameter in
MetaSchedule tuner. Test should throw TVMError exception. That's why it
is marked as XFAIL.
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.

4 participants