| name | quality-checklist |
| description | Use this skill when verifying that a new model is truly done and ready to merge. Provides a Definition-of-Done checklist covering all five test confidence levels (L1 graph build through L5 Foundry Local smoke-test), ORT GenAI runtime validation, Olive quantization compatibility, multi-dtype (f32/f16/bf16) and multi-EP (CPU/CUDA/DML) correctness, documentation requirements, and code review criteria.
|
Skill: Quality Checklist
When to use
Use this checklist before marking a new model addition as done.
Every item must be checked — or explicitly waived with a written reason —
before the PR is merged.
The Checklist
1. Code quality
2. L1 — Graph builds
3. L2 — Config compatible
4. L3 — Synthetic parity
5. L4 — Golden match
6. L5 — Generation verified
Speech-language models: The golden generation script supports the
speech-language task type for models that process audio inputs (e.g.,
Gemma4). The _generate_speech_language() function in
scripts/generate_golden.py handles audio feature extraction and input
construction for these models. Ensure the correct feature extractor
(e.g. Gemma4AudioFeatureExtractor, not WhisperFeatureExtractor) is
auto-detected via AutoFeatureExtractor.from_pretrained().
Why L4/L5 matter: Graph-build tests (L1) only verify ONNX graph
construction; they never execute the graph with real data. A MatMul shape
mismatch that crashes at runtime, a wrong normalisation type, or a missing
scaling multiplier can all pass L1 while producing completely wrong output.
L4/L5 are the only tests that catch these classes of bugs.
7. Multi-dtype correctness
Use the example --compare-hf --dtype f16/bf16 flag if a comparison script
exists:
python examples/<model>_text_generation.py --compare-hf --dtype f16
python examples/<model>_text_generation.py --compare-hf --dtype bf16
8. CLI build
8a. Multi-EP correctness (CUDA)
9. ORT GenAI runtime
Run the ORT GenAI integration test:
python -m pytest tests/ort_genai_test.py -m integration_slow -k "<model>" -sv
10. Foundry Local smoke test
If Foundry Local is not available in the current environment, document the
skip with a # TODO: verify with Foundry Local comment in the PR.
11. Olive quantization compatibility
Run the quantization integration test suite to confirm existing patterns
are not broken:
python -m pytest tests/quantization_integration_test.py -v
For new architectures, add a quantized variant test if the architecture has
novel weight layouts (e.g. fused QKV, non-standard expert routing).
12. Documentation
Waiver policy
Any item that cannot be completed must be waived explicitly in the PR
description:
**Waivers:**
- L5 golden: Model is 70B — generating golden data exceeds CI resources.
skip_reason added to YAML.
- Foundry Local: Not available in this environment. Tracked in issue #NNN.
Unchecked items without a waiver are grounds to request changes before merge.
Quick reference commands
lintrunner f --output oneline --all-files
lintrunner -a
python -m pytest tests/build_graph_test.py -k "<model_type>"
python -m pytest tests/weight_alignment_test.py -k "<model_type>"
python -m pytest tests/yaml_schema_test.py
python -m pytest tests/synthetic_parity_test.py -k "<model>" -sv
python -m pytest tests/integration_test.py -m integration -k "<model>" -sv
python scripts/generate_golden.py --level L4 --filter '<model>*'
python -m pytest tests/e2e_golden_test.py -m golden -k "<model>" -v
python scripts/generate_golden.py --level L5 --filter '<model>*'
python -m pytest tests/e2e_golden_test.py -m generation -k "<model>" -v
python -m pytest tests/ort_genai_test.py -m integration_slow -k "<model>" -sv
python -m pytest tests/quantization_integration_test.py -v
mobius build --model <hf-model-id> /tmp/out