ERNIE 4.5

ERNIE-4.5-21B-A3B-Thinking

by Baidu · Current open-weight model

Baidu’s ERNIE-4.5-21B-A3B-Thinking is an Apache 2.0 open-weight text reasoning model with 21B total parameters, approximately 3B active per token, a 131K context window, function-calling support, and deployment options including Transformers, vLLM, and FastDeploy. It is designed for self-hosted mathematics, science, coding, long-document analysis, and agent workflows, but has no verified hosted token pricing or native multimodal output.

Text Reasoning Coding
ERNIE-4.5-21B-A3B-Thinking is a compact, open-weight reasoning model from Baidu. Its mixture-of-experts design combines 21 billion total parameters with approximately 3 billion active parameters per token, which can reduce inference work compared with a dense model of similar total size. It supports a 131,072-token context window, text input and output, and local deployment under the Apache 2.0 license.
Outputs

What ERNIE-4.5-21B-A3B-Thinking can produce

Text
Inputs

What it can understand

Text
Capabilities

Support features

Tool use Streaming Fine-tuning
Model profile

Performance characteristics

8/10 Reasoning
7/10 Coding
8/10 Speed
9/10 Cost efficiency
Specifications

Technical details

Family ERNIE 4.5
Type Reasoning
Context window 131K tokens
Max output tokens tokens
Release date 2025-09-09
Status Current open-weight model
Knowledge cutoff notes

No direct authoritative knowledge-cutoff date was found for the exact checkpoint.

Model notes

Canonical open-weight checkpoint: baidu/ERNIE-4.5-21B-A3B-Thinking. The model has 21B total parameters and approximately 3B activated parameters per token. The model card describes it as a text MoE post-trained model with a 131,072-token context length and function-calling support. Baidu provides the weights under Apache License 2.0. No official Baidu-hosted token pricing, formal knowledge cutoff, exact maximum output-token limit, distinct legacy JSON-mode guarantee, prompt-caching specification, or batch API was verified for the exact checkpoint. Documented FastDeploy deployment uses an 80 GB GPU configuration. Reasoning, coding, speed, and cost scores are editorial estimates based on the model's reasoning positioning, sparse activation, open-weight availability, and deployment characteristics rather than official vendor ratings.

Model guide

ERNIE-4.5-21B-A3B-Thinking: Baidu’s Efficient Open-Weight Reasoning Model

ERNIE-4.5-21B-A3B-Thinking is Baidu’s open-weight text reasoning model. It uses a 21-billion-parameter mixture-of-experts architecture with approximately 3 billion parameters activated for each token, supporting complex reasoning, mathematics, science, coding, long-context analysis, and function-calling workflows without requiring a hosted Baidu API.

What is ERNIE-4.5-21B-A3B-Thinking?

ERNIE-4.5-21B-A3B-Thinking is an open-weight reasoning language model developed by Baidu. It is intended for tasks that benefit from deliberate, multi-step text reasoning rather than only short-form generation. Typical workloads include mathematical and scientific problem solving, logical analysis, programming, technical writing, long-document processing, and tool-oriented assistants.

The canonical checkpoint is baidu/ERNIE-4.5-21B-A3B-Thinking. The model is part of Baidu’s ERNIE 4.5 generation and is distinct from the non-thinking ERNIE-4.5-21B-A3B model and from larger ERNIE 4.5 variants. Its open-weight distribution is an important part of its positioning: users can run and adapt the checkpoint themselves instead of relying on a documented Baidu-hosted, token-priced API for this exact model.

The model’s listed release date is September 9, 2025, and its status is recorded as a current open-weight model. The supplied documentation describes the checkpoint as a text mixture-of-experts model that has been post-trained for reasoning-oriented use.

Architecture and 131K-token context window

ERNIE-4.5-21B-A3B-Thinking has 21 billion total parameters, but approximately 3 billion are activated for each token. This is a mixture-of-experts, or MoE, design: different portions of the network can specialize in different inputs, while only selected experts process an individual token. In practical terms, the total model still affects storage and deployment requirements, but the active-parameter count helps explain why its per-token computation can be more manageable than that of a dense 21B model.

