ai-agent

Model-Optimizer

A unified library of SOTA model optimization techniques like quantization, distillation, pruning, neural architecture search, speculative decoding, etc. It compresses deep learning models for downstream deployment frameworks like TensorRT-LLM, TensorRT, vLLM, etc. to optimize inference speed.
5,659 stars+45★ this week835 forksPythonUpdated 11/24/2026100% free · open source
What it does

Model‑Optimizer compresses a PyTorch/Llama model with quantization, pruning, or distillation so it can run faster on deployment back‑ends like TensorRT‑LLM or vLLM.

When to use it
  • •Your LLM inference latency is too high for real‑time user queries.
  • •You need to fit a large model onto a GPU with limited VRAM.
  • •You want to ship a model to an edge server that only supports TensorRT‑LLM.
Ready-to-paste prompt
model-optimize distill --teacher-model-path ./Meta-Llama-3-8B --student-model-path ./distilled --max-steps 20000 --learning-rate 3e-5
Heads up: Model‑Optimizer requires CUDA 12.x and a GPU driver that matches the installed PyTorch version; mismatched drivers will cause a “CUDA driver version is insufficient” error during export.
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

⚡ Runs out of the box

A prompt/skill package — nothing to install beyond adding it to your AI tool.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/model-optimizer && curl -fsSL https://workflowstacks.com/api/skills/model-optimizer/claude-skill -o ~/.claude/skills/model-optimizer/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How Model-Optimizer works
Codeflow
Free to inspect

Model-Optimizer is a very large Python project (~304k lines across 1002 code files, plus 621 test files). You install it into your AI tool with one command; there is nothing to run yourself. Last commit this month, Apache-2.0 license, has a test suite.

Size
Very large codebase
~304k lines · 1002 code files · days to read — use, don't read
Setup
Install as a skill / plugin
Add it to Claude Code (or your AI tool) with one command — 16 skills inside. Nothing to run yourself.
Runs on
Inside your AI tool
Helper scripts use Python
Python 98%Shell 1%Cuda 1%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    AGENTS.md
    The instructions the AI actually follows
  3. 3
What's in each folder
plugins/Sub-packages / plugins111 files
examples/Examples you can copy502 files
docs/Documentation75 files
modelopt/Folder702 files
modelopt_recipes/Folder242 files
tools/Helper scripts160 files
experimental/Folder33 files
.claude-plugin/Plugin manifest — what gets installed1 files
READMEHas testsDocumentedCI checksExamples includedApache-2.0 licenseUpdated this month
Quick Actions
Details
Creator
NVIDIA
Language
Python
Category
ai-agent
Published
4/23/2024

Are you the creator of this tool? and earn 85% of every sale.

Show it off in your README:

Featured on WorkflowStacks
[![Featured on WorkflowStacks](https://workflowstacks.com/api/badge/model-optimizer.svg)](https://workflowstacks.com/skills/model-optimizer?utm_source=github&utm_medium=badge)
🔥 Hot this week, in your inbox
Skills like this, every Monday.

The five fastest-growing open-source AI skills, ranked by GitHub star growth. One email a week, unsubscribe anytime.