alt.freeweights.text / ERNIE-4.5-0.3B-PT
From: baidu <huggingface.co/baidu>Newsgroups: alt.freeweights.textSubject:

ERNIE-4.5-0.3B-PT

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

Text generation model with 361M parameters. Safetensors weights, 735 MB in all. Published by baidu under Apache-2.0.

361M params735MBERNIE-4.5-0.3B-PTsafetensorspermissive
FactsParams361MSize735 MBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get baidu/ERNIE-4.5-0.3B-PT
# manifest sha256 019b2aa47cc7… · 735 MB · 12 files
$ fw verify ./ERNIE-4.5-0.3B-PT baidu/ERNIE-4.5-0.3B-PT
From sourceHosted (signed)baidu/ERNIE-4.5-0.3B-PTLast check: 2026-11-15 02:44 UTC

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

Runs withAIBrixBentoMLCTranslate2ExLlamaV2ExLlamaV3exofastllmFlashInfergpu-unlockKTransformersLitServeLMCacheLMDeployLocalAImistral.rsMLC LLMMooncakeSGLangText Generation WebUItinygradTransformersTriton Inference ServervLLMXinferenceFine-tune withAccelerateAlignment HandbookAxolotlColossal-AIDeepSpeedEasyR1FlashAttentionH2O LLM StudioJAXKerasLiger KernelLitGPTLLaMA-FactoryMegatron-LMms-swiftnanotronOLMo-coreOpenRLHFOumiPEFTPyTorch Lightningsd-scriptsSimpleTunerTorchTitantorchtuneTransformer EngineTRLUnslothverlConvert withAQLMAutoRoundCore ML ToolsExecuTorchGPTQModelLLM CompressormergekitNeural CompressorOliveONNXOptimum QuantoOptimumsafetensorsTensorRT Model OptimizertorchaoEvaluate withAutoevalsDeepEvalEvaluateHELMLightEvallm-evaluation-harnessOpenCompassOpikRagassimple-evalsSWE-benchTruLensWeaveScan withAgentDojoAI Fairness 360DeepTeamDetoxifyFairlearngarakGiskardGuardrailsMCP ScannerModelScanNeMo GuardrailspicklescanpromptfooWorks withAgent Development KitAG2Google AI Edge GalleryAiderany-llmAnythingLLMBAMLbrowser-useCAMELHugging Face Chat UIChatboxCherry StudioClineCodex CLICogneeCrewAIDeerFlowDSPyEnchantedGemini CLIGitHub MCP ServergooseGPT ResearcherGradioGraphitiGuidanceHollamaInstructorKilo CodeLangflowLangGraphLiteLLMLlamaIndexLLMLocalAGILoLLMs WebUIMCP Python SDKMem0MetaGPTNextChatOllama JavaScriptOllama PythonOpenAI Agents SDKopencodeOpenHandsotermOutlinesPage AssistPlaywright MCPPortkey AI GatewayPrivateGPTQwen CodeRWKV RunnerSemantic KernelsmolagentsStrands AgentsVaneXGrammar

Overview

Size
735 MB
Weights
722 MB (safetensors)
Parameters
361M
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
12, each with a sha256
Publisher
baidu
Added
2026-11-15
Section
alt.freeweights.text
Lineage

Original release from the publisher.

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 02:44 UTCpassed

Model card

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

Chat Hugging Face Github Blog Discord X

License

ERNIE-4.5-0.3B#

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-0.3B is a text dense Post-trained model. The following are the model configuration details:

KeyValue
ModalityText
Training StagePosttraining
Params0.36B
Layers18
Heads(Q/KV)16 / 2
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-0.3B-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 github library. Python-only build.

vllm serve baidu/ERNIE-4.5-0.3B-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

