Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / artificial-intelligence / tensorflow

Setting up a Deep Learning Machine on Azure from the App Marketplace

3.80/5 (5 votes)
23 Oct 2018CPOL2 min read 6.8K  
Using a pre-configured environment on Azure to create a ready to go Deep Learning machine

Introduction

I've run a lot of machine learning/A.I. projects as toys, and even a few not very complex ones in production. Normally, they run on the CPU, and in only one instance did I use a GPU ... the projects simply didn't require it. Sometimes however, you come across something you need to try out, and it needs a STONKIN BIG MOTHA of a machine to really get its teeth stuck in. I had to do that recently and found the quickest way to get started was to spin up what I needed using the pre-configured Azure Deep Learning environment, then drop it when I was finished. No messing around with configuration/installs or other faffing about, just straight down to business. This article walks through the process that is actually rather pleasantly simple.

Setup

The pre-build environment we want sits in the Azure app marketplace. It can run both Windows and Linux, and when switched on, gives you immediate access to all of the popular Deep Learning toolkits including Tensorflow, Keras, MS Cognitive Toolkit, etc. You can find the setup link for the deep-learning environment in the app marketplace here.

Image 1

To get started, click on the 'Get it now' button and then 'continue' once you agree to the usual 'sign your life away' malarkey.

Image 2

You will next be redirected to the Azure portal and asked to start environment creation.

Image 3

Fill in the usual things like machine name, resources group, etc. and the next part of the fun is to pick the machine size, and <cough> price! ....

Image 4

Now, let there be no panic when you see these prices! :)

Image 5

A lot of times, we look at prices of tech as developers and gulp .... wow, expensive! .... well, it depends .... this is the cloud, and the promise of the cloud is you only pay for what you use. So, in my case, and I am sure yours, I only want to sign up the machine for perhaps 30 minutes, do my clever clogs Machine Learning on the GPU, and then delete the box ... gone, never to be heard of again.... so actually, even the more expensive box listed, will only cost me a few dollars to spin up, use, and spin down again.

Image 6

After the usual few minutes of automation, the complete environment is up and ready to connect into!

Using this prebuilt environment on an 'as needed' basis saves a ton of time, and, so long as you remember to delete it afterwards, is a very affordable way to build models fast. Please, oh please don't forget to delete those big expensive environments after use!!! ... you've been warned. :)

History

  • 23rd October, 2018: Version 1

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)