baidu_ERNIE-4.5-21B-A3B-Thinking GGUF size and VRAM requirements

⬇ 15,584 ❤ 3
Parameters21.83B
Context131,072

bartowski/baidu_ERNIE-4.5-21B-A3B-Thinking-GGUF is a large reasoning-focused model with 21.83 billion parameters, built on the ernie4_5-moe architecture. It has been downloaded 15,584 times.

Under the hood it uses 28 transformer layers, a hidden size of 2,560, 20 attention heads. It uses grouped-query attention (20 query heads sharing 4 key/value heads), which already trims KV-cache memory compared with full multi-head attention.

To run bartowski/baidu_ERNIE-4.5-21B-A3B-Thinking-GGUF locally at a 4,096-token context, its quantized versions need between 6.21 GB (IQ2_XXS, lowest quality) and 41.68 GB (BF16, highest quality) of memory, weights plus KV cache and a system margin included. Context length drives that memory directly: at 4,096 tokens the KV cache for baidu_ERNIE-4.5-21B-A3B-Thinking-GGUF is about 0.22 GB, rising to roughly 7.0 GB at its full 131,072-token context. Shorter prompts free up memory for a higher-quality quantization.

For most users the best balance is IQ2_M, needing about 7.69 GB. That means bartowski/baidu_ERNIE-4.5-21B-A3B-Thinking-GGUF fits entirely in the VRAM of an 8 GB GPU or larger, running fully on the GPU.

Available GGUF quantizations for bartowski/baidu_ERNIE-4.5-21B-A3B-Thinking-GGUF include IQ2_XXS, IQ2_XS, IQ2_S, IQ2_M, Q2_K, Q2_K_L, IQ3_XXS, IQ3_XS, Q3_K_S, IQ3_M, Q3_K_M, Q3_K_L, Q3_K_XL, IQ4_XS, IQ4_NL, Q4_0, Q4_K_S, Q4_K_M, Q4_K_L, Q4_1, Q5_K_S, Q5_K_M, Q5_K_L, Q6_K, Q6_K_L, Q8_0, BF16. The model supports a native context length of up to 131,072 tokens; a longer context grows the KV cache and the memory needed.

→ Guide: How much VRAM do you need?

GGUF file size and memory by quantization

Compare real GGUF weight sizes, estimated KV cache and total memory for Q4, Q5, Q8 and every quantization published in this repository.

Quant.Bits QualityWeights KVTotal Speed~Verdict
IQ2_XXS 2.04 Very low 5.19 GB 0.22 GB 6.21 GB 77.1 t/s Fits in VRAM
IQ2_XS 2.33 Very low 5.91 GB 0.22 GB 6.93 GB 67.7 t/s Fits in VRAM
IQ2_S 2.33 Very low 5.93 GB 0.22 GB 6.95 GB 67.4 t/s Fits in VRAM
IQ2_M 2.63 Low 6.67 GB 0.22 GB 7.69 GB 59.9 t/s Fits in VRAM
Q2_K 2.97 Low 7.54 GB 0.22 GB 8.55 GB 6.6 t/s Offload
Q2_K_L 2.99 Low 7.6 GB 0.22 GB 8.61 GB 6.6 t/s Offload
IQ3_XXS 3.3 Low 8.38 GB 0.22 GB 9.39 GB 6.0 t/s Offload
IQ3_XS 3.43 Fair 8.71 GB 0.22 GB 9.73 GB 5.7 t/s Offload
Q3_K_S 3.61 Fair 9.17 GB 0.22 GB 10.19 GB 5.5 t/s Offload
IQ3_M 3.77 Fair 9.59 GB 0.22 GB 10.61 GB 5.2 t/s Offload
Q3_K_M 3.77 Fair 9.59 GB 0.22 GB 10.61 GB 5.2 t/s Offload
Q3_K_L 3.91 Fair 9.93 GB 0.22 GB 10.95 GB 5.0 t/s Offload
Q3_K_XL 3.93 Fair 9.99 GB 0.22 GB 11.01 GB 5.0 t/s Offload
IQ4_XS 4.38 Good 11.14 GB 0.22 GB 12.16 GB 4.5 t/s Offload
IQ4_NL 4.62 Good 11.74 GB 0.22 GB 12.76 GB 4.3 t/s Offload
Q4_0 4.69 Good 11.9 GB 0.22 GB 12.92 GB 4.2 t/s Offload
Q4_K_S 4.77 Good 12.12 GB 0.22 GB 13.14 GB 4.1 t/s Offload
Q4_K_M 4.95 Good 12.57 GB 0.22 GB 13.59 GB 4.0 t/s Offload
Q4_K_L 4.97 Good 12.63 GB 0.22 GB 13.65 GB 4.0 t/s Offload
Q4_1 5.09 Very good 12.93 GB 0.22 GB 13.95 GB 3.9 t/s Offload
Q5_K_S 5.58 Very good 14.18 GB 0.22 GB 15.2 GB 3.5 t/s Offload
Q5_K_M 5.77 Very good 14.67 GB 0.22 GB 15.69 GB 3.4 t/s Offload
Q5_K_L 5.8 Very good 14.73 GB 0.22 GB 15.75 GB 3.4 t/s Offload
Q6_K 6.63 Excellent 16.84 GB 0.22 GB 17.86 GB 3.0 t/s Offload
Q6_K_L 6.65 Excellent 16.9 GB 0.22 GB 17.92 GB 3.0 t/s Offload
Q8_0 8.51 Excellent 21.61 GB 0.22 GB 22.63 GB 2.3 t/s Offload
BF16 16.0 Excellent 40.66 GB 0.22 GB 41.68 GB Insufficient

