ApX logoApX logo
CalculatorCoursesPricing

ERNIE-4.5-0.3B

Open Source
Open Weights

Parameters

300M

Context Length

131K

Modality

Text

Architecture

Dense

KV Cache Rate

18 KB/tok

License

Apache 2.0

Release Date

30 Jun 2025

Knowledge Cutoff

Dec 2024

API Pricing (per 1M)

Input: $0.05 · Output: $0.22

Hardware & System Requirements

Precision

Context

Workload Memory: 2.78 GB

vLLM

INT4 · 8K context · 1 user

Base Weights: 0.14 GB

KV Cache: 0.14 GB

Runtime & Graphs: 2.50 GB

Minimum Required Hardware

1x NVIDIA L4 24GB

vLLM

2.8 / 21.6 GB

1x RTX 3060 12GB

llama.cpp

2.8 / 11.2 GB

Apple M4 24GB

llama.cpp

2.8 / 18.0 GB

Determine requirements for concurrent users or multi-node clusters:

Runtime compatibility

Verified on hardware and checkpoint files.

Checkpoint format

BF16

CUDA

13.0

PyTorch

2.14.0

Transformers

≥ 4.40.1

ArchitecturePrecisionKernel

Hopper

Native BF16

FlashAttention-3

Architecture Diagram

Evaluation Benchmarks

No evaluation benchmarks for ERNIE-4.5-0.3B available.

Rankings

Overall Rank

-

Coding Rank

-

About ERNIE-4.5-0.3B

ERNIE-4.5-0.3B is an ultra-compact, low-latency dense language model developed by Baidu for edge computing, text completion, and on-device assistants. Released under Apache 2.0, it supports Grouped-Query Attention over a 131K context window.

Specifications

Attention

Attention Structure

Multi-Head Attention

Attention Heads

16

Key-Value Heads

2

Attention Head Dimension

128

Position Embedding

Absolute Position Embedding

RoPE Theta

500,000

Normalization

RMS Normalization

Activation Function

Swish

Dimensions

Base Precision

BF16

Hidden Dimension Size

1,024

Number of Layers

18

FFN Intermediate Size (Dense)

3,072

Tokenizer

Vocabulary Size

103,424

About ERNIE 4.5

The Baidu ERNIE 4.5 family consists of ten large-scale multimodal models. They utilize a heterogeneous Mixture-of-Experts (MoE) architecture, which enables parameter sharing across modalities while also employing dedicated parameters for specific modalities, supporting efficient language and multimodal processing.


Other ERNIE 4.5 Models
ERNIE-4.5-0.3B Size, VRAM & Hardware Requirements