Deep Dive: Compiling deep learning models, from XLA to PyTorch 2 @juliensimonfr
Deep Dive: Compiling deep learning models, from XLA to PyTorch 2  @juliensimonfr
Uploaded February 2024 | Updated September 2026, 2 weeks ago
Compilation is an excellent technique to accelerate the training and inference of deep learning models, especially if it can be completely automated!

⭐️⭐️⭐️ Don't forget to subscribe to be notified of future videos. Follow me on Medium at julsimon.medium.com or Substack at https://julsimon.substack.com. ⭐️⭐️⭐️

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().

Slides: fr.slideshare.net/slideshow/deep-dive-compiling-deep-learning-models/271892112

00:00 Introduction
02:10 TensorFlow 1.x and graph mode
05:52 TensorFlow XLA
09:35 PyTorch TorchScript
14:25 PyTorch/XLA and lazy tensors
17:28 PyTorch/XLA example with Google TPU
21:40 A quick look at HLO
24:05 OpenXLA
25:50 PyTorch/XLA example with AWS Inferentia 2
29:10 PyTorch 2 : torch.compile()
34:37 Hugging Face models with PyTorch 2
36:10 BERT on CPU with Torch Inductor and IPEX backends

#ai #deeplearning #pytorch #computer #gpu #huggingface
Deep Dive: Compiling deep learning models, from XLA to PyTorch 2Advanced RAG Techniques with Arcee Trinity Mini (100% Local)Arcee AI in 2 minutes (March 2025)Web app + Mobile + Stripe + Pitch Deck: one Replit project!Deploy Hugging Face models on Google Cloud: directly from Vertex AIMy prompt:  Build a street art gallery websiteLLMs from the trenches - Data is how you create a competitive advantage, not modelsArcee Maestro 7B - A small language model that outperforms o1-previewArcee Conductor and Zerve: Bringing Model Routing to AI and Data Science WorkflowsUnlocking the Minds of Business Leaders: What Drives Their AI Decisions?Unleashing the Future of AI: Experience the Lightning Speed of Arcee-Lite!Run performant and cost-effective GenAI Applications with AWS Graviton and Arcee AI
Julien Simon |

Deep Dive: Compiling deep learning models, from XLA to PyTorch 2

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER