pytorch
Install command:
brew install pytorchFormerly known as: libtorch
Tensors and dynamic neural networks
License: BSD-3-Clause
Formula JSON API: /api/formula/pytorch.json
Formula code: pytorch.rb on GitHub
Bottle (binary package) installation support provided for:
| macOS on Apple Silicon |
tahoe | ✅ |
|---|---|---|
| sequoia | ✅ | |
| sonoma | ✅ | |
| macOS on Intel |
sonoma | ✅ |
| Linux | ARM64 | ✅ |
| x86_64 | ✅ | |
Current versions:
| stable | ✅ | 2.9.0 |
Revision: 1
Depends on:
| abseil | 20250814.1 | C++ Common Libraries |
| eigen | 5.0.0 | C++ template library for linear algebra |
| libuv | 1.51.0 | Multi-platform support library with a focus on asynchronous I/O |
| libyaml | 0.2.5 | YAML Parser |
| numpy | 2.3.4 | Package for scientific computing with Python |
| openblas | 0.3.30 | Optimized BLAS library |
| protobuf | 33.0 | Protocol buffers (Google's data interchange format) |
| pybind11 | 3.0.1 | Seamless operability between C++11 and Python |
| sleef | 3.9.0 | SIMD library for evaluating elementary functions |
| libomp | 21.1.5 | LLVM's OpenMP runtime library |
Depends on when building from source:
| cmake | 4.1.2 | Cross-platform make |
| ninja | 1.13.1 | Small build system for use with gyp or CMake |
| python@3.14 | 3.14.0 | Interpreted, interactive, object-oriented programming language |
Requires: Xcode (build), macOS >= 12
Analytics:
| Installs (30 days) | |
|---|---|
pytorch |
3,427 |
pytorch --HEAD |
5 |
| Installs on Request (30 days) | |
pytorch |
2,216 |
pytorch --HEAD |
5 |
| Build Errors (30 days) | |
pytorch |
5 |
| Installs (90 days) | |
pytorch |
9,856 |
pytorch --HEAD |
8 |
| Installs on Request (90 days) | |
pytorch |
6,570 |
pytorch --HEAD |
8 |
| Installs (365 days) | |
pytorch |
29,838 |
pytorch --HEAD |
40 |
| Installs on Request (365 days) | |
pytorch |
22,521 |
pytorch --HEAD |
40 |