iTranslated by AI
Comparing LLM Inference Speed on Ryzen AI Max+ 395
Introduction
On the EVO-X2 equipped with the AMD Ryzen AI Max+ 395, we run gpt-oss:20b on CPU/GPU/NPU and compare processing speeds.
Measurement Environment
- Processor: AMD Ryzen AI Max+ 395 (16 cores)
- OS: Windows 11 Pro 24H2
- RAM: 64GB
- VRAM: 64GB
- Model: gpt-oss:20b
-
Software:
- CPU/GPU: Ollama 0.12.6
- NPU: FastFlowLM (FLM) 0.9.13
- Prompt: Predict the future of AI.
-
Measurement Method:
- Ollama:
/set verbose - FLM:
/verbose
- Ollama:
Measurement Results
Unit: tokens/s
| Device | Prompt Evaluation Speed | Generation Speed |
|---|---|---|
| CPU | 92.58 | 17.04 |
| GPU | 401.46 | 44.58 |
| NPU | 18.20 | 10.94 |
The GPU was the fastest, the CPU outperformed the NPU, and the NPU was the slowest.
Comparison with 120B
When running gpt-oss:120b on the GPU, the prompt evaluation speed was 209.07 and the generation speed was 33.87 tokens/s. Although the number of parameters is 6 times larger, the speed reduction is mitigated by the proper MoE configuration.
This may be close to the ideal model that leverages the VRAM capacity of the Ryzen AI Max+ 395 while running at a practical speed.
Others
For measurement results of other models, please refer to the following (GPU only).
About the NPU
The NPU has the following characteristics:
- CPU Load Reduction: By running inference on the NPU, the CPU can be used for other tasks
- Power Efficiency: The NPU is specialized for AI processing and is said to consume less power than the CPU for the same tasks
- Advantage in Mobile Use: In battery-powered notebook PCs, lower power consumption directly translates to longer operating time
Since the Ryzen AI Max+ 395 is equipped with a powerful 16-core CPU, no performance advantage of the NPU was observed.
Furthermore, when running an LLM in a desktop environment, the NPU's advantage is limited for the following reasons:
- With sufficient power supply, power consumption differences are not a major issue
- A powerful GPU is available
- The GPU also does not place a load on the CPU
However, when running multiple AI tasks in parallel or performing other heavy processing while executing AI tasks, the NPU may prove its worth.
These challenges appear to be recognized within the industry, and there are rumors that AMD may drop NPU support in future Zen 6 APU products.
Summary
LLM inference speed measurements on the Ryzen AI Max+ 395 yielded the result: GPU > CPU > NPU. Since the NPU offers few benefits in a desktop environment, running on the GPU is recommended.
Related Articles
This article investigates why the NPU is not being widely utilized. It suggests that the NPU is not intended for running large models and that its processing speed is not particularly fast.
In comparisons within VRAM limits, the Radeon AI Max+ 395's GPU (Radeon 8060S) was slightly faster than the Radeon RX 7600 XT, and the CPU was slightly faster than the Radeon 780M (iGPU).
Discussion