You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add configurable qparams_algorithm parameter to quantize_model_() with
"hqq_scale_only" as default. HQQ (Half-Quadratic Quantization) provides
better accuracy by minimizing reconstruction error during quantization.
Applied to IntxWeightOnlyConfig and Int8DynamicActivationIntxWeightConfig.
Int4WeightOnlyConfig (4w with packing) keeps hardcoded "hqq" due to
different API. UIntxWeightOnlyConfig (fpa4w) unchanged as it lacks this
parameter.
Users can override globally via:
from optimum.exporters.executorch import quantization
quantization.DEFAULT_QPARAMS_ALGORITHM = "affine"
0 commit comments