huggingface/diffusers
🤗 Diffusers: State-of-the-art diffusion models for image, video, and audio generation in PyTorch.
https://skillcdn.ai/gh/huggingface/diffusersConnect this address to your AI to use these skills. How to connect
- Unverified
- Default branch
main - Commit
2232c16 - License
Apache-2.0 - Searchwords
Explore this repository
Searches the original text of skills and documents, and the translations of skills when you search in their language.
Documents
- Attention backendsMost Diffusers transformer models route attention through an attention dispatcher so you can switch optimized backends behind one API. The dispatcher manages registered implementations and exposes a…docs/source/en/optimization/attention_backends.md
- CachingCaching reuses intermediate layer outputs across denoising steps to speed up inference. It uses more memory and doesn't need training. Enable a method with a config on a transformer that supports cac…docs/source/en/optimization/cache.md
- CacheDiTCacheDiT speeds up DiT pipelines by reusing transformer block outputs across denoising steps. It does not need training and supports most Diffusers DiT pipelines, including Flux, Qwen-Image, Wan, and…docs/source/en/optimization/cache_dit.md
- Context parallelismContext parallelism splits the input sequence across GPUs, and each GPU processes its own slice. This lowers memory per GPU, which helps most with long sequences like high-resolution images and video…docs/source/en/optimization/context_parallelism.md
- How to run Stable Diffusion with Core MLCore ML is the model format and machine learning library supported by Apple frameworks. If you are interested in running Stable Diffusion models inside your macOS or iOS/iPadOS apps, this guide will…docs/source/en/optimization/coreml.md
- Data parallelismData parallelism replicates the same model on each GPU and gives each GPU different prompts. It increases throughput when the model already fits on one GPU, and it leaves the latency of a single prom…docs/source/en/optimization/data_parallelism.md
- Split model components across GPUs with device_mapThe device_map argument places model components on separate GPUs. Use it when a model doesn't fit on one GPU and your GPUs don't have a fast interconnect. Refer to Distributed inference to compare it…docs/source/en/optimization/device_map.md
- Precision and compilationLower precision and compilation are two ways to speed up Diffusers inference. Load weights in bfloat16 or float16, then compile the denoiser (the UNet or the transformer) with torch.compile or region…docs/source/en/optimization/fp16.md
- Intel GaudiThe Intel Gaudi AI accelerator family includes Intel Gaudi 1, Intel Gaudi 2, and Intel Gaudi 3. Each server is equipped with 8 devices, known as Habana Processing Units (HPUs), providing 128GB of mem…docs/source/en/optimization/habana.md
- Reduce memory usageModern diffusion models like Flux and Wan have billions of parameters that take up a lot of memory on your hardware for inference. This is challenging because common GPUs often don't have sufficient…docs/source/en/optimization/memory.md
- Metal Performance Shaders (MPS)🤗 Diffusers is compatible with Apple silicon (M1/M2 chips) using the PyTorch mps device, which uses the Metal framework to leverage the GPU on MacOS devices. You'll need to have:docs/source/en/optimization/mps.md
- AWS TrainiumTorchNeuron is the native PyTorch backend for Trainium2 and Trainium3. Diffusers runs on these instances through the torch_neuronx package, which registers a "neuron" device, so pipelines run with th…docs/source/en/optimization/neuron.md
- OpenVINO🤗 Optimum provides Stable Diffusion pipelines compatible with OpenVINO to perform inference on a variety of Intel processors (see the full list of supported devices).docs/source/en/optimization/open_vino.md
- OverviewDiffusion inference is computationally expensive, and you often run a [DiffusionPipeline] more than once before you like the result. This page provides an overview of the main Diffusers optimization…docs/source/en/optimization/overview.md
- ParaAttentionLarge image and video generation models, such as FLUX.1-dev and HunyuanVideo, can be an inference challenge for real-time applications and deployment because of their size.docs/source/en/optimization/para_attn.md
- PrunaPruna is a model optimization framework that offers various optimization methods - quantization, pruning, caching, compilation - for accelerating inference and reducing memory usage. A general overvi…docs/source/en/optimization/pruna.md
- Quantize, compile, and offloadOptimizing models often involves trade-offs between inference speed and memory-usage. For instance, while caching can boost inference speed, it also increases memory consumption since it needs to sto…docs/source/en/optimization/speed-memory-optims.md
- Tensor parallelismTensor parallelism shards the weight matrices of a model across devices. Each device holds a column-wise ("colwise") or row-wise ("rowwise") slice of each layer and computes a partial result. An AllR…docs/source/en/optimization/tensor_parallelism.md
- Google TPUTensor Processing Units (TPUs) are Google's machine learning accelerators, available as Cloud TPUs (v6e, v7x). Diffusers runs on them through TorchTPU, the PyTorch backend for TPUs, with minimal code…docs/source/en/optimization/tpu.md
- xDiTxDiT is an inference engine designed for the large scale parallel deployment of Diffusion Transformers (DiTs). xDiT provides a suite of efficient parallel approaches for Diffusion Models, as well as…docs/source/en/optimization/xdit.md
Skipped (50)
These manifests were not served. Fix them and push: the next commit is indexed again.
.ai/skills/model-integration/SKILL.mdlink_missing5 links name no file of the repository (references/modular.md, references/models.md, references/pipelines.md, ...)docs/source/en/advanced_inference/outpaint.mdlink_missing2 links name no file of the repository (../using-diffusers/inpaint, ../api/pipelines/stable_diffusion/stable_diffusion_xl)docs/source/en/api/loaders/ip_adapter.mdlink_missinga link names no file of the repository (../../using-diffusers/ip_adapter)docs/source/en/api/loaders/lora.mdlink_missing25 links name no file of the repository (../../api/pipelines/stable_diffusion/stable_diffusion_xl, ../pipelines/flux, ../pipelines/cogvideox, ...)docs/source/en/api/loaders/peft.mdlink_missinga link names no file of the repository (../../tutorials/using_peft_for_inference)docs/source/en/api/loaders/single_file.mdlink_missinga link names no file of the repository (../../using-diffusers/other-formats)docs/source/en/api/loaders/textual_inversion.mdlink_missinga link names no file of the repository (../../using-diffusers/legacy_adapters#textual-inversion)docs/source/en/api/loaders/transformer_sd3.mdlink_missing2 links name no file of the repository (lora#diffusers.loaders.SD3LoraLoaderMixin, ../../tutorials/using_peft_for_inference)docs/source/en/api/loaders/unet.mdlink_missinga link names no file of the repository (../../tutorials/using_peft_for_inference)docs/source/en/api/models/anyflow_far_transformer3d.mdlink_missing3 links name no file of the repository (../pipelines/anyflow#diffusers.AnyFlowFARPipeline, ../pipelines/anyflow, anyflow_transformer3d)docs/source/en/api/models/anyflow_transformer3d.mdlink_missing3 links name no file of the repository (../pipelines/anyflow#diffusers.AnyFlowPipeline, ../pipelines/anyflow, anyflow_far_transformer3d)docs/source/en/api/models/autoencoderkl_p_image_oss.mdlink_missinga link names no file of the repository (./autoencoderkl_minimax_h3)docs/source/en/api/models/rfd4_proteina_autoencoder.mdlink_missinga link names no file of the repository (../pipelines/rfd4_proteina)docs/source/en/api/models/rfd4_proteina_transformer.mdlink_missinga link names no file of the repository (../pipelines/rfd4_proteina)docs/source/en/api/parallel.mdlink_missinga link names no file of the repository (../training/distributed_inference)docs/source/en/api/pipelines/allegro.mdlink_missing3 links name no file of the repository (../../using-diffusers/schedulers, ../../using-diffusers/loading#reusing-models-in-multiple-pipelines, ../../quantization/overview)docs/source/en/api/pipelines/animatediff.mdlink_missing2 links name no file of the repository (../../using-diffusers/schedulers, ../../using-diffusers/loading#reusing-models-in-multiple-pipelines)docs/source/en/api/pipelines/anyflow.mdlink_missing2 links name no file of the repository (../models/anyflow_transformer3d, ../models/anyflow_far_transformer3d)docs/source/en/api/pipelines/audioldm2.mdlink_missing6 links name no file of the repository (./stable_diffusion/overview, ./audioldm2#diffusers.AudioLDM2ProjectionModel, ./audioldm2#diffusers.AudioLDM2UNet2DConditionModel, ...)docs/source/en/api/pipelines/aura_flow.mdlink_missing3 links name no file of the repository (../pipelines/stable_diffusion/stable_diffusion_3, ../../quantization/overview, ../../quantization/gguf)docs/source/en/api/pipelines/auto_pipeline.mdlink_missinga link names no file of the repository (../../tutorials/autopipeline)docs/source/en/api/pipelines/bria_fibo2.mdlink_missinga link names no file of the repository (../../optimization/attention_backends)docs/source/en/api/pipelines/cogvideox.mdlink_missing2 links name no file of the repository (../../optimization/memory, ../../optimization/fp16#torchcompile)docs/source/en/api/pipelines/cogview3.mdlink_missing2 links name no file of the repository (../../using-diffusers/schedulers, ../../using-diffusers/loading#reusing-models-in-multiple-pipelines)docs/source/en/api/pipelines/cogview4.mdlink_missing2 links name no file of the repository (../../using-diffusers/schedulers, ../../using-diffusers/loading#reusing-models-in-multiple-pipelines)docs/source/en/api/pipelines/controlnet.mdlink_missing2 links name no file of the repository (../../using-diffusers/schedulers, ../../using-diffusers/loading#reusing-models-in-multiple-pipelines)docs/source/en/api/pipelines/controlnet_flux.mdlink_missing2 links name no file of the repository (../../using-diffusers/schedulers, ../../using-diffusers/loading#reusing-models-in-multiple-pipelines)docs/source/en/api/pipelines/controlnet_hunyuandit.mdlink_missing2 links name no file of the repository (../../using-diffusers/schedulers, ../../using-diffusers/loading#reusing-models-in-multiple-pipelines)docs/source/en/api/pipelines/controlnet_sd3.mdlink_missing2 links name no file of the repository (../../using-diffusers/schedulers, ../../using-diffusers/loading#reusing-models-in-multiple-pipelines)docs/source/en/api/pipelines/controlnet_sdxl.mdlink_missing2 links name no file of the repository (../../using-diffusers/schedulers, ../../using-diffusers/loading#reusing-models-in-multiple-pipelines)docs/source/en/api/pipelines/cosmos.mdlink_missing2 links name no file of the repository (../../using-diffusers/schedulers, ../../using-diffusers/loading#reusing-models-in-multiple-pipelines)docs/source/en/api/pipelines/cosmos3.mdlink_missing4 links name no file of the repository (../../using-diffusers/schedulers, ../../using-diffusers/loading#reusing-models-in-multiple-pipelines, ../../quantization/modelopt, ...)docs/source/en/api/pipelines/ddpm.mdlink_missing2 links name no file of the repository (../../using-diffusers/schedulers, ../../using-diffusers/loading#reusing-models-in-multiple-pipelines)docs/source/en/api/pipelines/deepfloyd_if.mdlink_missing2 links name no file of the repository (../../optimization/memory#model-offloading, ../../optimization/fp16#torchcompile)docs/source/en/api/pipelines/dit.mdlink_missing2 links name no file of the repository (../../using-diffusers/schedulers, ../../using-diffusers/loading#reusing-models-in-multiple-pipelines)docs/source/en/api/pipelines/easyanimate.mdlink_missinga link names no file of the repository (../../quantization/overview)docs/source/en/api/pipelines/flux.mdlink_missing4 links name no file of the repository (../../optimization/cache, ../../using-diffusers/ip_adapter, ../../optimization/memory#group-offloading, ...)docs/source/en/api/pipelines/flux2.mdlink_missinga link names no file of the repository (../../optimization/cache)docs/source/en/api/pipelines/flux3.mdlink_missing7 links name no file of the repository (../../modular_diffusers/overview, ../../modular_diffusers/quickstart, ../../modular_diffusers/coming_from_diffusion_pipeline, ...)docs/source/en/api/pipelines/framepack.mdlink_missing2 links name no file of the repository (../../using-diffusers/schedulers, ../../using-diffusers/loading#reusing-models-in-multiple-pipelines)docs/source/en/api/pipelines/helios.mdlink_missing5 links name no file of the repository (../../optimization/memory, ../../optimization/fp16#torchcompile, ../../optimization/attention_backends, ...)docs/source/en/api/pipelines/hidream.mdlink_missinga link names no file of the repository (../../optimization/cache)docs/source/en/api/pipelines/hunyuan_video.mdlink_missing2 links name no file of the repository (../../optimization/memory, ../../optimization/fp16#torchcompile)docs/source/en/api/pipelines/hunyuan_video15.mdlink_missing3 links name no file of the repository (../../optimization/memory, ../../optimization/attention_backends, ../../using-diffusers/guiders)docs/source/en/api/pipelines/hunyuandit.mdlink_missing5 links name no file of the repository (../../using-diffusers/schedulers, ../../using-diffusers/loading#reusing-models-in-multiple-pipelines, ./stable_diffusion/stable_diffusion_xl#base-to-refiner-model, ...)docs/source/en/api/pipelines/hunyuanimage21.mdlink_missing2 links name no file of the repository (../../optimization/cache, ../../using-diffusers/guiders)docs/source/en/api/pipelines/kandinsky.mdlink_missing4 links name no file of the repository (../../using-diffusers/schedulers, ../../using-diffusers/loading#reusing-models-in-multiple-pipelines, ./stable_diffusion/stable_diffusion_xl, ...)docs/source/en/api/pipelines/kandinsky3.mdlink_missing2 links name no file of the repository (../../using-diffusers/schedulers, ../../using-diffusers/loading#reusing-models-in-multiple-pipelines)docs/source/en/api/pipelines/kandinsky6.mdlink_missing4 links name no file of the repository (../../optimization/memory, ../../optimization/memory#model-offloading, ../../optimization/memory#cpu-offloading, ...)docs/source/en/api/pipelines/kandinsky_s2v.mdlink_missinga link names no file of the repository (../../modular_diffusers/overview)