-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Quantize: CLI command to quantize input model
Usage: olive quantize --m <model-name> --device <cpu|gpu> --algorithms <awq,gptq> --data_config_path <file-name> -o <output-folder> Few other code improvements: * Moved global function is cli/base.py to be static members of cli/base/BaseOliveCLICommand to avoid multiple imports in each cli command implementation. Moreover these functions are only useable in the context of cli command implementation anyways. * Created new new functions (add_data_config_options, add_hf_dataset_options, and add_accelerator_options) to cli/base/BaseOliveCLICommand to avoid code duplication and standardization across different cli command implementations.
- Loading branch information
Showing
11 changed files
with
632 additions
and
345 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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.