Skip to content

Commit

Permalink
Updated installation instructions - closes #55
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Aug 21, 2024
1 parent 77b6814 commit 7e08278
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ Check out:

## Installation

First, [install LibTorch](#libtorch-installation). With Homebrew, it’s part of the PyTorch package:
First, [download LibTorch](https://pytorch.org/) (for Linux, use the `cxx11 ABI` version). Then run:

```sh
brew install pytorch
bundle config build.torch-rb --with-torch-dir=/path/to/libtorch
```

Add this line to your application’s Gemfile:
And add this line to your application’s Gemfile:

```ruby
gem "torch-rb"
Expand Down Expand Up @@ -398,13 +398,7 @@ Here’s a list of functions to create tensors (descriptions from the [C++ docs]
Torch.zeros(3) # tensor([0, 0, 0])
```

## LibTorch Installation

[Download LibTorch](https://pytorch.org/) (for Linux, use the `cxx11 ABI` version). Then run:

```sh
bundle config build.torch-rb --with-torch-dir=/path/to/libtorch
```
## LibTorch Compatibility

Here’s the list of compatible versions.

Expand All @@ -417,14 +411,6 @@ Torch.rb | LibTorch
0.13.x | 2.0.x
0.12.x | 1.13.x

### Homebrew

You can also use Homebrew.

```sh
brew install pytorch
```

## Performance

Deep learning is significantly faster on a GPU.
Expand Down

0 comments on commit 7e08278

Please sign in to comment.