KV cache computed from the model's exact architecture. Speed is a rough estimate bounded by memory bandwidth.

Frequently asked questions

What kind of model is bartowski/baidu_ERNIE-4.5-21B-A3B-Thinking-GGUF?

bartowski/baidu_ERNIE-4.5-21B-A3B-Thinking-GGUF is a reasoning-focused model with 21.83 billion parameters, based on the ernie4_5-moe architecture. It is distributed as GGUF files for local inference.

How much VRAM do you need to run bartowski/baidu_ERNIE-4.5-21B-A3B-Thinking-GGUF?

You need about 7.69 GB of VRAM to run bartowski/baidu_ERNIE-4.5-21B-A3B-Thinking-GGUF entirely on the GPU using the IQ2_M quantization (at a 4,096-token context). Smaller quantizations lower the requirement at the cost of quality.

Can I run bartowski/baidu_ERNIE-4.5-21B-A3B-Thinking-GGUF on an 8 GB GPU?

Yes. With 8 GB of VRAM you can run bartowski/baidu_ERNIE-4.5-21B-A3B-Thinking-GGUF fully on the GPU using IQ2_M (about 7.69 GB).

Can I run bartowski/baidu_ERNIE-4.5-21B-A3B-Thinking-GGUF on a 16 GB GPU?

Yes. With 16 GB of VRAM you can run bartowski/baidu_ERNIE-4.5-21B-A3B-Thinking-GGUF fully on the GPU using Q5_K_L (about 15.75 GB).

Can I run bartowski/baidu_ERNIE-4.5-21B-A3B-Thinking-GGUF on a 24 GB GPU?

Yes. With 24 GB of VRAM you can run bartowski/baidu_ERNIE-4.5-21B-A3B-Thinking-GGUF fully on the GPU using Q8_0 (about 22.63 GB).

What context length does bartowski/baidu_ERNIE-4.5-21B-A3B-Thinking-GGUF support?

bartowski/baidu_ERNIE-4.5-21B-A3B-Thinking-GGUF supports a native context length of up to 131,072 tokens. A longer context grows the KV cache, so it increases the memory needed to run the model.

What is the best quantization for bartowski/baidu_ERNIE-4.5-21B-A3B-Thinking-GGUF?

For bartowski/baidu_ERNIE-4.5-21B-A3B-Thinking-GGUF, a strong default is Q4_K_M, which needs about 13.59 GB and keeps most of the quality while roughly halving the memory versus 8-bit. With VRAM to spare, Q5_K_M or Q6_K add a little more quality; if you are tight on memory, a smaller quantization still runs. Pick the highest quantization that fits your VRAM.