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

ERNIE-4.5-21B-A3B-PT-GGUF

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

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

text369GBERNIE-4.5-21B-A3B-PT-GGUFggufpermissive
FactsParamsnot statedSize369 GBFormatsggufTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get unsloth/ERNIE-4.5-21B-A3B-PT-GGUF
# manifest sha256 7f129bfc66e3… · 369 GB · 30 files
$ fw verify ./ERNIE-4.5-21B-A3B-PT-GGUF unsloth/ERNIE-4.5-21B-A3B-PT-GGUF
From sourceHosted (signed)unsloth/ERNIE-4.5-21B-A3B-PT-GGUFLast check: 2026-11-15 04:48 UTC

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

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

Overview

Size
369 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-PT

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:48 UTCpassed

Model card

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

Chat Hugging Face Github Blog Discord X

License

ERNIE-4.5-21B#

Note. Note: "-Paddle" models use PaddlePaddle weights, while "-PT" models use Transformer-style PyTorch weights.

ERNIE 4.5 Highlights#

The advanced capabilities of the ERNIE 4.5 models, particularly the MoE-based A47B and A3B series, are underpinned by several key technical innovations:

  1. Multimodal Heterogeneous MoE Pre-Training: Our models are jointly trained on both textual and visual modalities to better capture the nuances of multimodal information and improve performance on tasks involving text understanding and generation, image understanding, and cross-modal reasoning. To achieve this without one modality hindering the learning of another, we designed a heterogeneous MoE structure, incorporated modality-isolated routing, and employed router orthogonal loss and multimodal token-balanced loss. These architectural choices ensure that both modalities are effectively represented, allowing for mutual reinforcement during training.
  2. Scaling-Efficient Infrastructure: We propose a novel heterogeneous hybrid parallelism and hierarchical load balancing strategy for efficient training of ERNIE 4.5 models. By using intra-node expert parallelism, memory-efficient pipeline scheduling, FP8 mixed-precision training and finegrained recomputation methods, we achieve remarkable pre-training throughput. For inference, we propose multi-expert parallel collaboration method and convolutional code quantization algorithm to achieve 4-bit/2-bit lossless quantization. Furthermore, we introduce PD disaggregation with dynamic role switching for effective resource utilization to enhance inference performance for ERNIE 4.5 MoE models. Built on PaddlePaddle, ERNIE 4.5 delivers high-performance inference across a wide range of hardware platforms.
  3. Modality-Specific Post-Training: To meet the diverse requirements of real-world applications, we fine-tuned variants of the pre-trained model for specific modalities. Our LLMs are optimized for general-purpose language understanding and generation. The VLMs focuses on visuallanguage understanding and supports both thinking and non-thinking modes. Each model employed a combination of Supervised Fine-tuning (SFT), Direct Preference Optimization (DPO) or a modified reinforcement learning method named Unified Preference Optimization (UPO) for post-training.

Model Overview#

ERNIE-4.5-21B-A3B 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:

KeyValue
ModalityText
Training StagePosttraining
Params(Total / Activated)21B / 3B
Layers28
Heads(Q/KV)20 / 4
Text Experts(Total / Activated)64 / 6
Vision Experts(Total / Activated)64 / 6
Shared Experts2
Context Length131072

Quickstart#

Using transformers library#

Note: You'll need the transformers library (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-PT"

# 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)
vLLM inference#

VLLM>=0.10.2 (excluding 0.11.0)

vllm serve baidu/ERNIE-4.5-21B-A3B-PT

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},
      eprint={},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={}
}

Files

