# Clarification of PyTorch Quantization Flow Support (in pytorch and torchao)

**URL:** <https://dev-discuss.pytorch.org/t/clarification-of-pytorch-quantization-flow-support-in-pytorch-and-torchao/2809>\
**Category:** Uncategorized\
**Created:** [February 24, 2025, 9:47pm UTC](https://dev-discuss.pytorch.org/t/clarification-of-pytorch-quantization-flow-support-in-pytorch-and-torchao/2809 "2025-02-24T21:47:37Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![jerryzh168](https://yyz2.discourse-cdn.com/flex036/user_avatar/dev-discuss.pytorch.org/jerryzh168/32/1740_2.png) [@jerryzh168](https://dev-discuss.pytorch.org/u/jerryzh168)\
**Post date:** [May 9, 2025, 8:41pm UTC](https://dev-discuss.pytorch.org/t/clarification-of-pytorch-quantization-flow-support-in-pytorch-and-torchao/2809/10 "2025-05-09T20:41:48Z")

</div>

> what’s the focus of each

the post is trying to clarify that, to summarize pt2e is mostly for static quantization use cases, and torchao is for others.

> One of my random guess is: is it true that if I want to deploy on edge device for inference, I will need to export, and makes pt2e the better choice? But for LLM training torchao is better because of more modern feature?

it’s true that edge use cases is mostly pt2e quant so far, but we also have edge + LLM use cases that’s using torchao (quantize\_) API as well, so it depends on the type of quantization you’d like to do, e.g. static, v.s. dyanmic, weight only, or more advanced ones like AWQ, GPTQ, smoothquant etc.

> And thanks for you pt2e example! looks like it has more feature than the torch.ao. Sounds like no matter I choose p2te or torchao quant method, I could think torch.ao as retired?

that’s true, we are depreacting `torch.ao.quantization`, more details in [Torch.ao.quantization Migration Plan](https://dev-discuss.pytorch.org/t/torch-ao-quantization-migration-plan/2810)

---

_[View the full topic](https://dev-discuss.pytorch.org/t/clarification-of-pytorch-quantization-flow-support-in-pytorch-and-torchao/2809)._
