Skip to content

text model · ERNIE · Windows

Can I run ERNIE 4.5 21B-A3B on Nvidia GeForce RTX 4090 (24GB)?

Compatibility verdict VRAM threshold engine
Yes, it runs GPU accelerated

Yes. ERNIE 4.5 21B-A3B runs on Nvidia GeForce RTX 4090 (24GB) at Q4_K_M (~14.3 GB of ~23 GB usable).

Needs ~14.3 GB Device usable ~23 GB

Runs at Q4_K_M using ~14.3 GB of ~23 GB usable.

That figure is at a 4k context and moves about ±15% as context length changes. Nvidia GeForce RTX 4090 (24GB) leaves ~8.7 GB of headroom.

Q4_K_M needed
~14.3 GB
Usable on device
~23 GB
Device memory
24 GB
Best quant
Q4_K_M
Share on X Share on Reddit

Which quant fits

Quant ladder vs ~23 GB usable
Q2_K
~10.7 GB
Q3_K_M
~12.2 GB
Q4_K_M
~14.3 GB
Q5_K_M
~16.9 GB
Q6_K
~19.1 GB
Q8_0
~23.5 GB
FP16
~45.6 GB
The line marks Nvidia GeForce RTX 4090 (24GB)'s ~23 GB budget; rungs past it are too large.

Run it

Install commands Windows

Pick your tool. All 2 load the same Q4_K_M weights.

llama.cpp
$ llama-cli -hf unsloth/ERNIE-4.5-21B-A3B-PT-GGUF:Q4_K_M
LM Studio
$ lms get unsloth/ERNIE-4.5-21B-A3B-PT-GGUF

How to run it

On Windows use LM Studio (Best GUI on Windows, auto-detects CUDA/Vulkan backends.).

Model ERNIE
Parameters
21B (MoE, 3B active)
Q4_K_M size
12.42 GB
Q8_0 size
21.61 GB
Context
131k
Full ERNIE 4.5 21B-A3B requirements →
Device Windows
Memory
24 GB vram
Usable for weights
~23 GB
Power draw
~450 W
Best runtime
vLLM (Linux) / Ollama (CUDA)
Best models for Nvidia GeForce RTX 4090 (24GB) →

You could also run

Run ERNIE 4.5 21B-A3B on other hardware

FAQ

Can Nvidia GeForce RTX 4090 (24GB) run ERNIE 4.5 21B-A3B?

Yes. ERNIE 4.5 21B-A3B runs on Nvidia GeForce RTX 4090 (24GB) at Q4_K_M (~14.3 GB of ~23 GB usable).

How much memory does ERNIE 4.5 21B-A3B need?

Nvidia GeForce RTX 4090 (24GB) has room to spare. At Q4_K_M the weights are ~12.42 GB; with KV cache and runtime overhead, budget ~14.3 GB at a 4k context. It is a Mixture-of-Experts model (21B total / 3B active), so all experts must stay in memory; memory tracks total params, not active params.

What is the best tool to run ERNIE 4.5 21B-A3B on Windows?

LM Studio for a simple setup; Ollama (CUDA) for the most speed. AMD GPUs run via Vulkan/ROCm at roughly half CUDA throughput. NVIDIA is the smooth path on Windows.

Embed this

ERNIE 4.5 21B-A3B on Nvidia GeForce RTX 4090 (24GB) compatibility badge A live badge for your model card or README, updated as the data is.
Markdown
$ [![ERNIE 4.5 21B-A3B on Nvidia GeForce RTX 4090 (24GB)](https://localmodel.run/badge/ernie-4.5-21b-a3b/nvidia-rtx-4090-24gb.svg)](https://localmodel.run/can-i-run/ernie-4.5-21b-a3b/nvidia-rtx-4090-24gb)

Sources

Weights are measured from GGUF files; KV cache and overhead are computed, so totals can vary ~15% with context and runtime. Any tok/s is a bandwidth estimate. See methodology.