mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-06-25 01:41:19 +08:00
24 lines
350 B
Markdown
24 lines
350 B
Markdown
# 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
|
|
```
|
|
|
|
To run the PyTorch or Jax examples install the respective framework.
|