30 files · 369 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.53 KB1c8be98a841df1fa862f419c543701a0f4732641b9b1b06d8fa9756c03bdeedb
ERNIE-4.5-21B-A3B-PT-BF16.gguf43.7 GB3da25f01743025dc51c736338fe7a4ba1bc622a068a8ce1f49640886dc72100d
ERNIE-4.5-21B-A3B-PT-IQ4_NL.gguf12.5 GB1e6b3b7e3d5cbb601ffe5ad3179d0520bd405e99ab42d8d77f931db0721eaebc
ERNIE-4.5-21B-A3B-PT-IQ4_XS.gguf11.8 GB96559e2079d6dfd81822a3f695754cf695bc71f97b16560898b0ebc6a806f1aa
ERNIE-4.5-21B-A3B-PT-Q2_K.gguf8.15 GB8b8360165f064abbaa7d64846e22f8fc7830d7529fda4c6ca7e5a6c4dac7fcd3
ERNIE-4.5-21B-A3B-PT-Q2_K_L.gguf8.15 GB8b8360165f064abbaa7d64846e22f8fc7830d7529fda4c6ca7e5a6c4dac7fcd3
ERNIE-4.5-21B-A3B-PT-Q3_K_M.gguf10.5 GB8a1ebae19fa5d8b41f612ec3db3a81bf5d3ddbfe57dd982505c458e912542c70
ERNIE-4.5-21B-A3B-PT-Q3_K_S.gguf9.64 GB47f6ead8fb8ae53e454871018d0b2110796fecad5933a51452593eb9ced7cf44
ERNIE-4.5-21B-A3B-PT-Q4_0.gguf12.5 GBcc70d8e37dd6eed27ffa05d453caec01cbac605f11332b522c2dbc70c5946ccd
ERNIE-4.5-21B-A3B-PT-Q4_1.gguf13.8 GBb5f9765e211013fa150fd2d8414423687db6e5fc46cf4c852dd65ef4f0e106c1
ERNIE-4.5-21B-A3B-PT-Q4_K_M.gguf13.3 GBeac44e96282fee37140f82f435d4c37c4ec0edd42fe5d93f09e6ed8786a6cff0
ERNIE-4.5-21B-A3B-PT-Q4_K_S.gguf12.5 GB0b89ab0501041834a73d568d105c73d2713ddb2104519e89f65181b53d73cd32
ERNIE-4.5-21B-A3B-PT-Q5_K_M.gguf15.6 GB5cd7b3bb2422c40708d5156fe8ab8d1232629f6385523a3a743692cb09c27687
ERNIE-4.5-21B-A3B-PT-Q5_K_S.gguf15.1 GBb46648a47f7f7b842d8cfcdd8018282ae83c4310dffe76ea6093f34cf3072089
ERNIE-4.5-21B-A3B-PT-Q6_K.gguf18.0 GBd6a96c397c492b3a065ad4c83e2bcc7a24e84376d58a5a4a569a87d1f6dd7900
ERNIE-4.5-21B-A3B-PT-Q8_0.gguf23.2 GB6c12c78351621a159839716ed1cb39f4e3b8aa0fdb522c60c56a9213c3fefae9
ERNIE-4.5-21B-A3B-PT-UD-IQ1_M.gguf7.24 GB72fd96f06342a606c6e50ffbe96ed75365c95d24e777be44cf3100618ad6e24a
ERNIE-4.5-21B-A3B-PT-UD-IQ1_S.gguf7.07 GB14deefffc7e1edf1c11e0d2cfeec5f5f49e0f8805fad85155bc6aeacda6fad51
ERNIE-4.5-21B-A3B-PT-UD-IQ2_M.gguf8.03 GBaefc420cb32e6d98970d5af3dc1bd32a372d4cb503c60128ec293d35fee8b447
ERNIE-4.5-21B-A3B-PT-UD-IQ2_XXS.gguf7.76 GB5bc7e095851532fd2ca4b90b5fd2c479e927827f5e75456f86913e67553f88bb
ERNIE-4.5-21B-A3B-PT-UD-IQ3_XXS.gguf9.54 GB5f33acfe220f16b05e21b5ff1683a932d3e450d7e9765d8e647a73c021d849ee
ERNIE-4.5-21B-A3B-PT-UD-Q2_K_XL.gguf8.22 GBa6dd43c63cfe8b1aafa061cd4752bae9b3cc3e6dd5035d15471de9162bcfd6f7
ERNIE-4.5-21B-A3B-PT-UD-Q3_K_XL.gguf10.6 GBcec72fa585f9dc61f5c4f4c7a33ca54aa2687ca9e2cec4c040995e56c6604fad
ERNIE-4.5-21B-A3B-PT-UD-Q4_K_XL.gguf13.4 GB8aa12d9e7b0e8199fda963573a6d70fa6d357c5ce5217459c8f4723ddd03e6ff
ERNIE-4.5-21B-A3B-PT-UD-Q5_K_XL.gguf15.7 GB0d6c383dc3aa1836727d1c3a219903f79dfa86c98c57586877a90abb020f26a4
ERNIE-4.5-21B-A3B-PT-UD-Q6_K_XL.gguf19.3 GB7e5b4bf1ca233c67b5de3308e1044102519ce54e286abd57483f39395c2d9951
ERNIE-4.5-21B-A3B-PT-UD-Q8_K_XL.gguf26.6 GBf0a6949a0099e6e3fb5fbd1329ae4b795e91cbb9a58c5152b3facb4cef8d8ce0
ERNIE-4.5-21B-A3B-PT-UD-TQ1_0.gguf6.50 GB34dda5b2ae4ef3cb2902c6023060be7318a14ebfbbe7d9b10b8a5fe367105c2f
README.md7.12 KBf50ec5966cd46717a3349e49dbe69f28ca7e9b21040ca02490fcd638caa484aa
imatrix_unsloth.gguf_file48.5 MBf330006fd72b9cc2a6126848d4088c36d314555514ab9ba205eaccc545a7d62f
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
de45a831ce pinned now2026-11-15 04:48 UTC30 files · 369 GB

