GeezerVison is showing github.com — Releases · huggingface/diffusers
Releases · huggingface/diffusers
Diffusers 0.43.0: MiniMax-H3-Image, Pika H3 Flex, P-H3-Image, Kandinsky S2V, and PAN 2
Tip This release adds five modular model integrations for image generation, editing, video with audio, speech-driven animation, and world simulation. It also improves attention backends, tensor parallelism, LoRA handling, and checkpoint saving.
MiniMax-H3-Image
MiniMax-H3-Image supports text-to-image generation and editing with one or more reference images. The integration includes a dedicated image transformer and autoencoder, with a fixed six-step sampling schedule and distilled guidance. A separate prompt-enhancement workflow expands short requests and suggests an aspect ratio.
Load it through ModularPipeline.from_pretrained(...), then call load_components(...). The MiniMax-H3-Image documentation covers reference-image prompts, output sizes, prompt enhancement, and component offloading.
Pika H3 Flex
Pika H3 Flex builds on MiniMax-H3 to generate video and synchronized stereo audio in six steps. It supports text prompts, first and/or last frames, and multimodal references through separate modular workflows. The integration includes LoRA adapter loading and a guide to sharing already-loaded MiniMax-H3 components between the two pipelines.
See the Pika H3 Flex documentation for workflow selection, adapter loading, and component reuse.
P-H3-Image
P-H3-Image from Pruna AI brings text-to-image generation and instruction-based editing with up to eight input images. Its modular pipeline includes a prompt upsampler that turns requests into detailed generation or editing prompts, an image autoencoder, and a text connector. The checkpoint uses eight sampling steps with distilled guidance.
See the P-H3-Image documentation for image sizing, reference-image editing, prompt upsampling, and offloading. Thanks to @nifleisch for the integration in #15171.
Kandinsky S2V 1.0
Kandinsky S2V 1.0 animates a person from a reference image and a speech recording, including full-body movement aligned with the speech. It generates video in five-second chunks, carrying FramePack memory between chunks. The supplied speech provides the soundtrack; the model generates the video.
The modular integration supports Lite and Pro checkpoints, including distilled variants that use PiflowScheduler with a default of 16 steps. See the Kandinsky S2V documentation for audio preparation, checkpoint settings, and memory requirements. Thanks to @nvsm for the integration in #15164.
PAN 2
PAN 2 simulates scenes from prompts describing actions and camera movements over time. This release integrates its 29B generative simulator through text-to-video and image-to-video modular workflows. Context parallelism and FirstBlockCache, MagCache, and TaylorSeer caching are supported. Prompt and video safety checks are enabled by default and require the separate pan2-guardrail package.
See the PAN 2 documentation for loading, guardrails, and distributed inference. The integration covers the simulator; the separate reasoning model that writes its prompts is linked from the model documentation. Thanks to @wu-qing-157 for the integration in #15202.
Other highlights
- MiniMax-H3 tensor parallelism: shard the transformer across devices, including its large modulation projections. Replicated parameters also retain their intended dtype during tensor-parallel loading. See: #14609, #15147.
- AMD attention support: the new
aiter_sage_hub backend brings a Hub-hosted SageAttention kernel to RDNA4 gfx1201 GPUs, with native SDPA fallback for unsupported input shapes. See #15060.
- Attention backend fixes: choosing a backend on one model no longer changes the backend of unrelated models. Individual attention modules now check requirements and download Hub kernels when selecting a backend, and the FlashAttention-2 integration works with newer Hub kernel versions. See #14335, #15000.
- LoRA fixes: component-weight dictionaries now broadcast correctly across multiple adapters, and Kohya text-encoder LoRAs retain their per-module alpha values. Adapter-weight documentation and type hints also clarify supported formats. See: #15128, #15157.
- Checkpoint saving:
save_pretrained() preserves other variants' shards and removes obsolete indexes when replacing a sharded checkpoint with a single-file checkpoint. See #14844.
- Modular caching: stateful cache hooks reset after each pipeline call, including calls that raise an exception, so subsequent generations start with fresh cache state. See #15212.
- Training examples: fix gradient clipping in the text-to-image LoRA and SDXL LCM LoRA scripts, update FLUX quantized embedding preparation for current Transformers, and remove expired deprecation blocks that crashed training with
--revision. See: #15184, #15144, #15118.
- Documentation: reorganized distributed-inference guides, updated AWS Trainium examples for native TorchNeuron, and corrected Cosmos3 FP8 checkpoint locations. See: #15172, #15138, #15236.
Deprecations and compatibility
- Dependency checks: availability checks now enforce supported dependency versions. An installed package below the supported minimum is treated as unavailable, with an upgrade message. For example, the existing minimums of
torch>=2.6 and transformers>=4.41.2 are now enforced by these checks. (#15148)
- Relocated model components: latent upscalers and condition embedders move under
diffusers.models. Existing checkpoints remain loadable, while old pipeline-module imports are deprecated for removal in 1.0.0. Use public imports such as from diffusers import LTX2TextConnectors. See: #15111.
- Modular input defaults: explicitly passing
None preserves that value. Omitted inputs receive the default of the first block that reads them. An InputParam declared both required and with a non-None default is treated as optional and emits a warning. See: #15135, #14521.
- Training behavior:
--max_grad_norm now takes effect in the affected LoRA examples. Runs with gradients above the clipping threshold can therefore behave differently from earlier versions. See: #15184.
- Component loading: repository configuration no longer causes arbitrary component-library imports. Custom component modules outside the supported library set must already be imported by the caller, and modular custom-block loading checks remote-code trust before processing requirements. See: 3076605.
Thanks to everyone who contributed code, documentation, reviews, and issue reports!
All commits
- Remove expired non_ema_revision deprecation blocks from training examples by @A-Raphie in #15118.
- Extend CLI compile and attention-backend tests to other devices by @sywangyi in #15039.
- Fix shared LoRA component weight broadcasting by @gorkadabo1 in #15128.
- [agent docs] prefer named arguments over nested dicts by @yiyixuxu in #15129.
- when an InputParam is both required and has a default: set required = False and warn by @yiyixuxu in #14521.
- Restrict repository-specified component imports and check custom-block trust before requirements by @LinZiyuu, with @DN6, in 3076605.
- Fix the Marigold intrinsics integration test by @sywangyi in #15086.
- [core] move latent upscalers and condition embedders out of pipelines by @sayakpaul in #15111.
- [CI] Use HF Trusted Publisher OIDC tokens by @DN6 in #15106.
- [docs] AWS Trainium: rewrite guide for native TorchNeuron support by @JingyaHuang in #15138.
- Add
aiter_sage_hub attention backend for AMD RDNA4 (gfx1201) by @Shan2L in #15060.
- fix: scope save_pretrained shard cleanup to the saved variant (avoid deleting another variant's shards) by @AloysJehwin in #14844.
- Pika h3 flex by @yiyixuxu in #15150.
- [docs] Pika H3 Flex: add a section on reusing minimax h3 components by @yiyixuxu in #15153.
- [compon...
Read more
Contributors
pratikgx, andre-menutole, and 29 other contributors
Assets
2
Loading
Uh oh!
There was an error while loading. Please reload this page.
v0.42.1 — fix component resolution in `from_pretrained` to prevent `trust_remote_code` bypass
DN6
released this
27 Oct 07:41
This is a security release. See GHSA-4prv-5hj7-c2xr for details.
This patch release fixes how a component's declared library name is resolved when loading with from_pretrained.
Pipelines and models declare each component as a ["<library>", "<class>"] pair in model_index.json / config.json. This release changes how that library name is resolved across the DiffusionPipeline, AutoModel, and ModularPipeline loading paths, and adds a clearer error when the declared class is not found in the resolved module.
All users on 0.42.0 are encouraged to upgrade:
pip install diffusers==0.42.1
Assets
2
Loading
Uh oh!
There was an error while loading. Please reload this page.
i0tool5 reacted with thumbs up emoji
1 person reacted
Diffusers 0.42.0: FLUX.3, Fibo 2.0, Kandinsky 6, and more
Tip This release brings FLUX.3 Image Klein, Bria Fibo 2.0, Kandinsky 6, SANA-WM, and RFD4-Proteína to Diffusers, alongside new adapter support, hardware integrations, and modular pipelines.
🚨 Python 3.11 or newer is now required.
FLUX.3 Image Klein
FLUX.3 Image Klein from Black Forest Labs supports text-to-image generation and editing with one or more reference images. Both the base and step-distilled checkpoints are available through ModularPipeline, with an integrated prompt upsampler that turns short requests into detailed captions and supports layout instructions with bounding boxes. The integration also includes single-file transformer loading and BFL FP8r and NVFP4 checkpoints.
Load the pipeline with ModularPipeline.from_pretrained(...), then load its weights with load_components(...). See the FLUX.3 documentation for examples and guidance on prompt upsampling, editing, and memory use.
Bria Fibo 2.0
Bria Fibo 2.0 supports image generation from structured JSON captions and editing with up to five reference images through BriaFibo2Pipeline. The integration includes the dev checkpoint and the edit-turbo checkpoint, which runs in four steps without classifier-free guidance. See the Fibo 2.0 documentation for the supported prompt formats.
LoRA loading and DreamBooth LoRA training examples are included for text-to-image and image editing. Thanks to @muhammadali-afridi for the model integration (#14991).
Kandinsky 6
Kandinsky 6 generates video with synchronized audio from text or a reference image through Kandinsky6TI2VAPipeline. A separate Kandinsky6SRPipeline provides video super-resolution. The integration supports Pro and Lite generation checkpoints, including distilled variants, and introduces PiflowScheduler for the distilled models. See the Kandinsky 6 documentation for checkpoint-specific settings and super-resolution requirements. Thanks to @Lefff for the model integration (#14949).
SANA-WM
SANA-WM generates video from a starting image, a text prompt, and a camera trajectory. Control the camera with explicit poses or a WASD/IJKL action string, then optionally refine the output with the separate LTX-2 refiner. See the SANA-WM documentation for the two-stage workflow.
Thanks to @lawrence-cj for the integration (#13881).
RFD4-Proteína
RFD4-Proteína from the Baker Lab and NVIDIA brings biomolecular design to Diffusers. It jointly generates protein sequences and all-atom structures while conditioning on molecular context such as binding targets, motifs, or ligands. The integration includes the pipeline, transformer, autoencoder, schedulers, and LoRA loading. Preparing model inputs and writing CIF files uses the separate rfd4-proteina-prep package; see the RFD4-Proteína documentation.
Thanks to @kierandidi for the integration (#15088).
Other highlights
- Qwen-Image 2.1: new modular pipelines and tensor parallelism support. (#14976, #14865)
- More hardware support: TorchTPU integration covers eager execution,
torch.compile, and tensor parallelism. Tensor parallelism also gains Intel XPU support. (#14039, #15013)
- LoKr adapters: load LyCORIS Kronecker-product adapters for Z-Image and FLUX.2, including Klein. (#14163)
- LTX-2 motion control:
motion_speed controls the positional time base independently of playback frame rate. Use a compatible adapter for speeds far from the default, such as the LTX-2.5 slow-motion control LoRA. (#14967)
- KVAE-Audio:
AutoencoderKLKVAEAudio adds encoding and decoding for 48 kHz audio. (#14384)
- Caching: MagCache now supports FLUX.2. (#14756)
- Adapter fixes: Z-Image honors the LoRA scale in
joint_attention_kwargs, Qwen-Image applies .alpha scaling to lora_A/lora_B checkpoints, and text encoders correctly report active adapters. (#15015, #15016, #14961)
- Pipeline fixes: preserve explicit timesteps in
FlowMatchEulerDiscreteScheduler, fix Anima text encoder exports and standalone core denoising, and preserve the three-value return from InpaintProcessor.preprocess when no mask is supplied. (#14956, #14943, #14481)
Deprecations and compatibility
- Python 3.10 support is dropped. Upgrade to Python 3.11 or newer before installing this release. (#15030)
- Modular latent outputs: FLUX, Krea 2, and LTX-Video now unpack latents in their core denoise groups. Custom workflows should pass unpacked latents to their decode blocks. The fallback for packed latents is deprecated for removal in 0.47.0. (#14737)
- Hub compatibility: the supported
huggingface_hub range is now >=1.32.0,<3.0. (#14863)
- TorchAO imports: having a TorchAO version older than 0.15 installed no longer breaks model imports. TorchAO quantization still requires version 0.15 or newer. (#15095)
Thanks to everyone who contributed to this release!
All commits
Read more
Assets
2
Loading
Uh oh!
There was an error while loading. Please reload this page.
ivnvalex reacted with thumbs up emoji
1 person reacted
Diffusers 0.41.0: QwenImage 2.1 pipeline and more
Tip This release brings Qwen-Image 2.1 to Diffusers, with text-to-image generation, image editing, native transparency, and LoRA training.
Starting with this release, we’re adopting the Transformers release philosophy: coordinating minor releases around new model integrations, while including the other changes merged since the previous release. Patch releases remain focused on fixes. See our release policy.
Qwen-Image 2.1
Qwen-Image 2.1 unifies image generation and editing in one model. Its visual generation component has 7B parameters, and it supports multiple reference images and native RGBA output for transparent images. Check out the docs for more details.
Thanks to @naykun for the model integration (#14804).
Other highlights
- Tensor-parallel checkpoint loading: each rank reads its own slice of sharded weights directly, reducing the memory needed during loading. (#14544)
- LTX-2.5 DFR: new pipelines support generation with keyframe slots and composable spatial and temporal refinement. (#14567)
- Cosmos 3: SeaCache support and mixed W8A8/W8A16 denoising for ModelOpt FP8 checkpoints. (#14663, #14664)
- Modular Diffusers: Wan 2.2 VACE gains modular blocks, and loading from existing local paths avoids unnecessary weight downloads. (#14432, #14797)
- More single-file loaders: support for Krea 2 and MiniMax-H3. (#14914, #14839)
- Tests: We removed the monolithic
test_pipelines_common.py test suite to establish more modularity and transparent implementation of tests. Refer to #14669 for more details.
Deprecations and compatibility
🚨 ONNX support is deprecated; use Optimum for ONNX Runtime workflows. (#14658)
Previously deprecated APIs have been removed, including the LuminaText2ImgPipeline and Lumina2Text2ImgPipeline aliases. Use LuminaPipeline and Lumina2Pipeline instead. Older integrations should review the removed code paths before upgrading.
Thanks to everyone who contributed to this release!
All commits
Read more
Contributors
shoemoney, alexanderar, and 36 other contributors
Assets
2
Loading
Uh oh!
There was an error while loading. Please reload this page.
zhtmike reacted with thumbs up emoji
1 person reacted
Diffusers 0.40.0: New pipelines, tensor-parallel support, improved CLI, and more
Tip This release features several new pipelines, including LTX2.5, MiniMax H3, and Wan Animate 2. We're also graduating Modular Diffusers out of the experimental phase and announcing its stable support. Additionally, this release includes minimal support for tensor-parallel. There's a lot more that went down in this release. So, please consult the notes for details.
New Pipelines
MiniMax-H3
MiniMax-H3 generates video and its soundtrack together. A single transformer denoises one packed sequence containing the text conditioning, the conditioning media, and the target video and audio latents — there is no separate vocoder and no post-hoc audio pass. Its conditioner is a Qwen3VLForConditionalGeneration whose unnormalized 50th-decoder-layer hidden state is read instead of the last one.
MiniMax-H3 is integrated as Modular Diffusers blocks only — MiniMaxH3Blocks and their MiniMaxH3ModularPipeline are the whole integration. The conversion ships both checkpoint partitions in one repository and exposes three workflows (t2va, fl2va, ref2va) that can be pruned at from_pretrained time so only that task's components are declared and downloaded.
MiniMax Music 3
MiniMax Music 3 produces complete songs up to five minutes long from lyrics and a music description, with expressive vocals and long-range structure. It is a hybrid of an autoregressive and a diffusion stage: an 8B Qwen3-based global language model predicts one semantic audio token per frame while a small depth decoder fills in seven residual RVQ codebooks, and their fused hidden states condition a 2.4B flow-matching transformer that produces Flow-VAE latents in overlapping chunks. A DAC-style decoder turns the latents into 44.1 kHz stereo audio.
Stable Audio 3
Stable Audio 3 is a text-to-audio model from Stability AI that generates high-quality stereo audio at 44.1 kHz. It uses a rectified-flow DiT conditioned on a frozen T5Gemma text encoder (via cross-attention) and on duration (a float embedded by StableAudio3DurationEmbedder and used for adaptive layer norm), and decodes with the SAME (Semantically-Aligned Music Encoder) autoencoder, AutoencoderSAME.
Three pipelines ship: StableAudio3Pipeline, StableAudio3AudioToAudioPipeline, and StableAudio3InpaintPipeline.
Thanks to @buffett0323 for the contribution (#14119).
LTX-2.5
LTX-2.5 reuses the existing LTX2Pipeline / LTX2VideoTransformer3DModel / AutoencoderKLLTX2Video classes — there is no separate pipeline class. The user-visible difference is the text encoder: LTX-2.5 is paired with a Gemma 4 (gemma4_unified) checkpoint, loaded automatically from a converted LTX-2.5 repo.
Lightricks/LTX-2.5-Diffusers ships both the distilled DiT (transformer/) and the full/SFT DiT (transformer_full/), plus everything two-stage generation needs. Alongside the checkpoint support, this release adds:
LTX2VideoDiffusionDecoderModel and LTX2VideoDiffusionDecodePipeline — a second video decoder over the same latent space, so latents are interchangeable between decoders.
- A
duration_head that predicts shot length from the text-connector output, so num_frames is auto-predicted by default when the loaded pipeline has one.
- Prompt enhancement through a separate off-the-shelf
google/gemma-4-E2B-it checkpoint (enable_prompt_enhancement=True).
LTX25AutoBlocks for Modular Diffusers (#14453).
Wan-Animate-2
Wan-Animate-2 by the Alibaba Wan Team animates a reference character image with the motion of a driving video. The driving video is processed in fixed-length segments: each segment runs a reference-extraction pass that caches the driving segment's K/V in every transformer layer, denoises against that cache, and is decoded inside the loop, because the next segment conditions on the previous segment's decoded tail frames.
Two presets are available — the base checkpoint samples with classifier-free guidance, and the distilled checkpoint samples in few steps without it. Guidance is owned by the pipeline's guider component, so there is no guidance_scale argument.
Thanks to @kelseyee for authoring the integration (#14413).
JoyAI-Image-Edit-Plus
JoyAI-Image-Edit-Plus extends the JoyAI-Image family (an 8B MLLM paired with a 16B MMDiT) to multi-image instruction-guided editing. It accepts 1–5 reference images plus a text instruction and composes elements from the references into a new image.
Thanks to @tangyanf for the contribution (#14032).
Cosmos 3 follow-ups
Cosmos 3 landed in 0.39.0 and gets substantially more coverage in this release:
Thanks to @yzhautouskay and @atharvajoshi10 for the contributions.
Modular Pipeline Support
Modular Diffusers is no longer marked experimental (#14525) — the API warning has been dropped.
- Three of this release's new integrations — MiniMax-H3, MiniMax Music 3, and Wan-Animate-2 — ship as Modular blocks only, with no
DiffusionPipeline half.
- Cosmos 3 (#14110, #14150, #14177) and Krea 2 (#14083, thanks to @Cedric-Perauer) gained modular pipelines, and Anima gained img2img blocks (#13929, thanks to @PreethamNoelP).
- Branch-specific input defaults (#14234): when sibling blocks of a
ConditionalPipelineBlocks declare different defaults for the same input, combine_inputs now merges the default to None and records the per-block defaults in a new InputParam.defaults_by_block field. get_block_state falls back to the block's own declared default, so each branch resolves its own default when it actually runs. Docstrings render conflicted defaults as e.g. "defaults to None or 189, depending on the workflow".
- Group offloading now works under auto offloading, and a group-offload device mismatch was fixed.
- Unused
intermediate_inputs were cleaned up, stale auto-docstrings are now detected in CI, and Mellon custom-block required-input handling was fixed.
Important Please try out Modular Diffusers and let us know about your feedback!
Core Library
Tensor parallelism
Tensor-parallel inference is now supported for model inference on CUDA and AWS Neuron (Trainium/Inferentia), exposed through the same public API already used for context parallelism:
from diffusers import TensorParallelConfig
pipe.transformer.enable_parallelism(config=TensorParallelConfig(mesh=tp_mesh))
Sharding is model-agnostic and driven from a flat _tp_plan, which has been added to the FLUX.1, FLUX.2 and Qwen-Image DiTs. Check out the docs for more details.
New quantization backends
Attention, kernels and offloading
Read more
Contributors
kashif, apolinario, and 40 other contributors
Assets
2
Loading
Uh oh!
There was an error while loading. Please reload this page.
joul-dev, buffett0323, anatyrova, and arehsman1 reacted with hooray emoji
tolgacangoz and LavLuv reacted with rocket emoji
All reactions
-
🎉
4 reactions
-
🚀
2 reactions
6 people reacted
Diffusers 0.39.0: New image and video pipelines, core library improvements, and more
New Pipelines
Cosmos 3
Cosmos 3 is NVIDIA's unified world foundation model (WFM) for Physical AI — a single omni-model built on a Mixture-of-Transformers (MoT) architecture that combines world generation, physical reasoning, and action generation, replacing the separate Predict, Reason, and Transfer models from earlier Cosmos releases. A single Cosmos3OmniTransformer runs a Qwen-style language model in parallel with a diffusion generation pathway, joined by a 3D multimodal RoPE. This release also lands video-to-video and action-conditioned generation, and a sound encoder.
Thanks to @atharvajoshi10, @yzhautouskay, and @MaciejBalaNV for the contributions.
Ideogram 4
Ideogram 4 is a flow-matching text-to-image model that uses a multimodal text encoder and an asymmetric classifier-free guidance scheme: a dedicated unconditional_transformer produces the negative branch with zeroed text features, while the main transformer consumes the full packed text + image sequence. The pipeline ships with structured prompt upsampling and LoRA loading support.
Thanks to @JinLiIdeogram for the contribution.
Krea 2
Krea 2 (K2) is a flow-matching text-to-image model built around a single-stream MMDiT with grouped-query attention. A Qwen3-VL text encoder provides the conditioning — hidden states from twelve decoder layers are tapped per token and fused inside the transformer by a small text-fusion stage — and images are decoded with the Qwen-Image VAE. Both the base (midtrain) and TDM (distilled, few-step) checkpoints are supported, alongside a LoRA DreamBooth trainer.
Thanks to @EleaZhong and @Abhinay1997 for the contribution.
DreamLite
DreamLite is a text-to-image and image-editing model from ByteDance. It pairs a custom 2D U-Net (DreamLiteUNetModel) with the Qwen3-VL multimodal encoder as its prompt / image-instruction encoder, and uses an AutoencoderTiny (TAESD-style) VAE for fast latent encode/decode. A distilled DreamLiteMobilePipeline targets on-device, low-latency generation.
Thanks to @Carlofkl for the contribution.
PRX Pixel
PRXPixel is a pixel-space text-to-image generation model by Photoroom. A ~7B PRXTransformer2DModel denoises raw RGB images directly — no VAE is needed. The model is conditioned on a Qwen3-VL text encoder and uses flow matching where the transformer predicts the clean image at each step (x-prediction).
Thanks to @DavidBert for the contribution.
Motif-Video
Motif-Video is a 2B parameter diffusion transformer for text-to-video and image-to-video generation. It features a three-stage architecture (12 dual-stream + 16 single-stream + 8 DDT decoder layers), Shared Cross-Attention for stable text-video alignment over long sequences, a T5Gemma2 text encoder, and rectified flow matching for velocity prediction.
Thanks to @waitingcheung for the contribution.
AnyFlow
AnyFlow from NVIDIA, NUS, and MIT is the first any-step video diffusion framework built on flow maps, enabling a single model (bidirectional or causal) to adapt to arbitrary inference budgets. It ships both bidirectional and FAR causal pipelines built on Wan2.1 backbones, covering text-to-video, image-to-video, and video-to-video.
Thanks to @Enderfga for the contribution.
JoyAI-Image-Edit
JoyAI-Image is a unified multimodal foundation model for image understanding, text-to-image generation, and instruction-guided image editing. It combines an 8B Multimodal LLM with a 16B Multimodal Diffusion Transformer (MMDiT). JoyImageEditPipeline supports general image editing as well as spatial editing capabilities including object move, object rotation, and camera control.
Thanks to @Moran232 for the contribution.
DiffusionGemma
DiffusionGemma is a block-diffusion encoder-decoder language model. A causal encoder reads the clean prompt (and any previously generated blocks) into a KV cache, and a bidirectional decoder denoises a fixed-size "canvas" of tokens by cross-attending to that cache, committing the most confident tokens via the new BlockRefinementScheduler. The released checkpoint is google/diffusiongemma-26B-A4B-it.
Anima
Anima is a 2 billion parameter text-to-image model created via a collaboration between CircleStone Labs and Comfy Org. It is focused mainly on anime concepts, characters, and styles, but is also capable of generating a wide variety of other non-photorealistic content.
It reuses the CosmosTransformer3DModel with a Qwen3 text encoder, a T5-token text conditioner, and the AutoencoderKLQwenImage VAE.
Thanks to @rmatif for the contribution.
LTX-2.X IC LoRA and HDR Pipelines
New LTX2InContextPipeline (in-context LoRA) and LTX2HDRPipeline extend the LTX-2 family with in-context conditioning and HDR video generation.
Modular Pipeline Support
- We added a modular pipeline for Stable Diffusion 3 (SD3) in #13324 (thanks to @AlanPonnachan).
- We added a modular pipeline for Anima in #13732 (thanks to @rmatif).
- LoRA loading is now enabled on
ErnieImageModularPipeline (#13948) and Ideogram4ModularPipeline (#13980), thanks to @SamuelTallet.
Core Library
Read more
Contributors
kashif, tarekziade, and 55 other contributors
Assets
2
Loading
Uh oh!
There was an error while loading. Please reload this page.
tolgacangoz, kashif, Sunt-ing, and J4BEZ reacted with rocket emoji
4 people reacted
Diffusers 0.38.0: New image and audio pipelines, Core library improvements, and more
New Pipelines
LLaDA2
LLaDA2 is a family of discrete diffusion language models that generate text through block-wise iterative refinement. Instead of autoregressive token-by-token generation, LLaDA2 starts with a fully masked sequence and progressively unmasks tokens by confidence over multiple refinement steps.
Nucleus-MoE
NucleusMoE-Image is a 2B active 17B parameter model trained with efficiency at its core. Our novel architecture highlights the scalability of a sparse MoE architecture for Image generation.
Thanks to @sippycoder for the contribution.
Ernie-Image
ERNIE-Image is a powerful and highly efficient image generation model with 8B parameters.
Thanks to @HsiaWinter for the contribution.
LongCat-AudioDiT
LongCat-AudioDiT is a text-to-audio diffusion model from Meituan LongCat.
Thanks to @RuixiangMa for the contribution.
Ace-Step 1.5
ACE-Step 1.5 generates variable-length stereo audio at 48 kHz (10 seconds to 10 minutes) from text prompts and optional lyrics. The full system pairs a Language Model planner with a Diffusion Transformer (DiT) synthesizer; this pipeline wraps the DiT half of that stack, and consists of three components: an AutoencoderOobleck VAE that compresses waveforms into 25 Hz stereo latents, a Qwen3-based text encoder for prompt and lyric conditioning, and an AceStepTransformer1DModel DiT that operates in the VAE latent space using flow matching.
Thanks to @ChuxiJ for the contribution.
Flux.2 Small Decoder
Make your Flux.2 decoding faster with this new small decoder model from the Black Forest Labs. You can check it out here. It was contributed by @huemin-art in this PR.
Modular Pipeline Support
We added modular support for LTX-2 and Hunyuan 1.5.
Core Library
All commits
Read more
Contributors
kashif, andrewor14, and 40 other contributors
Assets
2
Loading
Uh oh!
There was an error while loading. Please reload this page.
suvadityamuk, llparker23-glitch, sachha-naksha, sword-nan, 651961, ivnvalex, sushmit0109, and ChaeSeoyoung reacted with heart emoji
adi776borate reacted with rocket emoji
All reactions
-
❤️
8 reactions
-
🚀
1 reaction
9 people reacted
Fixes for AutoModel type hints in Modular Pipelines and Flux Klein LoRA loading
DN6
released this
25 Mar 08:23
- Fix for loading
ModularPipelines with AutoModel type hints in their modular_model_index.json #13271
- Fix Flux Klein LoRA loading #13313
- Fix unguarded
torchvision import in Cosmos Predict 2.5 #13321
Assets
2
Loading
Uh oh!
There was an error while loading. Please reload this page.
datascikhan, chiangliu, and JonasLoos reacted with thumbs up emoji
3 people reacted
Diffusers 0.37.0: Modular Diffusers, New image and video pipelines, multiple core library improvements, and more 🔥
Modular Diffusers
Modular Diffusers introduces a new way to build diffusion pipelines by composing reusable blocks. Instead of writing entire pipelines from scratch, you can now mix and match building blocks to create custom workflows tailored to your specific needs! This complements the existing DiffusionPipeline class, providing a more flexible way to create custom diffusion pipelines.
Find more details on how to get started with Modular Diffusers here, and also check out the announcement post.
New Pipelines and Models
Image 🌆
- Z Image Omni Base: Z-Image is the foundation model of the Z-Image family, engineered for good quality, robust generative diversity, broad stylistic coverage, and precise prompt adherence. While Z-Image-Turbo is built for speed, Z-Image is a full-capacity, undistilled transformer designed to be the backbone for creators, researchers, and developers who require the highest level of creative freedom. Thanks to @RuoyiDufor for contributing this in #12857.
- Flux2 Klein:FLUX.2 [Klein] unifies generation and editing in a single compact architecture, delivering state-of-the-art quality with end-to-end inference in as low as under a second. Built for applications that require real-time image generation without sacrificing quality, and runs on consumer hardware, with as little as 13GB VRAM.
- Qwen Image Layered: Qwen-Image-Layered is a model capable of decomposing an image into multiple RGBA layers. This layered representation unlocks inherent editability: each layer can be independently manipulated without affecting other content. Thanks to @naykun for contributing this in #12853.
- FIBO Edit: Fibo Edit is an 8B parameter image-to-image model that introduces a new paradigm of structured control, operating on JSON inputs paired with source images to enable deterministic and repeatable editing workflows. Featuring native masking for granular precision, it moves beyond simple prompt-based diffusion to offer explicit, interpretable control optimized for production environments. Its lightweight architecture is designed for deep customization, empowering researchers to build specialized “Edit” models for domain-specific tasks while delivering top-tier aesthetic quality. Thanks galbria for contributing it in #12930.
- Cosmos Predict2.5: Cosmos-Predict2.5, the latest version of the Cosmos World Foundation Models (WFMs) family, specialized for simulating and predicting the future state of the world. Thanks to @miguelmartin75 for contributing it in #12852.
- Cosmos Transfer2.5: Cosmos-Transfer2.5 is a conditional world generation model with adaptive multimodal control, that produces high-quality world simulations conditioned on multiple control inputs. These inputs can take different modalities—including edges, blurred video, segmentation maps, and depth maps. Thanks to @miguelmartin75 for contributing it in #13066.
- GLM-Image: GLM-Image is an image generation model adopts a hybrid autoregressive + diffusion decoder architecture, effectively pushing the upper bound of visual fidelity and fine-grained details. In general image generation quality, it aligns with industry-standard LDM-based approaches, while demonstrating significant advantages in knowledge-intensive image generation scenarios. Thanks to @zRzRzRzRzRzRzR for contributing it in #12973.
- RAE: Representation Autoencoders (aka RAE) are an exciting alternative to traditional VAEs, typically used in the area of latent-space diffusion models of image generation. RAEs leverage pre-trained vision encoders and train lightweight decoders for the task of reconstruction.
Video + audio 🎥 🎼
- LTX-2: LTX-2 is an audio-conditioned text-to-video generation model that can generate videos with synced audio. Full and distilled model inference, as well as two-stage inference with spatial sampling, is supported. We also support a conditioning pipeline that allows for passing different conditions (such as images, series of images, etc.). Check out the docs to learn more!
- Helios: Helios is a 14B video generation model that runs at 17 FPS on a single NVIDIA H100 GPU and supports minute-scale generation while matching a strong baseline in quality. Thanks to @SHYuanBest for contributing this in #13208.
Improvements to Core Library
New caching methods
New context-parallelism (CP) backends
Misc
- Mambo-G Guidance: New guider implementation (#12862)
- Laplace Scheduler for DDPM (#11320)
- Custom Sigmas in UniPCMultistepScheduler (#12109)
- MultiControlNet support for SD3 Inpainting (#11251)
- Context parallel in native flash attention (#12829)
- NPU Ulysses Attention Support (#12919)
- Fix Wan 2.1 I2V Context Parallel Inference (#12909)
- Fix Qwen-Image Context Parallel Inference (#12970)
- Introduction to
@apply_lora_scale decorator for simplifying model definitions (#12994)
- Introduction of pipeline-level “cpu”
device_map (#12811)
- Enable CP for kernels-based attention backends (#12812)
- Diffusers is fully functional with Transformers V5 (#12976)
A lot of the above features/improvements came as part of the MVP program we have been running. Immense thanks to the contributors!
Bug Fixes
- Fix QwenImageEditPlus on NPU (#13017)
- Fix MT5Tokenizer → use
T5Tokenizer for Transformers v5.0+ compatibility (#12877)
- Fix Wan/WanI2V patchification (#13038)
- Fix LTX-2 inference with
num_videos_per_prompt > 1 and CFG (#13121)
- Fix Flux2 img2img prediction (#12855)
- Fix QwenImage
txt_seq_lens handling (#12702)
- Fix
prefix_token_len bug (#12845)
- Fix ftfy imports in Wan and SkyReels-V2 (#12314, #13113)
- Fix
is_fsdp determination (#12960)
- Fix GLM-Image
get_image_features API (#13052)
- Fix Wan 2.2 when either transformer isn't present (#13055)
- Fix guider issue (#13147)
- Fix torchao quantizer for new versions (#12901)
- Fix GGUF for unquantized types with unquantize kernels (#12498)
- Make Qwen hidden states contiguous for torchao (#13081)
- Make Flux hidden states contiguous (#13068)
- Fix Kandinsky 5 hardcoded CUDA autocast (#12814)
- Fix
aiter availability check (#13059)
- Fix attention mask check for unsupported backends (#12892)
- Allow
prompt and prior_token_ids simultaneously in GlmImagePipeline (#13092)
- GLM-Image batch support (#13007)
- Cosmos 2.5 Video2World frame extraction fix (#13018)
- ResNet: only use contiguous in training mode (#12977)
All commits
Read more
Contributors
kashif, geekuillaume, and 75 other contributors
Assets
2
Loading
Uh oh!
There was an error while loading. Please reload this page.
J4BEZ, zituitui, SHYuanBest, sword-nan, DefTruth, Songrui625, cbprfCsun, and adi776borate reacted with hooray emoji
tolgacangoz and JonasLoos reacted with rocket emoji
All reactions
-
🎉
8 reactions
-
🚀
2 reactions
10 people reacted
Diffusers 0.36.0: Pipelines galore, new caching method, training scripts, and more 🎄
The release features a number of new image and video pipelines, a new caching method, a new training script, new kernels - powered attention backends, and more. It is quite packed with a lot of new stuff, so make sure you read the release notes fully 🚀
New image pipelines
- Flux2: Flux2 is the latest generation of image generation and editing model from Black Forest Labs. It’s capable of taking multiple input images as reference, making it versatile for different use cases.
- Z-Image: Z-Image is a best-of-its-kind image generation model in the 6B param regime. Thanks to @JerryWu-code in #12703.
- QwenImage Edit Plus: It’s an upgrade of QwenImage Edit and is capable of taking multiple input images as references. It can act as both a generation and an editing model. Thanks to @naykun for contributing in #12357.
- Bria FIBO: FIBO is trained on structured JSON captions up to 1,000+ words and designed to understand and control different visual parameters such as lighting, composition, color, and camera settings, enabling precise and reproducible outputs. Thanks to @galbria for contributing this in #12545.
- Kandinsky Image Lite: Kandinsky 5.0 Image Lite is a lightweight image generation model (6B parameters). Thanks to @leffff for contributing this in #12664.
- ChronoEdit: ChronoEdit reframes image editing as a video generation task, using input and edited images as start/end frames to leverage pretrained video models with temporal consistency. A temporal reasoning stage introduces reasoning tokens to ensure physically plausible edits and visualize the editing trajectory. Thanks to @zhangjiewu for contributing this in #12593.
New video pipelines
- Sana-Video: Sana-Video is a fast and efficient video generation model, equipped to handle long video sequences, thanks to its incorporation of linear attention. Thanks to @lawrence-cj for contributing this in #12634.
- Kandinsky 5: Kandinsky 5.0 T2V Lite is a lightweight video generation model (2B parameters) that ranks #1 among open-source models in its class. It outperforms larger models and offers the best understanding of Russian concepts in the open-source ecosystem. Thanks to @leffff for contributing this in #12478.
- Hunyuan 1.5: HunyuanVideo-1.5 is a lightweight yet powerful video generation model that achieves state-of-the-art visual quality and motion coherence with only 8.3 billion parameters, enabling efficient inference on consumer-grade GPUs.
- Wan Animate: Wan-Animate is a state-of-the-art character animation and replacement video model based on Wan2.1. Given a reference character image and driving motion video, it can either animate the character with motion from the driving video, or replace the existing character in that video with that character.
New kernels-powered attention backends
The kernels library helps you save a lot of time by providing pre-built kernel interfaces for various environments and accelerators. This release features three new kernels-powered attention backends:
- Flash Attention 3 (+ its
varlen variant)
- Flash Attention 2 (+ its
varlen variant)
- SAGE
This means if any of the above backend is supported by your development environment, you should be able to skip the manual process of building the corresponding kernels and just use:
# Make sure you have `kernels` installed: `pip install kernels`.
# You can choose `flash_hub` or `sage_hub`, too.
pipe.transformer.set_attention_backend("_flash_3_hub")
For more details, check out the documentation.
TaylorSeer cache
TaylorSeer is now supported in Diffusers, delivering upto 3x speedups with negligible-to-none quality compromise. Thanks to @toilaluan for contributing this in #12648. Check out the documentation here.
New training script
Our Flux.2 integration features a LoRA fine-tuning script that you can check out here. We provide a number of optimizations to help make it run on consumer GPUs.
Misc
- Reusing
AttentionMixin: Making certain compatible models subclass from the AttentionMixin class helped us get rid of 2K LoC. Going forward, users can expect more such refactorings that will help make the library leaner and simpler. Check out #12463 for more details.
- Diffusers backend in SGLang: sgl-project/sglang#14112.
- We started the Diffusers MVP program to work with talented community members who will help us improve the library across multiple fronts. Check out the link for more information.
All commits
Read more
Contributors
turian, friedrich, and 50 other contributors
Assets
2
Loading
Uh oh!
There was an error while loading. Please reload this page.
ZijunLi402, Rainwoorimforest, and ghunkins reacted with thumbs up emoji
Brensom, asomoza, sayakpaul, adi776borate, DefTruth, vibe-viscot, Luminous-16, toilaluan, DoctorKey, Namitjain07, and 2 more reacted with heart emoji
JonasLoos, Namitjain07, and ghunkins reacted with rocket emoji
All reactions
-
👍
3 reactions
-
❤️
12 reactions
-
🚀
3 reactions
15 people reacted
|