iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
💸

Considerations for Building a PC for Local LLM Execution

に公開
2025/06/04

General Strategy

First, consider whether you can substitute building a PC with cloud services like AWS or GCP. For example, using RunPod, a relatively inexpensive cloud computing resource, a 4090 costs about 0.34/H, which is around 54.4 yen (calculated at 1 = 160 yen).

If you use a 1300W/H machine locally, the electricity cost is about 40 yen. Running the GPU for a full day only costs about 345.6 yen, and even over a week, the difference is only 2419.2 yen.
Given that, I chose to build locally because I have personal data I want to keep at home (such as videos from home cameras), and I want to be able to freely scatter data and perform trial-and-error with machine learning without hesitation.

Regarding parts selection, I started by deciding on the GPU, then chose a CPU that wouldn't create a significant bottleneck. Once the CPU was decided, the motherboard and memory followed automatically.
However, because Intel's 13th and 14th generations had crash issues and I am a Ryzen fan, I chose AMD this time.
I didn't think too deeply about the fans and memory.
(Technically, I considered Corsair's iCUE Link fans for better cable management, but they were absurdly expensive, so I gave up on them.)
I reused storage disks I already owned.

GPU Considerations

VRAM is paramount, so I wanted at least 16GB.
Specifically, since I planned to load two or more 7b+ image, language, or audio models simultaneously, and perform training, a GPU with 24GB or more was preferred.

I considered the following options with 16GB or more:

32GB

  • RTX 5090 (likely around 450,000 yen)

24GB

  • RTX 4090 (around 300,000 yen)
  • RADEON 7900XTX (around 150,000 yen)

16GB

  • RTX 5080 (likely around 250,000 yen)
  • RTX 5070ti (likely around 160,000 yen)

Since supplies of the 4000 series were cut off and prices were trending upward, I decided it was better to wait for the 5000 series.
I didn't choose the 7900XTX because RoCm is not supported on Windows, but if you run it on Linux, it performs slightly worse than a 4080 Super, so it is a very strong option. Getting 24GB for around 150,000 yen is a bargain. Still, considering concerns about compatibility with other libraries, choosing NVIDIA is likely the wiser decision.

Since the 5090 price is astronomical, the realistic options were the 5080 and 5070ti.
Although the CUDA core count differs by about 15%, the price difference is about 100,000 yen, so I feel that if you are choosing within the 16GB range, the 5070ti is fine unless you have specific requirements.

AI TOPS also show about a 20% difference, so while there is a definite difference, I don't think it's huge.
The fact that the 5070ti's AI TOPS > 4090 is because the 5000 series uses FP4 while the 4000 series uses FP8 for calculations.
They should really match the comparison conditions...

Ultimately, I wanted both VRAM and speed, so I chose the 5090.
I realized some cards had disappeared from my house, but the funds for the 5090 were in my possession.
The 5090 is 20-30% faster than the 4090, similar to the jump between the 5070ti and 5080, but the +8GB is appealing, so I chose the 5090.
Since the 5090 consumes 600W, it seems like the heat will be intense, so I wanted an AIO (All-in-One) water cooling model rather than air cooling.
MSI and ROG are planning to release water-cooled models, so I have high expectations, but I'm worried that the price will exceed 500,000 yen.

Also, I've watched reviews and benchmarks of the 5000 series in various videos and posts, but no one in Japan was doing LLM benchmarks. (I recall only Chiro-log was doing them even for the 4000 series).
I wish they would add an LLM token/s metric to benchmarks soon.

CPU

To avoid bottlenecks, the 9(900|950)X and 9(800|950)X3D were options.
I chose the 9800X3D, which was the most popular at the time and in short supply globally, carrying a premium.
I imported it personally, and it was great to get it in about 4 days for 87,000 yen, which is 5,000 yen cheaper than the domestic price.

Later, I realized that for LLM purposes, focusing on the thread count rather than the 3D Cache would have been better, and I thought the 9900X or 9950X would have been sufficient. If you are someone who also wants to play games, the 9800X3D is fine.

Case Selection

Airflow is critical.
Since I wanted to use AIO water cooling for both the CPU and GPU, I ideally wanted a mini-tower case where they could be placed on the front and side for intake, with exhaust from the top and back (and perhaps additional intake from the bottom).

Ultimately, 'naked' was chosen.

Motherboard

An AM5 Socket motherboard was the minimum requirement.
If I'm using a 5090, I wanted PCIe 5.0, so I wanted to choose a B850 or X870.
Even B650 boards with an 'E' are supposedly version 5, but the ASUS ones I looked at were different. I have no idea.
However, it seems that even PCIe 4.0 doesn't significantly affect GPU performance (based on game benchmark info), so those looking for the lowest price or cost-effectiveness might be fine with a B650 chipset.
Since data transfer is important, I thought having double the transfer limit would be significant, but perhaps that isn't the case?
B850 boards are still scarce, and I only saw about 6 types for micro-ATX. The price also seemed to be around 40,000 yen and up. Expensive.
There was a 20,000 yen GIGABYTE board, but I was afraid to touch it.

Otherwise, I judged based on ease of M.2 and GPU installation, and the quality of the VRM.
I'll probably end up buying a B850 or X870.

Power Supply

I chose a power supply that is at least twice the power consumption.
With a 5090 + CPU, a power supply of 1200W or more is essential.
I was able to just barely get by with a 1200W power supply I had purchased in advance.
Since the power handled is very high, I feel that 80 PLUS GOLD is the minimum requirement, and PLATINUM would be better.

Since the 5090 class requires 12VHPWR power delivery, it seems best to choose a power supply that has a native 12VHPWR connector. Otherwise, you end up with a 3-to-1 cable connecting three 4-pin connectors, which makes the wiring messy.
Also, it seems that there are moments when it draws 900W, so a power supply compliant with ATX 3.1 or higher seems appropriate.
By the way, the Thermaltake GF1 1200W power supply I bought in advance was not compatible in either case. This is a lesson to decide on the overall configuration before purchasing.

Project Digits

This is the product announced at CES 2025, featuring 124GB of unified memory.
Like the Mac Mini, it allows the memory to be used directly as CPU and GPU memory, making it possible to load LLMs of over 100GB. According to the official site, a 200B model can be loaded. Considering that one-third of a DeepSeek 671B model can fit, the accuracy is quite promising.
Being able to get this environment for around 500,000 yen is a big deal (and it's power-efficient, too).
It was an option since the price is close to the 5090, but I gave up on it because it only says "can load," and I was worried about the speed.

Other

"With just one PC, you can change the world"—that saying disappeared once I started participating in the game of computing resources.
In particular, it is almost impossible for a student to just buy a large-capacity GPU like the 5090. Companies, please give me one. I'm waiting for your DMs.

I will write more if I think of anything else.

Addendum (2025/06/04)

I received a few questions, so I'll add the answers.

  1. "Why not a Mac?"
    In terms of memory capacity, it's a possibility, but considering it up to training, it's a no-go in terms of processing speed.

  2. "The RTX 50xx is out, so which one is best after all?"
    If you have the money, the 5090. However, I'm also starting to feel that since you can get 32GB by using two 5070ti cards for about 200,000 yen less than a 5090, that might be fine, too.

  3. "When is the best time to buy?"
    As of the time of this update (June 4, 2025), market stock for the 5090 has just started appearing at around 450,000 yen.
    However, Nvidia is reportedly going to increase production of AI-oriented GPUs in the future, so I don't really expect prices to drop significantly due to an increase in market stock.
    There is also the fluctuation due to the yen's strength, but that's not something to bank on either.

In the end, I think it's only a 50,000 yen difference even with the 5090, so considering the opportunity cost, the best time to buy is when you want to.

Discussion