Skip to content

Commit

Permalink
Update TPU docs for installation (#6794)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushikb11 authored Apr 3, 2021
1 parent bb9ace4 commit 22a266d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions docs/source/advanced/tpu.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ To get a TPU on colab, follow these steps:

.. code-block::
!curl https://github.com/raw/pytorch/xla/master/contrib/scripts/env-setup.py -o pytorch-xla-env-setup.py
!python pytorch-xla-env-setup.py --version 1.7 --apt-packages libomp5 libopenblas-dev
!pip install cloud-tpu-client==0.10 https://storage.googleapis.com/tpu-pytorch/wheels/torch_xla-1.8-cp37-cp37m-linux_x86_64.whl
5. Once the above is done, install PyTorch Lightning (v 0.7.0+).

Expand Down
4 changes: 1 addition & 3 deletions docs/source/starter/introduction_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -572,9 +572,7 @@ Next, install the required xla library (adds support for PyTorch on TPUs)

.. code-block:: shell
!curl https://github.com/raw/pytorch/xla/master/contrib/scripts/env-setup.py -o pytorch-xla-env-setup.py
!python pytorch-xla-env-setup.py --version nightly --apt-packages libomp5 libopenblas-dev
!pip install cloud-tpu-client==0.10 https://storage.googleapis.com/tpu-pytorch/wheels/torch_xla-1.8-cp37-cp37m-linux_x86_64.whl
In distributed training (multiple GPUs and multiple TPU cores) each GPU or TPU core will run a copy
of this program. This means that without taking any care you will download the dataset N times which
Expand Down

0 comments on commit 22a266d

Please sign in to comment.