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 |
tahoe | ✅ |
|---|---|---|
| sequoia | ✅ | |
| sonoma | ✅ | |
| macOS on Intel |
sonoma | ✅ |
| Linux | ARM64 | ✅ |
| x86_64 | ✅ | |
Current versions:
| stable | ✅ | 2.11.0 |
Depends on:
| abseil | 20260107.1 | 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.4.4 | Package for scientific computing with Python |
| onnx | 1.21.0 | Open standard for machine learning interoperability |
| openblas | 0.3.32 | Optimized BLAS library |
| protobuf | 34.1 | Protocol buffers (Google's data interchange format) |
| sleef | 3.9.0 | SIMD library for evaluating elementary functions |
| libomp | 22.1.2 | LLVM's OpenMP runtime library |
Depends on when building from source:
| cmake | 4.3.1 | Cross-platform make |
| ninja | 1.13.2 | Small build system for use with gyp or CMake |
| python@3.14 | 3.14.3 | Interpreted, interactive, object-oriented programming language |
Requires: Xcode (build), macOS >= 12
Analytics:
| Installs (30 days) | |
|---|---|
pytorch |
14,884 |
pytorch --HEAD |
3 |
| Installs on Request (30 days) | |
pytorch |
2,232 |
pytorch --HEAD |
3 |
| Build Errors (30 days) | |
pytorch |
26 |
| Installs (90 days) | |
pytorch |
40,484 |
pytorch --HEAD |
6 |
| Installs on Request (90 days) | |
pytorch |
5,847 |
pytorch --HEAD |
6 |
| Installs (365 days) | |
pytorch |
61,941 |
pytorch --HEAD |
23 |
| Installs on Request (365 days) | |
pytorch |
20,632 |
pytorch --HEAD |
23 |