5 Useful Tensor Operations in PyTorch

5 Useful Tensor Operations in PyTorch

Click on the above“Beginner’s Guide to Vision” to select and add a Bookmark or “Pin” Important content delivered promptly This article is reprinted from: AI Park Introduction While there are other ways to achieve the same results, these operations make usage more convenient. PyTorch is a scientific package based on Python that performs advanced operations … Read more

Principles and Implementation of Diffusion Models (Pytorch)

Principles and Implementation of Diffusion Models (Pytorch)

This article discusses the development, principles, and code practices of diffusion models. The catalyst for diffusion models began with the introduction of DDPM (Denoising Diffusion Probabilistic Model) in 2020. Before delving into the details of how the Denoising Diffusion Probabilistic Model (DDPM) works, let’s first look at some developments in existing generative artificial intelligence, which … Read more

New PyTorch API: Implementing Different Attention Variants with Just a Few Lines of Code!

New PyTorch API: Implementing Different Attention Variants with Just a Few Lines of Code!

Click on the above“Beginner’s Guide to Vision” to choose to addto favorites or “pin” Important information delivered promptly Reprinted from: Machine Heart | Edited by: Chen Chen Try a new attention pattern with FlexAttention. In theory, the attention mechanism is everything you need. However, in practice, we also need to optimize implementations of attention mechanisms … Read more

Strategies for Saving GPU Memory in PyTorch

Strategies for Saving GPU Memory in PyTorch

Click on the above “Beginner’s Guide to Vision” to select and add “Star” or “Pin“ Heavy content delivered first Author | OpenMMLab Editor | Jishi Platform Original link: https://zhuanlan.zhihu.com/p/430123077 Introduction With the rapid development of deep learning, the explosion of model parameters has raised increasingly high requirements for GPU memory capacity. How to train models … Read more

How TorchDynamo Works: New Compilation Features in PyTorch

How TorchDynamo Works: New Compilation Features in PyTorch

Source: DeepHub IMBA This article is about 4900 words long and is recommended for a reading time of over 10 minutes. Whether running on high-performance GPUs or edge devices, TorchDynamo adapts to provide optimal performance. Optimizing model performance is crucial in deep learning, especially for applications that require fast execution and real-time inference. However, PyTorch … Read more

In-Depth Analysis of PyTorch Dynamic Graphs

In-Depth Analysis of PyTorch Dynamic Graphs

Click on the above“Beginner’s Guide to Vision”, select to add “Bookmark” or “Pin” Heavyweight content delivered at the first moment This article is adapted from: Deep Learning Matters Background The dynamic graph framework of PyTorch is primarily implemented in the code under torch/csrc/autograd. This directory defines three main base classes: Variable, Function, Engine, which together … Read more

Understanding and Implementing Diffusion Models in PyTorch

Understanding and Implementing Diffusion Models in PyTorch

In the previous article, we introduced OpenAI Sora, which has once again shocked the AI community with its text-to-video model, and mentioned that Sora is essentially a diffusion model + Transformer. This article continues to discuss the development, principles, and coding practices of diffusion models. The catalyst for diffusion models began with the introduction of … Read more

Understanding Graph Neural Networks with PyTorch

Understanding Graph Neural Networks with PyTorch

Source: Algorithm Advancement This article is approximately 4200 words long and is recommended for an 8-minute read. This article will introduce key parts of the "Graph Attention Networks" and implement the concepts proposed in the paper using PyTorch. Graph Neural Networks (GNN) are a powerful class of neural networks that operate on graph-structured data. They … Read more

Beginner’s Guide to Pytorch for Deep Learning

Beginner's Guide to Pytorch for Deep Learning

Click the above “Beginner’s Visual Learning”, select to add a star mark or “pin” Important content delivered promptly Datawhale Insights Author: Li Zuxian, Datawhale University Group Member, Shenzhen University With the development of deep learning, deep learning frameworks have begun to emerge in large numbers. Especially in the past two years, giants like Google, Facebook, … Read more