:orphan:

.. _train-pytorch-fashion-mnist:

Train a PyTorch model on Fashion MNIST
======================================

.. raw:: html

    <a id="try-anyscale-quickstart-torch_fashion_mnist_example" target="_blank" href="https://console.anyscale.com/register/ha?render_flow=ray&utm_source=ray_docs&utm_medium=docs&utm_campaign=torch_fashion_mnist_example">
      <img src="../../../_static/img/run-on-anyscale.svg" alt="Run on Anyscale" />
      <br/><br/>
    </a>

This example runs distributed training of a PyTorch model on Fashion MNIST with Ray Train.

Code example
------------

.. literalinclude:: /../../python/ray/train/examples/pytorch/torch_fashion_mnist_example.py

See also
--------

* :ref:`Get Started with PyTorch <train-pytorch>` for a tutorial on using Ray Train and PyTorch

* :doc:`Ray Train Examples <../../examples>` for more use cases