ApX logoApX logo

ERNIE-4.5-0.3B

Parameters

300M

Context Length

131K

Modality

Text

Architecture

Dense

License

Apache 2.0

Release Date

30 Jun 2025

Knowledge Cutoff

Dec 2024

System Requirements

VRAM requirements for different quantization methods and context sizes

1,024 tokens

2.15 GB VRAM

Consumer

1x RTX 4090

24GB VRAM

Datacenter

1x NVIDIA A100

80GB VRAM

Apple Silicon

1x Apple M3 Max

128GB VRAM

131,072 tokens

4.67 GB VRAM

Consumer

1x RTX 4090

24GB VRAM

Datacenter

1x NVIDIA A100

80GB VRAM

Apple Silicon

1x Apple M3 Max

128GB VRAM

Architecture Diagram

Input TokensToken EmbeddingPosition: AbsoluteHidden: 1k · Context: 131K · Vocab: 103.4kx 18 layersRMSNormPre-AttentionMulti-Head Attention16Q / 2KV headsHead dim: 128+RMSNormPre-FFNFeed-Forward NetworkSwishIntermediate: 3.1k+Final RMSNormOutput Logits

Evaluation Benchmarks

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

Rankings

Overall Rank

-

Coding Rank

-

About ERNIE-4.5-0.3B

The ERNIE-4.5-0.3B model is a high-efficiency transformer designed to serve as the compact entry point of Baidu's ERNIE 4.5 model family. Engineered for low-latency inference and high-throughput environments, this model prioritizes linguistic proficiency in both Chinese and English while minimizing the computational overhead typical of large-scale foundation models. Its design philosophy balances the need for deep language understanding with the operational realities of edge computing and mobile deployment, providing a versatile solution for real-time text processing.

Technically, ERNIE-4.5-0.3B utilizes a dense transformer architecture featuring 18 layers and a hidden dimension size of 1024. Unlike its larger Mixture-of-Experts counterparts in the same family, this variant activates all its parameters for every token, ensuring consistent performance characteristics and simplified deployment workflows. The model incorporates Grouped-Query Attention (GQA) with 16 query heads and 2 key-value heads to optimize memory usage and speed during long-context generation. It supports an expansive context window of 131,072 tokens, allowing it to process substantial documents and maintain coherence over long-range sequences.

From a performance perspective, ERNIE-4.5-0.3B is optimized for high-speed text completion, sentiment analysis, and on-device conversational agents. It integrates advanced training methodologies from the broader ERNIE 4.5 project, including RMS Normalization and the Swish (SiLU) activation function, which contribute to its training stability and representational power. The model is fully compatible with modern inference engines like vLLM and FastDeploy, and it is released under the Apache 2.0 license to facilitate both academic research and commercial application development within the open-source ecosystem.

Technical 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

Sliding Window Attention

No

Sliding Window Size

-

Sliding Window Ratio

-

Linear Attention

-

Linear Attention Ratio

-

Normalization

RMS Normalization

Activation Function

Swish

Dimensions

Hidden Dimension Size

1,024

Number of Layers

18

FFN Intermediate Size (Dense)

3,072

Multi-Token Prediction Heads

-

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