installation_instructions.rst 710 Bytes
Newer Older
1
2
3
Installing FairScale
====================

anj-s's avatar
anj-s committed
4
5
6
7
8
Installing FairScale is extremely simple with pre-built binaries(pip) that we provide. You can also build
from source using the instructions below.

### Requirements

9
* PyTorch>= 1.7.1
anj-s's avatar
anj-s committed
10
11

### Installing the pip package (stable)
12
13
14
15

.. code-block:: bash

	pip install fairscale
16

17

anj-s's avatar
anj-s committed
18
### Installing from source
19
20

.. code-block:: bash
21

anj-s's avatar
anj-s committed
22
    git clone https://github.com/facebookresearch/fairscale.git
23
24
    cd fairscale
    pip install -r requirements.txt
anj-s's avatar
anj-s committed
25
    # -e signified dev mode since e stands for editable
26
27
    pip install -e .

anj-s's avatar
anj-s committed
28

29
Note: If either of the above fails, add `--no-build-isolation` to the `pip install` command (this could be a problem with recent versions of pip).