Skip to content

Commit

Permalink
Update installation Docs (pytorch#459)
Browse files Browse the repository at this point in the history
* Update installation

* Update README.md

* Update README.md

* Update README.md
  • Loading branch information
msaroufim committed Jun 28, 2024
1 parent a9d8d06 commit 4108303
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,34 @@ A key design principle for us is composability as in any new dtype or layout we


### Installation

`torchao` makes liberal use of several new features in Pytorch, it's recommended to use it with the current nightly or latest stable version of PyTorch.

Stable release from Pypi which will default to PyTorch 2.3.1 and CUDA 12.1
#### Install torch

Install torch stable

```
pip install torch
```

Or torch nightlies

```
pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121
```

#### Install torchao

Stable release from Pypi which will default to CUDA 12.1

```Shell
pip install torchao
```

Stable Release from the PyTorch index
```Shell
pip install torchao --extra-index-url https://download.pytorch.org/whl/test/cu121 # full options are cpu/cu118/cu121/cu124
pip install torchao --extra-index-url https://download.pytorch.org/whl/cu121 # full options are cpu/cu118/cu121/cu124
```

Nightly Release
Expand Down

0 comments on commit 4108303

Please sign in to comment.