anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Reasoning-focused ERNIE 4.5 mixture-of-experts text model with 21B total and 3B active parameters, 128K context and tool calling, in English and Chinese. For developers who need deep reasoning from a small active size.
ERNIE-4.5-21B-A3B-Thinking is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download baidu/ERNIE-4.5-21B-A3B-Thinking
This is Baidu's thinking-tuned release of ERNIE 4.5 21B-A3B, built to reason at length over hard problems. It is a mixture-of-experts model with about 21B parameters in total, of which 3B are active for each token. Baidu says reasoning, tool use and long-context understanding were improved over the earlier A3B release, and this version thinks for longer.
It suits developers and researchers who want a reasoning model that fits on one 80 GB GPU and who can run a model server.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Education | Teachers and students | Work through math and science problems step by step | Checking a physics derivation |
| Software | Developers | Use it for coding help and for calling functions | Asking it to pick a function and fill in its arguments |
| Research | Analysts | Reason over long documents within the 128K context | Summarizing a long report with reasoning |
| IT operations | Platform engineers | Serve a mid-size reasoning model behind an OpenAI-style API | Running it with FastDeploy |
If your tasks are simple chat, you can skip it, since the extra thinking length adds waiting time.
You run it as a server and call it from your own apps.
| Use case | Who | What they get back |
|---|---|---|
| Hard reasoning questions | Researchers | A long thinking trace, then an answer |
| Function calling | Developers | A tool call chosen from the functions you describe |
| Long inputs | Analysts | Answers over up to 131072 tokens of context |
The card says serving with FastDeploy needs one 80 GB GPU and FastDeploy version 2.2. The weights are about 43.7 GB in BF16.
pip install -U huggingface_hub hf download baidu/ERNIE-4.5-21B-A3B-Thinking
Start the server, then send chat requests to its OpenAI-style endpoint. The same launch also turns on the reasoning parser and the tool call parser.
| Tool | What it does |
|---|---|
| fastdeploy.entrypoints.openai.api_server | Serves the model through an OpenAI-style API |
| --reasoning-parser ernie_x1 | Separates the model's thinking from its answer |
| --tool-call-parser ernie_x1 | Reads function calls out of the output |
| --max-model-len 131072 | Sets the full context length |
python -m fastdeploy.entrypoints.openai.api_server \
--model baidu/ERNIE-4.5-21B-A3B-Thinking \
--port 8180 \
--metrics-port 8181 \
--engine-worker-queue-port 8182 \
--load-choices "default_v1" \
--tensor-parallel-size 1 \
--max-model-len 131072 \
--reasoning-parser ernie_x1 \
--tool-call-parser ernie_x1 \
--max-num-seqs 32You send a chat request that asks about today's weather in Beijing and describes a get_weather function with a location and a unit. The model supports function calls, so it can reply with a call to that function instead of guessing.
A thinking model writes out its reasoning first, then gives the answer. Start with one hard question, such as a short math problem, and read the reasoning it returns.
For experts, it is a text-only mixture-of-experts model after post-training. It has 28 layers, 20 query heads with 4 key-value heads, and 64 text experts with 6 active per token, plus 2 shared experts. The trade-off is a longer thinking length, which costs latency.
Baidu released Transformer-style weights so that PyTorch and PaddlePaddle tools can load them. Others have published 24 quantized and 4 fine-tuned versions of this model.
| Setting | Value |
|---|---|
| Total and active parameters | 21B and 3B |
| Layers | 28 |
| Text experts, total and active | 64 and 6 |
| Shared experts | 2 |
| Context length | 131072 |
Reasoning-focused ERNIE 4.5 mixture-of-experts text model with 21B total and 3B active parameters, 128K context and tool calling, in English and Chinese. For developers who need deep reasoning from a small active size.
Made by baidu on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: This is Baidu's thinking-tuned release of ERNIE 4.5 21B-A3B, built to reason at length over hard problems. It is a mixture-of-experts model with about 21B parameters in total, of which 3B are active for each token. Baidu says reasoning, tool use and long-context understanding were improved over the earlier A3B release, and this version thinks for longer.
Who it suits: It suits developers and researchers who want a reasoning model that fits on one 80 GB GPU and who can run a model server.
Industry | Who uses it | How they use it | Example
Education | Teachers and students | Work through math and science problems step by step | Checking a physics derivation
Software | Developers | Use it for coding help and for calling functions | Asking it to pick a function and fill in its arguments
Research | Analysts | Reason over long documents within the 128K context | Summarizing a long report with reasoning
IT operations | Platform engineers | Serve a mid-size reasoning model behind an OpenAI-style API | Running it with FastDeploy
If your tasks are simple chat, you can skip it, since the extra thinking length adds waiting time.
Where to use it: You run it as a server and call it from your own apps.
Use case | Who | What they get back
Hard reasoning questions | Researchers | A long thinking trace, then an answer
Function calling | Developers | A tool call chosen from the functions you describe
Long inputs | Analysts | Answers over up to 131072 tokens of context
How to set it up: The card says serving with FastDeploy needs one 80 GB GPU and FastDeploy version 2.2. The weights are about 43.7 GB in BF16.
pip install -U huggingface_hub
hf download baidu/ERNIE-4.5-21B-A3B-Thinking
How to use it: Start the server, then send chat requests to its OpenAI-style endpoint. The same launch also turns on the reasoning parser and the tool call parser.
Tool | What it does
fastdeploy.entrypoints.openai.api_server | Serves the model through an OpenAI-style API
--reasoning-parser ernie_x1 | Separates the model's thinking from its answer
--tool-call-parser ernie_x1 | Reads function calls out of the output
--max-model-len 131072 | Sets the full context length
python -m fastdeploy.entrypoints.openai.api_server \
--model baidu/ERNIE-4.5-21B-A3B-Thinking \
--port 8180 \
--metrics-port 8181 \
--engine-worker-queue-port 8182 \
--load-choices "default_v1" \
--tensor-parallel-size 1 \
--max-model-len 131072 \
--reasoning-parser ernie_x1 \
--tool-call-parser ernie_x1 \
--max-num-seqs 32
Example: You send a chat request that asks about today's weather in Beijing and describes a get_weather function with a location and a unit. The model supports function calls, so it can reply with a call to that function instead of guessing.
For newcomers and experts: A thinking model writes out its reasoning first, then gives the answer. Start with one hard question, such as a short math problem, and read the reasoning it returns.
For experts, it is a text-only mixture-of-experts model after post-training. It has 28 layers, 20 query heads with 4 key-value heads, and 64 text experts with 6 active per token, plus 2 shared experts. The trade-off is a longer thinking length, which costs latency.
Your prompt goes to the server
The router picks 6 of 64 experts
The model writes its thinking first
Then it writes the answer or a tool call
The parsers split thinking from output
Good to know: Baidu released Transformer-style weights so that PyTorch and PaddlePaddle tools can load them. Others have published 24 quantized and 4 fine-tuned versions of this model.
Title: Model configuration from the card
Setting | Value
Total and active parameters | 21B and 3B
Layers | 28
Text experts, total and active | 64 and 6
Shared experts | 2
Context length | 131072
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download baidu/ERNIE-4.5-21B-A3B-Thinking
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 6 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| ERNIE-4.5-21B-A3B-Thinking This page | 64,420 | 796 | 21.8B | apache-2.0 | |
| ERNIE-4.5-21B-A3B-Thinking-GGUFShares ernie4.5 · text-generation · conversational | 6,361 | 62 | 21.8B | apache-2.0 | |
| ERNIE-4.5-VL-28B-A3B-ThinkingShares ernie4.5 · conversational · transformers | 2,021 | 548 | 29.7B | apache-2.0 | |
| Qwen3-0.6BShares text-generation · conversational · transformers | 19,718,599 | 1,894 | 752M | apache-2.0 | |
| Qwen3-14BShares text-generation · conversational · transformers | 12,965,376 | 540 | 14.8B | apache-2.0 | |
| Qwen2.5-7B-InstructShares text-generation · conversational · transformers | 6,364,238 | 2,494 | 7.6B | apache-2.0 |
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.