alt.freeweights.image / ERNIE-Image
From: baidu <huggingface.co/baidu>Newsgroups: alt.freeweights.imageSubject:

ERNIE-Image

Date: 2026-11-15Commit: 5346b31Signed: 2DC28CC7B26A283B ✓

Text to image model with 8B parameters. Safetensors weights, 31.6 GB in all. Published by baidu under Apache-2.0.

8B params31.6GBERNIE-Imagesafetensorspermissive
FactsParams8BSize31.6 GBFormatssafetensorsTasktext to imageLicenseApache-2.0From sourcepermissive
$ fw get baidu/ERNIE-Image
# manifest sha256 8788c718443b… · 31.6 GB · 24 files
$ fw verify ./ERNIE-Image baidu/ERNIE-Image
From sourceHosted (signed)baidu/ERNIE-ImageLast check: 2026-11-15 03:33 UTC

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

Works with

Overview

Size
31.6 GB
Weights
31.6 GB (safetensors)
Parameters
8B
Formats
safetensors
Task
text to image
License
Apache-2.0 (permissive)
Files
24, each with a sha256
Publisher
baidu
Added
2026-11-15
Section
alt.freeweights.image
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 03:33 UTCpassed

Model card

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

ERNIE-Image#

🤗 ERNIE-Image &nbsp;|&nbsp; 🤗 ERNIE-Image-Turbo &nbsp;|&nbsp; 🤖 ERNIE-Image &nbsp;|&nbsp; 🤖 ERNIE-Image-Turbo &nbsp;

🖥️ Huggingface Demo1 &nbsp;|&nbsp; 🖥️ Huggingface Demo2(ZeroGPU) &nbsp;|&nbsp; 🖥️ AI Studio Demo &nbsp;&nbsp;

Github &nbsp;|&nbsp; 📖 Blog &nbsp;|&nbsp; 🖼️ Art Gallery

💬 WeChat(微信) &nbsp;|&nbsp; 🫨 Discord &nbsp;|&nbsp; 🏷️ X

ERNIE-Image is an open text-to-image generation model developed by the ERNIE-Image team at Baidu. It is built on a single-stream Diffusion Transformer (DiT) and paired with a lightweight Prompt Enhancer that expands brief user inputs into richer structured descriptions. With only 8B DiT parameters, it reaches state-of-the-art performance among open-weight text-to-image models. The model is designed not only for strong visual quality, but also for controllability in practical generation scenarios where accurate content realization matters as much as aesthetics. In particular, ERNIE-Image performs strongly on complex instruction following, text rendering, and structured image generation, making it well suited for commercial posters, comics, multi-panel layouts, and other content creation tasks that require both visual quality and precise control. It also supports a broad range of visual styles, including realistic photography, design-oriented imagery, and more stylized aesthetic outputs.

Image: ERNIE-Image Mosaic

Highlights:

  • Compact but strong: Despite its compact 8B scale, ERNIE-Image remains highly competitive with substantially larger open-weight models across a range of benchmarks.
  • Text rendering: ERNIE-Image performs particularly well on dense, long-form, and layout-sensitive text, making it a strong choice for posters, infographics, UI-like images, and other text-heavy visual content.
  • Instruction following: The model is able to follow complex prompts involving multiple objects, detailed relationships, and knowledge-intensive descriptions with strong reliability.
  • Structured generation: ERNIE-Image is especially effective for structured visual tasks such as posters, comics, storyboards, and multi-panel compositions, where layout and organization are critical.
  • Style coverage: In addition to clean and readable design-oriented outputs, the model also supports realistic photography and distinctive stylized aesthetics, including softer and more cinematic visual tones.
  • Practical deployment: Thanks to its compact size, ERNIE-Image can run on consumer GPUs with 24G VRAM, which lowers the barrier for research, downstream use, and model adaptation.

Released Versions#

ERNIE-Image: Our SFT model, delivers stronger general-purpose capability and instruction fidelity in typically 50 inference steps.

ERNIE-Image-Turbo: Our Turbo model, optimized by DMD and RL, achieves faster speed and higher aesthetics in only 8 inference steps.

Benchmark#

