pytorch
Install command:
brew install pytorchFormerly known as: libtorch
Tensors and dynamic neural networks
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 | ✅ | |
| sonoma | ✅ | |
| Linux | ARM64 | ✅ |
| x86_64 | ✅ |
Current versions:
| stable | ✅ | 2.14.0 |
Depends on:
| abseil | 20260817.0 | C++ Common Libraries |
| eigen | 5.0.1 | C++ template library for linear algebra |
| libuv | 1.52.1 | Multi-platform support library with a focus on asynchronous I/O |
| libyaml | 0.2.5 | YAML Parser |
| numpy | 2.5.3 | Package for scientific computing with Python |
| onnx | 1.22.0 | Open standard for machine learning interoperability |
| openblas | 0.3.34 | Optimized BLAS library |
| protobuf | 36.1 | 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.1 | LLVM's OpenMP runtime library |
Depends on when building from source:
| cmake | 4.4.3 | Cross-platform make |
| ninja | 1.13.2 | Small build system for use with gyp or CMake |
| python@3.14 | 3.14.7 | Interpreted, interactive, object-oriented programming language |
Requires: macOS >= 12
Binaries:
torchfrtrace,
torchrun
Analytics:
| 30 days | 90 days | 365 days | |
|---|---|---|---|
| Installs | 5,480 | 16,300 | 84,992 |
Installs (--HEAD) | 6 | 7 | 29 |
| Installs on Request | 1,678 | 4,824 | 21,231 |
Installs on Request (--HEAD) | 6 | 7 | 29 |
| Build Errors | 8 |