# Intel Neural Compressor

> Intel Neural Compressor — SOTA low-bit LLM quantization (INT8/FP8/INT4/NVFP4), sparsity, pruning, and distillation for PyTorch, TensorFlow, and ONNX Runtime.

- Skill: `mkurman/intel-neural-compressor` (Agent Skill)
- Install (CLI): `npx skillmds@latest add mkurman/intel-neural-compressor`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mkurman/intel-neural-compressor/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: mkurman (https://skillmd.com/u/mkurman)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/mkurman/intel-neural-compressor

---


## Overview

Intel Neural Compressor provides low-bit quantization (INT8, FP8, INT4, MXFP4, NVFP4), sparsity, pruning, and knowledge distillation for optimizing models on Intel hardware and beyond.

## Installation

```bash
uv pip install neural-compressor
```

## Basic Quantization

```python
from neural_compressor import Quantization, config

# Post-training quantization
quantizer = Quantization(config)
q_model = quantizer(model)
q_model.save("quantized_model")
```

## Pruning

```python
from neural_compressor import Pruning

pruner = Pruning(model, config={"pruning_type": "snip_momentum", "target_sparsity": 0.3})
pruned_model = pruner.fit()
```

## References
- [Intel NC docs](https://github.com/intel/neural-compressor)
- [Intel NC GitHub](https://github.com/intel/neural-compressor/wiki)
