/mnist

MNIST Models

Primary LanguagePythonMIT LicenseMIT

MNIST on Clusterone

Clusterone

join us on slack

This is a demo to show you how to run a handwritten digit recognition model on Clusterone. The demo uses TensorFlow and the MNIST dataset.

Follow the instructions below to run the model on Clusterone using the just command line tool. This project is part of Clusterone's Getting Started guide. There is also an in-depth tutorial based on this repository.

Please note: There is currently a bug in the MNIST example that might affect the performance in distributed training. We are aware of this and are working on a fix. This does not affect single node training.

Table of Contents

Install

To run this project on the Clusterone platform, you need:

  • Python 3.5
  • Git
  • The Clusterone Python library. Install it with pip install clusterone
  • A Clusterone account. Join the waitlist if you don't have an account yet.

Setting Up

Start out by cloning this repository onto your local machine.

git clone https://github.com/clusterone/mnist

Now you're all set to run MNIST on Clusterone!

Usage

These instructions use the just command line tool. It comes with the Clusterone Python library and is installed automatically with the library.

cd into the folder you just downloaded with cd mnist and log into your Clusterone account using just login.

First, create a new project on Clusterone:

just init project mnist

Then, upload the code to the new project:

git push clusterone master

Finally, create a job. Make sure to replace YOUR_USERNAME with your username.

just create job distributed --project YOUR_USERNAME/mnist --module mnist --name first-job \
--time-limit 1h

Now all that's left to do is starting the job:

just start job -p mnist/first-job

That's it! You can monitor its progress on the command line using just get events. More elaborate monitoring is available on the Matrix, Clusterone's graphical web interface.

More Info

For further information on this example, take a look at the tutorial based on this repository in the Clusterone Documentation.

For further info on the MNIST dataset, check out Yann LeCun's page about it. To learn more about TensorFlow and Deep Learning in general, take a look at the TensorFlow website.

License

MIT © Clusterone Inc.

The MNIST dataset has been created and curated by Corinna Cortes, Christopher J.C. Burges, and Yann LeCun.