ホーム 暮らし How to Choose an NVIDIA GPU for Local LLMs

How to Choose an NVIDIA GPU for Local LLMs

真鍋 千夏 真鍋 千夏 • 更新: • 公開: • 読了約 25 分
目次


nec1c1fb7000b

I have summarized how to choose an NVIDIA GPU for local LLMs.

1. Introduction

If you want to run local LLMs at high speed, one of the most powerful options is an NVIDIA GPU.
NVIDIA GPUs have a rich ecosystem of AI-focused software centered around "CUDA," allowing you to utilize many inference engines and acceleration technologies.

However, it is not as simple as choosing a GPU with a high number of CUDA cores, as you might when selecting a gaming GPU.

For local LLMs, you specifically need to look at:

you need to check these.

In this article, we will focus mainly on desktop-oriented "GeForce RTX" and "RTX PRO" series.

2. Why NVIDIA GPUs are suitable for LLMs

2-1. CUDA Ecosystem

The greatest strength of NVIDIA GPUs is "CUDA."
Many of the major inference engines and acceleration libraries for LLMs are developed with CUDA at their core.

In particular, if you want to use:

NVIDIA GPUs are the primary candidate.

It is also a characteristic that new models, quantization methods, and acceleration techniques are often supported in the CUDA environment first.

2-2. Dedicated VRAM

In typical PCs equipped with NVIDIA GPUs, memory is separated into:

memory is separated.

When running an LLM at high speed using only a GPU,

.

For example, even if your PC has 128GB of RAM, if the GPU has 16GB, the models you can handle at high speed using only the GPU are primarily constrained by that 16GB of VRAM.

While you can offload parts that exceed VRAM to CPU RAM, this requires transfer via PCIe, which can significantly reduce speed.

Therefore, for a local LLM GPU,

is the standard approach.

3. Metrics for evaluating LLM performance

3-1. VRAM capacity

The most important factor is "VRAM capacity".

LLMs use VRAM not only for the model itself, but also for:

and so on.

The approximate size of the model itself is:

.

For a 27B model, this would be:

.

Therefore, a 16GB GPU can handle a 27B 4-bit model, while a 32GB GPU can handle a 27B 8-bit model, as a general guideline.

However, in practice, you also need space for things like the KV cache, so

—you need to leave some headroom.

3-2. Memory Bandwidth

The next important factor is "memory bandwidth".

This indicates

.

During LLM decoding, a large amount of model weights is read every time a single token is generated.

Therefore, especially for local LLMs with small batch sizes,

.

For example, in the Blackwell generation,

The RTX 5090 is a high-end model equipped with 32GB of GDDR7 and a 512-bit memory interface.

While VRAM capacity determines

, memory bandwidth determines

is closely related to.

4. Prefill and Decode

LLM inference processing is broadly divided into "Prefill", and "Decode".

4-1. Prefill

"Prefill" is the part that processes the input prompt first.
For example,

in this case, Prefill is what processes that input all at once.
Since Prefill performs a large amount of matrix operations in parallel,

becomes important.
If Prefill is fast,

and so on can be read quickly.
This is especially important for coding agents.

4-2. Decode

"Decode" is the process after Prefill of

.
The generation speed typically displayed, such as

, is primarily the Decode speed.
Because Decode repeatedly reads model weights,

is a characteristic.
Therefore, when looking at GPUs for LLMs, not only CUDA core count and AI TOPS, but also

It is important to look at.

4-3. TTFT

Another important factor is TTFT (Time To First Token).
This is

.

Long prompts take time to prefill, so the TTFT will also be longer.
When looking at the perceived speed of an LLM,

it is easier to understand by looking at these three.

5. Differences between RTX 30 / 40 / 50 series

5-1. RTX 30 series

The RTX 30 series is the Ampere generation.
It is not a generation you would actively choose for new purchases today, but for local LLMs, the RTX 3090 is still notable.

The RTX 3090 is equipped with

.
Depending on the used price, it is a candidate as a

.
Compared to the latest GPUs, its prefill performance and power efficiency are inferior, but this is because in local LLMs, VRAM capacity is often more important than the GPU generation.

5-2. RTX 40 series

The RTX 40 series is the Ada Lovelace generation.
A representative model is the "RTX 4090",

configuration.
The RTX 4090 is still fast today, but for local LLM use,

The difference in VRAM capacity is a major point.

If the used price is low enough, the RTX 4090 is a strong contender, but if you are purchasing a new high-end GPU, the 32GB RTX 5090 is attractive.

5-3. RTX 50 Series

The RTX 50 series is the "Blackwell" generation.

Blackwell adopts 5th generation Tensor Cores and also supports "FP4." NVIDIA positions the RTX 50 series as the first generation of consumer GPUs to support FP4.

The main desktop GPUs are:

.
For local LLM use, among these,

are particularly easy configurations to choose.
The RTX 5080 is fast, but it only has 16GB of VRAM, so if your goal is solely LLMs,

or

are also options to consider.

6. Differences between GeForce RTX and RTX PRO

6-1. GeForce RTX

