What problem does it solve?
Post-training quantization (PTQ) can introduce accuracy regressions relative to BF16 baselines, and recovering that gap requires expensive, carefully orchestrated Quantization-Aware Distillation (QAD) training on multi-node Slurm clusters. This Skill governs the full QAD workflow so it is only launched when explicitly authorized and executed with validated baselines, correct topology, and disciplined stop conditions.
Core Features & Use Cases
- Gap validation before training: Confirms comparable BF16/PTQ benchmark results and skips QAD when the PTQ gap is already below 1%.
- Topology and data planning: Derives TP/PP/CP/EP parallelism from model architecture and GPU memory, and prepares a capped tokenized dataset (default Nemotron-Cascade-2 blend) at the target sequence length.
- Slurm run management: Submits sequential dependent training jobs, monitors loss and checkpoints, evaluates recovery benchmarks at set iterations, and resumes from checkpoints after duration exits.
- Use Case: After quantizing a model to NVFP4 and measuring a 3% accuracy drop on key benchmarks, use this Skill to run QAD on a Slurm cluster via Megatron Bridge, evaluate checkpoints every 100 iterations, and stop once the gap to BF16 falls below 1%.
Quick Start
Run QAD with ModelOpt on my Slurm cluster to recover the accuracy gap between my BF16 baseline and the PTQ checkpoint of my model.