12 files · 735 MBWeights 722 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 12 files with their sha256
FileSizesha256
.gitattributes1.57 KB34448b82c17d60fec9b65b1f093c115ddbaadc04beb1b0140b6bfed2e012a930
LICENSE11.4 KB5d7deeaff0d6f92ef5c74658a46e4750ccbcd0602efcdfd24cd7ec6ae7c822f9
README.md6.86 KB802c44b7e57d9a8322644b561aa0cc40965f129d84bea17c1b9421eb7f493121
added_tokens.json25.2 KB08ab98258652553a53455b164c258488ce840322f0949877676d962a1d958cad
chat_template.jinja754 B471fb571976770318fe6f27749e37940be8d29c0a7770558140f141f5906f2a2
config.json633 B5918624eab9c56ba3552672a97481bd2743abf2567611caca758df1939935a56
generation_config.json226 B7ad1494c9fb6d26f0fdf1be2a542fe6e1f776597037661fd360daded217308c1
model.safetensors722 MB2fa450d7550b5600b030f09b9a954ffad3ef31476e44fb87e2154e9ac23b51d3
special_tokens_map.json20.2 KBd96a4630d4a8bbddabc3e1ad272a0e6a42f37a515239c8d25626d09154d7603b
tokenizer.json11.2 MB4e5b4d49475d27c7ef7a61eea2d675f9cc013e91e3ddb5e06d964f5027c1814a
tokenizer.model1.61 MB34ef7db83df785924fb83d7b887b6e822a031c56e15cff40aaf9b982988180df
tokenizer_config.json203 KBe9bc80502f0e997cc36b4d1f2bd025a3ca549a108736f7a1cef014229db0a82d
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
b565cf6cae pinned now2026-11-15 02:44 UTC12 files · 735 MB

Use it

$ fw get baidu/ERNIE-4.5-0.3B-PT
# manifest sha256 019b2aa47cc7… · 735 MB · 12 files
$ fw verify ./ERNIE-4.5-0.3B-PT baidu/ERNIE-4.5-0.3B-PT
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/baidu/ERNIE-4.5-0.3B-PT.json --dir ./ERNIE-4.5-0.3B-PT $ python3 fw.py verify ./ERNIE-4.5-0.3B-PT ./baidu__ERNIE-4.5-0.3B-PT.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download baidu/ERNIE-4.5-0.3B-PT --revision b565cf6caebdb7a1eadf00100857b1ed5e044f12 --local-dir ./ERNIE-4.5-0.3B-PT
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("baidu/ERNIE-4.5-0.3B-PT", revision="b565cf6caebdb7a1eadf00100857b1ed5e044f12") model = AutoModelForCausalLM.from_pretrained("baidu/ERNIE-4.5-0.3B-PT", revision="b565cf6caebdb7a1eadf00100857b1ed5e044f12", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve baidu/ERNIE-4.5-0.3B-PT --revision b565cf6caebdb7a1eadf00100857b1ed5e044f12

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
LICENSE
Text sha256
5d7deeaff0d6f92ef5c74658a46e4750ccbcd0602efcdfd24cd7ec6ae7c822f9
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: baidu <huggingface.co/baidu>Newsgroups: alt.freeweights.textSubject: ERNIE-4.5-0.3B-PTDate: 2026-11-15Commit: b565cf6Signed: 2DC28CC7B26A283B ✓
Upstream
baidu/ERNIE-4.5-0.3B-PT
Pinned commit
b565cf6caebdb7a1eadf00100857b1ed5e044f12
Manifest
ERNIE-4.5-0.3B-PT.json · .minisig
Manifest sha256
019b2aa47cc7caabe1569703194795c9a543b847fb1baee316fa431badcc564d
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:44 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/baidu/ERNIE-4.5-0.3B-PT.json $ curl -O https://freeweights.allternit.com/manifests/baidu/ERNIE-4.5-0.3B-PT.json.minisig $ minisign -Vm ERNIE-4.5-0.3B-PT.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

4 models in the catalog name this one as their parent.

Quantizations
4
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download baidu/ERNIE-4.5-0.3B-PT
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-0.3B-PT.json. Provenance. Takedown history: none.

Variants

4 quantized or adapter builds of ERNIE-4.5-0.3B-PT. Each has its own license check and page.

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