Deep Learning on a Budget: $450 eGPU vs Google Colab

栏目: IT技术 · 发布时间: 6年前

内容简介:Colab is phenomenal for beginning deep learning, but how does it stack up against an eGPU + Ultrabook?Deep learning is expensive. GPUs are an absolute given for even the simplest of tasks. For people who want the best on-demand processing power, a new comp

Colab is phenomenal for beginning deep learning, but how does it stack up against an eGPU + Ultrabook?

Deep Learning on a Budget: 0 eGPU vs Google Colab

Photo by Nana Dua on Unsplash

Deep learning is expensive. GPUs are an absolute given for even the simplest of tasks. For people who want the best on-demand processing power, a new computer will cost upwards of $1500 and borrowing the processing power with cloud computing services, when heavily utilized, can easily cost upwards of $100 each month. That is absolutely fine for businesses, but for the average individual, that adds up.

Because of this, 2 months ago, I made my first major purchase to give myself reasonable computing power. I already own an older XPS 15 with a small GPU (a GTX 960m that just was not cutting it), so I decided to buy a Razer core + NVIDIA GTX 1080, and I immediately had around 4x the processing power I had before, for under $450 (I bought them both used). It was such a great transformation, that I wrote a medium article detailing the whole process and results ( you can read that here ).

The article was very well received, but from multiple readers and colleagues of mine, I was asked the question, “how does this stack up to colab?” And to all of those, I would answer that I had heard of people liking it, but I had never considered it. After all, how good could a free GPU be?

Before I get into the results, I’ll give a small background on Colab itself. Colab is a product developed by Google Research to give anyone the ability to execute Python code. It is run completely in the browser and uses google drive as its primary file store. This allows it to be easily sharable and completely in the cloud.

The catch is that compute resources are not guaranteed, meaning you’re essentially getting what google is not currently using. Colab states that most of the time, this means the GPU assigned will be chosen from Nvidia K80s, T4s, P4s, and P100s. The other catch is that if you are temporarily not using Colab, it will assign those resources to somebody else. And this, in my tests, was not very forgiving. Even in the time it took me to take my dog out to the bathroom, I was experiencing timeouts. This could get annoying if you let something run, do something else, and do not have the results saved upon completion. The final drawback is the 12 hour limit on runtime. Most people should not worry about that, but for large projects where tuning may take a while, this could be troublesome.

Now that I have explained what Colab is, I can explain how I tested it. Similar to what I used to test my eGPU in my previous article, I used AI Benchmark , an incredibly simple yet powerful python library that utilizes Tensorflow to run 42 tests on 19 different sections , providing a great generalized AI score for a GPU. Next, I initialized a runtime 15 times and ran AI benchmark each time, recording the results as well as the assigned GPU — I got the K80 10 times, the P100 4 times, and the T4 once (I never got the P4, but it should perform slightly worse than the T4) — here are the speed results!

Deep Learning on a Budget: 0 eGPU vs Google Colab

Colab Results

As you can see, there is a large amount of variance in the results, the top GPU performed almost 4x faster than the slowest one they can assign, but for a free GPU, they are all phenomenal. I was blown away that any of these are given for free. They all provide 12+ gigabytes of RAM, plenty for most projects, and the P100, when it is assigned, has speeds close to a brand new RTX 2070. Even the K80, which is the slowest and most common, performs slightly worse than a GTX 1050 Ti, which is still a $150 GPU.

How does this compare to my eGPU? Honestly, it stacked up very well. Below is the same graph when my 1080 setup is plotted alongside!

Deep Learning on a Budget: 0 eGPU vs Google Colab

Colab vs GTX 1080 eGPU

On the median case, Colab is going to assign users a K80, and the GTX 1080 is around double the speed, which does not stack up particularly well for Colab. However, on occasion, when a P100 is assigned, the P100 is an absolute killer GPU (again, for FREE ). Because of how great the P100 is, when comparing the average case, you can see that the two results are not that different, my eGPU on average only performed around 15% better.

Deep Learning on a Budget: 0 eGPU vs Google Colab

eGPU vs Colab Average

So if you are looking at getting into machine learning (or looking to upgrade your current setup) what should you do? My personal recommendation is that if you are only looking to dabble in machine learning (at least to start), taking a first-level machine learning course, or are not consistently going to need computing resources, Colab is an absolute no brainer. The compute it provides for free is tremendous.

However, if you feel limited by the offerings of Colab, possibly needing faster speeds, knowing your resources at all times, needing long training times, want to use a non-python language, or are planning to use your GPU for more than just machine learning tasks, an eGPU (or dedicated GPU) will probably work out better for you!


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。

思考的技术

思考的技术

[日]大前研一 / 刘锦秀、谢育容 / 中信出版社 / 2010-11 / 32.00元

思路决定出路,没有了思路,也就没有了出路。 在充满危机与冒险的当下,我们缺乏的不是技巧而是揭发事务本质的动力和好奇心,缺少怀疑一切的心态和对固有模式的怠惰。 大前研一凭借他30多年的管理咨询经验,为我们提供了一种全新的可借鉴的思考方式。 企业和个人惟有改变既有的思考模式,放弃对过去成功经验的迷恋,学习有创意的思考方法,方能找到正确的经营思路。一起来看看 《思考的技术》 这本书的介绍吧!

html转js在线工具
html转js在线工具

html转js在线工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具