Skip to content

Commit

Permalink
Updated installation instructions [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Aug 21, 2024
1 parent 7f83aa1 commit be65324
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,16 @@ Check out:

## Installation

First, [download LibTorch](https://pytorch.org/get-started/locally/) (for Linux, use the `cxx11 ABI` version). Then run:
First, [download LibTorch](https://pytorch.org/get-started/locally/). For Mac arm64, use:

```sh
curl -L https://download.pytorch.org/libtorch/cpu/libtorch-macos-arm64-2.4.0.zip > libtorch.zip
unzip -q libtorch.zip
```

For Linux x86-64, select your compute platform and use the `cxx11 ABI` version. For other platforms, build LibTorch from source.

Then run:

```sh
bundle config build.torch-rb --with-torch-dir=/path/to/libtorch
Expand Down

0 comments on commit be65324

Please sign in to comment.