
torch.compile Practice and Optimization in Different Scenarios - Yichen Yan, Alibaba Cloud
torch.compile Practice and Optimization in Different Scenarios - Yichen Yan, Alibaba Cloud
torch dynamo is the core compilation optimization component in pytorch 2.0. torch dynamo can optimize dynamic graphs with minor modifications, and fall back to the default implementation when it is not supported, which greatly reduces the difficulty of enabling compilation optimization.
However, in practice, due to the diversity of AI workloads, there is still a certain threshold for enabling torch dynamo. To address these issues, we have optimized torch.compile to make it easier for users of different models (LLM/others) and loads (inference/training) to benefit from compilation optimization.
torch dynamo is the core compilation optimization component in pytorch 2.0. torch dynamo can optimize dynamic graphs with minor modifications, and fall back to the default implementation when it is not supported, which greatly reduces the difficulty of enabling compilation optimization.
However, in practice, due to the diversity of AI workloads, there is still a certain threshold for enabling torch dynamo. To address these issues, we have optimized torch.compile to make it easier for users of different models (LLM/others) and loads (inference/training) to benefit from compilation optimization.
PyTorch
Welcome to the official PyTorch YouTube Channel. Learn about the latest PyTorch tutorials, new, and more.
PyTorch is an open source machine learning framework that is used by both researchers and developers to build, train, and deploy ML systems that so...
torch.compile and Diffusers: A Hands-On Guide to Peak Performance - Sayak Paul, Hugging Face
PyTorch
torch compile and Diffusers - A Hands On Guide to Peak Performance - PyTorch Compiler Series
PyTorch
verl: An Open Source Large Scale LLM RL Framework for Agentic Tasks - Yuxuan Tong, Bytedance
PyTorch
Lightning Talk: Sparsifying Vision Transformers with Minimal Accuracy Loss - Jesse Cai, Meta
PyTorch