PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
September 23, 20250 citationsOpen Access

TorchAO: PyTorch-Native Training-to-Serving Model Optimization

View Full Paper
AOAndrew OrAJApurva JainDVDaniel Vega-Myhre

Key Points

  • TorchAO offers an end-to-end workflow for model optimization, enhancing efficiency from training to serving.
  • It features techniques like FP8 quantized training and 2:4 sparsity to minimize model size without sacrificing performance.
  • The framework integrates with tools like HuggingFace and ExecuTorch, ensuring seamless transitions in the optimization pipeline.
  • TorchAO has supported the launch of various quantized models, including Llama 3.2 and LlamaGuard3-8B.

Abstract

We present TorchAO, a PyTorch-native model optimization framework leveraging quantization and sparsity to provide an end-to-end, training-to-serving workflow for AI models. TorchAO supports a variety of popular model optimization techniques, including FP8 quantized training, quantization-aware training (QAT), post-training quantization (PTQ), and 2:4 sparsity, and leverages a novel tensor subclass abstraction to represent a variety of widely-used, backend agnostic low precision data types, including INT4, INT8, FP8, MXFP4, MXFP6, and MXFP8. TorchAO integrates closely with the broader ecosystem at each step of the model optimization pipeline, from pre-training (TorchTitan) to fine-tuning (TorchTune, Axolotl) to serving (HuggingFace, vLLM, SGLang, ExecuTorch), connecting an otherwise fragmented space in a single, unified workflow. TorchAO has enabled recent launches of the quantized Llama 3.2 1B/3B and LlamaGuard3-8B models and is open-source at https://github.com/pytorch/ao/.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Or et al. (2025) studied this question.

synapsesocial.com/papers/68d473bb31b076d99fa6c975https://doi.org/10.48550/arxiv.2507.16099
Ask AI
Helpful
Bookmark
Share
View Full Paper