Skip to content

Remove deprecated "qdq" mode value from config and recipes #971

Description

@DingmaomaoBJTU

Summary

The WinMLQuantizationConfig.mode field currently accepts "qdq" as a legacy value, which is silently mapped to "static" in from_dict(). This creates confusion since "qdq" and "static" mean the same thing.

A follow-up PR should:

  1. Update all recipe JSON files (~50+ in examples/recipes/) from "mode": "qdq""mode": "static"
  2. Update documentation (docs/reference/index.md, docs/concepts/config-and-build.md) to remove "qdq" from the schema
  3. Update unit tests (test_config.py, test_build.py, test_onnx.py, test_hf.py) to use "static" instead of "qdq"
  4. Remove the backward-compat shim in src/winml/modelkit/quant/config.py (if raw_mode == "qdq": raw_mode = "static")
  5. Update the Literal type from Literal["static", "dynamic", "rtn", "fp16"] — confirm no references to "qdq" remain

Notes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions