跳转至

oasq Configuration Reference

1. Configuration Overview

OASQ (Outlier-Aware Smooth Quantization) processor configuration.

Item Content
Config Class OASQProcessorConfig
Source processor.py

2. Parameter List

2.1 OASQProcessorConfig

Field Path Type Required/Optional Default Value Range or Format Description Referenced Config
type string Optional oasq oasq Processor type, fixed to oasq. None
max_iters int / null Optional null — Maximum number of iterations; if unset, the implementation default is used; must be greater than 0. None
symmetric bool Optional true — Whether to symmetrically quantize the subsequent weights/activations. None
enable_subgraph_type list[any] Optional ['norm-linear', 'linear-linear', 'ov', 'up-down'] — List of subgraph types for OASQ; the default is norm-linear, linear-linear, ov, up-down. None
include list[string] / null Optional null — Module name patterns to include; if unset, all modules match. None
exclude list[string] / null Optional null — Module name patterns to exclude; takes precedence over include. None

Configuration Constraints

  • Validates max_iters: when set, it must be greater than 0.

3. Complete Configuration Reference

apiversion: modelslim_v1
spec:
  process:
  - type: oasq
    symmetric: true
    enable_subgraph_type:
    - norm-linear
    - linear-linear
    - ov
    - up-down