libtorch-mac-m1
LibTorch builds for the M1 Macs
This repository provides a GitHub Actions workflow for building LibTorch (PyTorch’s C++ frontend library) on Apple Silicon (M1) Macs. Built libraries are published as GitHub releases for easy download.
The builds follow the official PyTorch CMake instructions with MPS (Metal Performance Shaders) support enabled, allowing GPU-accelerated inference and training on Apple Silicon hardware. This is useful for developers who need precompiled LibTorch binaries for M1/M2 Macs without having to build from source themselves, which can be a time-consuming process requiring a specific toolchain and environment setup.