#2525th of 53 in Training and fine-tuning

model-optimizer

Python library for quantizing, pruning and distilling models for NVIDIA inference

Stars
5.6k
License
Apache-2.0
Last commit
Nov 2026
Last release
Nov 2026
Language
Python
Stars, last 29 weeks+3,088
21 Apr 2026: 2,499 stars28 Apr 2026: 2,536 stars5 May 2026: 2,564 stars12 May 2026: 2,611 stars19 May 2026: 2,672 stars26 May 2026: 2,723 stars2 Jun 2026: 2,804 stars9 Jun 2026: 2,851 stars16 Jun 2026: 2,891 stars23 Jun 2026: 2,934 stars30 Jun 2026: 3,029 stars7 Jul 2026: 3,130 stars14 Jul 2026: 3,199 stars21 Jul 2026: 3,250 stars28 Jul 2026: 3,301 stars4 Aug 2026: 3,352 stars11 Aug 2026: 3,396 stars18 Aug 2026: 3,427 stars25 Aug 2026: 3,463 stars1 Sept 2026: 3,664 stars8 Sept 2026: 3,752 stars15 Sept 2026: 3,799 stars22 Sept 2026: 3,836 stars29 Sept 2026: 5,061 stars6 Oct 2026: 5,213 stars13 Oct 2026: 5,288 stars20 Oct 2026: 5,378 stars27 Oct 2026: 5,454 stars3 Nov 2026: 5,506 stars10 Nov 2026: 5,587 stars

2,499 on 21 Apr 20265,587 on 10 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

NVIDIA Model Optimizer (ModelOpt) is a Python library that applies post-training quantization, quantization-aware training and distillation, pruning, NAS, speculative decoding and sparsity to Hugging Face, PyTorch or ONNX models. It exports quantized checkpoints (FP8, NVFP4 and others) for deployment in TensorRT-LLM, TensorRT, vLLM or SGLang. It integrates with Megatron-Bridge, Megatron-LM and Hugging Face Accelerate for techniques that need training.

Who it is for: ML engineers compressing LLMs and diffusion models for NVIDIA GPU inference

Strengths

  • Covers PTQ, QAT/QAD, pruning, NAS, distillation, speculative decoding and sparsity in one library
  • Exports to TensorRT-LLM, TensorRT, vLLM and SGLang; unified HF export covers transformers and diffusers
  • Publishes pre-quantized checkpoints on Hugging Face, including NVFP4 and FP8 variants
  • Installable from PyPI as nvidia-modelopt; Apache-2.0 with per-technique examples and support matrices

Weaknesses

  • Pre-1.0 API; deprecated features are removed after about one release
  • Tuned for the NVIDIA stack; NVFP4 and TensorRT paths target NVIDIA GPUs
  • Pulls in additional third-party packages whose licenses need separate review
  • QAT, QAD and pruning workflows depend on Megatron or Accelerate setups

What it needs

  • GPU required
  • Needs PyTorch, Hugging Face Transformers, ONNX, TensorRT-LLM, vLLM, SGLang, Megatron-Bridge
  • Models: Hugging Face, PyTorch, ONNX, Diffusers, FP8

Quick answers

Is model-optimizer open source?

Yes. Its code is on GitHub under the Apache-2.0 license.

Does model-optimizer need a GPU?

Yes, it needs a GPU.

Also in Training and fine-tuning

See all 53
Also in Training and fine-tuning
RankProjectScore
1unslothDesktop and web app to run and fine-tune local models Live demo ↗ (opens in a new tab)79.3k stars+1,694 (+2.2%) in 30 daysApache-2.088 out of 100
2peftPython library for LoRA and other parameter-efficient fine-tuning of Transformers models Live demo ↗ (opens in a new tab)21.9k stars+133 (+0.6%) in 30 daysApache-2.088 out of 100
3deepspeedPyTorch library for distributed training of very large models with ZeRO43.3k stars+166 (+0.4%) in 30 daysApache-2.086 out of 100
#4verlReinforcement learning training library for LLM post-training with PPO and GRPO24.2k stars+391 (+1.6%) in 30 daysApache-2.086 out of 100
#5trlPost-training library with SFT, DPO, GRPO and KTO trainers19.7k stars+247 (+1.3%) in 30 daysApache-2.086 out of 100