talira

Tensors and dynamic neural networks in Python with strong GPU acceleration

open sourceBSD-3-Clausefree

PyTorch is an open source deep learning framework for Python: tensor computation like NumPy with strong GPU acceleration, and deep neural networks built on a tape-based autograd system, so models are ordinary imperative Python code that can be debugged line by line. It runs on CPUs and on NVIDIA CUDA, AMD ROCm, Intel GPUs and Apple silicon (MPS), installs with pip on Linux, macOS and Windows, and has a C++ API (LibTorch). It's the base of a large ecosystem of libraries for vision, audio, training and serving, and is governed by the PyTorch Foundation under the Linux Foundation.

Problems it solves

  • train a neural network in Python on my GPU
  • write a deep learning model I can debug like normal Python code
  • fine-tune an open model on my own data
  • run tensor math on a GPU from Python like NumPy
  • build and train a custom model architecture for research

Features

  • GPU-accelerated tensors with a NumPy-like API
  • tape-based autograd for dynamic neural networks
  • CUDA, ROCm, Intel GPU and Apple MPS backends
  • C++ API (LibTorch)
  • extensions in Python, C++ and CUDA

Capabilities

Has official SDKsplan not known

Alternatives

The same job

These do what PyTorch does.

  1. TensorFlow An Open Source Machine Learning Framework for Everyone
  2. JAX Composable transformations of Python+NumPy programs: differentiate, vectorize, JIT to GPU/TPU, and more
  3. Burn A Rust tensor library and deep learning framework for training and inference on any hardware.
  4. Keras Deep Learning for humans
  5. PyTorch Lightning Organises PyTorch code and handles the training engineering, from one CPU to thousands of GPUs

Compare PyTorch with the top 3