Skip to content

[DO NOT MERGE] Copy of #2738 - #2768

Draft
Xiaoyu Z (xiaoyu-work) wants to merge 2 commits into
mainfrom
review-quick-fixes
Draft

Xiaoyu Z (xiaoyu-work) wants to merge 2 commits into
mainfrom
review-quick-fixes

Conversation

@xiaoyu-work

Copy link
Copy Markdown
Member

Describe your changes

Independent copy of #2738: Show the auto-opt deprecation notice and clean up CLI debug output.

Copies Iyanuoluwa007/Olive:review-quick-fixes to the same branch name in microsoft/Olive, preserving the original commits. The original PR remains unchanged.

Validation: the copied branch head matches the source PR head. Tests and lintrunner -a were not run for this copy-only operation; the existing code has not been revalidated.

Checklist before requesting a review

  • Add unit tests for this change.
  • Make sure all tests can pass.
  • Update documents if necessary.
  • Lint and apply fixes to your code by running lintrunner -a
  • Is this a user-facing change? If yes, give a description of this change to be included in the release notes.

(Optional) Issue link

Source PR: #2738.

From the CLI quick fixes in the codebase review:

- The auto-opt deprecation warning was emitted through logger.warning, which
  the default --log_level (ERROR) hides, so users never saw it. Print it to
  stderr instead, and add a deprecation note to the auto-opt how-to page and
  the CLI reference.
- quantize printed internal "pass list" and "selected pass configs" debug
  output to stdout. Log them at debug level instead, and send the
  dataset-required warning to stderr.
- run-pass --list_passes now prints its error message to stderr.

Part of #2516
The quantize debug diagnostics are logged while the run config is generated,
but the requested log level was only applied later by the workflow runner
(and never for dry runs), so `--log_level 0` still dropped them. Set the
Olive logger level at the start of _run_workflow.

This branch has not been deployed

No deployments
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