LLMs · Baidu
ERNIE 4.5 21B-A3B Thinking
- Parameters
- 22B (3.0B active)
- Architecture
- Mixture of experts
- Max context
- 128K tokens
- License
- apache-2.0
- Released
- 2025-09
How to run it
- Install PocketPal AI (free) and open it.
- Tap the menu (☰), then Models, then + and Add from Hugging Face.
- Search for
unsloth/ERNIE-4.5-21B-A3B-Thinking-GGUF, open it and downloadERNIE-4.5-21B-A3B-Thinking-Q4_K_M.gguf. - Tap Load next to the model and start a chat. It runs on the device, with no connection needed from then on.
- Install PocketPal AI (free) and open it.
- Tap the menu (☰), then Models, then + and Add from Hugging Face.
- Search for
unsloth/ERNIE-4.5-21B-A3B-Thinking-GGUF, open it and downloadERNIE-4.5-21B-A3B-Thinking-Q4_K_M.gguf. - Tap Load next to the model and start a chat. It runs on the device, with no connection needed from then on.
On a mobile device
ERNIE 4.5 21B-A3B Thinking is too big for a device like yours: it needs more memory than the device has. Models that run on mobile devices.
Quantized files · GGUF
Works in LM Studio, llama.cpp, Jan and Ollama. No sign-in needed.
huggingface.co/unsloth/ERNIE-4.5-21B-A3B-Thinking-GGUF (opens in a new tab)
ollama run hf.co/unsloth/ERNIE-4.5-21B-A3B-Thinking-GGUFOriginal weights · Hugging Face
Full-precision files from Baidu, for fine-tuning, vLLM, Transformers.
huggingface.co/baidu/ERNIE-4.5-21B-A3B-Thinking (opens in a new tab)
Official repo · GitHub
Reference code, inference scripts and docs from Baidu. The weights themselves download from Hugging Face.
github.com/PaddlePaddle/ERNIE (opens in a new tab)
git clone https://github.com/PaddlePaddle/ERNIEApps that run ERNIE 4.5 21B-A3B Thinking
Our pick for each kind of computer, assuming the model fits in its memory. Pick your own GPU or device in the Model Finder for an exact answer.
| App | Type | Opens it as | Systems | Engine | Start |
|---|---|---|---|---|---|
| LM Studio | Desktop app | GGUF | macOSWindowsLinux | Open in LM Studio | |
| Ollama | CLI + API | GGUF from Hugging Face | macOSWindowsLinux |
|
|
| llama.cpp | CLI + API | GGUF | macOSWindowsLinux |
|
|
| Jan | Desktop app | GGUF | macOSWindowsLinux | Open in Jan | |
| vLLM | Server | Original weights | WSLWindowsLinux |
|
|
| SGLang | Server | Original weights | WSLWindowsLinux |
|
|
| Docker Model Runner | CLI + API | GGUF | macOSWindowsLinux |
|
|
| Lemonade | Desktop app | GGUF | macOSWindowsLinux |
|
|
| Unsloth Desktop | Desktop app | GGUF | macOSWindowsLinux | Open in Unsloth Desktop | |
| Atomic Chat | Desktop app | GGUF | macOSWindowsLinux | Open in Atomic Chat | |
| KoboldCpp | Desktop app | GGUF | macOSWindowsLinux | Get KoboldCpp | |
| Text Generation WebUI | Desktop app | GGUF | macOSWindowsLinux | Get Text Generation WebUI | |
| llamafile | CLI + API | GGUF | macOSWindowsLinux | Get llamafile | |
| Msty Studio | Desktop app | GGUF | macOSWindowsLinux | Open in Msty Studio | |
| Llama (macOS) | Desktop app | GGUF | macOS | Open in Llama (macOS) | |
| RecurseChat | Desktop app | GGUF | macOS | Open in RecurseChat | |
| node-llama-cpp | Library | GGUF | macOSWindowsLinux | Get node-llama-cpp | |
| PocketPal AI | Mobile app | GGUF | iOSAndroid | App Store Google Play | |
| ChatterUI | Mobile app | GGUF | Android | Download the APK | |
| LLM Farm | Mobile app | GGUF | iOS |
Memory needed
Weights plus KV cache and runtime overhead. Leave a little extra free for the operating system and other apps. Try another context length.
| Quantization | Quality | Weights | Total at 8K context | Total at 32K context | Download |
|---|---|---|---|---|---|
Q2_K |
Low | 8.7 GB | 9.8 GB | 11.2 GB | GGUF (opens in a new tab) |
Q3_K_M |
Low | 10.7 GB | 11.8 GB | 13.2 GB | GGUF (opens in a new tab) |
Q4_K_M |
Good | 13.3 GB | 14.4 GB | 15.8 GB | GGUF (opens in a new tab) |
Q5_K_M |
High | 15.5 GB | 16.6 GB | 18.0 GB | GGUF (opens in a new tab) |
Q6_K |
High | 17.9 GB | 19.0 GB | 20.4 GB | GGUF (opens in a new tab) |
Q8_0 |
Very high | 23.1 GB | 24.2 GB | 25.6 GB | GGUF (opens in a new tab) |
F16 |
Full | 43.7 GB | 44.7 GB | 46.1 GB | GGUF (opens in a new tab) Original weights (opens in a new tab) |
Best hardware for ERNIE 4.5 21B-A3B Thinking
The least expensive GPU in our catalog that runs it without offloading is the Intel Arc B580 (launch price $249) at Q2_K.
| Quality | Hardware | Quant | Memory | Speed | Runs |
|---|---|---|---|---|---|
| 70Great quality (A) · 70 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 86/100 (quality, fit, speed and memory use) sets the ranking. | Apple M4 Pro (48 GB) |
Q8_0 | 27.1 GB / 36.0 GB | 41.3 tok/s | Runs great |
| 70Great quality (A) · 70 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 86/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA GeForce RTX 5090 |
Q8_0 | 25.8 GB / 32.0 GB | 154 tok/s | Runs great |
| 69Good quality (B) · 69 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 86/100 (quality, fit, speed and memory use) sets the ranking. | AMD Radeon RX 7900 XTX |
Q6_K | 20.2 GB / 24.0 GB | 127 tok/s | Runs great |
| 69Good quality (B) · 69 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 86/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA GeForce RTX 3090 |
Q6_K | 20.2 GB / 24.0 GB | 136 tok/s | Runs great |
| 69Good quality (B) · 69 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 86/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA GeForce RTX 4090 |
Q6_K | 20.2 GB / 24.0 GB | 141 tok/s | Runs great |
| 70Great quality (A) · 70 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 84/100 (quality, fit, speed and memory use) sets the ranking. | Apple M1 Max (64 GB) |
Q8_0 | 28.0 GB / 48.0 GB | 56.4 tok/s | Runs great |
| 70Great quality (A) · 70 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 84/100 (quality, fit, speed and memory use) sets the ranking. | Apple M4 Max (64 GB) |
Q8_0 | 28.0 GB / 48.0 GB | 71.4 tok/s | Runs great |
| 66Good quality (B) · 66 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 83/100 (quality, fit, speed and memory use) sets the ranking. | AMD Radeon RX 9070 XT |
Q4_K_M | 15.2 GB / 16.0 GB | 128 tok/s | Runs welltight fit |
| 66Good quality (B) · 66 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 83/100 (quality, fit, speed and memory use) sets the ranking. | Apple M4 Pro (24 GB) |
Q4_K_M | 15.7 GB / 16.1 GB | 72.7 tok/s | Runs welltight fit |
| 66Good quality (B) · 66 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 83/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA GeForce RTX 4060 Ti 16GB |
Q4_K_M | 15.2 GB / 16.0 GB | 84.4 tok/s | Runs welltight fit |
Estimates come from published hardware specs and our open formulas, not from running the model on your machine. Real speed varies with runtime, drivers and settings. Numbers marked “Measured” come from a linked benchmark.







