ERNIE-4.5-21B-A3B-PT: hardware requirements
ERNIE-4.5-21B-A3B-PT needs about 15 GB of memory at Q4 quantization — a 13 GB download plus room for context and overhead. That fits a machine with 32GB RAM.
This is a mixture-of-experts model. Only a fraction of its 22B parameters are used for each token, so it runs faster than its size suggests — but all of it still has to fit in memory. The speed is that of a small model; the memory requirement is that of a large one. More on this →
Will it run on your machine?
Download sizes by quantization
Lower quantization means a smaller file and less memory, at some cost to quality. Q4_K_M is the usual starting point. What is this?
| Quant | Download | RAM @ 4K | RAM @ 32K | Source |
|---|---|---|---|---|
| Q4_K_Mrecommended | 13 GB | 15 GB | 17 GB | measured |
| Q5_K_M | 16 GB | 17 GB | 19 GB | estimated |
| Q6_K | 18 GB | 20 GB | 22 GB | measured |
| Q8_0 | 23 GB | 26 GB | 27 GB | measured |
| BF16 | 44 GB | 47 GB | 49 GB | estimated |
“Measured” sizes are read from published GGUF files (lmstudio-community/ERNIE-4.5-21B-A3B-PT-GGUF). “Estimated” sizes are derived from the parameter count and are typically within a few percent. The RAM columns add the context cache and runtime overhead to the download size.