Building a Budget PC for Machine Learning: A Practical Guide

Seweryn Oskar
4 min readSep 1, 2023

--

In this article, I’ll share my experience of building a budget-friendly PC for machine learning purposes. I’ve spent an unreasonable amount of time researching the internet to find the most cost-effective components. I hope you can use my final thoughts to avoid spending too much time on research and too much money on components that aren’t worth the value.

Main Requirements for Computer:

1.The computer should be capable of training mid-size ML/Deep Learning models in a decent amount of time.

2.It should be cost-effective, with the possibility of considering more expensive options only if they provide significant benefits.

Additional Requirements:

  • Low power consumption.
  • Upgradability for components like RAM or different parts in the future.
  • Silent operation.
  • Space for both SSD and HDD.

These requirements can sometimes conflict with each other, making it a challenge to find the optimal balance and sweet spot.

My initial idea was to purchase a laptop for its convenience, portability, and lower power consumption. However, laptops tend to be more expensive for similar specifications, making a PC a better choice for me due to factors like performance, cooling, longevity, and upgradability. Now, let’s go through the list of components I selected and the prices I paid, along with the justifications for my choices.

Justification:

  1. Graphics Card (GPU):
  • I wanted a GPU with CUDA Cores (essential for ML) and at least 10GB vRAM.
  • NVIDIA’s GeForce RTX 3000 and 4000 series GPUs are popular choices for their parallel processing capabilities.
  • I analyzed various options based on price, cost-to-CUDA-cores ratio, cost-to-RAM ratio, and power consumption per CUDA core. The RTX 3060 emerged as the winner.

2. CPU

  • The CPU is the heart of the machine. More cores mean faster ML model training, especially for CPU-specific tasks and non-GPU models.
  • Initially, I considered high-end CPUs like the Intel i5–13500 with 14 cores and 20 threads. However, it was almost three times more expensive than the AMD Ryzen 5 5500, and offered only a 30%-60% speed increase for multi-threaded tasks. https://cpu.userbenchmark.com/Compare/Intel-Core-i5-13500-vs-AMD-Ryzen-5-5500/4147vsm1820844 Considering my usage, the additional cost didn’t seem justified.
https://www.cpubenchmark.net/cpu_value_available.html

3. Memory (RAM):

RAM is critical for handling large datasets and model training. While the general consensus is that 16GB of RAM strikes a good balance between cost and performance, some ML tasks demand more. In such cases, insufficient RAM can hinder your work, causing delays. To ensure smooth operation and flexibility for various ML training scenarios, I opted for 32GB of RAM.

4. A 500GB SSD is sufficient for my initial needs, with room for additional drives in the future.

5. Motherboard: Choose a motherboard compatible with your CPU and GPU, along with the necessary ports for peripherals.

6. Often overlooked but crucial, the power supply unit (PSU) is the backbone of system stability. Selecting the right PSU ensures that your PC components receive consistent and clean power. For the RTX 3060 and the entire system’s reliability, Nvidia recommends a 550W PSU (assuming a CPU with high power consumption). While 500W might suffice, I chose a 600W PSU to provide some extra headroom for potential upgrades. Additionally, I aimed for at least an 80 Plus Gold Certificate, as the increased efficiency compared to lower certifications helps reduce electricity bills in the long run, making it a sound investment.

7. Case:

The choice of a case involves striking a balance between cost, airflow, temperatures, and noise levels. Opting for a silent case is a priority, but it often results in a trade-off, as these cases tend to be more enclosed, requiring fans to work harder to maintain cooling. I selected a case that represents a good compromise between silence, cooling capabilities, and cost-effectiveness. This choice ensures that my machine operates quietly without compromising on temperature control, making it an ideal solution for a budget-friendly machine learning PC.

Conclusion:

Building a budget PC for machine learning is all about finding the right balance between performance and cost. By carefully selecting components like the CPU, GPU, RAM, and storage, you can create a capable machine learning rig without breaking the bank. Remember, it’s essential to consider your specific needs and the types of models you’ll be working with when making component choices. With a well-thought-out build, you can embark on your machine learning journey without worrying about hardware limitations.

--

--

Responses (1)