When an individual runs a local LLM, "GeForce RTX" generally offers superior price-to-performance.

In particular, the RTX 5090 features:

equipped with.
If the model fits within 32GB, you can build a very fast local LLM environment.

On the other hand,

, your options disappear.

6-2. RTX PRO

If you want to handle even larger models on a single GPU, the "RTX PRO" series becomes a candidate.

In the Blackwell generation, there are:

and so on.
The RTX PRO 5000 features up to 72GB of GDDR7 and 1,344GB/s of memory bandwidth.
For the RTX PRO 6000 Blackwell Workstation Edition, the specs are:

.
With 96GB, it becomes easier to handle:

and more.
However, the price increases significantly, and the RTX PRO 6000 Blackwell Workstation Edition is listed on the NVIDIA Marketplace in the over $10,000 price range.

Therefore, for personal use, the following distinction is realistic:

.

7. The Option of Multiple GPUs

If you do not have enough VRAM with a single GPU, there is also the method of:

.
For example,

you can handle models exceeding 32GB by splitting the model weights across two GPUs.
vLLM supports multi-GPU inference via "Tensor Parallel," allowing you to distribute the model by specifying the number of GPUs.

However, the important point is that

is not the case.

Because inter-GPU communication is required, it is affected by factors such as:


Also, recent GeForce cards like the RTX 4090 do not support NVLink.
Therefore,

is easier to configure.

On the other hand, cards like the RTX 6000 Ada are extremely expensive, so depending on the price, a configuration using multiple GeForce cards is also an option.

8. How to choose based on VRAM capacity

8-1. 8–12GB

This capacity is mainly for using small models.

This is sufficient for trying out small LLMs with tools like Ollama.
However, if you are purchasing a GPU primarily for local LLMs, you should ideally choose 16GB or more.

8-2. 16GB

This is a capacity that is particularly easy to choose for current entry-to-mid-range systems.

Candidates include,

and others.

Even with the same 16GB, the RTX 5070 Ti has 896GB/s while the RTX 5060 Ti has 448GB/s, so if you prioritize decoding speed, a GPU with higher memory bandwidth is advantageous.

8-3. 24GB

This is a very easy-to-use capacity, including used GPUs.
Representative examples include:

.

are ways you can use it.
A used RTX 3090 is

.

8-4. 32GB

This is a particularly attractive capacity for personal local LLM environments.
A representative example is

.

is the configuration.
Furthermore, since the RTX 5090 has a very large memory bandwidth of approximately 1.8TB/s, you can also expect high decoding performance under conditions where the model fits within the VRAM.
It is currently one of the most powerful GPUs for personal local LLMs that prioritize speed.

8-5. 48–72GB

At this capacity, the "RTX PRO" series becomes the focus.
A representative example is

is.

etc., making it easier to handle large models on a single GPU.
However, since the difference from GeForce is significant when looking only at price-performance,

is suitable when the purpose is clear.

8-6. 96GB

You can use 96GB with the "RTX PRO 6000 Blackwell".

etc., is a major strength of being able to handle it on one card.
On the other hand, the price is significantly higher than the RTX 5090.
Therefore, for personal use,

comparison is also necessary.

9. Running large MoE with RTX 5090 + FreeToken

Normally, the RTX 5090 has 32GB of VRAM, so you cannot load the official checkpoint of "DeepSeek-V4-Flash", which is about 160GB, directly onto the GPU.
However, by using the MoE inference engine "FreeToken", you can run it even on a single RTX 5090.

9-1. What is FreeToken?

FreeToken is an inference engine for running large MoE models that do not fit in VRAM on NVIDIA GPUs.

Taking advantage of the property that MoE uses only some Experts during inference,

it performs CPU execution or transfers to the GPU as needed.

Therefore,

However, you can run MoE models that significantly exceed your VRAM.

9-2. DeepSeek-V4-Flash on RTX 5090

DeepSeek-V4-Flash is a

MoE model.

Research benchmarks on the RTX 5090 by FreeToken report results of approximately 22–25 tok/s.

In other words,

.
However, speed varies depending on the CPU, RAM bandwidth, prompt length, and other factors.

9-3. System RAM is also important

Since FreeToken places part of the model in CPU RAM,RAM capacity and memory bandwidth are also important.
For DeepSeek-V4-Flash,

is suggested. 128GB may be insufficient.

10. Differences from Mac Studio

NVIDIA GPUs and Mac Studio have quite different strengths.
NVIDIA GPUs have the following strengths:

.
Therefore,

is a characteristic feature.

On the other hand, Mac Studio has a CPU and GPU that share a large amount of unified memory. The M5 Ultra, scheduled for release in September, can utilize up to 512GB.
Therefore,

This is the general trend.

For local LLM use cases,

keeping this difference in mind will make it easier to choose.

Related



同じカテゴリの記事

真鍋 千夏
デジタルマーケター 真鍋 千夏
プロフィールを見る →

美容と暮らしの話題を担当。メーカーの公式発表、商品成分の公表資料、専門家の監修記事をもとに事実を整理します。

おすすめの関連記事