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

[tuner] add the output file #815

Merged
merged 7 commits into from
Jan 14, 2025
Merged

Conversation

bangtianliu
Copy link
Contributor

This PR addresses the task described in #806.

It adds a separate output file to the tuner to summarize the most important information, such as the top candidates (dispatch and model) and paths to their specifications.

Also, it fixes the issue with incorrect reporting of the compilation success rate in the log.

Copy link
Member

@kuhar kuhar left a comment

Choose a reason for hiding this comment

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

Could you also add the time information (absolute time and % of the baseline)?

tuner/examples/simple/simple_tuner.py Outdated Show resolved Hide resolved
tuner/examples/simple/simple_tuner.py Outdated Show resolved Hide resolved
tuner/examples/simple/simple_tuner.py Outdated Show resolved Hide resolved
tuner/tuner/libtuner.py Outdated Show resolved Hide resolved
@bangtianliu bangtianliu requested a review from kuhar January 13, 2025 15:41
@bangtianliu bangtianliu force-pushed the tune_output branch 2 times, most recently from 61b965b to e62d2c5 Compare January 13, 2025 16:22
Copy link
Member

@kuhar kuhar left a comment

Choose a reason for hiding this comment

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

We should open the file once and keep appending to it

tuner/tuner/libtuner.py Outdated Show resolved Hide resolved
@kuhar
Copy link
Member

kuhar commented Jan 13, 2025

Instead of opening a plaintext file, we can have multiple loggers configured with different logging level, such that the summary log contains only the most important messages: https://docs.python.org/3/howto/logging-cookbook.html#logging-to-multiple-destinations

@bangtianliu bangtianliu requested a review from kuhar January 13, 2025 19:52
@bangtianliu bangtianliu force-pushed the tune_output branch 4 times, most recently from f4b01ab to fbe3d30 Compare January 14, 2025 02:20
tuner/tuner/libtuner.py Show resolved Hide resolved
tuner/tuner/libtuner.py Outdated Show resolved Hide resolved
tuner/tuner/libtuner.py Outdated Show resolved Hide resolved
tuner/tuner/libtuner_test.py Show resolved Hide resolved
tuner/tuner/libtuner_test.py Outdated Show resolved Hide resolved
Copy link
Member

@kuhar kuhar left a comment

Choose a reason for hiding this comment

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

Can you upload a sample summary log file so that we know what to expect after merging this?

@bangtianliu
Copy link
Contributor Author

Can you upload a sample summary log file so that we know what to expect after merging this?

summary.log

Signed-off-by: Bangtian Liu <liubangtian@gmail.com>
Signed-off-by: Bangtian Liu <liubangtian@gmail.com>
Signed-off-by: Bangtian Liu <liubangtian@gmail.com>
Signed-off-by: Bangtian Liu <liubangtian@gmail.com>
Signed-off-by: Bangtian Liu <liubangtian@gmail.com>
Copy link
Member

@kuhar kuhar left a comment

Choose a reason for hiding this comment

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

Overall looks good, but it seems like there's some stuff to clean up still

tuner/examples/simple/simple_tuner.py Outdated Show resolved Hide resolved
tuner/examples/simple/simple_tuner.py Outdated Show resolved Hide resolved
tuner/examples/simple/simple_tuner.py Outdated Show resolved Hide resolved
tuner/tuner/libtuner.py Outdated Show resolved Hide resolved
tuner/tuner/common.py Outdated Show resolved Hide resolved
@bangtianliu bangtianliu requested a review from kuhar January 14, 2025 16:42
Signed-off-by: Bangtian Liu <liubangtian@gmail.com>
tuner/tuner/libtuner.py Outdated Show resolved Hide resolved
Signed-off-by: Bangtian Liu <liubangtian@gmail.com>
@bangtianliu bangtianliu requested a review from kuhar January 14, 2025 17:28
Copy link
Member

@kuhar kuhar left a comment

Choose a reason for hiding this comment

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

LGTM

@bangtianliu bangtianliu merged commit b6c9927 into nod-ai:main Jan 14, 2025
34 checks passed
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