Welcome FLUX.3 Image Klein in Diffusers
FLUX.3 Image Klein from Black Forest Labs is supported in Diffusers from launch. It is a single model for text-to-image, multi-reference image-to-image, and bounding-box layout control, where regions are written as JSON with normalized 0–1000 boxes to place new content or move content from a reference image. The distilled checkpoint renders 1024×1024 in about 1.9 s on an H100 in 16 steps without CFG. Reference images roughly double the time because each adds 4,096 tokens to the transformer sequence. The post also covers FP8 and NVFP4 single-file variants that cut peak memory to about 15–16 GiB, DreamBooth LoRA training scripts, the VAE tokenization (one token per 16×16 patch), and Modular Diffusers pipeline usage.
Related posts
- Diffusers welcomes FLUX-2
Hugging Face hardMasterFLUX.2 from Black Forest Labs is a new image generation and editing model, not a drop-in replacement for Flux.1. It uses a single Mistral Small 3.1 text encoder that stacks intermediate-layer outputs, bias-free DiT layers, shared AdaLayerNorm-Zero modulation, and fully parallel single-stream blocks with SwiGLU MLPs, shifting to 8 double-stream and 48 single-stream blocks in the 32B model. Running it unmodified needs over 80GB of VRAM. Diffusers code covers CPU offload (~62GB), Flash Attention 3, NF4 4-bit quantization (~20GB), a remote text encoder (18GB), group offloading (8GB VRAM), multi-image references, structured JSON prompting and LoRA fine-tuning.
- Diffusers welcomes Stable Diffusion 3
Hugging Face mediumAdeptStable Diffusion 3 Medium (2B parameters) is now usable through Diffusers. Its architecture pairs three text encoders (two CLIP models and T5-XXL) with a Multimodal Diffusion Transformer that runs joint attention over text and image-patch sequences, and it is trained with rectified flow matching, served by a new FlowMatchEulerDiscreteScheduler (shift=3.0 recommended). Benchmarks on an A100 show the memory tradeoffs: CPU offloading cuts VRAM from 18.8GB to 12GB at roughly 6.8x latency, dropping T5 brings it to 4.3GB, and 8-bit T5 reaches 10.6GB with almost no slowdown. torch.compile delivers about a 4x speedup (0.585s), and a DreamBooth LoRA fine-tuning script is included.
- Running IF with 🧨 diffusers on a Free Tier Google Colab
Hugging Face mediumAdeptDeepFloyd's IF, a pixel-space text-to-image model built on a T5-XXL text encoder with over 10B parameters, can run on a free-tier Google Colab (13 GB CPU RAM, 15 GB T4 VRAM) by loading its components one at a time with diffusers. The recipe quantizes T5 to 8-bit with bitsandbytes, loads the UNets in fp16, and passes precomputed prompt embeddings between pipelines. Each component is freed with del, gc.collect and torch.cuda.empty_cache before the next one loads. These steps trade inference speed for memory, so for production the recommendation is a 40GB A100 with all components kept on the GPU. Image variation and inpainting are also covered.
- Introducing Würstchen: Fast Diffusion for Image Generation
Hugging Face mediumAdeptWürstchen is a text-to-image diffusion model whose text-conditional Prior (Stage C) runs in a latent space with 42x spatial compression, far beyond the usual 4-8x. Two decoder stages, a VQGAN (Stage A) and a Diffusion Autoencoder (Stage B), reconstruct images from that latent. The result is faster, lower-memory inference than SDXL and much cheaper training: 9,000 GPU hours for v1 and 24,602 for v2, against 150,000 for Stable Diffusion 1.4. The model is integrated into Diffusers, with example code for AutoPipeline inference, PyTorch 2 SDPA or xFormers attention, CPU offload and torch.compile, where compilation takes up to 2 minutes up front for faster runs afterwards.
- Open Preference Dataset for Text-to-Image Generation by the 🤗 Community
Hugging Face easyNoviceData is Better Together released an Apache 2.0 text-to-image preference dataset of 10K pairs, with over 30K annotations from more than 250 community members collected in under two weeks. Imgsys prompts were deduplicated, filtered for NSFW content with text and image classifiers plus manual review, and rewritten with distilabel across style categories and simple versus complex variants. Images came from FLUX.1-dev and Stable Diffusion 3.5 Large. Annotators found FLUX better for anime, manga and 3D, and SD3.5 better for cinematic and art styles. A LoRA fine-tune of FLUX-dev on the chosen samples improved its weaker art and cinematic outputs.