Configuration Reference Navigation

This directory is the field-level reference for msModelSlim configuration (YAML). It is organized as: choose a protocol first, then look up the type. For the usage workflow and end-to-end steps, see One-Click Quantization Usage Guide; for the task protocol overview, see Quantization Task Configuration Reference Navigation; for the auto-tuning protocol overview, see Auto Tuning Configuration Reference Navigation.

1. How to Use This Documentation Set

  1. Choose the protocol: the apiversion at the YAML root determines the structure of spec. Select the protocol page by task scenario (for an overview, see Quantization Task Configuration Reference Navigation). Field values and the available process / save subtypes differ between protocols; the corresponding task page is authoritative.
  2. Look up processors: each item of spec.process[] is dispatched by type. Use the type to find the corresponding page in the processors table below; spec.prior[].process references the same processors.
  3. Look up save formats: each item of spec.save[] is dispatched by type. Use the save formats table below to find the corresponding page; the VLM / multimodal generation protocols accept only the AscendV1 and MindIE types.
  4. Look up tuning: for the top-level auto-tuning structure, see Auto Tuning Configuration Reference Navigation; for the fields of strategy and evaluation, see the auto tuning table below.

This page, Quantization Task Configuration Reference Navigation, and Auto Tuning Configuration Reference Navigation are hand-written navigation pages; the remaining configuration pages are generated from source Pydantic annotations by skills/docs-management/scripts/gen_config_api_docs.py. To change a field description, edit the source annotations such as Field(description=) and regenerate; do not edit pages that carry a generated-by marker directly.

2. Task Configuration (Selected by apiversion)

To look up fields by protocol, see Quantization Task Configuration Reference Navigation. The table below is a quick entry point:

ConfigurationapiversionDescription
modelslim_v1modelslim_v1Default protocol for large language model quantization, including runner/process/save/dataset.
multimodal_vlm_modelslim_v1multimodal_vlm_modelslim_v1Quantization protocol for multimodal understanding (VLM) models.
multimodal_sd_modelslim_v1multimodal_sd_modelslim_v1Quantization protocol for multimodal generation (DiT/SD) models, including dump and inference parameters.
modelslim_convertmodelslim_convertPure weight conversion protocol, used for weight renaming, structure replacement, and format conversion.
practice_configmodelslim_v1 (inside task)Best-practice configuration: metadata + task, referenced by auto-tuning strategies.

3. Processors (spec.process[] Dispatched by type)

typeConfigurationPurpose
adapt_rotationadapt_rotationAdaptive rotation; suppresses outliers.
autoround_quantautoround_quantAutoRound quantization training.
awqawqAWQ activation-aware weight quantization.
binary_analysisbinary_analysisBinary (quantized/non-quantized) sensitivity analysis.
binary_operator_layer_wisebinary_operator_layer_wiseLayer-wise sensitivity analysis.
binary_operator_model_wisebinary_operator_model_wiseModel-level sensitivity analysis.
dynamic_cachedynamic_cacheKV cache dynamic quantization.
fa3_quantfa3_quantFA3 attention quantization.
flatquantflatquantFlatQuant quantization training.
flex_awq_sszflex_awq_sszFlexAWQSSZ smooth quantization.
flex_smooth_quantflex_smooth_quantFlexSmoothQuant smooth quantization.
float_sparsefloat_sparseFloating-point sparsity.
groupgroupCombiner processor; shares the inference process.
iter_smoothiter_smoothIterative smoothing.
kv_smoothkv_smoothKV cache smoothing.
linear_quantlinear_quantLinear layer quantization, including qconfig (activation/weight).
loadloadModule load/unload.
oasqoasqOASQ outlier-aware smooth quantization.
online_quarotonline_quarotOnline QuaRot rotation.
quarotquarotOffline QuaRot rotation.
saversaverUnified save processor.
smooth_quantsmooth_quantSmoothQuant smooth quantization.
svd_ressvd_resSVD low-rank residual compensation.
trainable_linear_quanttrainable_linear_quantTrainable linear quantization (TLQ).
unary_analysisunary_analysisUnary (non-quantized) sensitivity analysis.

4. Save Formats (spec.save[] Dispatched by type)

typeConfigurationApplicable Protocol
ascendv1_saverascendv1_saverAll protocols (modelslim_v1, multimodal_*, modelslim_convert).
compressed_tensorscompressed_tensorsOnly modelslim_v1 and modelslim_convert; the VLM / multimodal generation protocols do not accept it.
mindie_format_savermindie_format_saverAll protocols.

5. Auto Tuning

For the top-level protocol and field overview, see Auto Tuning Configuration Reference Navigation. The following are field references for each strategy and evaluation service:

ConfigurationDescription
tuning_planTuning plan root configuration (strategy + evaluation).
strategy_standing_highThe standing_high strategy.
strategy_standing_high_with_experienceThe standing_high_with_experience strategy.
strategy_binary_fallbackThe binary_fallback strategy.
evaluation_service_orientedAISBench evaluation service and pre-check configuration.