Published configuration details include 28 layers, 20 query heads, four key/value heads, 64 text experts, six activated text experts, and two shared experts. These are implementation specifications rather than user-facing features, but they are relevant when selecting hardware and an inference engine.

The context window is 131,072 tokens. A context window is the amount of input and generated conversation history that the model can process in one request, subject to the limits of the selected serving stack. The long window is useful for large documents, extended conversations, multi-step reasoning traces, code repositories, and workflows that pass substantial tool results back to the model. It does not guarantee that every long prompt will receive equally accurate attention, so users should still structure large inputs carefully.

Reasoning and task capabilities

The model is specifically positioned for explicit reasoning-oriented generation. Supported task areas documented for the checkpoint include logical puzzles, mathematics, science, academic evaluation, coding, text generation, and function calling. It can therefore be considered when a workflow needs more than simple retrieval or short conversational replies—for example, comparing competing technical explanations, working through a multi-step calculation, or producing and revising code against a stated specification.

  • Reasoning: Suitable for multi-step logical, mathematical, scientific, and academic tasks.
  • Coding: Intended for code generation and technical problem solving, including coding assistance in self-hosted applications.
  • Long-context analysis: The 131,072-token window supports large documents and extended text interactions.
  • Text generation: It can produce explanations, analyses, structured prompts, and other text-based outputs.
  • Function calling: The documented deployment tooling supports function-call and tool-use workflows.

Function calling should be understood as a mechanism for producing tool-call requests that an application can execute. It does not mean that the model independently controls a computer, browses the web, or performs external actions without an integrating application. The supplied research does not verify native web search or autonomous computer-control output for this exact checkpoint.

Input and output modalities

ERNIE-4.5-21B-A3B-Thinking is text-only. It accepts text input and generates text output. The documented checkpoint does not natively accept images, audio, or video, and it does not generate images, audio, music, or video.

This makes the model a better fit for text-centered reasoning systems than for multimodal assistants. An application could place an external image or speech recognition system in front of it, but that would be a separate pipeline rather than a native capability of ERNIE-4.5-21B-A3B-Thinking.

Deployment, serving, and license

Baidu distributes the weights under the Apache License 2.0. The model card documents use with Transformers, vLLM, and FastDeploy, while related Baidu ERNIE tooling and other serving frameworks provide additional deployment options. FastDeploy examples use an OpenAI-compatible serving interface and include reasoning and tool-call parser options.

The model is suitable for organizations that need control over data handling, model placement, customization, or inference scheduling. It can be deployed locally or on privately managed infrastructure, but open weights do not make deployment cost-free. Operators remain responsible for GPU capacity, storage, networking, serving software, monitoring, scaling, and maintenance.

The documented FastDeploy configuration notes an 80 GB GPU requirement. This should be treated as a reference for that configuration rather than a universal hardware requirement for every quantization, precision, framework, or workload. The 21B total parameter count is still important when planning memory, even though only about 3B parameters are active for an individual token.

Baidu’s ERNIE tooling identifies this model as supported for supervised fine-tuning and function-call training. That support makes it relevant to teams that want to adapt the model to a domain or tool schema, although fine-tuning introduces additional storage, hardware, data-preparation, and evaluation requirements.

Speed and cost trade-offs

The sparse MoE structure is the model’s main efficiency argument. Activating approximately 3B parameters per token can reduce compute relative to running all 21B parameters on every token. This may improve throughput or operating cost compared with a dense model with the same nominal parameter count, although actual performance depends on precision, batching, GPU memory, context length, parallelism, and the serving framework.

The model should not be described as inexpensive in an absolute sense. The full checkpoint still has to be stored and loaded, and the supplied research identifies an 80 GB GPU configuration for documented FastDeploy use. Long contexts also increase memory and processing demands. The editorial cost score of 9 reflects the open-weight license, sparse activation, and the absence of hosted token charges for the checkpoint; it is not a Baidu-published price or benchmark.

No official Baidu-hosted input or output token price was verified for this exact model. Therefore, there is no reliable recurring API price to compare with hosted language models. Any cost estimate must be based on the selected cloud GPU, local hardware, utilization, and operational overhead.

When to choose ERNIE-4.5-21B-A3B-Thinking

