|
| 1 | +--- |
| 2 | +layout: post |
| 3 | +title: "Building my first AI rig from scratch I" |
| 4 | +date: 2025-06-15 20:00:00 +0100 |
| 5 | +categories: development |
| 6 | +comments: true |
| 7 | +--- |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | +# Building my first AI rig from scratch |
| 12 | + |
| 13 | +I've recently started my journey into the world of Artificial Intelligence, |
| 14 | +and it didn't take long for my curiosity to shift towards the hardware. |
| 15 | +I wanted to understand how to set up and run powerful models locally. |
| 16 | +My current laptop, a trusty but aging machine, was definitely not up to the task. |
| 17 | +This led me to investigate how I could get my hands on capable hardware at a reasonable price. |
| 18 | + |
| 19 | +## Defining the requirements |
| 20 | + |
| 21 | +When you're new to a field, defining your exact needs can be challenging. |
| 22 | +I decided to start with a solid, minimum-viable setup that I could upgrade later if needed |
| 23 | +(after all, renting GPU time in the cloud is always an option). |
| 24 | + |
| 25 | +My research indicated that **16GB of VRAM** was a great starting point, |
| 26 | +capable of running and even training a wide variety of models. |
| 27 | +This became my core requirement. |
| 28 | + |
| 29 | +I also knew that building a desktop computer from individual parts |
| 30 | +is generally cheaper than buying a pre-assembled one with the same specs. |
| 31 | +Plus, the idea of building it myself was a challenge that really appealed to me. |
| 32 | + |
| 33 | +And so, the decision was made: I was going to plan and build my very own AI rig. |
| 34 | + |
| 35 | +I was heavily inspired by [this fantastic video](https://www.youtube.com/watch?v=ayWcs5FbxGY) |
| 36 | +from **Sourish Kundu**, which shows the end-to-end process of building a machine learning server. |
| 37 | +It was exactly what I wanted to do, though I aimed to be a bit more budget-conscious. |
| 38 | + |
| 39 | +## The shopping list |
| 40 | + |
| 41 | +I'm not a hardware expert, so I focused my search on NVIDIA GPUs to ensure compatibility with CUDA. |
| 42 | +I landed on the **Asus Dual RTX 5060 Ti 16GB**. |
| 43 | +As a recent-generation GPU, it offered the best of both worlds: |
| 44 | +a more affordable price point but with the crucial 16GB of VRAM I was looking for. |
| 45 | +It seemed like the perfect foundation for all the main AI tasks I had in mind. |
| 46 | + |
| 47 | +With the GPU selected, I turned to ChatGPT and Gemini for help picking the other components. |
| 48 | +My goal was to balance price and performance, and I found that second-generation parts often hit that sweet spot. |
| 49 | + |
| 50 | +The case was another critical decision. I love compact, small-form-factor (SFF) builds, |
| 51 | +so my choice of the **Cooler Master NR200P V2** influenced the rest of the parts, |
| 52 | +requiring an ITX motherboard and an All-In-One (AIO) liquid cooler. |
| 53 | + |
| 54 | +After a couple of weeks of hunting for deals on Spanish online stores, this was my final component list: |
| 55 | + |
| 56 | +| Component | Model | Price (EUR) | |
| 57 | +|------------------|-------------------------------------------------|-------------| |
| 58 | +| **GPU** | Nvidia Asus Dual RTX 5060 Ti 16GB | 420 | |
| 59 | +| **CPU** | AMD Ryzen 7 7700 | 164 | |
| 60 | +| **PSU** | Corsair SF750 80 PLUS Platinum | 155 | |
| 61 | +| **Motherboard** | ASRock B650I Lightning WiFi | 167 | |
| 62 | +| **Case** | Cooler Master NR200P V2 | 120 | |
| 63 | +| **RAM** | Patriot Viper Venom DDR5 (2x16GB) 6000MT/s | 93 | |
| 64 | +| **SSD** | Kingston NV3 1TB | 57 | |
| 65 | +| **CPU Cooler** | Cooler Master MasterLiquid 240 Lite | 58 | |
| 66 | +| **Fan** | Arctic P12 Slim | 10 | |
| 67 | +| | | | |
| 68 | +| **TOTAL** | | 1244 | |
| 69 | + |
| 70 | +One week later, all the parts had arrived. The party was about to begin! |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | +## The assembly process |
| 75 | + |
| 76 | +### Step 1: Prepping the case |
| 77 | + |
| 78 | +The first thing I did was unbox the Cooler Master case and disassemble it. |
| 79 | +I had read many good reviews, |
| 80 | +but I was still thoroughly impressed with the quality of its materials and thoughtful design. |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | +### Step 2: The motherboard assembly |
| 85 | + |
| 86 | +With the case ready, it was time to build the heart of the machine. |
| 87 | +I started by installing the **AMD Ryzen 7 7700 CPU**, |
| 88 | +the **Patriot Viper Venom 32GB DDR5 RAM**, |
| 89 | +and the **Kingston 1TB NVMe SSD** onto the **ASRock B650I Lightning WiFi** motherboard. |
| 90 | + |
| 91 | +The motherboard even included a heatsink for the primary NVMe drive. |
| 92 | +Here’s how it looked all together: |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | +After securing it in the case with just four screws, |
| 97 | +I connected the front panel cables: |
| 98 | +the power button, USB-A, USB-C, the audio jack, and the pre-installed bottom fan. |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | +### Step 3: Powering it up with the PSU |
| 103 | + |
| 104 | +I selected the **Corsair SF750** for its compact SFX format, |
| 105 | +excellent reviews, and Platinum efficiency rating. |
| 106 | +Being fully modular was also a huge plus for cable management in a small case. |
| 107 | +I attached the essential cables (CPU, motherboard, and PCIe for the GPU) before mounting it. |
| 108 | + |
| 109 | +A lesson learned: CPU and GPU power cables are not interchangeable! |
| 110 | +Fortunately, I figured this out before damaging anything. |
| 111 | +After connecting the power to the motherboard and CPU, |
| 112 | +I did my best to route the cables neatly to avoid a mess later on. |
| 113 | + |
| 114 | + |
| 115 | + |
| 116 | +### Step 4: Keeping it cool |
| 117 | + |
| 118 | +Given the compact case, a liquid cooler was the most practical choice. |
| 119 | +I first mounted the fans onto the radiator and attached the AM5 bracket to the pump. |
| 120 | +The build quality of the cooler felt great for the price, but the plastic tubes were quite rigid. |
| 121 | +This forced me to mount the radiator in a slightly unconventional position. |
| 122 | +It wasn't a problem, just something to work around. |
| 123 | + |
| 124 | + |
| 125 | + |
| 126 | +With a bean-sized drop of thermal paste on the CPU, |
| 127 | +I screwed the radiator to the top of the case and secured the pump over the CPU. |
| 128 | +Finally, I connected the pump and fan cables to the motherboard headers, making sure to keep the cables tidy. |
| 129 | + |
| 130 | + |
| 131 | + |
| 132 | +### Step 5: The star of the show |
| 133 | + |
| 134 | +And now, for the queen of the kingdom! |
| 135 | +The **Asus Dual RTX 5060 Ti 16GB** was my key to unlocking the world of AI. |
| 136 | + |
| 137 | +Mounting the GPU was straightforward. |
| 138 | +I removed the necessary PCIe slot covers from the case, |
| 139 | +slid the GPU into place, and screwed it in securely. |
| 140 | +Then, I connected the PSU power cable and the short PCI riser cable |
| 141 | +(conveniently included with the case!) to the motherboard. |
| 142 | + |
| 143 | + |
| 144 | + |
| 145 | +After some final cable management, it was done! |
| 146 | + |
| 147 | +Tadaaaaa! |
| 148 | + |
| 149 | + |
| 150 | + |
| 151 | +All that was left was to connect the main power supply, attach the WiFi antennas, |
| 152 | +and plug in a temporary screen and keyboard to install Ubuntu Server. |
| 153 | + |
| 154 | +### Bonus: An extra fan for peace of mind |
| 155 | + |
| 156 | +After installing the OS and running some thermal tests (more on that in the next post!), |
| 157 | +I noticed that one of the SSD sensors was reporting high temperatures. |
| 158 | +To improve airflow, I decided to add another slim fan to the bottom of the case. |
| 159 | + |
| 160 | +The magnetic dust filter on the bottom made this incredibly easy. |
| 161 | +The Arctic P12 Slim fan even came with a Y-splitter cable, making the connection straightforward. |
| 162 | +I did have to briefly remove the GPU to access the fan header, but it was no big deal. |
| 163 | + |
| 164 | + |
0 commit comments