# PyTorch 2.x Inference Recommendations

**URL:** <https://dev-discuss.pytorch.org/t/pytorch-2-x-inference-recommendations/2506>\
**Category:** deployment\
**Created:** [September 30, 2024, 5:23pm UTC](https://dev-discuss.pytorch.org/t/pytorch-2-x-inference-recommendations/2506 "2024-09-30T17:23:52Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![spiegelball](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@spiegelball](https://dev-discuss.pytorch.org/u/spiegelball)\
**Post date:** [October 16, 2024, 9:58am UTC](https://dev-discuss.pytorch.org/t/pytorch-2-x-inference-recommendations/2506/4 "2024-10-16T09:58:04Z")

</div>

Do you have any sources on AOTI inference on mac? I only found this: [AOT Inductor and macOS · Issue #119803 · pytorch/pytorch · GitHub](https://github.com/pytorch/pytorch/issues/119803)

And regarding TorchScript, the latest info I saw is coming from this thread:

> [@What's the difference between torch.export / torchserve / executorch / aotinductor?](https://dev-discuss.pytorch.org/t/whats-the-difference-between-torch-export-torchserve-executorch-aotinductor/1642/15):
>
> We will not deprecate TorchScript without a suitable (and technically superior) replacement. I think the key missing piece, which we are developing but have not yet released, is a generic interpreted runtime that uses libtorch to execute the graph in a target-independent way, optionally calling out to compiled artifacts for acceleration. So the proposed TorchScript replacement flow would be: On the frontend: torch.export → compile subgraphs/whole graph with inductor → packaged model (graph, …

Is it deprecated now?

---

_[View the full topic](https://dev-discuss.pytorch.org/t/pytorch-2-x-inference-recommendations/2506)._
