Module f-modern · Image · 8 min

FLUX, ERNIE,
HiDream.

Compare transformer cores, latent pipelines and pixel-level designs by model and version.

Reading time8 min Audio2 local tracks Prerequisites14 SourceTrack A · Gemini
§ 1

What this lesson covers.

Explore the model components and the corrected architecture cards, then use the two reading levels below to connect the ideas with a worked example.

Local narration and a complete transcript are available in the reading section below. Choose high school or college before listening.

§ 2

The lesson itself.

Interactive lesson · ported from Gemini track Click tabs to navigate · hover cards for details
Image · Architecture

Modern Unified Image Architectures

FLUX · ERNIE-Image · HiDream-O1 — what each model actually unifies

FROM CASCADES TO UNIFIED

A transformer core is not the whole pipeline

Replacing a U-Net with a transformer does not automatically remove the text encoder or image autoencoder. Ask what represents the prompt, where image generation happens, and what converts the result to pixels. Different models make different choices; “unified” is not a universal architecture specification.
FLUX

FLUX.1 retains text encoders and an autoencoder

The official FLUX.1 implementation loads T5 and CLIP conditioning and an image autoencoder alongside its flow-matching transformer. The transformer includes double-stream and single-stream blocks. It models interactions between text and image representations, but those blocks do not replace every other component. Check the named checkpoint and its weight license separately from the inference-code license.
ERNIE-IMAGE

A single-stream DiT plus prompt enhancement

Baidu describes ERNIE-Image as an 8-billion-parameter single-stream diffusion transformer paired with a lightweight Prompt Enhancer. Single-stream describes the transformer organization; it does not establish that the whole pipeline has no additional components. Compare the base and Turbo model cards before reusing sampling settings. Text-rendering benchmark results are evaluations, not guarantees that every diagram label will be correct.
HIDREAM-O1

A documented pixel-level alternative

HiDream-O1-Image’s May 2026 release describes an 8B Pixel-level Unified Transformer without an external VAE or separate text encoder. This is a model-specific design, not a property shared by all image transformers. The project supports generation, editing and subject conditioning, with distinct full and distilled variants. Avoid treating a release-time leaderboard rank as a permanent position.
§ PAPERS

Further reading.

The canonical references for this module. External links open in a new tab.

§ NEXT

What to read next.

Use the pager below to move sequentially through the curriculum, or jump to any module from the course index. Each track has a "Prereq: ↑ foundation" callout so you can backfill anything that wasn't clear.

Follow the idea. Work the numbers.

Source review: 29 October 2026. Historical architectures are identified by release; examples below are teaching calculations, not model benchmarks.

Listen to the reading

Local Kokoro Heart narration · no external speech service. The college track includes the worked calculation.

Read the complete narration transcript

Modern Image. High school reading.

A transformer core is not the whole pipeline. Replacing a U-Net with a transformer does not automatically remove the text encoder or image autoencoder. Ask what represents the prompt, where image generation happens, and what converts the result to pixels. Different models make different choices; “unified” is not a universal architecture specification.

Flux one retains text encoders and an autoencoder. The official Flux one implementation loads T5 and CLIP conditioning and an image autoencoder alongside its flow-matching transformer. The transformer includes double-stream and single-stream blocks. It models interactions between text and image representations, but those blocks do not replace every other component. Check the named checkpoint and its weight license separately from the inference-code license.

A single-stream diffusion transformer plus prompt enhancement. Baidu describes ERNIE-Image as an eight billion parameter single-stream diffusion transformer paired with a lightweight Prompt Enhancer. Single-stream describes the transformer organization; it does not establish that the whole pipeline has no additional components. Compare the base and Turbo model cards before reusing sampling settings. Text-rendering benchmark results are evaluations, not guarantees that every diagram label will be correct.

A documented pixel-level alternative. HiDream-O1-Image’s May 2026 release describes an eight billion parameters Pixel-level Unified Transformer without an external VAE or separate text encoder. This is a model-specific design, not a property shared by all image transformers. The project supports generation, editing and subject conditioning, with distinct full and distilled variants. Avoid treating a release-time leaderboard rank as a permanent position.

Build the intuition. Imagine a studio with a translator, an illustrator and a print shop. Replacing the illustrator does not prove that the translator and print shop disappeared. Trace Flux one as prompt then text representations then transformer operating on image latents then autoencoder decoder then pixels. Contrast that with the pixel-level design described by HiDream. The comparison concerns where work happens, not which picture is automatically better.

Check your understanding. Explain the representation, the model operation, and one conclusion that would still require an experiment. The primary sources and connected experiments are linked below this reading.

High school · build the intuition

Imagine a studio with a translator, an illustrator and a print shop. Replacing the illustrator does not prove that the translator and print shop disappeared. Trace FLUX.1 as prompt → text representations → transformer operating on image latents → autoencoder decoder → pixels. Contrast that with the pixel-level design described by HiDream. The comparison concerns where work happens, not which picture is automatically better.

College · worked example and limits

Consider a teaching-only 64 × 64 latent grid packed into 2 × 2 patches. It produces (64/2) × (64/2) = 1,024 image tokens. Adding 256 text tokens gives 1,280 positions. A dense attention score matrix then has 1,280² = 1,638,400 entries per head. This arithmetic is not a measured FLUX configuration or memory benchmark: head count, precision, intermediate tensors and attention kernels also matter. Tokenization and component boundaries are separate questions.

Check your understanding

Which part is a representation, which part is a model operation, and which conclusion would still require an experiment? Explain one limit of the example before comparing it with a real system.

Primary sources

Explore transformer layers · Practice checking evidence