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

baidu_ERNIE-4.5-21B-A3B-PT-GGUF

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

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

text348GBbaidu_ERNIE-4.5-21B-A3B-PT-GGUFggufpermissive
FactsParamsnot statedSize348 GBFormatsggufTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get bartowski/baidu_ERNIE-4.5-21B-A3B-PT-GGUF
# manifest sha256 9835a7bd7424… · 348 GB · 29 files
$ fw verify ./baidu_ERNIE-4.5-21B-A3B-PT-GGUF bartowski/baidu_ERNIE-4.5-21B-A3B-PT-GGUF
From sourceHosted (signed)bartowski/baidu_ERNIE-4.5-21B-A3B-PT-GGUFLast check: 2026-11-15 04:55 UTC

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

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

Works with

Convert with

Overview

Size
348 GB
Weights
6.35 GB (smallest of 26 GGUF variants)
Parameters
not stated
Formats
gguf
Task
text generation
License
Apache-2.0 (permissive)
Files
29, each with a sha256
Publisher
bartowski
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:55 UTCpassed

Model card

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

Llamacpp imatrix Quantizations of ERNIE-4.5-21B-A3B-PT by baidu#

Using llama.cpp release b5924 for quantization.

Original model: https://huggingface.co/baidu/ERNIE-4.5-21B-A3B-PT

All quants made using imatrix option with dataset from here

Run them in LM Studio

Run them directly with llama.cpp, or any other llama.cpp based project

Prompt format#

No prompt format found, check original model page

Download a file (not the whole branch) from below:#

FilenameQuant typeFile SizeSplitDescription
ERNIE-4.5-21B-A3B-PT-bf16.ggufbf1643.66GBfalseFull BF16 weights.
ERNIE-4.5-21B-A3B-PT-Q8_0.ggufQ8_023.21GBfalseExtremely high quality, generally unneeded but max available quant.
ERNIE-4.5-21B-A3B-PT-Q6_K_L.ggufQ6_K_L18.15GBfalseUses Q8_0 for embed and output weights. Very high quality, near perfect, recommended.
ERNIE-4.5-21B-A3B-PT-Q6_K.ggufQ6_K18.08GBfalseVery high quality, near perfect, recommended.
ERNIE-4.5-21B-A3B-PT-Q5_K_L.ggufQ5_K_L15.82GBfalseUses Q8_0 for embed and output weights. High quality, recommended.
ERNIE-4.5-21B-A3B-PT-Q5_K_M.ggufQ5_K_M15.75GBfalseHigh quality, recommended.
ERNIE-4.5-21B-A3B-PT-Q5_K_S.ggufQ5_K_S15.23GBfalseHigh quality, recommended.
ERNIE-4.5-21B-A3B-PT-Q4_1.ggufQ4_113.88GBfalseLegacy format, similar performance to Q4_K_S but with improved tokens/watt on Apple silicon.
ERNIE-4.5-21B-A3B-PT-Q4_K_L.ggufQ4_K_L13.56GBfalseUses Q8_0 for embed and output weights. Good quality, recommended.
ERNIE-4.5-21B-A3B-PT-Q4_K_M.ggufQ4_K_M13.50GBfalseGood quality, default size for most use cases, recommended.
ERNIE-4.5-21B-A3B-PT-Q4_K_S.ggufQ4_K_S13.01GBfalseSlightly lower quality with more space savings, recommended.
ERNIE-4.5-21B-A3B-PT-Q4_0.ggufQ4_012.78GBfalseLegacy format, offers online repacking for ARM and AVX CPU inference.
ERNIE-4.5-21B-A3B-PT-IQ4_NL.ggufIQ4_NL12.60GBfalseSimilar to IQ4_XS, but slightly larger. Offers online repacking for ARM CPU inference.
ERNIE-4.5-21B-A3B-PT-IQ4_XS.ggufIQ4_XS11.96GBfalseDecent quality, smaller than Q4_K_S with similar performance, recommended.
ERNIE-4.5-21B-A3B-PT-Q3_K_XL.ggufQ3_K_XL10.73GBfalseUses Q8_0 for embed and output weights. Lower quality but usable, good for low RAM availability.
ERNIE-4.5-21B-A3B-PT-Q3_K_L.ggufQ3_K_L10.66GBfalseLower quality but usable, good for low RAM availability.
ERNIE-4.5-21B-A3B-PT-Q3_K_M.ggufQ3_K_M10.30GBfalseLow quality.
ERNIE-4.5-21B-A3B-PT-IQ3_M.ggufIQ3_M10.29GBfalseMedium-low quality, new method with decent performance comparable to Q3_K_M.
ERNIE-4.5-21B-A3B-PT-Q3_K_S.ggufQ3_K_S9.85GBfalseLow quality, not recommended.
ERNIE-4.5-21B-A3B-PT-IQ3_XS.ggufIQ3_XS9.35GBfalseLower quality, new method with decent performance, slightly better than Q3_K_S.
ERNIE-4.5-21B-A3B-PT-IQ3_XXS.ggufIQ3_XXS8.99GBfalseLower quality, new method with decent performance, comparable to Q3 quants.
ERNIE-4.5-21B-A3B-PT-Q2_K_L.ggufQ2_K_L8.16GBfalseUses Q8_0 for embed and output weights. Very low quality but surprisingly usable.
ERNIE-4.5-21B-A3B-PT-Q2_K.ggufQ2_K8.09GBfalseVery low quality but surprisingly usable.
ERNIE-4.5-21B-A3B-PT-IQ2_M.ggufIQ2_M7.16GBfalseRelatively low quality, uses SOTA techniques to be surprisingly usable.
ERNIE-4.5-21B-A3B-PT-IQ2_S.ggufIQ2_S6.37GBfalseLow quality, uses SOTA techniques to be usable.
ERNIE-4.5-21B-A3B-PT-IQ2_XS.ggufIQ2_XS6.35GBfalseLow quality, uses SOTA techniques to be usable.

