LLMBOTTLENECK.COM
Baidu / ernie4_5_moe

ERNIE-4.5-300B-A47B-PT

300.5 billion parameters.

Open in the calculator →

Architecturepublished data
Quick answer
ERNIE-4.5-300B-A47B-PT needs about 187.1 GB at Q4_K_M — the format most people download — with 8,192 tokens of context. It fits entirely on 1 of 18 common devices, starting with the Apple M2 Ultra (192 GB). What else fits in 192 GB. No hardware for it? Rent a GPU that runs it, priced live.

Sized at 8,192 tokens of context with the whole model in device memory, across 18 common devices. Speeds are estimates, not benchmarks.

Weight-file size by format

FormatSizeRangeBasis
FP16601.2 GB420.7 GB – 607.0 GBsize range
Q8_0319.5 GB223.5 GB – 324.0 GBsize range
Q6_K246.8 GB172.5 GB – 251.0 GBsize range
Q5_K_M214.7 GB144.6 GB – 251.0 GBsize range
Q5_0209.7 GB144.6 GB – 251.0 GBsize range
Q4_K_M184.5 GB118.3 GB – 251.0 GBsize range
Q4_0174.8 GB118.3 GB – 251.0 GBsize range
Q3_K_M150.3 GB90.4 GB – 251.0 GBsize range
Q2_K119.0 GB69.0 GB – 251.0 GBsize range

A file size is not the memory a run needs: the KV cache and the runtime reserve come on top, and the calculator adds both.

What the labels mean
published data
Read from a published source — a file's byte count, a model's configuration or a manufacturer's specification — or exact arithmetic on such values. Not a measurement on a machine.
reconstructed size
Weight size reconstructed from the pinned architecture, because no published file exists.
size range
Only a lower and an upper bound are claimed for this weight size.

Hardware ladder

Q4_K_M at 8,192 tokens · 1 of 18 devices hold it entirely
DeviceMemoryVerdictDecodeCalculator
NVIDIA GeForce RTX 5070187.1 GB of 12 GB52 layers on system RAM~2.2 tok/s with offloadOpen →
AMD Radeon™ RX 9070 XT187.1 GB of 16 GB51 layers on system RAM~2.2 tok/s with offloadOpen →
NVIDIA GeForce RTX 4080187.1 GB of 16 GB51 layers on system RAM~2.2 tok/s with offloadOpen →
NVIDIA GeForce RTX 5080187.1 GB of 16 GB51 layers on system RAM~2.2 tok/s with offloadOpen →
NVIDIA GeForce RTX 5070 Ti187.1 GB of 16 GB51 layers on system RAM~2.2 tok/s with offloadOpen →
NVIDIA GeForce RTX 5060 Ti 16GB187.1 GB of 16 GB51 layers on system RAM~2.2 tok/s with offloadOpen →
NVIDIA GeForce RTX 4090187.1 GB of 24 GB48 layers on system RAM~2.3 tok/s with offloadOpen →
AMD Radeon™ RX 7900 XTX187.1 GB of 24 GB48 layers on system RAM~2.3 tok/s with offloadOpen →
NVIDIA GeForce RTX 3090187.1 GB of 24 GB48 layers on system RAM~2.3 tok/s with offloadOpen →
NVIDIA GeForce RTX 5090187.1 GB of 32 GB46 layers on system RAM~2.5 tok/s with offloadOpen →
NVIDIA RTX 6000 Ada Generation187.1 GB of 48 GB41 layers on system RAM~2.7 tok/s with offloadOpen →
Apple M4 Pro187.1 GB of 64 GBdoes not fitnot calibratedOpen →
Apple M5 Pro187.1 GB of 64 GBdoes not fitnot calibratedOpen →
AMD Ryzen AI Max+ 395 with Radeon 8060S187.1 GB of 128 GBdoes not fitnot calibratedOpen →
Apple M3 Max187.1 GB of 128 GBdoes not fitnot calibratedOpen →
Apple M4 Max187.1 GB of 128 GBdoes not fitnot calibratedOpen →
NVIDIA DGX Spark187.1 GB of 128 GBdoes not fitnot calibratedOpen →
Apple M2 Ultra187.1 GB of 192 GBfits~22 tok/sAbout reading paceOpen →

Decode is a calibrated estimate from the published calibration; capacity is the manufacturer's published ceiling, not guaranteed free memory. Fitting in memory is not the same as loading: whether the runtime and version you have supports this architecture and format on that machine has not been tested here. Offloaded rows assume there is enough system RAM for the overflow — the calculator checks that against the RAM you declare. Each “Open” link keeps this model, format and context.

Run it in the cloud

Rent a GPU that runs ERNIE-4.5-300B-A47B-PT

Every rentable machine that holds the whole model, from Vast.ai and RunPod, with this site's speed estimate for each and the provider's own price, read live. Cheapest first; sort by cost per token or speed instead, or switch the format.

