Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Auto Optimizer#1801

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
shaahji wants to merge1 commit intomain
base:main
Choose a base branch
Loading
fromshaahji/autoopt
Open

Auto Optimizer#1801

shaahji wants to merge1 commit intomainfromshaahji/autoopt

Conversation

shaahji
Copy link
Contributor

@shaahjishaahji commentedApr 28, 2025
edited
Loading

Auto Optimizer

Redo auto-optimizer logic to simplify and use search engine.
Also, update the auto-opt CLI command to use AutoOptimizer.

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 runninglintrunner -a
  • Is this a user-facing change? If yes, give a description of this change to be included in the release notes.
  • Is this PR including examples changes? If yes, please remember to updateexample documentation in a follow-up PR.

(Optional) Issue link

Copy link
Contributor

@devang-mldevang-ml left a comment

Choose a reason for hiding this comment

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

Let's quickly make these changes.

@shaahjishaahjiforce-pushed theshaahji/autoopt branch 2 times, most recently fromc280226 to6dc0579CompareMay 5, 2025 12:07
@shaahjishaahjiforce-pushed theshaahji/autoopt branch 2 times, most recently from4b48cf0 toa2ab5b8CompareMay 5, 2025 20:25
@shaahjishaahji changed the titleAuto Optimizer - Work In ProgressAuto OptimizerMay 5, 2025
@shaahjishaahji marked this pull request as ready for reviewMay 5, 2025 20:26
@shaahjishaahjiforce-pushed theshaahji/autoopt branch 2 times, most recently from7e093d2 to393a904CompareMay 6, 2025 19:46
"use_model_builder": true,
"train_data_config": "wikitext2_train",
"calibration_data_config": "transformer_token_dummy_data",
"accelerator": { "accelerator_type": "cpu", "execution_provider": "CPUExecutionProvider" },
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we just use theaccelerator from thesystem ?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Olive config can have multiple system defined especially for cases where passes can use a separate host. That would make choosing the accelerator ambiguous.

return False

if accelerator_spec.execution_provider == "QNNExecutionProvider":
logger.info("QNNExecutionProvider doesn't support optimized model.")
Copy link
Contributor

Choose a reason for hiding this comment

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

Since peephole optimizations are EP independent, why do we need this check?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

This is carry forward from current auto-opt cli implementation.

# qnn ep might not supported optimized model
# will re-enable it if needed in the future
passes_to_remove.update(["transformer_optimizer","peephole_optimizer"])

@shaahjishaahjiforce-pushed theshaahji/autoopt branch 7 times, most recently from0a7a890 to3d7aaeeCompareMay 9, 2025 19:56
Redo auto-optimizer logic to simplify and use search engine.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@devang-mldevang-mldevang-ml requested changes

@xiaoyu-workxiaoyu-workxiaoyu-work left review comments

Requested changes must be addressed to merge this pull request.

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@shaahji@devang-ml@xiaoyu-work

[8]ページ先頭

©2009-2025 Movatter.jp