Back to Devoured - September 25, 2026
DEVOURED
Model Optimizer (GitHub Repo)

Model Optimizer (GitHub Repo)

DevOps GitHub
NVIDIA open-sourced its Model Optimizer library, providing standard tools like quantization and pruning to accelerate model inference for deployment.
What: NVIDIA Model Optimizer (ModelOpt) is now open source, enabling developers to compress models through pruning, quantization (FP8/NVFP4), and distillation. It integrates with Hugging Face, PyTorch, and ONNX, exporting checkpoints ready for TensorRT-LLM, SGLang, and vLLM.
Why it matters: Standardizing optimization tools is crucial for making LLMs and VLMs performant on commodity and specialized hardware by reducing memory footprint and increasing throughput.
Takeaway: Install `nvidia-modelopt` via PyPI and use the library to prune and quantize your custom fine-tuned models before deploying to your vLLM or SGLang infrastructure.
Deep dive
  • Supports various optimization techniques: Post-Training Quantization (PTQ), Quantization-Aware Training (QAT), pruning, and speculative decoding.
  • Offers specialized FP4/FP8 quantization workflows for NVIDIA GPU architectures.
  • Provides Python APIs for integrating into existing PyTorch-based training pipelines.
  • Features a pre-configured agent skill for Claude Code.
Decoder
  • Quantization: The process of reducing the precision of the numbers used to represent a model's parameters (e.g., from 16-bit to 4-bit), which reduces memory usage and speeds up inference.
  • Pruning: The process of removing unnecessary or redundant weights from a neural network to reduce model size without significantly impacting accuracy.
  • Distillation: Training a smaller model to produce outputs consistent with a larger, more complex model.
Original article

NVIDIA Model Optimizer

NVIDIA Model Optimizer (referred to as Model Optimizer, or ModelOpt) is a library comprising state-of-the-art model optimization techniques including quantization, pruning, Neural Architecture Search (NAS), distillation, speculative decoding and sparsity to accelerate models.

[Input] Model Optimizer currently supports inputs of a Hugging Face, PyTorch or ONNX model.

[Optimize] Model Optimizer provides Python APIs for users to easily compose the above model optimization techniques and export an optimized quantized checkpoint. Model Optimizer is also integrated with NVIDIA Megatron-Bridge, Megatron-LM and Hugging Face Accelerate for training required inference optimization techniques.

[Export for deployment] Seamlessly integrated within the NVIDIA AI software ecosystem, the quantized checkpoint generated from Model Optimizer is ready for deployment in downstream inference frameworks like SGLang, TensorRT-LLM, TensorRT, or vLLM. The unified Hugging Face export API now supports both transformers and diffusers models.

Latest News

Install

To install stable release packages for Model Optimizer with pip from PyPI:

pip install -U nvidia-modelopt[all]

To install from source in editable mode with all development dependencies or to use the latest features, run:

git clone git@github.com:NVIDIA/Model-Optimizer.git
cd Model-Optimizer
pip install -e .[dev]

Techniques

Technique Description Docs
Post Training Quantization Compress model size by 2x-4x, speeding up inference while preserving model quality! docs
Quantization Aware Training / Distillation Refine accuracy of quantized models even further with a few training steps! docs
Pruning Reduce your model parameters or memory footprint and accelerate inference by removing unnecessary weights!
Distillation Reduce deployment model size by teaching small models to behave like larger models! docs
Speculative Decoding Train draft modules to predict extra tokens during inference! docs
Sparsity Efficiently compress your model by storing only its non-zero parameter values and their locations docs

Deprecation Policy

Model Optimizer follows a structured approach to managing deprecated features:

  • Communication: Deprecation notices are documented in the Changelog.
  • Migration Period: Since Model Optimizer is still pre-1.0, we provide a 1-release (~1-month) migration period after deprecation.
  • Removal: Following the migration period, deprecated elements are removed in alignment with semantic versioning standards.

Citation

@misc{nvidia-modelopt,
  author       = {{NVIDIA Corporation}},
  title        = {{NVIDIA Model Optimizer}},
  howpublished = {\url{https://github.com/NVIDIA/Model-Optimizer}},
  year         = {2024--2026},
  note         = {GitHub repository}
}

AI Agents

ModelOpt's agent skills can be installed from this repository and used in any workspace.

Claude Code

claude plugin marketplace add https://github.com/NVIDIA/Model-Optimizer.git
claude plugin install modelopt@modelopt

Codex

codex plugin marketplace add https://github.com/NVIDIA/Model-Optimizer.git
Explore all 50 articles in today's digest

Fresh dev news, AI-digested daily. Never miss a trend at devoured.fyi