Embed/output weights#

Some of these quants (Q3_K_XL, Q4_K_L etc) are the standard quantization method with the embeddings and output weights quantized to Q8_0 instead of what they would normally default to.

Downloading using huggingface-cli#

Click to view download instructions

First, make sure you have hugginface-cli installed:

pip install -U "huggingface_hub[cli]"

Then, you can target the specific file you want:

huggingface-cli download bartowski/baidu_ERNIE-4.5-21B-A3B-PT-GGUF --include "baidu_ERNIE-4.5-21B-A3B-PT-Q4_K_M.gguf" --local-dir ./

If the model is bigger than 50GB, it will have been split into multiple files. In order to download them all to a local folder, run:

huggingface-cli download bartowski/baidu_ERNIE-4.5-21B-A3B-PT-GGUF --include "baidu_ERNIE-4.5-21B-A3B-PT-Q8_0/*" --local-dir ./

You can either specify a new local-dir (baidu_ERNIE-4.5-21B-A3B-PT-Q8_0) or download them all in place (./)

ARM/AVX information#

Previously, you would download Q4_0_4_4/4_8/8_8, and these would have their weights interleaved in memory in order to improve performance on ARM and AVX machines by loading up more data in one pass.

Now, however, there is something called "online repacking" for weights. details in this PR. If you use Q4_0 and your hardware would benefit from repacking weights, it will do it automatically on the fly.

As of llama.cpp build b4282 you will not be able to run the Q4_0_X_X files and will instead need to use Q4_0.

Additionally, if you want to get slightly better quality for , you can use IQ4_NL thanks to this PR which will also repack the weights for ARM, though only the 4_4 for now. The loading time may be slower but it will result in an overall speed incrase.

