FitMyLLM
Baidu/Mixture of Experts

BERNIE 4.5 21B A3B

Baidu ERNIE 4.5 — MoE model with 3B active. Fast Chinese-English generation.

chatmultilingualThinking
21.95B
Parameters (3B active)
128K
Context length
0
Benchmarks
10
Quantizations
20K
HF downloads
Architecture
MoE
Released
2025-06-30
Layers
28
KV Heads
4
Head Dim
128
Family
ernie

Quantization Options

Context length:
QuantBitsVRAM @ 16KQuality
Q3_K_M4
12.1 GB
11.5 + 0.7 KV
low
Q3_K_L4.3
12.9 GB
12.3 + 0.7 KV
moderate
IQ4_XS4.46
13.4 GB
12.7 + 0.7 KV
moderate
Q4_K_S4.67
14.0 GB
13.3 + 0.7 KV
moderate
Q4_K_M4.89
14.6 GB
13.9 + 0.7 KV
good
Q5_K_S5.57
16.4 GB
15.8 + 0.7 KV
good
Q5_K_M5.7
16.8 GB
16.1 + 0.7 KV
good
Q6_K6.56
19.1 GB
18.5 + 0.7 KV
excellent
Q8_08.5
24.5 GB
23.8 + 0.7 KV
lossless
FP1616
45.0 GB
44.4 + 0.7 KV
lossless

Select your GPU above to see speed estimates and compatibility for each quantization.

Deploying for a team or in production? Size GPUs, cost & scaling in Enterprise →
READY TO RUN THIS?RENT BY THE HOUR

RENT A GPU AND RUN ERNIE 4.5 21B A3B NOW

Spin up an A100 / H100 / 4090 in ~60s. Pay by the second. Cancel anytime.

Community Ratings

Loading ratings...

Run this model

Easiest way to get started·Beginners
DOCS ↗
curl -fsSL https://ollama.com/install.sh | sh
$ollama run ernie:22b-q4_K_M

Tag may need adjustment — check ollama.com/library/ernie for available tags.

▸ SETUP GUIDE
>_

Auto-setup with fitmyllm CLI

Detects your GPU, recommends the best model, downloads it, and starts chatting — zero config. Benchmarks your speed and contributes anonymous data to improve predictions.

pip install fitmyllmthen run fitmyllmLearn more
Auto-detect GPULive tok/s in chatSpeed benchmarks9 inference engines

GPUs that can run this model

At Q4_K_M quantization. Sorted by minimum VRAM.

Apple M1 Pro (16GB)
16 GB VRAM • 200 GB/s
APPLE
$999
Apple M2 Pro (16GB)
16 GB VRAM • 200 GB/s
APPLE
$1299
Apple M4 (16GB)
16 GB VRAM • 120 GB/s
APPLE
$499
NVIDIA Tesla T4 16GB
16 GB VRAM • 320 GB/s
NVIDIA
$800
NVIDIA V100 PCIe 16GB
16 GB VRAM • 900 GB/s
NVIDIA
$2000
Apple M1 (16GB)
16 GB VRAM • 68.25 GB/s
APPLE
$699
Apple M2 (16GB)
16 GB VRAM • 100 GB/s
APPLE
$799
Apple M3 (16GB)
16 GB VRAM • 100 GB/s
APPLE
$799
NVIDIA Tesla P100 DGXS
16 GB VRAM • 732 GB/s
NVIDIA
NVIDIA Tesla P100 PCIe 16 GB
16 GB VRAM • 732 GB/s
NVIDIA
NVIDIA Tesla P100 SXM2
16 GB VRAM • 732 GB/s
NVIDIA
NVIDIA Tesla V100 PCIe 16 GB
16 GB VRAM • 897 GB/s
NVIDIA
NVIDIA Tesla V100 SXM2 16 GB
16 GB VRAM • 1130 GB/s
NVIDIA

Find the best GPU for ERNIE 4.5 21B A3B

Build Hardware for ERNIE 4.5 21B A3B

Baidu ERNIE 4.5 — MoE model with 3B active. Fast Chinese-English generation.

▸ SPEC SHEET

ERNIE 4.5 21B A3B21.95B MoE.

▸ SPECIFICATIONS
PARAMETERS
21.95B (3B active)
ARCHITECTURE
Mixture of Experts
CONTEXT LENGTH
128K tokens
CAPABILITIES
chat, multilingual
RELEASE DATE
2025-06-30
PROVIDER
Baidu
FAMILY
ernie
▸ VRAM REQUIREMENTS
QUANTBPWVRAMQUALITY
Q3_K_M411.5 GB88%
Q3_K_L4.312.3 GB90%
IQ4_XS4.4612.7 GB92%
Q4_K_S4.6713.3 GB93%
Q4_K_M4.8913.9 GB94%
Q5_K_S5.5715.8 GB96%
Q5_K_M5.716.1 GB96%
Q6_K6.5618.5 GB97%
Q8_08.523.8 GB100%
FP161644.4 GB100%
§ 03COMPATIBLE GPUs
30 @ Q4_K_M