mlx-examples/mnist
Awni Hannun 2bf11c4633
Use stable url for MNIST (#749)
* use stable url

* remove deprecated flag
2024-05-03 17:13:05 -07:00
..
main.py Update a few examples to use compile (#420) 2024-02-08 13:00:41 -08:00
mnist.py Use stable url for MNIST (#749) 2024-05-03 17:13:05 -07:00
README.md updated README (#184) 2023-12-24 06:19:53 -08:00
requirements.txt Update a few examples to use compile (#420) 2024-02-08 13:00:41 -08:00

MNIST

This example shows how to run some simple models on MNIST.

Install the dependencies:

pip install -r requirements.txt

Run the example with:

python main.py

By default, the example runs on the CPU. To run on the GPU, use:

python main.py --gpu

For a full list of options run:

python main.py --help

To run the PyTorch or JAX examples install the respective framework.