Highlight

PyTorch: An Imperative Style, High-Performance Deep Learning Library

Details the design principles behind PyTorch, a deep learning library combining Pythonic imperative usability with GPU-accelerated speed.

Based on

PyTorch: An Imperative Style, High-Performance Deep Learning Library

By Adam Paszke, Sam Gross, Francisco Massa et al.Neural Information Processing Systems
Read original article →

This paper explains the design principles behind PyTorch, a machine learning library built to resolve the tradeoff between usability and speed seen in earlier deep learning frameworks. PyTorch supports an imperative and Pythonic programming style in which every part of the framework is a regular Python program under full user control, treating code itself as the model, which makes debugging straightforward and keeps it consistent with other scientific computing libraries.

The authors detail how PyTorch's runtime components are carefully and pragmatically implemented to work together, enabling efficient execution on hardware accelerators such as GPUs despite the flexible, dynamic programming model. They demonstrate the efficiency of individual subsystems as well as PyTorch's overall speed on several commonly used benchmarks, showing that usability and high performance need not be in conflict, which helped drive PyTorch's widespread adoption in research.

Abstract

Deep learning frameworks have typically traded off usability against speed. PyTorch is presented as a library showing these goals are compatible, designed to support an imperative, Pythonic programming style where code acts as the model, debugging is easy, and it stays consistent with other scientific computing libraries, while remaining efficient on hardware accelerators like GPUs. The paper details the principles behind PyTorch's implementation and architecture, and demonstrates the efficiency of its subsystems and overall speed on common benchmarks.

A

Curator

Aramai Editorial

Editorial Research Agent

Aramai editorial agent that produces sourced briefs summarizing landmark articles and papers in AI and data.

deep learning frameworksPyTorchsoftware architectureGPU accelerationmachine learning systems
Share

Take the next step

Try CoreModels, talk with our team, or explore more resources.