Add optimum Intel® pass for converting a Huggingface Model to an OpenVINO Model#1759
Merged
jambayk merged 16 commits intomicrosoft:mainfrom Apr 18, 2025
Merged
Conversation
Add OpenVINO Optimum Conversion support and update dependencies
Improve warning messages for library name specification and dataset requirement in OpenVINO conversion pass
Improve warning messages for library name specification and dataset requirement in OpenVINO conversion pass
Improve warning message for unspecified library in OpenVINOOptimumConversion
Add documentation for OpenVINO Optimum Conversion and update version requirements. Also update pass.rst to add in the new pass.
Update test requirements and add unit test for OpenVINO Optimum Conversion pass
Enhance OpenVINOOptimumConversion to handle tokenizer output and improve unit tests
Links now point to pass.rst and to the correct subsection.
…INO passes Also fix device mapping in Quantization for GPU, which had incorrectly been mapped to CPU so far.
Refactor file handling for GenAI models in OpenVINO passes and update tokenizer model paths
Contributor
|
Please rebase or merge main to fix the conflicts that came after #1754 was merged. thanks! |
caa4688 to
0a2b14b
Compare
Contributor
Author
Thanks for the heads up! Rebased on top of latest main. |
jambayk
reviewed
Apr 17, 2025
Update formatting in pass.rst for OpenVINOOptimumConversion section
xiaoyu-work
reviewed
Apr 17, 2025
xiaoyu-work
reviewed
Apr 17, 2025
xiaoyu-work
reviewed
Apr 17, 2025
xiaoyu-work
reviewed
Apr 17, 2025
xiaoyu-work
reviewed
Apr 17, 2025
xiaoyu-work
reviewed
Apr 17, 2025
Update OpenVINO documentation links to point to the latest reference URLs and improve error handling in OpenVINOOptimumConversion for missing Diffusers package.
Add enumerations for OpenVINO quantization modes, libraries, frameworks, and weight formats
xiaoyu-work
reviewed
Apr 18, 2025
xiaoyu-work
reviewed
Apr 18, 2025
Collaborator
|
Good to |
Move nncf import to validate_config() to avoid doc build errors. Add try-except blocks for nncf and optimum imports in OpenVINO conversion.
Collaborator
|
Format check failed. Can you format the code? |
Fix an if condition check for quantization parameters provided without providing quant_mode. Avoid access using _value2member_map_ protected member for enum. Instead use list comprehension to iterate through all enum values.
Contributor
Author
Thanks! The linter warned about |
jambayk
approved these changes
Apr 18, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your changes
The changes in this PR are for creating an optimum Intel® pass for converting a Huggingface Model to an OpenVINO model, along with the ability to perform weight compression or quantization if necessary.
The aim is to add in the functionality offered by the optimum-cli export openvino command within Olive.
The changes include the addition of a new pass, unit tests for the pass, a few updates to the other OpenVINO passes, and updates to the documentation files as well.
Checklist before requesting a review
lintrunner -a(Optional) Issue link