Prices · 18:30 UTC, 22 Sept
9 configurations in stock · 7 out of stock
MachineSpeedPer hourPer M tokensWhereRent
4× L40S192 GBrecommendedcheapestbest value~77 tok/sFaster than you read$1.87$6.66Vast.aiMarketplace · 99.2% reliableRent on Vast.ai
2× RTX PRO 6000192 GB~80 tok/sFaster than you read$2.27$7.80Vast.aiMarketplace · 98.8% reliableRent on Vast.ai
4× RTX 6000 Ada192 GB~86 tok/sFaster than you read$3.00$9.62Vast.aiMarketplace · 98.5% reliableRent on Vast.ai
4× RTX PRO 5000192 GB~121 tok/sFaster than you read$3.28$7.52RunPodCommunity CloudRent on RunPod
2× H200 NVL282 GB~216 tok/sFaster than you read$7.20$9.24Vast.aiMarketplace · 98.7% reliableRent on Vast.ai
1× B300270 GB~173 tok/sFaster than you read$7.89$12.62RunPodSecure CloudRent on RunPod
4× H100 SXM320 GBfastest~302 tok/sFaster than you read$9.07$8.34Vast.aiMarketplace · 99.9% reliableRunPod $13.96/h Rent on Vast.ai
2× H200282 GB~216 tok/sFaster than you read$9.18$11.78RunPodSecure CloudVast.ai $10.00/h Rent on RunPod

First time renting a GPU? How it works, in four steps
  1. Create an account and add credit. Both providers are prepaid: $10 is enough to try any card on this page for hours. A new RunPod account that arrives through a referral link gets a one-time $5 credit when it first adds $10.
  2. Pick the card and the count shown here, and a template: llama.cpp or vLLM for an OpenAI-compatible API, or one with a web chat if you only want to talk to the model. “How to launch it” below gives the exact image and command.
  3. Wait for the download. The weights are fetched on the machine; tens of gigabytes take a few minutes on a data-centre connection. You pay by the second from the moment it starts.
  4. Stop it when you are done. A running machine bills even when idle. A stopped one costs nothing per hour, though its disk is usually still billed until you delete it.
How to launch it

No Q4_K_M file of ERNIE-4.5-300B-A47B-PT is catalogued here, so there is no exact command to vouch for. Start the machine from the llama.cpp server image ghcr.io/ggml-org/llama.cpp:server-cuda and point -hf at a Q4_K_M build from the publisher or a quantizer you trust — search Hugging Face for one. Check its file size against the memory figure on this page before you rent.

Every machine holds the whole model at Q4_K_M and 8,192 tokens of context, no offload. Speeds are this site’s single-stream decode estimates; prices are what each provider’s own API quoted, on-demand, for the whole machine. Vast hosts below 98% measured reliability are left out.

Referral links Vast.ai, RunPod and Novita pay us a share of what you spend if you sign up through these buttons. It costs you nothing, and it never decides an order or a recommendation: both are computed from the live price and the speed, and options that pay us nothing are listed and recommended on the same terms. How we rank

Buying a card instead, or paying by the token? Compare a year of ERNIE-4.5-300B-A47B-PT three ways →

Under the hood

Architecture, read from the publisher’s file

The numbers every figure above is computed from, with the file they came from.

Architecture

✓ Architecture read from the published config.json

Retrieved 2026-09-01 at pinned commit 47bbaf1c9e35; parameter count from the safetensors index at the same revision.

Architecture
ernie4_5_moe
Layers
54
Hidden size
8,192
Attention heads
64
KV heads
8
Feed-forward width
28,672
Vocabulary
103,424
Context ceiling
131,072
RoPE theta
500,000
Expert width
3,584

Where the memory goes

tokenembedding× 54 decoder blocksGrouped-query attention64 query · 8 KV headsfull contextFeed-forwardone networkall activeoutputprojectiongrows with contextfixed per token

Grouped-query attention shares each key/value head across 8 query heads, so the KV cache is 13% of what multi-head attention would need at the same context.

More from Baidu

Use this answer in your own product

As JSON, from the API
curl -s https://llmbottleneck.com/v1/analyze \
  -H "Authorization: Bearer $LLMB_KEY" -H "content-type: application/json" \
  -d '{"model":"baidu-ernie-4-5-300b-a47b-pt","quantization":"Q4_K_M","context":8192,"hardware":"nvidia-geforce-rtx-4090"}'

Same engine, same evidence, every field sourced. Free key in one step →

On your page, as a widget
<script src="https://llmbottleneck.com/widget.js"
  data-model="baidu-ernie-4-5-300b-a47b-pt" data-quantization="Q4_K_M"
  data-hardware="nvidia-geforce-rtx-4090" data-context="8192"></script>

No key needed. Unbranded, with your own buy button, on Pro and Business →

Citing this page

LLM Bottleneck. “ERNIE-4.5-300B-A47B-PT VRAM and hardware requirements.” Architecture from baidu/ERNIE-4.5-300B-A47B-PT at revision 47bbaf1c9e35, retrieved 2026-09-01. https://llmbottleneck.com/models/baidu-ernie-4-5-300b-a47b-pt

Every figure above is either the published value or a reconstruction whose measured error is on the accuracy page.

llmbottleneck
catalogue 2026-10-03models 327devices 135