DEV Community

Julien Simon
Julien Simon

Posted on • Originally published at julsimon.Medium on

Video — Deep dive: Compiling deep learning models, from XLA to PyTorch 2

Video — Deep dive: Compiling deep learning models, from XLA to PyTorch 2

Compilation is an excellent technique to accelerate the training and inference of deep learning models, especially if it can be completely automated!

In this video, we discuss deep learning compilation, from the early days of TensorFlow to PyTorch 2. Along the way, you’ll learn about key technologies such as XLA, PyTorch/XLA, OpenXLA, TorchScript HLO, TorchDynamo, TorchInductor, and more. You’ll see where they fit and how they help accelerate models on a wide range of devices, including custom chips like Google TPU and AWS Inferentia 2.

Of course, we’ll also share some simple examples, including how to easily accelerate Hugging Face models with PyTorch 2 and torch.compile().

Top comments (0)

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay