PyTorch 2.7.1 Release, bug fix release

Imported from official source

Software release

AI Classified by Officially

This release is meant to fix the following issues (regressions / silent correctness): ### Torch.compile Fix Excessive cudagraph re-recording for HF LLM models ([#152287](https://github.com/pytorch/pytorch/pull/152287)) Fix torch.compile on some HuggingFace models ([#151154](https://github.com/pytorch/pytorch/pull/151154)) Fix crash due to Exception raised inside torch.autocast ([#152503](https://github.com/pytorch/pytorch/pull/152503)) Improve Error logging in torch.compile ([#149831](https://github.com/pytorch/pytorch/pull/149831)) Mark mutable custom operators as cacheable in torch.compile ([#151194](https://github.com/pytorch/pytorch/pull/151194)) Implement workaround for a graph break with older version einops ([#153925](https://github.com/pytorch/pytorch/pull/153925)) Fix an issue with tensor.view(dtype).copy_(...) ([#151598](https://github.com/pytorch/pytorch/pull/151598)) ### Flex Attention Fix assertion error due to inductor permuting inputs to flex attention ([#151959](https://github.com/pytorch/pytorch/pull/151959)) Fix performance regression on nanogpt speedrun ([#152641](https://github.com/pytorch/pytorch/pull/152641)) ### Distributed Fix extra CUDA context created b...

Read the original at the source: https://github.com/pytorch/pytorch/releases/tag/v2.7.1

Officially imported this from PyTorch’s own source. If you work there, claiming the profile and verifying the domain lets you choose to show the full text here.

This publication has changed since it was first published

2 versions recorded. The original is kept in full — nothing is overwritten.

  1. v2 imported change on current
  2. v1 as first published on

Provenance

Organization
PyTorch — imported from official source
Official source
https://api.github.com/repos/pytorch/pytorch/releases?per_page=25 API
Imported
September 15, 2026 19:08
Versions
2 recorded
Identity
223157547

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