Can NVIDIA L40S run ERNIE-4.5-21B-A3B-Thinking?

Yes: runs on 1× L40S in FP8 & 4-bit

ERNIE-4.5-21B-A3B-Thinking (21.8B parameters) requires ~15 GB VRAM in 4-bit and ~26 GB in FP8. One NVIDIA L40S provides 48 GB GDDR6 (0.86 TB/s). Running it in 4-bit starts at $0.78/hr (1×) on TensorDock.

VRAM & cloud cost by quantization

Precision VRAM needed GPUs required Total VRAM Est. speed Lowest cloud price Monthly (730h)
4-bit (Q4 / AWQ) 15 GB 1× L40S 48 GB (+33 GB) ~43 tok/s $0.78/hr $569/mo
FP8 / INT8 26 GB 1× L40S 48 GB (+22 GB) ~24 tok/s $0.78/hr $569/mo
Full FP16 / BF16 49 GB 2× L40S 96 GB (+47 GB) ~24 tok/s $1.56/hr $1,139/mo

Where to rent NVIDIA L40S right now

Provider 1× / hr 1× (4-bit) / hr Spot (1×) Launch
TensorDock logo TensorDock Cheapest $0.78/hr $0.78/hr - Launch ↗
Vast.ai logo Vast.ai $0.80/hr $0.80/hr $0.47/hr Launch ↗
Hyperstack logo Hyperstack $0.99/hr $0.99/hr - Launch ↗
RunPod logo RunPod $1.09/hr $1.09/hr $0.55/hr Launch ↗
CoreWeave logo CoreWeave $1.25/hr $1.25/hr - Launch ↗
Vultr logo Vultr $1.35/hr $1.35/hr - Launch ↗
Nebius logo Nebius $1.55/hr $1.55/hr $0.65/hr Launch ↗
AWS logo AWS $1.86/hr $1.86/hr $0.46/hr Launch ↗

Memory, quantization & KV-cache analysis

VRAM fit & context headroom: ERNIE 4.5 21B A3B Thinking (21.8B parameters) needs roughly 15 GB in 4-bit (AWQ/GGUF), 26 GB in FP8, and 49 GB in full FP16/BF16. On 1× NVIDIA L40S (48 GB total GDDR6), 4-bit weights leave 33 GB of free VRAM for activations and KV cache, enough for roughly 128K+ tokens at low-to-moderate batch concurrency.

Hardware precision & compute: NVIDIA L40S (Ada Lovelace) includes native FP8 Tensor Cores rated at 733 TFLOPS, allowing FP8 weights and activations without software dequantization overhead.

Multi-GPU scaling & bandwidth: Running on a single L40S avoids inter-GPU all-reduce synchronization overhead entirely, maximizing decode efficiency per dollar. Because autoregressive token generation is memory-bandwidth bound, 1× L40S provides 0.86 TB/s of aggregate memory bandwidth, yielding ~43 tok/s single-stream in 4-bit.

Cheaper cloud alternative check

Save with 1× NVIDIA L4: While 1× L40S starts at $0.78/hr, you can run ERNIE-4.5-21B-A3B-Thinking (4-bit, 15 GB) for $0.32/hr ($234/mo) using 1× NVIDIA L4 on Vast.ai saving $0.46/hr.

Quick-start vLLM launch command (FP8 / INT8)

Deploy ERNIE-4.5-21B-A3B-Thinking on 1× L40S (48 GB total VRAM) using vLLM:

vllm serve baidu/ERNIE-4.5-21B-A3B-Thinking \
  --quantization fp8 \
  --max-model-len 16384 \
  --gpu-memory-utilization 0.92

Frequently asked questions

Can NVIDIA L40S run ERNIE-4.5-21B-A3B-Thinking?

Yes: runs on 1× L40S in FP8 & 4-bit. ERNIE-4.5-21B-A3B-Thinking (21.8B params) needs ~15 GB VRAM in 4-bit (1× L40S at $0.78/hr) and ~26 GB in FP8 (1× L40S).

How fast does ERNIE-4.5-21B-A3B-Thinking run on L40S?

In 4-bit on 1× L40S (0.86 TB/s aggregate memory bandwidth), estimated single-stream decode speed is ~43 tokens/sec (or ~24 tok/s in FP8 across 1× L40S).

How much does it cost to rent L40S for ERNIE-4.5-21B-A3B-Thinking?

Running ERNIE-4.5-21B-A3B-Thinking in 4-bit (1× L40S) starts at $0.78/hr ($569/month 24/7) on TensorDock.

Should I use 4-bit or FP8 for ERNIE-4.5-21B-A3B-Thinking on L40S?

NVIDIA L40S (Ada Lovelace) includes native FP8 Tensor Cores rated at 733 TFLOPS, allowing FP8 weights and activations without software dequantization overhead. With 22 GB of remaining VRAM in FP8 / INT8, you have room for roughly 64K tokens of KV-cache context.

Try ERNIE-4.5-21B-A3B-Thinking on other GPUs