pytorch

    pytorch/ao

    PyTorch native quantization for training and inference

    llm
    machine-learning
    deep-learning
    brrr
    cuda
    dtypes
    float8
    inference
    Python
    NOASSERTION
    3.0K stars
    666 forks
    3.0K GitHub watchers
    Updated Oct 30, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    1 release in the last 90 days, the latest 88 days ago, with 249 contributors on GitHub.

    Gained 18% fewer stars in the last 90 days than in the 90 days before.

    Use Cases & Benefits

    • Provides PyTorch-native model optimization using quantization and sparsity for efficient training and inference workflows.
    • Enables significant speedups and memory reductions with minimal accuracy loss through advanced quantization-aware training and float8 support.
    • Use for accelerating large-scale LLM training with float8 precision to reduce GPU memory and improve throughput.
    • Use for deploying quantized transformer models with int4 weights to achieve faster inference and lower memory usage on GPUs.
    • Use for integrating sparsity techniques like 2:4 and block sparsity to speed up vision transformer training with minimal accuracy drop.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    Other

    GitHub could not identify this license; read the LICENSE file before depending on it.

    Community files

    • README: present
    • Contributing guide: present
    • Code of conduct: present

    Watch-outs

    • License not identified by GitHub; read the LICENSE file before depending on it.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    TorchAO is a PyTorch-native model optimization framework leveraging quantization and sparsity to provide an end-to-end, training-to-serving workflow for AI models. TorchAO works out-of-the-box with torch.compile() and FSDP2 across most HuggingFace PyTorch models. Key features include:

    Check out our docs for more details!

    First, install TorchAO. We recommend installing the latest stable version:

    Quantize your model weights to int4!

    Compared to a torch.compiled bf16 baseline, your quantized model should be significantly smaller and faster on a single A100 GPU:

    For the full model setup and benchmark details, check out our quick start guide. Alternatively, try quantizing your favorite model using our HuggingFace space!

    Please see the torchao compability table for version requirements for dependencies.

    Excerpt from the pytorch/ao README on GitHub (NOASSERTION license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Forks

    666+87

    Open issues

    828-27

    Compared with peers in LLM

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 1, by 7-day star growth

    pytorch/ao compared with LLM repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    thedotmack/claude-mem113.6K+8.8K35today
    NVIDIA/auto-ontology7.5K+5.6K37—
    HKUDS/DeepTutor55.5K+5.5K655 days ago
    affaan-m/ECC297.9K+5.2K6335 days ago
    DietrichGebert/ponytail185.3K+5.1K607 days ago
    pytorch/ao3.0K—6088 days ago
    Category median113.6K+5.5K60—

    Also by pytorch

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description