Measured LLM performance with the RTX 3090—How many tokens per second are needed to match reading speed?: I repeated the same measurement using a different machine. The goal was not to compare GPU generations. I aimed to isolate whether the generation speed is determined by the GPU or the CPU.
Generally, dividing computation between the GPU and CPU is not the standard approach. If the model fits within the VRAM, loading it entirely onto the GPU is the fastest option. Sharing the workload is a不得已 measure taken when the model does not fit. Recently, models have become so large that it has become the norm for them not to fit.
I will state the results first. While the model fits, the GPU makes a difference, but the moment experts are offloaded to the CPU because it no longer fits, the difference between GPUs disappears.
Premises and Limitations of This Comparison
Let me clarify upfront. The two machines used in this test differ in both GPU and CPU. Moreover, the difference is in opposite directions.
| Item | Machine A | Machine B |
|---|---|---|
| GPU | RTX 3090 / VRAM 24GB | RTX 5090 / VRAM 32GB |
| Host CPU | Equivalent to 20 cores | AMD EPYC 9B14 allocated 52.7 CPU cores |
| Host RAM | 503GB | 755GB |
| Runtime | llama.cpp (CUDA) | llama.cpp (CUDA 12.8, targeting sm_120) |
| Measurement method | llama-bench (prompt 512, generation 128) | Same |
Machine B has a newer GPU, but its CPU was measured to be about half as fast. This is despite the fact that the displayed core count is higher for Machine B. In the GPU environments used, you can select the GPU but not the CPU.
Therefore, do not read the numbers in this article as "RTX 3090 vs. RTX 5090." The GPU generation difference can only be applied to rows where the model fits entirely into VRAM. Rows outside of that are intended to show the differences in the balance between the two machines. All numbers were measured on this site. Speed is expressed in tokens per second.
When Entirely Fit in VRAM, the GPU Difference Shows Directly
Unit is tokens per second (the number of tokens created per second). Higher is faster.
| Configuration | Machine A (3090) | Machine B (5090) | Machine B ÷ Machine A |
|---|---|---|---|
| 27B Dense - Generation | 35.84 | 80.89 | 2.26x |
| 27B Dense - Prompt Processing | 1155.24 | 3797.48 | 3.29x |
| 35B-A3B - Generation | 150.12 | 263.68 | 1.76x |
| 35B-A3B - Prompt Processing | 3086.77 | 8399.36 | 2.72x |
Here, the CPU is hardly active, so this can be read as the GPU difference. Generation was 1.8–2.3 times faster, and prompt processing was 2.7–3.3 times faster.
There is a reason for the differing rates of improvement. Generation involves re-reading model weights for each token, so memory bandwidth is directly effective. Prompt processing is dominated by computational load, so the increase in processing units also contributes. Even when swapping the same GPU, the rate of improvement changes depending on the task. Generation for the 27B model was measured three times, yielding consistent results of 80.61, 80.80, and 80.89.
The Moment Experts Are Offloaded to the CPU, the Trend Reverses
Unit is tokens per second (the number of tokens created per second). Higher is faster.
| Layers Offloaded to CPU | Machine A (3090) | Machine B (5090) | Machine B ÷ Machine A |
|---|---|---|---|
| 0 layers (All GPU) | 150.12 | 263.68 | 1.76x |
| 8 layers | 78.39 | 44.14 | 0.56 |
| 16 layers | 55.96 | 32.60 | 0.58 |
| 24 layers | 42.77 | 23.13 | 0.54 |
| 48 layers | 32.68 | 16.37 | 0.50 |
| All CPU | 9.22 | 2.96 | 0.32 |
Just by offloading 8 layers, the ratio reverses from 1.76 to 0.56. As more layers are offloaded, the ratio approaches 0.50.
This is not a matter of the GPU. Since the offloaded computation is handled by the CPU, it does not matter how new the GPU is. The fact that the ratios are clustered in a narrow range of 0.47 to 0.58 confirms this. If it were due to variance, they would not be this consistent.
What matters here is the memory bandwidth on the CPU side. This is because expert computation in MoE (Mixture of Experts) is primarily a process of reading weights. Indeed, when I reduced the number of threads according to the allocation, performance worsened (dropping from the default 15.6 to 7.04 with 52 threads). It seems that the number of processing units is not the key factor, but rather how much memory can be read simultaneously.
When Models Do Not Fit in VRAM, the Direction Changes Again
For the 176B model with 69.41GiB of size, the results were as follows.
Unit is tokens per second (the number of tokens created per second). Higher is faster.
| Layers Offloaded to CPU | Machine A (3090) | Machine B (5090) | Machine B ÷ Machine A |
|---|---|---|---|
| 78 layers | 4.76 | 7.93 | 1.67x |
| 86 layers | 4.81 | 8.50 | 1.77x |
| 94 layers | 5.04 | 8.11 | 1.61x |
| All CPU | 2.51 | 1.41 | 0.56 |
Machine B, with half the CPU speed, became 1.7 times faster.
This model fits in neither 24GB nor 32GB of VRAM. Both place most of it on the CPU, but the proportion manageable by the GPU differs by a factor of 1.33 between 24GB and 32GB. The 35B-A3B model was 20.60GiB and fit entirely in VRAM originally, so once offloaded, CPU performance was directly reflected. Since the 176B model could not fit entirely from the start, the increased VRAM on Machine B allowed the GPU to handle more, providing an efficiency gain.
Only the "All CPU" row (ratio 0.56) returns to a ratio of 0.56. Without using the GPU, the CPU difference appears as expected.
Side-by-Side Execution of the Same Question
I submitted the same question to both machines and recorded the output in real-time. Since model loading times vary by machine configuration, those were excluded, and the timing was synchronized from the moment the first character appeared.

