-
Notifications
You must be signed in to change notification settings - Fork 2
Feat/quantization mode #179
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
Open
ptoupas
wants to merge
9
commits into
main
Choose a base branch
from
feat/quantization-mode
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
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
klemen1999
reviewed
Nov 12, 2025
klemen1999
approved these changes
Nov 13, 2025
Collaborator
klemen1999
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some minor comments but generally LGTM.
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.
Purpose
Introduce a new quantization related feature to the modelconverter tool by adding an optional, high-level configuration parameter (
quantization_mode) to simplify model quantization during RVC4 convertion.The goal is to make quantization strategies more accessible through the UI, while still allowing full control through advanced flags.
Specification
quantization_modeparameter for RVC4 model conversion, which has 5 available options: [INT8_STANDARD,INT8_ACCURACY_FOCUSED,INT8_INT16_MIXED,FP16_STANDARD,CUSTOM]. Defaults toINT8_STANDARDand the current default behavior of the quantized conversion should not be affected.CUSTOMit will take precedence over any user-defined SNPE flags provided via thesnpe_onnx_to_dlc_args,snpe_dlc_quant_args, andsnpe_dlc_graph_prepare_args.compress_to_fp16parameter which is now replaced by theFP16_STANDARDmode in thequantization_modeparameter.quantization_modeis set toINT8_INT16_MIXEDa .json encodings file is automatically generated to keep the inputs and outputs of the model into 8-bit precision so that the generated DLC can be executed and be compatible with DAI.use_per_channel_quantization,use_per_row_quantization,optimization_level, and others, should not be affected by the changes introduced in that PR.Dependencies & Potential Impact
None / not applicable
Deployment Plan
None / not applicable
Testing & Validation
Tested the conversion of the following models under different configurations and settings through the CLI.