NVIDIA Model Optimizer

nvidia.github.io

NVIDIA library for SOTA model optimization: quantization, pruning, NAS, distillation, speculative decoding and sparsity.

Pricing
Open source
Published
Nov 6, 2026

Next steps

What it does

NVIDIA Model Optimizer (ModelOpt) is an Apache-2.0 open-source library (about 5.5k GitHub stars) that applies quantization, pruning, neural architecture search, distillation, speculative decoding and sparsity to accelerate models. It accepts Hugging Face, PyTorch or ONNX inputs, exposes Python APIs to compose techniques and export optimized quantized checkpoints, and integrates with NVIDIA Megatron-Bridge, Megatron-LM and Hugging Face Accelerate. Docs: nvidia.github.io/Model-Optimizer.

Use cases

  • Quantize an LLM before serving on GPU
  • Compose pruning plus distillation in one Python pipeline
  • Export an optimized ONNX or HF checkpoint for inference

Frequently asked questions

Is Model Optimizer free?
Yes, it is open source under Apache-2.0.
Which model formats are supported?
Hugging Face, PyTorch and ONNX inputs.
What techniques are included?
Quantization, pruning, NAS, distillation, speculative decoding and sparsity.
Where is the documentation?
https://nvidia.github.io/Model-Optimizer/
Log in to join the discussion