In the top row, Machine B wins; in the middle, it loses; and in the bottom, it wins again. Despite being the same two machines, the winner changes depending on what is being processed. This is the main point of this article.
How to Interpret the Balance
If the model fits entirely in VRAM, look at the GPU. The difference was 2.26x for 27B and 1.76x for 35B-A3B. The CPU is hardly relevant.
If it does not fit and experts are offloaded to the CPU, upgrading the GPU yields no benefit. In the configuration where 48 layers of 35B-A3B were offloaded, the machine with the newer GPU was half as fast. Here, what matters is the CPU-side memory bandwidth.
If it does not fit, but increasing VRAM increases the proportion that can be loaded, VRAM capacity matters. For the 176B model, despite the CPU being half as fast, the 8GB more VRAM on Machine B resulted in 1.7 times faster performance.
In other words, what is determined first is the relationship between model size and VRAM, which then dictates whether to look at the GPU or the CPU. It is no longer a matter of simply choosing based on GPU model numbers.
Speed Was Almost Unchanged Between 1.75-bit and 4-bit
I also verified another aspect. The 176B model used UD-IQ1_M (69.41GiB), which was compressed to 1.75 bits. Since this method involves heavy decompression processing on the CPU, I suspected this might be the cause of slowdowns, so I also measured it with UD-Q4_K_XL (103.68GiB) at 4 bits. It was the same Machine B.
Unit is tokens per second (the number of tokens created per second). Higher is faster.
| Layers Offloaded to CPU | UD-IQ1_M (1.75-bit · 69.41GiB) | UD-Q4_K_XL (4-bit · 103.68GiB) |
|---|---|---|
| 94 layers | 8.11 | 7.84 |
| 90 layers | ― | 7.85 |
| 86 layers | 8.50 | 7.81 |
| 80 layers | ― | 7.36 |
| 70 layers | ― | 7.62 |
There is almost no difference. The fact that the speed remained the same despite a 34GB increase in size indicates that the bottleneck is not the decompression calculation, but rather how quickly weights can be read on the CPU. The intuition that heavier compression leads to faster speeds was incorrect. The purpose of reducing capacity is to fit into memory, not to increase speed.
Note that there is a third-party report of 21 tokens per second with the same 4-bit configuration, which this site could not reproduce. With more VRAM (32GB vs. 24GB), we achieved 7.8. The runtime environment may differ, but this has not been verified.
Precautions When Using New GPUs
The RTX 5090 on Machine B is from the Blackwell generation, with a GPU architecture ID of sm_120. llama.cpp will not run if built directly. You must use CUDA 12.8 or higher and rebuild with -DCMAKE_CUDA_ARCHITECTURES=120 passed. Just as the 176B model could not be loaded in the mainstream llama.cpp and required a PR branch for Unsloth, when trying new technologies, it is best to first verify that the runtime environment is up to date to avoid waste.
Pitfalls Encountered During Measurement
I guessed the causes incorrectly three times. Each hypothesis sounded plausible, but the measurements proved otherwise.
Incorrect Hypothesis ①: Taking too many threads. Machine B displayed 384 threads, but the actual allocation was 52.7 CPU cores. I suspected that taking too many was causing slowness and reduced the count, but performance worsened. The default yielded 15.6, 52 threads yielded 7.04, and 16 threads yielded 8.78.
Incorrect Hypothesis ②: The machine was congested. The machines used are shared with other users. I suspected congestion and re-measured under the same conditions, but results of 14.86, 15.77, and 15.62 were reproduced. It was not due to congestion.
Incorrect Hypothesis ③: Quantization choice. As written above, changing to 4 bits made no difference.
The only correct explanation was that Machine B's CPU was about half as fast. If I had written this without measuring, I would have written incorrect statements all three times.
I also record another embarrassing mistake. I started the next script before the previous measurement script finished, resulting in numbers from a state where two processes competed for the same CPU and GPU. I noticed this, discarded the data, and switched to using lock files. Measuring in such an environment requires most of the time just for checking basic conditions.
Summary
Generation speed is not determined by the GPU alone. Depending on whether the model fits in VRAM, the determining factor shifts between the GPU and the CPU. If it fits, look at the GPU; if it does not fit and is left to the CPU, look at CPU-side memory bandwidth; if it does not fit entirely but increasing VRAM increases the proportion that can be loaded, look at VRAM capacity.
For the two machines in this test, the one with the newer GPU had a slower CPU, and the winner reversed depending on the configuration. This was not a fair combination for comparing GPU generations, but it was convenient material for observing what happens when the balance is disrupted.
Regarding the thinking process for required memory, please also see MoE and Quantization Change LLM Required Memory—Need to View VRAM and Host RAM Separately. Regarding how many tokens per second are sufficient for reading speed, please also see Measured LLM Performance with RTX 3090—How Many Tokens Per Second Are Needed for Reading Speed?.