alt.freeweights.text / ERNIE-4.5-21B-A3B-Thinking-GGUF
From: unsloth <huggingface.co/unsloth>Newsgroups: alt.freeweights.textSubject:

ERNIE-4.5-21B-A3B-Thinking-GGUF

Date: 2026-11-15Commit: b1fa62dSigned: 2DC28CC7B26A283B ✓

Text generation model. Gguf weights, 368 GB in all. Published by unsloth under Apache-2.0.

text368GBERNIE-4.5-21B-A3B-Thinking-GGUFggufpermissive
FactsParamsnot statedSize368 GBFormatsggufTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get unsloth/ERNIE-4.5-21B-A3B-Thinking-GGUF
# manifest sha256 c16e3c8f68ce… · 368 GB · 30 files
$ fw verify ./ERNIE-4.5-21B-A3B-Thinking-GGUF unsloth/ERNIE-4.5-21B-A3B-Thinking-GGUF
From sourceHosted (signed)unsloth/ERNIE-4.5-21B-A3B-Thinking-GGUFLast check: 2026-11-15 04:50 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Quantized of ERNIE-4.5-21B-A3B-Thinking.

Overview

Size
368 GB
Weights
6.50 GB (smallest of 27 GGUF variants)
Parameters
not stated
Formats
gguf
Task
text generation
License
Apache-2.0 (permissive)
Files
30, each with a sha256
Publisher
unsloth
Added
2026-11-15
Section
alt.freeweights.text
Lineage

Original release from the publisher.

Base model: baidu/ERNIE-4.5-21B-A3B-Thinking

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 04:50 UTCpassed

Model card

From the publisher at commit b1fa62d. Shown as plain text with links; images open at the publisher.

Chat Hugging Face Github Blog Discord X

License

ERNIE-4.5-21B-A3B-Thinking#

Model Highlights#

Over the past three months, we have continued to scale the thinking capability of ERNIE-4.5-21B-A3B, improving both the quality and depth of reasoning, thereby advancing the competitiveness of ERNIE lightweight models in complex reasoning tasks. We are pleased to introduce ERNIE-4.5-21B-A3B-Thinking, featuring the following key enhancements:

  • Significantly improved performance on reasoning tasks, including logical reasoning, mathematics, science, coding, text generation, and academic benchmarks that typically require human expertise.
  • Efficient tool usage capabilities.
  • Enhanced 128K long-context understanding capabilities.

Note. Note: This version has an increased thinking length. We strongly recommend its use in highly complex reasoning tasks.

Image: benchmark

Model Overview#

ERNIE-4.5-21B-A3B-Thinking is a text MoE post-trained model, with 21B total parameters and 3B activated parameters for each token. The following are the model configuration details:

|Key|Value|

|-|-|

|Modality|Text|

|Training Stage|Posttraining|

|Params(Total / Activated)|21B / 3B|

|Layers|28|

|Heads(Q/KV)|20 / 4|

|Text Experts(Total / Activated)|64 / 6|

|Vision Experts(Total / Activated)|64 / 6|

|Shared Experts|2|

|Context Length|131072|

Quickstart#

Note. To align with the wider community, this model releases Transformer-style weights. Both PyTorch and PaddlePaddle ecosystem tools, such as vLLM, transformers, and FastDeploy, are expected to be able to load and run this model.

FastDeploy Inference#

Quickly deploy services using FastDeploy as shown below. For more detailed usage, refer to the FastDeploy GitHub Repository.

Note: 80GB x 1 GPU resources are required. Deploying this model requires FastDeploy version 2.2.

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

The ERNIE-4.5-21B-A3B-Thinking model supports function call.

