1Install functorch 2================= 3 4As of PyTorch 1.13, functorch is now included in the PyTorch binary and no 5longer requires the installation of a separate functorch package. That is, 6after installing PyTorch (`instructions <https://pytorch.org>`_), 7you'll be able to ``import functorch`` in your program. 8 9If you're upgrading from an older version of functorch (functorch 0.1.x or 0.2.x), 10then you may need to uninstall functorch first via ``pip uninstall functorch``. 11 12We've maintained backwards compatibility for ``pip install functorch``: this 13command works for PyTorch 1.13 and will continue to work for the foreseeable future 14until we do a proper deprecation. This is helpful if you're maintaining a library 15that supports multiple versions of PyTorch and/or functorch. 16 17Colab 18----- 19 20Please see `this colab for instructions. <https://colab.research.google.com/drive/1GNfb01W_xf8JRu78ZKoNnLqiwcrJrbYG#scrollTo=HJ1srOGeNCGA>`_ 21 22Nightly 23------- 24 25Looking for the newest functorch features? Please download the latest nightly PyTorch 26binary (``import functorch`` is included in nightly PyTorch binaries as of 09/21/2022). 27by following instructions `here <https://pytorch.org>`_. 28 29Previous Versions 30----------------- 31 32For PyTorch 1.11.x and PyTorch 1.12.x: 33Please first install PyTorch and then run the following command: 34 35:: 36 37 pip install functorch 38