pytorch

Install command:
brew install pytorch

Formerly known as: libtorch

Tensors and dynamic neural networks

https://pytorch.org/

License: BSD-3-Clause

Development: Pull requests

Formula JSON API: /api/formula/pytorch.json

Formula code: pytorch.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 2.15.0

Depends on:

abseil 20260817.0 C++ Common Libraries
eigen 5.0.1 C++ template library for linear algebra
libuv 1.53.0 Multi-platform support library with a focus on asynchronous I/O
libyaml 0.2.5 YAML Parser
numpy 2.5.5 Package for scientific computing with Python
onnx 1.23.2 Open standard for machine learning interoperability
openblas 0.3.34 Optimized BLAS library
protobuf 36.2 Protocol buffers (Google's data interchange format)
pybind11 3.1.0 Seamless operability between C++11 and Python
sleef 3.9.0 SIMD library for evaluating elementary functions
libomp 23.1.6 LLVM's OpenMP runtime library

Depends on when building from source:

cmake 4.5.0 Cross-platform make
ninja 1.13.2 Small build system for use with gyp or CMake
python@3.15 3.15.2 Interpreted, interactive, object-oriented programming language

Requires: macOS >= 12

Binaries: torchfrtrace, torchrun

GitHub Packages downloads:

Last 30 days41,508
Downloads984,507
Analytics install events (30 days)4,114
Downloads / install events (30 days)10.1×

Source: GitHub Packages, fetched 2026-11-18T01:01:03Z. Analytics dates: 2026-10-19 to 2026-11-18. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs4,11312,20385,879
Installs (--HEAD)1823
Installs on Request1,3063,90519,046
Installs on Request (--HEAD)1823
Build Errors7