pytorch/ao
PyTorch native quantization for training and inference observed · 2026-08-28
Health v2 · maintenance only
89/100
- Activity 99
- Release rhythm 84
- Longevity 73
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 46
- age_days: 1034
- days_rel: 30
- days_push: 7
- n_releases_24m: 14
Adoption not part of the score
2957 stars · 604 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
TorchAO is a PyTorch-native library for model optimization through quantization and sparsity. It supports quantizing weights, gradients, optimizers, and activations using custom data types like int4, float8, and MX formats for both training and inference.
Use cases
- quantize llama models to int4 for faster inference
- speed up llm pre-training with float8
- apply quantization-aware training to recover accuracy
- reduce model memory footprint for serving
- sparsify model weights and gradients
- quantize models for vllm or huggingface serving
When to choose
- you use PyTorch and want native quantization for training or inference
- you need int4/float8/MX data types for LLM speedups
- you want QAT to recover quantization accuracy loss
- you serve models with vLLM, HF Transformers, or torchtune
When to avoid
- you need a framework-agnostic quantizer outside the PyTorch ecosystem
- you target CPU-only inference with no CUDA/XPU support
- you need post-training quantization for non-PyTorch models like ONNX
Facets
library · maturity active
machine-learning llm-inference llm-training gpu-computing deep-learning large-language-models machine-learning gpu-computing python quantization sparsity float8 int4 qat model-optimization pytorch inference-optimization training-optimization gpu cuda linux
3 sources
- readme: https://github.com/pytorch/ao · fetched 2026-08-28 · b389888aa48b
- homepage: https://pytorch.org/ao/stable/index.html · fetched 2026-08-29 · 00b8e66fa183
- site_page: https://docs.pytorch.org/docs/stable/index.html · fetched 2026-08-29 · b3da68f8848c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| pytorch/ao | main | 89 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem