baidu · text
ERNIE-4.5-300B-A47B-PT
baidu/ERNIE-4.5-300B-A47B-PTERNIE-4.5-300B-A47B-PT at Q4_K_M is exactly 180,155,744,256 bytes (167.78 GiB / 180.16 GB) — an effective 4.797 bits per weight, not the nominal 4. Its KV cache at 32K is 6.75 GiB.
From the file· summed from 4 file(s)From the file· KV per layer
Parameters
300B
Architecture
ernie4_5-moe
54 layers
Context
131,072
native (config.json)
License
apache-2.0
Shipped quantizations
● exact bytes, summed from published files
| Quant | Size● | Exact bytes● | Effective bpw● | Tensors● | Publisher |
|---|---|---|---|---|---|
| UD-TQ1_0 | 71.48 GiB | 76,750,552,640 | 2.043 | — | unsloth |
| UD-IQ1_S2 shards | 80.54 GiB | 86,483,435,296 | 2.303 | — | unsloth |
| UD-IQ1_M2 shards | 86.78 GiB | 93,179,117,312 | 2.481 | — | unsloth |
| UD-IQ2_XXS3 shards | 94.32 GiB | 101,273,599,904 | 2.696 | — | unsloth |
| UD-IQ2_M3 shards | 98.47 GiB | 105,736,339,360 | 2.815 | — | unsloth |
| Q2_K3 shards | 101.58 GiB | 109,067,796,352 | 2.904 | — | unsloth |
| Q2_K_L3 shards | 101.76 GiB | 109,266,370,432 | 2.909 | — | unsloth |
| UD-IQ3_XXS3 shards | 116.56 GiB | 125,152,296,832 | 3.332 | — | unsloth |
| Q3_K_S3 shards | 120.25 GiB | 129,116,635,008 | 3.438 | — | unsloth |
| Q3_K_M3 shards | 132.78 GiB | 142,569,471,872 | 3.796 | — | unsloth |
| IQ4_XS4 shards | 148.58 GiB | 159,541,395,488 | 4.248 | — | unsloth |
| IQ4_NL4 shards | 157.24 GiB | 168,832,303,104 | 4.495 | — | unsloth |
| Q4_04 shards | 157.55 GiB | 169,172,041,728 | 4.504 | — | unsloth |
| Q4_K_S4 shards | 157.93 GiB | 169,572,597,760 | 4.515 | — | unsloth |
| Q4_K_M4 shards | 167.78 GiB | 180,155,744,256 | 4.797 | — | unsloth |
| Q4_14 shards | 174.57 GiB | 187,438,759,936 | 4.990 | — | unsloth |
| Q5_K_S5 shards | 191.95 GiB | 206,101,840,032 | 5.487 | — | unsloth |
| Q5_K_M5 shards | 197.41 GiB | 211,964,297,408 | 5.644 | — | unsloth |
| Q6_K5 shards | 228.88 GiB | 245,760,884,832 | 6.543 | — | unsloth |
| Q8_07 shards | 296.43 GiB | 318,285,513,152 | 8.474 | — | unsloth |
| BF1613 shards | 557.89 GiB | 599,026,009,312 | 15.949 | — | unsloth |
KV cache by context
computed per layer
| Context | KV cache (f16)● | Flat formula | Overstated by | Full / windowed / recurrent |
|---|---|---|---|---|
| 4,096 | 0.84 GiB | 0.84 GiB | — | 54 / 0 / 0 |
| 8,192 | 1.69 GiB | 1.69 GiB | — | 54 / 0 / 0 |
| 16,384 | 3.38 GiB | 3.38 GiB | — | 54 / 0 / 0 |
| 32,768 | 6.75 GiB | 6.75 GiB | — | 54 / 0 / 0 |
| 65,536 | 13.50 GiB | 13.50 GiB | — | 54 / 0 / 0 |
| 131,072 | 27.00 GiB | 27.00 GiB | — | 54 / 0 / 0 |
Compare with
same modality, comparable size
Will it run on your card?
full quant x context sweep
Radeon RX 6500 XT 4GBGeForce RTX 3050 6GBGeForce RTX 5050 8GBGeForce RTX 3080 10GBGeForce RTX 2080 Ti 11GBGeForce RTX 5070 12GBGeForce RTX 5060 Ti 16GBApple M3 Pro 18GBGeForce RTX 3080 Ti 20GBGeForce RTX 5090 D V2 24GBGeForce RTX 5090 D 32GBApple M5 Max 36GBApple M5 Pro 48GBApple M5 Max 64GBApple M3 Ultra 96GBApple M5 Max 128GBApple M2 Ultra 192GBApple M3 Ultra 256GBApple M3 Ultra 512GB
Why other calculators give a different number
A parameters × bits ÷ 8 estimate puts Q4_K_M at roughly 157.41 GiB. The real file is 167.78 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.
Architecture
from config.json
Layers
54
Attention heads
64
KV heads
8
Head dim
128
Hidden size
8192
Vocab
103,424
Sliding window
none
SWA period
—
MLA
no
Experts
—
Experts per token
—
use_sliding_window
—
Questions people ask
- How much VRAM does ERNIE-4.5-300B-A47B-PT need?
- Q4_K_M is exactly 180,155,744,256 bytes (167.78 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
- How large is ERNIE-4.5-300B-A47B-PT's KV cache?
- 6.75 GiB at 32K context with an f16 cache, computed per layer. Quantizing the cache to q8_0 roughly halves it, which is often the difference between a context length fitting and not.
- Which quantization of ERNIE-4.5-300B-A47B-PT should I use?
- Q4_K_M is the usual default. Pick the largest quantization that fits your card at the context you actually need — the table above gives exact sizes for every one published.