PyTorch Official Training Tutorial: From Basics to Practice

PyTorch Official Training Tutorial: From Basics to Practice

Mingmin from Aofeisi Quantum Bit Report | WeChat Official Account QbitAI Do you also have such confusion: “After watching countless introductory tutorials, I still haven’t crossed this threshold…” This time, you might finally be saved! PyTorch Official has launched a training tutorial that will guide you step by step! The course starts with an introduction … Read more

Mastering PyTorch: A Step-By-Step Guide

Mastering PyTorch: A Step-By-Step Guide

In the field of machine learning, building flexible and easily adjustable models is an essential skill for advanced machine learning engineers when faced with various complex and changing business problems. However, many engineers still have a misconception that mastering just one deep learning framework is enough to succeed. In fact, there is no single framework … Read more

Summary of Common Tricks in PyTorch

Summary of Common Tricks in PyTorch

MLNLP ( Machine Learning Algorithms and Natural Language Processing ) community is a well-known natural language processing community both domestically and internationally, covering NLP graduate students, university teachers, and researchers from enterprises. The Vision of the Community is to promote communication between the academic and industrial circles of natural language processing and machine learning, as … Read more

Creating C++ Extensions in PyTorch

Creating C++ Extensions in PyTorch

Click the above “CVer” to add it as a “star” or “pin”. Heavyweight content delivered at the first moment. Author: Monstarrrr https://zhuanlan.zhihu.com/p/100459760 This article is authorized by the author and may not be reproduced without permission. It’s the last day of 2019, and I finally filled a gap I wanted to understand for a long … Read more

Official PyTorch Tutorial Now Available in Chinese

Official PyTorch Tutorial Now Available in Chinese

The official Chinese version of the PyTorch tutorial is here. PyTorch is one of the most popular deep learning frameworks recently, but its official Chinese tutorial has been long awaited. Recently, a complete official Chinese version of the PyTorch tutorial has been released, allowing readers to better learn and understand the relevant details of PyTorch. … Read more

PyTorch Tricks Compilation

PyTorch Tricks Compilation

Author丨z.defying@Zhihu Source丨https://zhuanlan.zhihu.com/p/76459295 Editor | Jishi Platform For academic sharing only, please contact to delete if there is infringement Table of Contents 1. Specify GPU ID 2. View model output details for each layer 3. Gradient Clipping 4. Expand image dimensions 5. One-hot encoding 6. Prevent out-of-memory during model validation 7. Learning rate decay 8. Freeze … Read more

Getting Started with PyTorch: A Dynamic Neural Network Library

Getting Started with PyTorch: A Dynamic Neural Network Library

Hello everyone, I am Azheng. Today, I am excited to introduce a “martial arts master”—PyTorch, a Python library that is like a dynamic neural network superhero! With it, you can navigate the world of neural networks with ease. 1. Getting to Know PyTorch Imagine PyTorch as a magical “workshop” that specializes in creating amazing tools … Read more

Practical Implementation of PyTorch FlexAttention: Causal Attention and Variable-Length Sequence Processing Based on BlockMask

Practical Implementation of PyTorch FlexAttention: Causal Attention and Variable-Length Sequence Processing Based on BlockMask

Source: DeepHub IMBA This article is approximately 2000 words long and is recommended for a 5-minute read. This article introduces how to use the new FlexAttention and BlockMask features introduced in PyTorch version 2.5 and above to implement causal attention mechanisms and handle padded inputs. Given the current lack of complete code examples and technical … Read more

Comprehensive Collection of Common PyTorch Code Snippets

Comprehensive Collection of Common PyTorch Code Snippets

↑ ClickBlue Text Follow the Jishi Platform Author丨Jack Stark@Zhihu (Authorized) Source丨https://zhuanlan.zhihu.com/p/104019160 Editor丨Jishi Platform Jishi Guide This article is a collection of common PyTorch code snippets, covering five aspects: basic configuration, tensor processing, model definition and operation, data processing, and model training and testing. It also provides several noteworthy tips, making the content very comprehensive. >> … Read more

Convolutional Neural Networks: Understanding the Digit Zero

Convolutional Neural Networks: Understanding the Digit Zero

Cover Image: Airbnb Headquarters, Illustrated in March 2020 Recently, while exploring artificial intelligence, I felt that among the materials available, there is a lot of information that can yield results through programming steps, but many people regard this process as a black box. It is often said that we do not know why this process … Read more