-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add backends: ONNX & OpenVINO + ONNX optimization, quantization (#2712)
* Add OpenVINO support * Fix OpenVINO test on Windows * Expand OpenVino support (remote models); add ONNX backend; tests Also update push_to_hub * Move OV test to test_backends * Update push_to_hub test monkeypatching * Remove some dead code * Skip multi-process tests for now Incompatible with OpenVINO imports; still works independently * Move export_optimized_onnx_model to backend.py * Update __init__ to address the export_optimized_onnx_model move * Remove dot in commit message * Add PR description for export_optimized_onnx_model * OpenVINO will override export=False; update tests * Add dynamic quantization exporting; docs; benchmarks, etc. * Require 4.41.0 for eval_strategy, etc. * Restrict optimum-intel rather than optimum * Use subfolder rather than relying only on file_name Relies on the upcoming optimum and optimum-intel versions; this is expected to fail until then. * Add link to OVBaseModel.from_pretrained * Add tips pointing to the new efficiency docs * Another pointer to the new efficiency docs * Expand the benchmark details * Update min. requirements to optimum 1.23.0 & optimum-intel 1.20.0 --------- Co-authored-by: Tom Aarsen <[email protected]>
- Loading branch information
1 parent
130bdea
commit adbf0ba
Showing
23 changed files
with
1,327 additions
and
62 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.