Skip to content

Commit

Permalink
fixed TPU docs (#5958)
Browse files Browse the repository at this point in the history
  • Loading branch information
williamFalcon committed Feb 15, 2021
1 parent 0a2fb05 commit b295029
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docs/source/advanced/tpu.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ To access TPUs, there are three main ways.

----------------

Kaggle TPUs
-----------
For starting Kaggle projects with TPUs, refer to this `kernel <https://www.kaggle.com/pytorchlightning/pytorch-on-tpu-with-pytorch-lightning>`_.

---------

Colab TPUs
----------
Colab is like a jupyter notebook with a free GPU or TPU
Expand All @@ -58,8 +64,8 @@ To get a TPU on colab, follow these steps:

.. code-block::
!curl https://raw.githubusercontent.com/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
!curl https://raw.githubusercontent.com/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
5. Once the above is done, install PyTorch Lightning (v 0.7.0+).

Expand Down

0 comments on commit b295029

Please sign in to comment.