Click to view Q4_0_X_X information (deprecated

I'm keeping this section to show the potential theoretical uplift in performance from using the Q4_0 with online repacking.

Click to view benchmarks on an AVX2 system (EPYC7702)

modelsizeparamsbackendthreadstestt/s% (vs Q4_0)
qwen2 3B Q4_01.70 GiB3.09 BCPU64pp512204.03 ± 1.03100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64pp1024282.92 ± 0.19100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64pp2048259.49 ± 0.44100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64tg12839.12 ± 0.27100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64tg25639.31 ± 0.69100%
qwen2 3B Q4_01.70 GiB3.09 BCPU64tg51240.52 ± 0.03100%
qwen2 3B Q4_K_M1.79 GiB3.09 BCPU64pp512301.02 ± 1.74147%
qwen2 3B Q4_K_M1.79 GiB3.09 BCPU64pp1024287.23 ± 0.20101%
qwen2 3B Q4_K_M1.79 GiB3.09 BCPU64pp2048262.77 ± 1.81101%
qwen2 3B Q4_K_M1.79 GiB3.09 BCPU64tg12818.80 ± 0.9948%
qwen2 3B Q4_K_M1.79 GiB3.09 BCPU64tg25624.46 ± 3.0483%
qwen2 3B Q4_K_M1.79 GiB3.09 BCPU64tg51236.32 ± 3.5990%
qwen2 3B Q4_0_8_81.69 GiB3.09 BCPU64pp512271.71 ± 3.53133%
qwen2 3B Q4_0_8_81.69 GiB3.09 BCPU64pp1024279.86 ± 45.63100%
qwen2 3B Q4_0_8_81.69 GiB3.09 BCPU64pp2048320.77 ± 5.00124%
qwen2 3B Q4_0_8_81.69 GiB3.09 BCPU64tg12843.51 ± 0.05111%
qwen2 3B Q4_0_8_81.69 GiB3.09 BCPU64tg25643.35 ± 0.09110%
qwen2 3B Q4_0_8_81.69 GiB3.09 BCPU64tg51242.60 ± 0.31105%

Q4_0_8_8 offers a nice bump to prompt processing and a small bump to text generation

Which file should I choose?#

Click here for details

A great write up with charts showing various performances is provided by Artefact2 here

The first thing to figure out is how big a model you can run. To do this, you'll need to figure out how much RAM and/or VRAM you have.

If you want your model running as FAST as possible, you'll want to fit the whole thing on your GPU's VRAM. Aim for a quant with a file size 1-2GB smaller than your GPU's total VRAM.

If you want the absolute maximum quality, add both your system RAM and your GPU's VRAM together, then similarly grab a quant with a file size 1-2GB Smaller than that total.

Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.

If you don't want to think too much, grab one of the K-quants. These are in format 'QX_K_X', like Q5_K_M.

If you want to get more into the weeds, you can check out this extremely useful feature chart:

llama.cpp feature matrix

But basically, if you're aiming for below Q4, and you're running cuBLAS (Nvidia) or rocBLAS (AMD), you should look towards the I-quants. These are in format IQX_X, like IQ3_M. These are newer and offer better performance for their size.

These I-quants can also be used on CPU, but will be slower than their K-quant equivalent, so speed vs performance is a tradeoff you'll have to decide.

Credits#

Thank you kalomaze and Dampf for assistance in creating the imatrix calibration dataset.

Thank you ZeroWw for the inspiration to experiment with embed/output.

Thank you to LM Studio for sponsoring my work.

Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski

Files

29 files · 348 GBWeights 6.35 GB (smallest of 26 GGUF variants). Sizes and sha256 from the signed manifest.
Show all 29 files with their sha256
FileSizesha256
.gitattributes3.53 KB7ad798e866c3d91957444993d9078f0a1256a26e4adea92ede1737e9a02ad542
README.md14.3 KBd16438d4a6a076a44d9571ef237b4aba2cbb6884791a4379bafaeb27bd55060e
baidu_ERNIE-4.5-21B-A3B-PT-IQ2_M.gguf7.16 GB5df377e679a1e35748f57b267a4fd0528c69440c3659a1cbeca2516e83408241
baidu_ERNIE-4.5-21B-A3B-PT-IQ2_S.gguf6.37 GBffc41780602c494acd580a48981b9c4328f970d2fd8bbd8f54377811159c315b
baidu_ERNIE-4.5-21B-A3B-PT-IQ2_XS.gguf6.35 GB69e307c57d3d3ee879477ec5c1c120e3be11aabdf753aa9ae565a4d9e9d9f01a
baidu_ERNIE-4.5-21B-A3B-PT-IQ3_M.gguf10.3 GBf4c58b8c606bf3c3aa0f5b24c79b4017b3adff8305de5b9e02d3ae365f430b7b
baidu_ERNIE-4.5-21B-A3B-PT-IQ3_XS.gguf9.35 GB40990150cd70b8932cda81b08eaf417daf5b6df59e94f0c9a441b923b7e29b6b
baidu_ERNIE-4.5-21B-A3B-PT-IQ3_XXS.gguf8.99 GBd16c689bb9acd9fb49cb032530dc2793448c1389986a1c7e35c08d71cdb5de36
baidu_ERNIE-4.5-21B-A3B-PT-IQ4_NL.gguf12.6 GB1f0e523fd319aa277bb458ce6439d311c1c08a43450f88a6ec99021eaed5cab9
baidu_ERNIE-4.5-21B-A3B-PT-IQ4_XS.gguf12.0 GB85b364eaf84cd1b77f6c7452e6a673740d4024bfafab948b3f297e7dbd9e6cc8
baidu_ERNIE-4.5-21B-A3B-PT-Q2_K.gguf8.09 GBa40ceb8afdd27d5ec54d88638facb90fd8de86cf17a800e6d3c097f9d3ba27f4
baidu_ERNIE-4.5-21B-A3B-PT-Q2_K_L.gguf8.16 GB32342fdc17726cbee990405950cc80d90498ae94942e4468ce784563ecddf92f
baidu_ERNIE-4.5-21B-A3B-PT-Q3_K_L.gguf10.7 GB3dc1caf2eeb531b2e28e4e2eb05316d4556983dc23b78d2022d86819eef2d52b
baidu_ERNIE-4.5-21B-A3B-PT-Q3_K_M.gguf10.3 GBd08e27abe05b3b4aff9073cd21dcd4c88f84d3c9facfb1cf0aeeac3c668debd2
baidu_ERNIE-4.5-21B-A3B-PT-Q3_K_S.gguf9.85 GB8bfc9e88e66b9a440b591f7c4c9b6dd1ddd57e702b6afd032b86f724515db664
baidu_ERNIE-4.5-21B-A3B-PT-Q3_K_XL.gguf10.7 GB97ba6d43934653e8bf48c238cb312566da407528f68e1517377bfe4521406b8f
baidu_ERNIE-4.5-21B-A3B-PT-Q4_0.gguf12.8 GB9fe18a8b442b518c6131221fe1a6b357265d45e0475377eedf3c38a7ddf82a91
baidu_ERNIE-4.5-21B-A3B-PT-Q4_1.gguf13.9 GB57a74a6971738d6ee421175aff59ee0694dc36d943c4fc0148981bb473a72ce4
baidu_ERNIE-4.5-21B-A3B-PT-Q4_K_L.gguf13.6 GBc273a35466595a9313740ad1d45685a3926982b4f1a8cff72fa0720011486b84
baidu_ERNIE-4.5-21B-A3B-PT-Q4_K_M.gguf13.5 GB307a5147099074f4d80195b3551c989c1f1f17a72948637baaa6ceb677b7b115
baidu_ERNIE-4.5-21B-A3B-PT-Q4_K_S.gguf13.0 GBbf79234dd2fc6b7ca8735f7033a9a6033832fcee1b77a5e4289ea0ab1b98a9fc
baidu_ERNIE-4.5-21B-A3B-PT-Q5_K_L.gguf15.8 GB96c1a43968cc399cdc97414377ed70dab58fc758d913c1d6dcdad81a6fd3c0bd
baidu_ERNIE-4.5-21B-A3B-PT-Q5_K_M.gguf15.8 GBda421a4a295d84bb773e240592dd25949ba98d9a5ce33d037e6d80ee9fd0c623
baidu_ERNIE-4.5-21B-A3B-PT-Q5_K_S.gguf15.2 GBc0e2f85caaaf429c25fdef064b658f7d742d4f33e9c8584de12e34c1a8d5c154
baidu_ERNIE-4.5-21B-A3B-PT-Q6_K.gguf18.1 GB109e41638407bcee93900753a92e8dfcd6609d0ed3155611ed5d232461b231ca
baidu_ERNIE-4.5-21B-A3B-PT-Q6_K_L.gguf18.1 GBb6f87ea87336f26699cd9f9793a10d1da7dc2ad7617feb01d1c42b12128f89c5
baidu_ERNIE-4.5-21B-A3B-PT-Q8_0.gguf23.2 GBf56187000a1796fb6723111ba77200949ed8ced376fb1ad90b26523dd2b912ad
baidu_ERNIE-4.5-21B-A3B-PT-bf16.gguf43.7 GBf687d717f38f88ffbc6a052e3cfe4597cb65e1749737a6c09389c2c77cf2fe7c
baidu_ERNIE-4.5-21B-A3B-PT.imatrix48.4 MBf667d712bb48b43adfcdfd0d4fc86124f1c8fa268c5b3fa965f9463dfe835e37
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
d311a6bc54 pinned now2026-11-15 04:55 UTC29 files · 348 GB

Use it

$ fw get bartowski/baidu_ERNIE-4.5-21B-A3B-PT-GGUF
# manifest sha256 9835a7bd7424… · 348 GB · 29 files
$ fw verify ./baidu_ERNIE-4.5-21B-A3B-PT-GGUF bartowski/baidu_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/bartowski/baidu_ERNIE-4.5-21B-A3B-PT-GGUF.json --dir ./baidu_ERNIE-4.5-21B-A3B-PT-GGUF $ python3 fw.py verify ./baidu_ERNIE-4.5-21B-A3B-PT-GGUF ./bartowski__baidu_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 bartowski/baidu_ERNIE-4.5-21B-A3B-PT-GGUF --revision d311a6bc54a7979dbb4d844683bbbc72f905db04 --local-dir ./baidu_ERNIE-4.5-21B-A3B-PT-GGUF
llama.cppDownload one GGUF variant (baidu_ERNIE-4.5-21B-A3B-PT-IQ2_XS, 6.35 GB), then serve it.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download bartowski/baidu_ERNIE-4.5-21B-A3B-PT-GGUF --include "baidu_ERNIE-4.5-21B-A3B-PT-IQ2_XS*" --local-dir ./baidu_ERNIE-4.5-21B-A3B-PT-GGUF $ llama-server -m ./baidu_ERNIE-4.5-21B-A3B-PT-GGUF/baidu_ERNIE-4.5-21B-A3B-PT-IQ2_XS.gguf
OllamaMake an Ollama model from the downloaded file.
$ printf 'FROM ./baidu_ERNIE-4.5-21B-A3B-PT-GGUF/baidu_ERNIE-4.5-21B-A3B-PT-IQ2_XS.gguf\n' > Modelfile $ ollama create baidu-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
Inherited from the base model baidu/ERNIE-4.5-21B-A3B-PT: the strictest license along the lineage applies. 2026-11-15
Text in
README.md
Text sha256
d16438d4a6a076a44d9571ef237b4aba2cbb6884791a4379bafaeb27bd55060e
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: bartowski <huggingface.co/bartowski>Newsgroups: alt.freeweights.textSubject: baidu_ERNIE-4.5-21B-A3B-PT-GGUFDate: 2026-11-15Commit: d311a6bSigned: 2DC28CC7B26A283B ✓
Upstream
bartowski/baidu_ERNIE-4.5-21B-A3B-PT-GGUF
Pinned commit
d311a6bc54a7979dbb4d844683bbbc72f905db04
Manifest
baidu_ERNIE-4.5-21B-A3B-PT-GGUF.json · .minisig
Manifest sha256
9835a7bd74245fe9e0442ebd41bebdbdd1425511c89be2e71b6743bbb9092e46
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 04:55 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/bartowski/baidu_ERNIE-4.5-21B-A3B-PT-GGUF.json $ curl -O https://freeweights.allternit.com/manifests/bartowski/baidu_ERNIE-4.5-21B-A3B-PT-GGUF.json.minisig $ minisign -Vm baidu_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 bartowski/baidu_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. baidu_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