GENEval#
ModelSingle ObjectTwo ObjectCountingColorsPositionAttribute BindingOverall
ERNIE-Image (w/o PE)1.00000.95960.77810.92820.85500.79250.8856
ERNIE-Image (w/ PE)0.99060.95960.81870.88300.86250.72250.8728
Qwen-Image0.99000.92000.89000.88000.76000.77000.8683
ERNIE-Image-Turbo (w/o PE)1.00000.96210.79060.92020.79750.73000.8667
ERNIE-Image-Turbo (w/ PE)0.99380.94190.83750.83510.79500.70250.8510
FLUX.2-klein-9B0.93130.95710.82810.91490.71750.74000.8481
Z-Image1.00000.94000.78000.93000.62000.77000.8400
Z-Image-Turbo1.00000.95000.77000.89000.65000.68000.8233
OneIG-EN#
ModelAlignmentTextReasoningStyleDiversityOverall
Nano Banana 2.00.88800.94400.33400.48100.24500.5780
Seedream 4.50.89100.99800.35000.43400.20700.5760
ERNIE-Image (w/ PE)0.86780.97880.35660.43090.24110.5750
Seedream 4.00.89200.98300.34700.45300.19100.5730
ERNIE-Image-Turbo (w/ PE)0.86760.96660.35370.41910.22120.5656
ERNIE-Image (w/o PE)0.89090.96680.29500.44710.16870.5537
Z-Image0.88100.98700.28000.38700.19400.5460
Qwen-Image0.88200.89100.30600.41800.19700.5390
ERNIE-Image-Turbo (w/o PE)0.87950.94880.29130.42770.12320.5341
FLUX.2-klein-9B0.88710.86570.31170.44170.15600.5324
Qwen-Image-25120.87600.99000.29200.33800.15100.5300
GLM-Image0.80500.96900.29800.35300.21300.5280
Z-Image-Turbo0.84000.99400.29800.36800.13900.5280
OneIG-ZH#
ModelAlignmentTextReasoningStyleDiversityOverall
Nano Banana 2.00.84300.98300.31100.46100.23600.5670
ERNIE-Image (w/ PE)0.82990.95390.30560.43420.24780.5543
Seedream 4.00.83600.98600.30400.44300.20000.5540
Seedream 4.50.83200.98600.30000.42600.21300.5510
Qwen-Image0.82500.96300.26700.40500.27900.5480
ERNIE-Image-Turbo (w/ PE)0.82580.93860.30430.42080.22810.5435
Z-Image0.79300.98800.26600.38600.24300.5350
ERNIE-Image (w/o PE)0.84210.89790.26560.42120.17720.5208
Qwen-Image-25120.82300.98300.27200.34200.15700.5150
GLM-Image0.73800.97600.28400.33500.22100.5110
Z-Image-Turbo0.78200.98200.27600.36100.13400.5070
ERNIE-Image-Turbo (w/o PE)0.83260.90860.25800.40020.13160.5062
FLUX.2-klein-9B0.82010.49200.25990.41660.16250.4302
LongTextBench#
ModelLongText-Bench-ENLongText-Bench-ZHAvg
Seedream 4.50.98900.98730.9882
ERNIE-Image (w/ PE)0.98040.96610.9733
GLM-Image0.95240.97880.9656
ERNIE-Image-Turbo (w/ PE)0.96750.96360.9655
Nano Banana 2.00.98080.94910.9650
ERNIE-Image-Turbo (w/o PE)0.96020.96750.9639
ERNIE-Image (w/o PE)0.96790.95940.9636
Qwen-Image-25120.95610.96470.9604
Qwen-Image0.94300.94600.9445
Z-Image0.93500.93600.9355
Seedream 4.00.92140.92610.9238
Z-Image-Turbo0.91700.92600.9215
FLUX.2-klein-9B0.86420.21830.5413

Quick Start#

  • Resolution:
    • 1024x1024
    • 848x1264
    • 1264x848
    • 768x1376
    • 896x1200
    • 1376x768
    • 1200x896
  • Guidance scale: 4.0
  • Inference steps: 50
Diffusers#

pip install git+https://github.com/huggingface/diffusers

import torch
from diffusers import ErnieImagePipeline

pipe = ErnieImagePipeline.from_pretrained(
    "Baidu/ERNIE-Image",
    torch_dtype=torch.bfloat16,
).to("cuda")