Choose this model when self-hosting and text reasoning are more important than turnkey API convenience. It is especially appropriate for:

  • Private or on-premises reasoning assistants.
  • Mathematical, scientific, logical, and academic analysis.
  • Code generation and technical support tools.
  • Long-document review and extended text conversations.
  • Agent prototypes that need function calls or structured tool requests.
  • Teams that want Apache 2.0 open-weight licensing and the option to fine-tune.

It may be preferable to a smaller dense model when the task benefits from stronger reasoning and the operator can provide suitable hardware. Its active-parameter design can also offer a more favorable compute profile than a dense model with a similar total parameter count, but this is a deployment trade-off rather than a guaranteed speed ranking.

When another option may be more appropriate

A smaller dense language model may be a better choice for lightweight applications, low-memory environments, or high-volume workloads where the reasoning depth of this model is unnecessary. A hosted commercial model may be more convenient when an organization wants managed scaling, usage-based billing, monitoring, and a supported API rather than operating an 80 GB-class deployment.

A multimodal model is more suitable for image, audio, or video understanding and generation. Likewise, a model or service with a documented JSON-mode guarantee may be preferable when strict machine-readable output is a hard requirement. The available documentation does not verify a distinct JSON-mode guarantee, prompt-caching feature, batch API, formal knowledge cutoff, or exact maximum output-token limit for ERNIE-4.5-21B-A3B-Thinking.

Limitations and unresolved specifications

The most important limitation is the model’s text-only design. It cannot natively replace a vision-language, speech, image-generation, or video model. Its open-weight nature also shifts infrastructure responsibility to the user, and the full 21B-parameter checkpoint can be demanding despite sparse per-token activation.

The model card and related documentation do not provide a verified knowledge-cutoff date for this exact checkpoint. They also do not establish a universal maximum output length separate from the context window. Output limits can depend on the serving framework and runtime configuration, so these values should be checked before production deployment.

Editorial scores associated with the model rate reasoning at 8, coding at 7, speed at 8, and cost at 9. These are comparative editorial estimates based on its stated reasoning focus, sparse architecture, open-weight availability, and deployment characteristics. They are not provider-published benchmark results and should not substitute for testing the model on representative tasks.

Bottom line

ERNIE-4.5-21B-A3B-Thinking is a practical option for developers and organizations seeking an open-weight reasoning model with a very long context window, function-calling support, and local deployment flexibility. Its 21B-total/3B-active MoE architecture provides an efficiency rationale, while Apache 2.0 licensing supports private operation and adaptation. The trade-off is operational: users must supply suitable infrastructure and should not expect verified hosted pricing, native multimodal processing, or documented guarantees for JSON mode, output limits, caching, or batch inference.


Answers to Frequently Asked Questions

Does ERNIE-4.5-21B-A3B-Thinking support images, audio, video, or autonomous web browsing?
No. ERNIE-4.5-21B-A3B-Thinking is text-only and does not natively process or generate images, audio, or video. It supports function-calling workflows by producing tool-call requests for an integrating application, but the documentation does not verify native web search or autonomous computer control.
What hardware and deployment options are available for ERNIE-4.5-21B-A3B-Thinking?
ERNIE-4.5-21B-A3B-Thinking can be self-hosted using tools such as Transformers, vLLM, and FastDeploy. The documented FastDeploy configuration notes an 80 GB GPU requirement, although actual needs vary by quantization, precision, framework, context length, and workload. The model is distributed under the Apache License 2.0.
What is ERNIE-4.5-21B-A3B-Thinking?
ERNIE-4.5-21B-A3B-Thinking is Baidu’s open-weight, text-only mixture-of-experts reasoning model. It is designed for multi-step mathematics, science, logic, coding, technical writing, long-document analysis, and function-calling workflows. Its canonical checkpoint is baidu/ERNIE-4.5-21B-A3B-Thinking.
How many parameters and how much context does ERNIE-4.5-21B-A3B-Thinking support?
The model has 21 billion total parameters, with approximately 3 billion activated for each token through its sparse mixture-of-experts architecture. It supports a context window of up to 131,072 tokens, subject to the limits of the serving framework and runtime configuration.


Sources 5
AI Provider

About Baidu