Many Deep learning or Machine Learning projects require GPU acceleration, and getting access to external GPUs or using GPU services by different cloud services can be costly, especially for students.

The very reason to write this article is the difficulties most of the students including me, face or have faced when it comes to necessitating GPU acceleration based on the general-purpose GPU library NVIDIA CUDA for Deep learning projects and with the computer not having physical CUDA enabled GPU.

Should say that there are plenty of free cloud services which grant free GPU when it comes to Training a Deep Learning models for example, Googles Colab, Paperspace Gradient and so on. But accessing the above said free cloud GPU, to develop REST APIs which consumes GPU acceleration because it deals with operations related with tensors (matrix operations) remained to be a problem.

So I was considering and searching of ways how to run my flask app on a free cloud GPU and found this article for the rescue:

With the help of that article, I was able to get registered for Github EducationStudent Developer Pack , after following the steps mentioned there, with the email id of my current higher educational institute.

For the development and running of the application, we will be needing ‘PyCharm Professional’ edition and a GPU accelerated Virtual machine or a server.

With the help of the Student Developer pack I was able to install ‘PyCharm Professional’ for free.

There are many options to go for when it comes to choosing a free GPU accelerated Virtual machine or a server using many cloud services for example; Microsoft Azure cloud services, AWS cloud, DigitalOcean, Google Cloud GPUs and so on. But some of them may require credit cards at signup for verification even if it’s for the free trial.

With minimum trouble, and not having to enter any credit card info, I was able to use Azure DSVM (Data Science Virtual Machine), to develop, host and run my flask app on, which grants free $100 credit for students (GPU enabled).

Any of the GPU accelerated VM or a server can be used, it could be either a paid subscription or free, all we need is the IP address and the credentials to connect over.

The concept of ‘Running Flask with an SSH Remote Python Interpreter’ will be used and the steps are shown below.

You can always use an existing project, or the development can be started from scratch in the virtual machine that has been configured itself.

#gpu #pycharm #flask #python-developers #remote #python

How to Run a Flask application with free GPU acceleration for students with PyCharm
17.70 GEEK