Use it

$ fw get unsloth/ERNIE-4.5-21B-A3B-PT-GGUF
# manifest sha256 7f129bfc66e3… · 369 GB · 30 files
$ fw verify ./ERNIE-4.5-21B-A3B-PT-GGUF unsloth/ERNIE-4.5-21B-A3B-PT-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-PT-GGUF.json --dir ./ERNIE-4.5-21B-A3B-PT-GGUF $ python3 fw.py verify ./ERNIE-4.5-21B-A3B-PT-GGUF ./unsloth__ERNIE-4.5-21B-A3B-PT-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-PT-GGUF --revision de45a831ceac3c876bb63f39bc60406a7d07e3bb --local-dir ./ERNIE-4.5-21B-A3B-PT-GGUF
llama.cppDownload one GGUF variant (ERNIE-4.5-21B-A3B-PT-UD-TQ1_0, 6.50 GB), then serve it.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download unsloth/ERNIE-4.5-21B-A3B-PT-GGUF --include "ERNIE-4.5-21B-A3B-PT-UD-TQ1_0*" --local-dir ./ERNIE-4.5-21B-A3B-PT-GGUF $ llama-server -m ./ERNIE-4.5-21B-A3B-PT-GGUF/ERNIE-4.5-21B-A3B-PT-UD-TQ1_0.gguf
OllamaMake an Ollama model from the downloaded file.
$ printf 'FROM ./ERNIE-4.5-21B-A3B-PT-GGUF/ERNIE-4.5-21B-A3B-PT-UD-TQ1_0.gguf\n' > Modelfile $ ollama create ernie-4.5-21b-a3b-pt-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
f50ec5966cd46717a3349e49dbe69f28ca7e9b21040ca02490fcd638caa484aa
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-PT-GGUFDate: 2026-11-15Commit: de45a83Signed: 2DC28CC7B26A283B ✓
Upstream
unsloth/ERNIE-4.5-21B-A3B-PT-GGUF
Pinned commit
de45a831ceac3c876bb63f39bc60406a7d07e3bb
Manifest
ERNIE-4.5-21B-A3B-PT-GGUF.json · .minisig
Manifest sha256
7f129bfc66e3cd98e97e62e571296623614d9cebcf09dac44eb6c9ce655f0be3
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 04:48 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-PT-GGUF.json $ curl -O https://freeweights.allternit.com/manifests/unsloth/ERNIE-4.5-21B-A3B-PT-GGUF.json.minisig $ minisign -Vm ERNIE-4.5-21B-A3B-PT-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-PT · 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-PT-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-PT-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