image = pipe(
    prompt="This is a photograph depicting an urban street scene. Shot at eye level, it shows a covered pedestrian or commercial street. Slightly below the center of the frame, a cyclist rides away from the camera toward the background, appearing as a dark silhouette against backlighting with indistinct details. The ground is paved with regular square tiles, bisected by a prominent tactile paving strip running through the scene, whose raised textures are clearly visible under the light. Light streams in diagonally from the right side of the frame, creating a strong backlight effect with a distinct Tyndall effect—visible light beams illuminating dust or vapor in the air and casting long shadows across the street. Several pedestrians appear on the left side and in the distance, some with their backs to the camera and others walking sideways, all rendered as silhouettes or semi-silhouettes. The overall color palette is warm, dominated by golden yellows and dark browns, evoking the atmosphere of dusk or early morning.",
    height=1264,
    width=848,
    num_inference_steps=50,
    guidance_scale=4.0,
    use_pe=True # use prompt enhancer
).images[0]

image.save("output.png")
SGLang#

Install the latest version of sglang:

git clone https://github.com/sgl-project/sglang.git

Start the server:

sglang serve --model-path baidu/ERNIE-Image

Send a generation request:

curl -X POST http://localhost:30000/v1/images/generations \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "This is a photograph depicting an urban street scene. Shot at eye level, it shows a covered pedestrian or commercial street. Slightly below the center of the frame, a cyclist rides away from the camera toward the background, appearing as a dark silhouette against backlighting with indistinct details. The ground is paved with regular square tiles, bisected by a prominent tactile paving strip running through the scene, whose raised textures are clearly visible under the light. Light streams in diagonally from the right side of the frame, creating a strong backlight effect with a distinct Tyndall effect—visible light beams illuminating dust or vapor in the air and casting long shadows across the street. Several pedestrians appear on the left side and in the distance, some with their backs to the camera and others walking sideways, all rendered as silhouettes or semi-silhouettes. The overall color palette is warm, dominated by golden yellows and dark browns, evoking the atmosphere of dusk or early morning.",
    "height": 1264,
    "width": 848,
    "num_inference_steps": 50,
    "guidance_scale": 4.0,
    "use_pe": true

  }' \
  --output output.png

Files

