Installing from source

The current Homebrew installation builds from source. The formula downloads the versioned source archive and pinned LibTorch dependency, compiles the Rust binaries, and installs the module and runtime libraries. No separate Python environment or development checkout is required.

brew tap astrohackerlabs/nutorch
brew trust astrohackerlabs/nutorch
brew install --build-from-source astrohackerlabs/nutorch/nutorch
nutorch --version

Source and formula

Inspect the public source, release archives, and Homebrew formula. Homebrew may install build dependencies, including Rust. Allow time for the downloads and compilation; this is not a precompiled download.

The installed binaries are relocatable: libtorch’s dylibs resolve through a baked relative rpath — no environment variables, no checkout needed at runtime, and no source checkout is needed after installation. For explicit Nushell module imports, follow the config.nu setup.

Verifying

nutorch --version        # nutorch X.Y.Z (your installed package version)
torch daemon status

--version works on GPU-less machines (it short-circuits before the MPS gate); everything else requires Apple silicon — the daemon refuses to start without MPS.

Requirements

  • Apple-silicon Mac (MPS)
  • Homebrew and its formula-managed build dependencies