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

Add kwargs to quantize calls #3317

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions nncf/quantization/quantize_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ def quantize(
model_type: Optional[ModelType] = None,
ignored_scope: Optional[IgnoredScope] = None,
advanced_parameters: Optional[AdvancedQuantizationParameters] = None,
**kwargs,
) -> TModel:
"""
Applies post-training quantization to the provided model.
Expand Down Expand Up @@ -311,6 +312,7 @@ def quantize_with_accuracy_control(
ignored_scope: Optional[IgnoredScope] = None,
advanced_quantization_parameters: Optional[AdvancedQuantizationParameters] = None,
advanced_accuracy_restorer_parameters: Optional[AdvancedAccuracyRestorerParameters] = None,
**kwargs,
) -> TModel:
"""
Applies post-training quantization algorithm with accuracy control to provided model.
Expand Down Expand Up @@ -441,6 +443,7 @@ def compress_weights(
lora_correction: Optional[bool] = None,
backup_mode: Optional[BackupMode] = None,
advanced_parameters: Optional[AdvancedCompressionParameters] = None,
**kwargs,
) -> TModel:
"""
Compress model weights.
Expand Down Expand Up @@ -658,6 +661,7 @@ def quantize_with_tune_hyperparams(
model_type: Optional[ModelType] = None,
ignored_scope: Optional[IgnoredScope] = None,
advanced_quantization_parameters: Optional[AdvancedQuantizationParameters] = None,
**kwargs,
) -> TModel:
"""
Applies post-training quantization algorithm with tune hyperparameters to provided model.
Expand Down