24 files · 31.6 GBWeights 31.6 GB (safetensors). Sizes and sha256 from the signed manifest.
Show all 24 files with their sha256
FileSizesha256
.gitattributes1.70 KB7f4a211849254e6ac58e1fbb60a6a8621776ce29b5943db0de0e78858e3fb6e4
LICENSE11.4 KB5d7deeaff0d6f92ef5c74658a46e4750ccbcd0602efcdfd24cd7ec6ae7c822f9
README.md11.2 KB822c8b398b8cecb83a5816d2de3c803a48eb2d836e0748cefe50fe95d3007ea2
model_index.json547 B2a483750fcc40efff027e9bd77f4ea8fc56b18beb65e486f8f0c6d214bedd409
pe/chat_template.jinja615 B0c859484eecf01db103acd02c332610163ee425cd46866d6cb126ee1bee974ea
pe/config.json901 Bb6be6b7104d8d5bd8180401b8ce8585f5a03f8bdb346dc89fdfc784beba83287
pe/generation_config.json153 B2a7e566bdc7d1d618242e565d1aedee7befc106b3067ac6ed924487fce1696aa
pe/model.safetensors7.66 GBabd26e2f4b5a0cc3922d3523649706f1d398050a766dc284161724d9ee47f808
pe/tokenizer.json17.1 MB286acad9b0e27fce778ac429763536accf618ccb6ed72963b6f94685e531c5c7
pe/tokenizer_config.json21.1 KB95a353ec6c5c22537125c6a8b8afae0775c89411d84321329d5234c90d8d47ee
pe_tokenizer/chat_template.jinja615 B0c859484eecf01db103acd02c332610163ee425cd46866d6cb126ee1bee974ea
pe_tokenizer/tokenizer.json17.1 MB286acad9b0e27fce778ac429763536accf618ccb6ed72963b6f94685e531c5c7
pe_tokenizer/tokenizer_config.json21.1 KB95a353ec6c5c22537125c6a8b8afae0775c89411d84321329d5234c90d8d47ee
scheduler/scheduler_config.json482 B96031c39fcd4651aeaa07fa6b64262b9332967199e0b89c3a4694db127756f34
text_encoder/config.json1.68 KB447db17aa66bcd837a59394cc31b2675feb2acb3fd2742f30990f7036f7f2bef
text_encoder/model.safetensors7.70 GBc2188c5b3d759ac35e3770056153fdcb348276bd1d10f0443a60a2bdcbb6ff7b
tokenizer/tokenizer.json17.1 MB577575622324b2e099e2648be26bdeb5e5815ffe66d7004e9e3ddbf421db6bf1
tokenizer/tokenizer_config.json379 Bdfd5e67b652177f3e697dd67b0792bef7779c66522f47f502af2ce1715c5ec59
transformer/config.json383 Bcd3542dbfb6259a7356380aa93ed61f793ef0f13684a36d75046eb638251652f
transformer/diffusion_pytorch_model-00001-of-00002.safetensors9.99 GB7c0fa2e62388bafbd3d444906317640f6a9df4f484b49ab71e86c455498d00d3
transformer/diffusion_pytorch_model-00002-of-00002.safetensors6.07 GBe6074cea278d453b35444940904ef9fe5f0475750f3bdd68c377cc4bec2f9b3f
transformer/diffusion_pytorch_model.safetensors.index.json38.9 KBdadf2d3ebc81b7fd2d6049754b3f3938d737c4052fae2d7dbc54d29c2e6be02f
vae/config.json831 Bcc913e305a1f714ac1c076e91646fe66c8f1848d01a678a8ebed5fbd3be711d3
vae/diffusion_pytorch_model.safetensors168 MBca70d2202afe6415bdbcb8793ba8cd99fd159cfe6192381504d6c4d3036e0f04
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
5346b31d68 pinned now2026-11-15 03:33 UTC24 files · 31.6 GB

Use it

$ fw get baidu/ERNIE-Image
# manifest sha256 8788c718443b… · 31.6 GB · 24 files
$ fw verify ./ERNIE-Image baidu/ERNIE-Image
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/baidu/ERNIE-Image.json --dir ./ERNIE-Image $ python3 fw.py verify ./ERNIE-Image ./baidu__ERNIE-Image.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download baidu/ERNIE-Image --revision 5346b31d68c9c23758ba56ef8be5e9dc174c7f99 --local-dir ./ERNIE-Image
diffusersRun the pipeline with diffusers.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from diffusers import DiffusionPipeline pipe = DiffusionPipeline.from_pretrained("baidu/ERNIE-Image", revision="5346b31d68c9c23758ba56ef8be5e9dc174c7f99")
Packaged for ComfyUI. Most image, video and music models run in ComfyUI . Check the publisher's page for the workflow. Freeweights does not host it.

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.imageSubject: ERNIE-ImageDate: 2026-11-15Commit: 5346b31Signed: 2DC28CC7B26A283B ✓
Upstream
baidu/ERNIE-Image
Pinned commit
5346b31d68c9c23758ba56ef8be5e9dc174c7f99
Manifest
ERNIE-Image.json · .minisig
Manifest sha256
8788c718443b78cc39ea958364f5691c5e50c62b356ee0743290c508fe1c8346
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:33 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

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

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

Fine-tunes
1
Quantizations
1
Fine-tunes 1
Quantizations 1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download baidu/ERNIE-Image
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. ERNIE-Image.json. Provenance. Takedown history: none.

Variants

1 quantized or adapter build of ERNIE-Image. Each has its own license check and page.

From: Comfy-Org <huggingface.co/Comfy-Org>Subject: Boogu-Image
From: Comfy-Org <huggingface.co/Comfy-Org>Subject: Chroma1-HD
From: lodestones <huggingface.co/lodestones>Subject: Chroma1-HD
From: Comfy-Org <huggingface.co/Comfy-Org>Subject: Chroma1-Radiance
From: Comfy-Org <huggingface.co/Comfy-Org>Subject: ERNIE-Image
From: unsloth <huggingface.co/unsloth>Subject: ERNIE-Image-GGUF