curl -X POST "http://0.0.0.0:8180/v1/chat/completions" \
-H "Content-Type: application/json" \
-d $'{
  "messages": [
    {
      "role": "user",
      "content": "How \'s the weather in Beijing today?"
    }
  ],
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "get_weather",
        "description": "Determine weather in my location",
        "parameters": {
          "type": "object",
          "properties": {
            "location": {
              "type": "string",
              "description": "The city and state e.g. San Francisco, CA"
            },
            "unit": {
              "type": "string",
              "enum": [
                "c",
                "f"
              ]
            }
          },
          "additionalProperties": false,
          "required": [
            "location",
            "unit"
          ]
        },
        "strict": true
      }
    }]
}'
vLLM inference#
vllm serve baidu/ERNIE-4.5-21B-A3B-Thinking

The reasoning-parser and tool-call-parser for vLLM Ernie are currently under development.

Using transformers library#

Note: You'll need thetransformerslibrary (version 4.54.0 or newer) installed to use this model.

The following contains a code snippet illustrating how to use the model generate content based on given inputs.

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "baidu/ERNIE-4.5-21B-A3B-Thinking"

# load the tokenizer and the model
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
    model_name,
    device_map="auto",
    torch_dtype=torch.bfloat16,
)

# prepare the model input
prompt = "Give me a short introduction to large language model."
messages = [
    {"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True
)
model_inputs = tokenizer([text], add_special_tokens=False, return_tensors="pt").to(model.device)

# conduct text completion
generated_ids = model.generate(
    **model_inputs,
    max_new_tokens=1024
)
output_ids = generated_ids[0][len(model_inputs.input_ids[0]):].tolist()

# decode the generated ids
generate_text = tokenizer.decode(output_ids, skip_special_tokens=True)
print("generate_text:", generate_text)

License#

The ERNIE 4.5 models are provided under the Apache License 2.0. This license permits commercial use, subject to its terms and conditions. Copyright (c) 2025 Baidu, Inc. All Rights Reserved.

Citation#

If you find ERNIE 4.5 useful or wish to use it in your projects, please kindly cite our technical report:

@misc{ernie2025technicalreport,
      title={ERNIE 4.5 Technical Report},
      author={Baidu-ERNIE-Team},
      year={2025},
      primaryClass={cs.CL},
      howpublished={\url{https://ernie.baidu.com/blog/publication/ERNIE_Technical_Report.pdf}}
}

Files

30 files · 368 GBWeights 6.50 GB (smallest of 27 GGUF variants). Sizes and sha256 from the signed manifest.
Show all 30 files with their sha256
FileSizesha256
.gitattributes3.63 KB730e20e40a56734a657e734e73c9b5a401f458603f01f007e879572ece7cd11c
ERNIE-4.5-21B-A3B-Thinking-BF16.gguf43.7 GB1334cca26311af9c5e312f7edf57356ed8ffe6790a70a71f4ddc09408003d979
ERNIE-4.5-21B-A3B-Thinking-IQ4_NL.gguf12.5 GB61ab23f67fe69af34e7c352dcaa5db4289886f4083767ec9af7e600fea2f11e3
ERNIE-4.5-21B-A3B-Thinking-IQ4_XS.gguf11.8 GB26ee8fc7dd3f16913d76afda8e57ac3fdff8a0da14c4ad34cbbe96d6a9b34a62
ERNIE-4.5-21B-A3B-Thinking-Q2_K.gguf8.15 GB16989cfc50577b03621bc3f9d45b38bb231b209bba4e5e4e109e33b275fe735e
ERNIE-4.5-21B-A3B-Thinking-Q2_K_L.gguf8.15 GB16989cfc50577b03621bc3f9d45b38bb231b209bba4e5e4e109e33b275fe735e
ERNIE-4.5-21B-A3B-Thinking-Q3_K_M.gguf10.5 GBf450a661dd2047635eb41e5cbac4865f142b44c7d28824453598348d6a537c96
ERNIE-4.5-21B-A3B-Thinking-Q3_K_S.gguf9.64 GBc9cc8ceee654b9bb4ce49cfdbcc7bfbc1472e488e1a8c32b909eda2b2139e88f
ERNIE-4.5-21B-A3B-Thinking-Q4_0.gguf12.5 GB133373bbbc4c94801ca2dc2a59bfe0ebc95de654167c402e9bf5aaed5db2bc00
ERNIE-4.5-21B-A3B-Thinking-Q4_1.gguf13.8 GB0bafca504e2ebe5b1832904d98da16fef6ee9c7ef72eb797f6047eef5cae37fd
ERNIE-4.5-21B-A3B-Thinking-Q4_K_M.gguf13.3 GB9cd7c60d3c30f46e7f539043ec19c7ec8953153f65dd9a2a2748b8e3f589d015
ERNIE-4.5-21B-A3B-Thinking-Q4_K_S.gguf12.5 GBed79f0dd3f22a21c23a4d2d0419be8dade51c48671d8616b6d9661c7b7d4366b
ERNIE-4.5-21B-A3B-Thinking-Q5_K_M.gguf15.6 GB5e6c6348482179059ad5b9494125b36f77b5f8fcfeaf86352ec78fafa93e0be7
ERNIE-4.5-21B-A3B-Thinking-Q5_K_S.gguf15.1 GB0a6d9145fa967b52bd4ca5507522ce94021d4ea920ba21ae8d69a5b85f63ca6c
ERNIE-4.5-21B-A3B-Thinking-Q6_K.gguf18.0 GBe471e9cf3563a83b6a26a8f0342993f62e8d103d5695a9d221fc9f9a59d0bb88
ERNIE-4.5-21B-A3B-Thinking-Q8_0.gguf23.2 GB3347f8e6028c7722dd94491558eb97622f62a4b2a6a54f269bff669c87470fd0
ERNIE-4.5-21B-A3B-Thinking-UD-IQ1_M.gguf7.24 GB9fea424658d7f62669defd86d99e810e14bf0ee2fb33f150cf37ba11243dc93e
ERNIE-4.5-21B-A3B-Thinking-UD-IQ1_S.gguf7.01 GB4d4f046d7fc33aa73586eedd9e94f2f8878518753f9a118ea551b2b88213a661
ERNIE-4.5-21B-A3B-Thinking-UD-IQ2_M.gguf8.03 GB47eb16e2364b975a69e0ee764a7c2666abc2d6d7d294afbab5b4a2d1c990911b
ERNIE-4.5-21B-A3B-Thinking-UD-IQ2_XXS.gguf7.77 GB1387693f9ad00c915a4283094205a6d81bf89c09448afa9ffa4d4e1957580b14
ERNIE-4.5-21B-A3B-Thinking-UD-IQ3_XXS.gguf9.55 GB75a729aef2114bb140ca374d635a2fd6747f04b9d69903a6d631b4dc017e6f71
ERNIE-4.5-21B-A3B-Thinking-UD-Q2_K_XL.gguf8.22 GB840c34e6080736073bc8ece513aae8c2a0f49af971d41b3ece8d9fda0e4c0fb2
ERNIE-4.5-21B-A3B-Thinking-UD-Q3_K_XL.gguf10.6 GBd62562ddbf728925a4d233fe44a192c71b671ae742caae1ae245e5f3462eee8c
ERNIE-4.5-21B-A3B-Thinking-UD-Q4_K_XL.gguf13.4 GB88a031e033df34c30c9d46cf3b68773f3638dacb6550b80b8940f947160bb93e
ERNIE-4.5-21B-A3B-Thinking-UD-Q5_K_XL.gguf15.7 GBd69e0dcbef27f09074ded596943be8fa70f2296a29c54de7a8d464c39a46dbb4
ERNIE-4.5-21B-A3B-Thinking-UD-Q6_K_XL.gguf19.3 GBaf12c93ef2a446a62ce814291bd6c4536c7156f9ea629268617c79da12e01f26
ERNIE-4.5-21B-A3B-Thinking-UD-Q8_K_XL.gguf26.6 GBd6eb94571d5ea046e9a24a4e13f46815c5dda8e0a75efcb9c4991e1f2a430dd8
ERNIE-4.5-21B-A3B-Thinking-UD-TQ1_0.gguf6.50 GB9964fc2ddeafaa8fe62f6a1f26d369cdbeca4e35490aabe01fffbb54bf024aff
README.md7.26 KBf26920e6f789f47190a80d9ca5d9d7a02c70cfc36494f77d8acdee31083aec18
imatrix_unsloth.gguf_file48.5 MBbdd12ca1a8fd716b2b1db258ebe2ef3a050f3945a5623d92d809616dc9071859
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
b1fa62d9e5 pinned now2026-11-15 04:50 UTC30 files · 368 GB

Use it

$ fw get unsloth/ERNIE-4.5-21B-A3B-Thinking-GGUF
# manifest sha256 c16e3c8f68ce… · 368 GB · 30 files
$ fw verify ./ERNIE-4.5-21B-A3B-Thinking-GGUF unsloth/ERNIE-4.5-21B-A3B-Thinking-GGUF
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/unsloth/ERNIE-4.5-21B-A3B-Thinking-GGUF.json --dir ./ERNIE-4.5-21B-A3B-Thinking-GGUF $ python3 fw.py verify ./ERNIE-4.5-21B-A3B-Thinking-GGUF ./unsloth__ERNIE-4.5-21B-A3B-Thinking-GGUF.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download unsloth/ERNIE-4.5-21B-A3B-Thinking-GGUF --revision b1fa62d9e5864da596c78a0fb5cc02e5ffba336c --local-dir ./ERNIE-4.5-21B-A3B-Thinking-GGUF
llama.cppDownload one GGUF variant (ERNIE-4.5-21B-A3B-Thinking-UD-TQ1_0, 6.50 GB), then serve it.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download unsloth/ERNIE-4.5-21B-A3B-Thinking-GGUF --include "ERNIE-4.5-21B-A3B-Thinking-UD-TQ1_0*" --local-dir ./ERNIE-4.5-21B-A3B-Thinking-GGUF $ llama-server -m ./ERNIE-4.5-21B-A3B-Thinking-GGUF/ERNIE-4.5-21B-A3B-Thinking-UD-TQ1_0.gguf
OllamaMake an Ollama model from the downloaded file.
$ printf 'FROM ./ERNIE-4.5-21B-A3B-Thinking-GGUF/ERNIE-4.5-21B-A3B-Thinking-UD-TQ1_0.gguf\n' > Modelfile $ ollama create ernie-4.5-21b-a3b-thinking-gguf -f Modelfile

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
f26920e6f789f47190a80d9ca5d9d7a02c70cfc36494f77d8acdee31083aec18
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: unsloth <huggingface.co/unsloth>Newsgroups: alt.freeweights.textSubject: ERNIE-4.5-21B-A3B-Thinking-GGUFDate: 2026-11-15Commit: b1fa62dSigned: 2DC28CC7B26A283B ✓
Upstream
unsloth/ERNIE-4.5-21B-A3B-Thinking-GGUF
Pinned commit
b1fa62d9e5864da596c78a0fb5cc02e5ffba336c
Manifest
ERNIE-4.5-21B-A3B-Thinking-GGUF.json · .minisig
Manifest sha256
c16e3c8f68ce478d97230c7978db3efc2651fa69a2148ec167f9d6c63debb371
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 04:50 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/unsloth/ERNIE-4.5-21B-A3B-Thinking-GGUF.json $ curl -O https://freeweights.allternit.com/manifests/unsloth/ERNIE-4.5-21B-A3B-Thinking-GGUF.json.minisig $ minisign -Vm ERNIE-4.5-21B-A3B-Thinking-GGUF.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

baidu/ERNIE-4.5-21B-A3B-Thinking · this model is a quantization of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download unsloth/ERNIE-4.5-21B-A3B-Thinking-GGUF
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. ERNIE-4.5-21B-A3B-Thinking-GGUF.json. Provenance. Takedown history: none.
From: laion <huggingface.co/laion>Subject: a2-rl-e2egit_large-50-32B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-large-15-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-v2-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_pymethods2test-large-80-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_unitsyn-python-large-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_mix_h2_language_proportional-65-8B