跪拜 Guibai
← All articles
Artificial Intelligence

RTX 5090 vs. 128GB Unified Memory: What Local AI Actually Needs

By RockByte ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

The cost of ignoring memory capacity is a $3,000 GPU that can't load the models you want. Unified-memory mini PCs become competitive for MoE models, while the 5090's bandwidth advantage only applies when the entire model fits in VRAM.

Summary

The article compares a discrete GPU (RTX 5090 with 32GB VRAM, 1792GB/s bandwidth, 104.8 TFLOPS) against a unified-memory mini PC (AMD Ryzen AI Max+ 395 with 128GB shared memory, 256GB/s bandwidth, 14.8 TFLOPS). Raw FP32 compute favors the GPU 7:1, but for LLM inference the real constraints are memory capacity and bandwidth. A 70B model with 4-bit weights needs roughly 35GB, which doesn't fit in the 5090's VRAM. The mini PC's 128GB unified memory handles it by letting CPU and GPU share the same pool, but its 256GB/s bandwidth means reading all weights for each generated token yields only about 6 tokens/s for a 40GB model.

Mixture-of-Experts (MoE) models change the picture. Qwen3-30B-A3B activates only 3.3B of its 30.5B parameters per token, so on the AMD machine it can read the needed 1.65GB about 150 times per second. Similarly, DeepSeek V4.1 Flash (version 1017) has 763B total parameters but activates ~16B per token, requiring 8GB reads; the mini PC gets 32 reads/s, while the RTX 5090's 1792GB/s bandwidth would give 224 reads/s, but the full model won't fit in its VRAM. The mini PC also processes prompts slowly, e.g., about 95 input tokens/s for a 70B model, making long contexts take seconds to minutes. The conclusion: neither hardware is ideal; users can run only medium-sized MoE models with limited prompt lengths.

Takeaways
— RTX 5090: 32GB VRAM, 1792GB/s memory bandwidth, 104.8 TFLOPS FP32, about 30,000 RMB.
— AMD Ryzen AI Max+ 395 mini PC: 128GB unified memory, 256GB/s bandwidth, 14.8 TFLOPS FP32, about 20,000 RMB.
— A 70B-parameter model with 4-bit quantization needs about 35GB of weights, which exceeds the 5090's 32GB VRAM.
— Unified memory lets CPU and GPU share the same RAM pool, so a 128GB machine can fit larger models.
— Memory bandwidth caps token generation; a 40GB weight set at 256GB/s yields about 6 tokens/s, while an M3 Ultra at 819GB/s gives about 20 tokens/s.
— MoE models activate only a subset of parameters: Qwen3-30B-A3B activates ~3.3B of 30.5B, needing ~1.65GB per token, so AMD's 256GB/s can read it 150+ times/s.
— DeepSeek V4.1 Flash (v1017) has ~763B total params but activates ~16B per token, needing 8GB; AMD gives 32 reads/s, RTX 5090 would give 224 reads/s but can't fit the full model.
— Prompt processing on the mini PC is slow: about 95 input tokens/s for a 70B model, so a 4,000-token prompt takes 40+ seconds.
— Neither hardware is fully adequate; practical use is limited to medium-sized MoE models with short prompts.
Conclusions

The article's arithmetic shows that for LLM inference, raw FP32 compute is a distraction; memory capacity and bandwidth do the heavy lifting, which is why a 7x slower mini PC can be a better local AI buy.

MoE architectures flip the bottleneck: as long as the active parameters fit in memory, bandwidth becomes the speed limit, explaining why DeepSeek V4.1 Flash is popular among local-model enthusiasts despite its massive total parameter count.

The prompt-processing bottleneck is the often-overlooked cost of low compute; even when token generation is acceptable, a slow chip turns a long document into minutes of waiting, a practical constraint for real workloads.

Concepts & terms
Unified memory
A memory architecture where CPU and GPU share the same physical memory pool, allowing large allocations to a single processor and enabling models that wouldn't fit in dedicated VRAM.
Mixture of Experts (MoE)
A model architecture that activates only a subset of parameters per token, reducing compute and memory reads during inference, making large models feasible on modest hardware.
Memory bandwidth
The rate at which memory can deliver data to the processor; it determines how fast model weights can be read during token generation and is a key bottleneck for LLM inference.
HBM (High-Bandwidth Memory)
A type of memory with extremely high bandwidth, often used in AI GPUs; its cost has surged because it's a bottleneck for LLM inference.
Source: juejin.cn ↗ Google Translate ↗ Backup ↗