Article complete

PyTorch 2.0 is Finally Here

The push is completely towards making it more “Pythonic”.

PyTorch 2.0 is Finally Here

Key takeaways

  • PyTorch 2.0 enhances compiler capabilities while maintaining a focus on a more Pythonic experience.
  • The update introduces a stable version of Accelerated Transformers to improve model deployment speed.
  • Torch.compile is now the primary API, ensuring full backward compatibility and performance enhancements.
  • New libraries like TorchAudio, TorchVision, and TorchText aim to simplify machine learning model deployment.
  • TorchInductor optimises code generation for Nvidia and AMD GPUs, utilising the OpenAI Triton deep learning compiler.

Takeaways drafted with AI from the article text.

After months of highlighting the features at the PyTorch Conference, the new release of PyTorch 2.0 is finally here. The new version offers the same experience while supercharging the compiler abilities including support for Dynamic Shapes and Distributed. The push is completely towards making it more “Pythonic”.

The release also includes a stable version of Accelerated Transformers. The Beta also includes torch.compile as the main API for PyTorch 2.0, which wraps the model, returning it in a compiled mode. Being fully additive, the new version is also fully backward compatible. The focus is the performance. 

To learn more about the release in detail, click here.

https://twitter.com/PyTorch/status/1636127835151642629

New Features

The new release includes libraries such as TorchAudio, TorchVision, and TorchText. The release is clearly focused on making ML model deployments easier and lightning fast. 

TorchInductor, a foundational technology for torch.compile, will utilize Nvidia and AMD GPUs and leverage the OpenAI Triton deep learning compiler to generate efficient code while concealing hardware-specific intricacies. 

With a tailored kernel architecture for scaled dot product attention (SPDA), Accelerated Transformers bring speedy training and inference capabilities to the forefront. The API is integrated into torch.compile(), while the scaled_dot_product_attention() operator can also be invoked directly by model developers.

The Metal Performance Shaders (MPS) backend furnishes PyTorch training on Mac platforms with GPU acceleration, and now encompasses over 300 operators, including the top 60 most commonly used ones.

The formation of the PyTorch Foundation in September 2022 aimed to foster greater collaboration and contributions, resulting in more open governance. The dividends have already paid off, with the beta version of PyTorch 2.0 being previewed in December 2022, thanks to the contributions of 428 different individuals, who have provided new code and capabilities to this open-source initiative.

Published

Corrections: AIM corrects errors of fact and notes the change on the story. Spotted one? Tell the editors. Read our editorial standards.

More in this story

Pytorch · 5 stories
  1. Microsoft Adds Enterprise Support For PyTorch AI
  2. Happy birthday PyTorch! The open-source ML library completes 5 years since its public launch
  3. You are here: PyTorch 2.0 is Finally Here
  4. Pytorch Tabular Unveils New Update, Integrates DANet Model 
  5. PyTorch Releases torchtune for Easily Fine-Tuning LLMs
About the author

Journalist

Mohit writes about AI in simple, explainable, and often funny words. He's especially passionate about chatting with those building AI for Bharat, with the occasional detour into AGI.

All stories
Belamy · Daily

The day’s AI news, before your first meeting.