PyTorch 2.3.1 Release, bug fix release

PyTorch Version 2 imported change current

Imported from official source

This release is meant to fix the following issues (regressions / silent correctness): ### Torch.compile: - Remove runtime dependency on JAX/XLA, when importing ``torch.__dynamo`` (https://github.com/pytorch/pytorch/pull/124634) - Hide ``Plan failed with a cudnnException`` warning (https://github.com/pytorch/pytorch/pull/125790) - Fix CUDA memory leak (https://github.com/pytorch/pytorch/pull/124238) (https://github.com/pytorch/pytorch/pull/120756) ### Distributed: - Fix ``format_utils executable``, which was causing it to run as a no-op (https://github.com/pytorch/pytorch/pull/123407) - Fix regression with ``device_mesh`` in 2.3.0 during initialization causing memory spikes (https://github.com/pytorch/pytorch/pull/124780) - Fix crash of ``FSDP + DTensor`` with ``ShardingStrategy.SHARD_GRAD_OP`` (https://github.com/pytorch/pytorch/pull/123617) - Fix failure with distributed checkpointing + FSDP if at least 1 forward/backward pass has not been run. (https://github.com/pytorch/pytorch/pull/121544) (https://github.com/pytorch/pytorch/pull/127069) - Fix error with distributed checkpointing + FSDP, and with ``use_orig_params = False`` and activation checkpointing (https://github.com/py...

This version

Version
2 of 2
Recorded
September 17, 2026 21:30
Change
Imported change
Content hash
029151533fde43bd5536198173cf494b
All versions
Revision history

Officially records where a publication came from, not whether it is true. Imported records are reproduced from an organization's own official source.