Smaller companies and researchers do usually not have the money to invest thousands of dollars or euros into specialized deep learning hardware. You might think cloud instances like AWS EC2 or Google compute are the straightforward cheap solution, but if you compare the costs, you will realize that they are quite expensive. In this post, I will show how to build a deep learning system for 2100€ with almost the same performance as a cloud instance.
Nvidia hardware and cloud instances
Nvidia´s specialized deep learning DGX station costs at least 50.000 $ and therefore only affordable by big corporations. For single GPU cloud instances, you pay between 2.50 $ and 3.00 $ per hour, therefore in one month you pay around 1800 -2200 $. The reason why these instances are that expensive, is that data centers are not allowed to use consumer hardware like RTX and GTX cards in their servers. Nvidia was never famous for their fairness and we should really hope that AMD ends the GPU monopole soon!
At least they can not prohibit the usage of gaming hardware for deep learning in general. Building such a machine is nothing else, then building a gaming PC.
Building a gaming PC is not rocket science and almost everyone, who is tech-savvy should be able to assemble such a computer. There are also a lot of configurators out there, where you can basically put together every part on your own and let the seller assemble the pc for an additional fee. The biggest challenge is the selection of parts.
MSI X570-A PRO AMD X570 So.AM4 – 150€
Should be capable of the number of GPUs you want to use, for me 2 GPUs is enough, and I start with one RTX 2080 Ti. Furthermore, the Mainboard supports either AMD or Intel CPUs, so choose the right chipset.
AMD Ryzen 7 3700X 8x 3.6 GHz boxed – 320€
The CPU should be fast enough but is not that important for for a deep learning configuration. I choose this powerful Ryzen CPU, because it does not really make a huge difference, when the GPU itself costs around 1000 $. When choosing the CPU make sure, it can handle the number of GPUs (number of PCIe lanes). The 3700x can could be used with 2 GPUs (2x 8x PCIe).
Graphics Card (GPU)
MSI 11GB GeForce RTX 2080 Ti PCIe 3.0 x16 – 1200€
I choose the RTX 2080 Ti because it has 11 GB memory and my previous configuration was almost limited by neural networks, which did not fit into memory (GTX 970). A cheaper and even more cost-efficient alternative is the RTX 2070.
You can also easily use two of them and connect them with NVLink. According to this post memory can be even shared, which gived you 22 GB in total. In this case take a more powerfull PSU (> 800 W)
Power Supply (PSU)
600 Watt be quiet! PURE POWER 11 600W – 70€
Don´t buy cheap power supplies with low efficiency to avoid blue screens and more! 600W is enough for a single GPU, if you want to use two, go for at least 1000 W.
32GB G.Skill Aegis DDR4-3000 DIMM CL16 Dual Kit – 130€
Doesn´t really matter much. It´s enough to use DDR4-3000 Rams and 32 GB seems to be a good starter, while there are two free slots left to add 32 GB more.
Hard Disk (SSD)
1000GB Crucial MX500 2.5″ (6.4cm) SATA 6Gb/s 3D-NAND – 120€
Depends on your data sets and how much IO do you need. For me 1TB is enough.
Inter-Tech M-908 – 90€
Be sure to use a case, which can handle the length of the graphics card!
In sum the configuration is about 2.100€ and you can even get cheaper! Two months of any comparable AWS instance will cost around the same.
You need to change the CPU now that the new Ryzen 3 cpu has hit the market!
Also I believe you’d want a much higher wattage power supply, 600w is just not enough specially if your plan on training full time for a very long periods of time (weeks or months of continues 100% load).
You also need to consider capacitor aging for your psu when you buy one.
the DDR4 modules are rumored to hit sky high levels in the next 2 months because of a feud between Japan and SKorea!
So while you can, get that 64Gig of RAM you may later need. the ram prices are rumored to increase 55%!
Also for Ryzen 3 CPUs it seems the ram frequencies are crucial and they directly affect the overall performance as high as 50%!
wheb buying one, remember to go for 3600mhz if I’m not mistaken, or even better search for what I just said before buying.
(By the way good job, I’m just providing these info in the comments, in case some new people plan on building new PCs so they dont get screwed .
Thank you very much for your thoughts on that, I will take a took and do some research and update my post next week.
PCpartPicker gave me this warning for the build: Some AMD X470 chipset motherboards may need a BIOS update prior to using Matisse CPUs. Upgrading the BIOS may require a different CPU that is supported by older BIOS revisions. Is this a serious problem?
Hi Tai, thanks for you comment. Should not be a problem. But you can also select a newer mainboard (X570 is the chipset for newer Ryzen CPUs), which is already up-to-date, then you are safe.
I updated the article to match the newer CPU.
Thanks for the tip!