# Torch.compile support for Python 3.12 completed

**URL:** <https://dev-discuss.pytorch.org/t/torch-compile-support-for-python-3-12-completed/2054>\
**Category:** compiler\
**Created:** [May 3, 2024, 5:38pm UTC](https://dev-discuss.pytorch.org/t/torch-compile-support-for-python-3-12-completed/2054 "2024-05-03T17:38:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![williamwen42](https://yyz2.discourse-cdn.com/flex036/user_avatar/dev-discuss.pytorch.org/williamwen42/32/1156_2.png) [@williamwen42](https://dev-discuss.pytorch.org/u/williamwen42)\
**Post date:** [May 3, 2024, 5:38pm UTC](https://dev-discuss.pytorch.org/t/torch-compile-support-for-python-3-12-completed/2054/1 "2024-05-03T17:38:12Z")

</div>

Signal boosting that Python 3.12 support has been added to `torch.compile` and has been present in the nightly builds for a while. We anticipate that this feature will be included in the PyTorch 2.4 release.

We encountered segfaults with certain older versions of triton while working on 3.12 support - if you encounter one, try to build triton from source on the latest `main` commit.

Please give `torch.compile` a try on 3.12 and report any issues to the PyTorch GitHub!
