-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[AutoTVM][Testing] Add tune_relay
scripts
#12685
[AutoTVM][Testing] Add tune_relay
scripts
#12685
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity is there any reason this couldn't be integrated into TVMC under tvmc tune
? - cc @leandron
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point @lhutton1 - I think there is a big feature overlap here with tvmc tune
, and from the community point of view, tvmc
has tests, documentation, tutorials and support material available.
Any reason to have such a similar CLI in a separate place?
Thanks for asking! As indicated, it’s only used for testing purpose. We have no interest or intent to have any overlap with tvmc, but instead are using this for inspecting performance parity as a testing tool. |
Some other examples:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise LGTM. IMHO, it's no hurt to have testing scripts under certain module in general, as it is serving different users than TVMC. Specifically, testing scripts could be more flexible for future changes as they don't impact user experience.
Actually thinking this way it makes sense. Thanks @comaniac |
Thanks! Yeah we mainly wanted some flexibility testing things out - and I fully support it if some day you guys want to migrate similar testing logic to TVMC :-) |
835be34
to
e760594
Compare
Example: ```bash python -m tvm.autotvm.testing.tune_relay \ --workload bert_base \ --input-shape '[1,64]' \ --target "llvm" \ --num-trials 800 \ --rpc-host 192.168.6.66 \ --rpc-port 4445 \ --rpc-key 3090ti \ --work-dir /logs/autotvm-bert_base \ --cache-dir /cache-workloads \ --graph-tuner True \ --cpu-flush True \ --backend graph ```
e760594
to
87cad9d
Compare
Example: ```bash python -m tvm.autotvm.testing.tune_relay \ --workload bert_base \ --input-shape '[1,64]' \ --target "llvm" \ --num-trials 800 \ --rpc-host 192.168.6.66 \ --rpc-port 4445 \ --rpc-key 3090ti \ --work-dir /logs/autotvm-bert_base \ --cache-dir /cache-workloads \ --graph-tuner True \ --cpu-flush True \ --backend graph ```
Example: