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

Fix optimizer's command line reading #1961

Merged
merged 1 commit into from
Jul 16, 2024
Merged

Conversation

idruker-cerence
Copy link
Contributor

The command line optimum-cli onnxruntime optimize ... is incorrectly parsed. With -c flag specified, it creates an empty ORTConfig object without loading a passed-in configuration file.

This change:

fixes the issue
fixes the typo "from_pretained" --> "from_pretrained"
adds handling of the error case when none of -O1, -O2, -O3, -O4 or -c options is provided

Copy link
Contributor

@fxmarty fxmarty left a comment

Choose a reason for hiding this comment

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

Thanks a lot

@fxmarty fxmarty merged commit d9bd7c3 into huggingface:main Jul 16, 2024
echarlaix pushed a commit that referenced this pull request Aug 5, 2024
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