Buckets:

download
raw
262 kB
import"../chunks/DsnmJJEf.js";import{i as Zn,h as Xn,C as jn,H as t,D as a,E as In,s as Gn,a as f}from"../chunks/B4AMoTAu.js";import{p as Wn,o as Bn,s as e,f as _,a as p,b as Vn,c as r,d as u,n as s,r as o}from"../chunks/Bupkjr9f.js";import{E as c}from"../chunks/BCPzXmeI.js";const An='{"title":"LoRA","local":"lora","sections":[{"title":"RFD4ProteinaLoraLoaderMixin","local":"diffusers.loaders.RFD4ProteinaLoraLoaderMixin","sections":[],"depth":2},{"title":"LoraBaseMixin","local":"diffusers.loaders.lora_base.LoraBaseMixin","sections":[],"depth":2},{"title":"StableDiffusionLoraLoaderMixin","local":"diffusers.loaders.StableDiffusionLoraLoaderMixin","sections":[],"depth":2},{"title":"StableDiffusionXLLoraLoaderMixin","local":"diffusers.loaders.StableDiffusionXLLoraLoaderMixin","sections":[],"depth":2},{"title":"SD3LoraLoaderMixin","local":"diffusers.loaders.SD3LoraLoaderMixin","sections":[],"depth":2},{"title":"FluxLoraLoaderMixin","local":"diffusers.loaders.FluxLoraLoaderMixin","sections":[],"depth":2},{"title":"Flux2LoraLoaderMixin","local":"diffusers.loaders.Flux2LoraLoaderMixin","sections":[],"depth":2},{"title":"Flux3LoraLoaderMixin","local":"diffusers.loaders.Flux3LoraLoaderMixin","sections":[],"depth":2},{"title":"BriaFibo2LoraLoaderMixin","local":"diffusers.loaders.BriaFibo2LoraLoaderMixin","sections":[],"depth":2},{"title":"ErnieImageLoraLoaderMixin","local":"diffusers.loaders.ErnieImageLoraLoaderMixin","sections":[],"depth":2},{"title":"LTX2LoraLoaderMixin","local":"diffusers.loaders.LTX2LoraLoaderMixin","sections":[],"depth":2},{"title":"CogVideoXLoraLoaderMixin","local":"diffusers.loaders.CogVideoXLoraLoaderMixin","sections":[],"depth":2},{"title":"Mochi1LoraLoaderMixin","local":"diffusers.loaders.Mochi1LoraLoaderMixin","sections":[],"depth":2},{"title":"AuraFlowLoraLoaderMixin","local":"diffusers.loaders.AuraFlowLoraLoaderMixin","sections":[],"depth":2},{"title":"LTXVideoLoraLoaderMixin","local":"diffusers.loaders.LTXVideoLoraLoaderMixin","sections":[],"depth":2},{"title":"SanaLoraLoaderMixin","local":"diffusers.loaders.SanaLoraLoaderMixin","sections":[],"depth":2},{"title":"HeliosLoraLoaderMixin","local":"diffusers.loaders.HeliosLoraLoaderMixin","sections":[],"depth":2},{"title":"HunyuanVideoLoraLoaderMixin","local":"diffusers.loaders.HunyuanVideoLoraLoaderMixin","sections":[],"depth":2},{"title":"Lumina2LoraLoaderMixin","local":"diffusers.loaders.Lumina2LoraLoaderMixin","sections":[],"depth":2},{"title":"CogView4LoraLoaderMixin","local":"diffusers.loaders.CogView4LoraLoaderMixin","sections":[],"depth":2},{"title":"WanLoraLoaderMixin","local":"diffusers.loaders.WanLoraLoaderMixin","sections":[],"depth":2},{"title":"SkyReelsV2LoraLoaderMixin","local":"diffusers.loaders.SkyReelsV2LoraLoaderMixin","sections":[],"depth":2},{"title":"AmusedLoraLoaderMixin","local":"diffusers.loaders.AmusedLoraLoaderMixin","sections":[],"depth":2},{"title":"AnimaLoraLoaderMixin","local":"diffusers.loaders.AnimaLoraLoaderMixin","sections":[],"depth":2},{"title":"AceStepLoraLoaderMixin","local":"diffusers.loaders.AceStepLoraLoaderMixin","sections":[],"depth":2},{"title":"HiDreamImageLoraLoaderMixin","local":"diffusers.loaders.HiDreamImageLoraLoaderMixin","sections":[],"depth":2},{"title":"QwenImageLoraLoaderMixin","local":"diffusers.loaders.QwenImageLoraLoaderMixin","sections":[],"depth":2},{"title":"ZImageLoraLoaderMixin","local":"diffusers.loaders.ZImageLoraLoaderMixin","sections":[],"depth":2},{"title":"CosmosLoraLoaderMixin","local":"diffusers.loaders.CosmosLoraLoaderMixin","sections":[],"depth":2},{"title":"KandinskyLoraLoaderMixin","local":"diffusers.loaders.KandinskyLoraLoaderMixin","sections":[],"depth":2},{"title":"Ideogram4LoraLoaderMixin","local":"diffusers.loaders.Ideogram4LoraLoaderMixin","sections":[],"depth":2},{"title":"Krea2LoraLoaderMixin","local":"diffusers.loaders.Krea2LoraLoaderMixin","sections":[],"depth":2},{"title":"MiniMaxH3LoraLoaderMixin","local":"diffusers.loaders.MiniMaxH3LoraLoaderMixin","sections":[],"depth":2},{"title":"PikaH3FlexLoraLoaderMixin","local":"diffusers.loaders.PikaH3FlexLoraLoaderMixin","sections":[],"depth":2},{"title":"LoraBaseMixin","local":"diffusers.loaders.lora_base.LoraBaseMixin","sections":[],"depth":2}],"depth":1}';var Cn=u('<meta name="hf:doc:metadata"/>'),m=u("<p>Example:</p> <!>",1),uo=u("<p>Examples:</p> <!>",1),qn=u(`<p></p> <!> <!> <p>LoRA is a fast and lightweight training method that inserts and trains a significantly smaller number of parameters instead of all the model parameters. This produces a smaller file (~100 MBs) and makes it easier to quickly train a model to learn a new concept. LoRA weights are typically loaded into the denoiser, text encoder or both. The denoiser usually corresponds to a UNet (<a href="/docs/diffusers/pr_15174/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>, for example) or a Transformer (<a href="/docs/diffusers/pr_15174/en/api/models/sd3_transformer2d#diffusers.SD3Transformer2DModel">SD3Transformer2DModel</a>, for example). There are several classes for loading LoRA weights:</p> <ul><li><code>StableDiffusionLoraLoaderMixin</code> provides functions for loading and unloading, fusing and unfusing, enabling and disabling, and more functions for managing LoRA weights. This class can be used with any model.</li> <li><code>StableDiffusionXLLoraLoaderMixin</code> is a <a href="../../api/pipelines/stable_diffusion/stable_diffusion_xl">Stable Diffusion (SDXL)</a> version of the <code>StableDiffusionLoraLoaderMixin</code> class for loading and saving LoRA weights. It can only be used with the SDXL model.</li> <li><code>SD3LoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/blog/sd3" rel="nofollow">Stable Diffusion 3</a>.</li> <li><code>FluxLoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/flux" rel="nofollow">Flux</a>.</li> <li><code>CogVideoXLoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/cogvideox" rel="nofollow">CogVideoX</a>.</li> <li><code>Mochi1LoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/mochi" rel="nofollow">Mochi</a>.</li> <li><code>AuraFlowLoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/fal/AuraFlow" rel="nofollow">AuraFlow</a>.</li> <li><code>LTXVideoLoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/ltx_video" rel="nofollow">LTX-Video</a>.</li> <li><code>SanaLoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/sana" rel="nofollow">Sana</a>.</li> <li><code>HeliosLoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/helios" rel="nofollow">HunyuanVideo</a>.</li> <li><code>HunyuanVideoLoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/hunyuan_video" rel="nofollow">HunyuanVideo</a>.</li> <li><code>Lumina2LoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/lumina2" rel="nofollow">Lumina2</a>.</li> <li><code>WanLoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/wan" rel="nofollow">Wan</a>.</li> <li><code>SkyReelsV2LoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/skyreels_v2" rel="nofollow">SkyReels-V2</a>.</li> <li><code>CogView4LoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/cogview4" rel="nofollow">CogView4</a>.</li> <li><code>AmusedLoraLoaderMixin</code> is for the <code>AmusedPipeline</code>.</li> <li><code>AnimaLoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/anima" rel="nofollow">Anima</a>.</li> <li><code>AceStepLoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/ace_step" rel="nofollow">ACE-Step</a>.</li> <li><code>HiDreamImageLoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/hidream" rel="nofollow">HiDream Image</a></li> <li><code>QwenImageLoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/qwen" rel="nofollow">Qwen Image</a>.</li> <li><code>ZImageLoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/zimage" rel="nofollow">Z-Image</a>.</li> <li><code>Flux2LoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/flux2" rel="nofollow">Flux2</a>.</li> <li><code>ErnieImageLoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/ernie_image" rel="nofollow">Ernie-Image</a>.</li> <li><code>LTX2LoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/ltx2" rel="nofollow">Flux2</a>.</li> <li><code>MiniMaxH3LoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/minimax_h3" rel="nofollow">MiniMax-H3</a>.</li> <li><code>PikaH3FlexLoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/pika_h3_flex" rel="nofollow">Pika H3 Flex</a>.</li> <li><code>RFD4ProteinaLoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/rfd4_proteina" rel="nofollow">RFD4-Proteína</a>.</li> <li><code>BriaFibo2LoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/bria_fibo2" rel="nofollow">fibo-2</a>.</li> <li><code>LoraBaseMixin</code> provides a base class with several utility methods to fuse, unfuse, unload, LoRAs and more.</li></ul> <blockquote class="tip"><p>To learn more about how to load LoRA weights, see the <a href="../../tutorials/using_peft_for_inference">LoRA</a> loading guide.</p></blockquote> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into <a href="/docs/diffusers/pr_15174/en/api/models/rfd4_proteina_transformer#diffusers.RFD4ProteinaTransformer">RFD4ProteinaTransformer</a>.</p> <p>The autoencoder is paired with the denoiser checkpoint and is not adapted, so the transformer is the only loadable
module.</p> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>fuse_lora()</code> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet">load_lora_into_unet()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for more information.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>unfuse_lora()</code> for more details.</p></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Utility class for handling LoRAs.</p> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Delete an adapter’s LoRA layers from the pipeline.</p> <!></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Disables the active LoRA layers of the pipeline.</p> <!></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Enables the active LoRA layers of the pipeline.</p> <!></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Hotswap adapters without triggering recompilation of a model or if the ranks of the loaded adapters are
different.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Fuses the LoRA parameters into the original parameters of the corresponding blocks.</p> <!></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Gets the list of the current active adapters.</p> <!></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Gets the current list of all available adapters in the pipeline.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Set the currently active adapters for use in the pipeline.</p> <!></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Moves the LoRAs listed in <code>adapter_names</code> to a target device. Useful for offloading the LoRA to the CPU in case
you want to load multiple adapters and free some GPU memory.</p> <p>After offloading the LoRA adapters to CPU, as long as the rest of the model is still on GPU, the LoRA adapters
can no longer be used for inference, as that would cause a device mismatch. Remember to set the device back to
GPU before using those LoRA adapters for inference.</p> <!></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Reverses the effect of <a href="https://huggingface.co/docs/diffusers/main/en/api/loaders#diffusers.loaders.LoraBaseMixin.fuse_lora" rel="nofollow"><code>pipe.fuse_lora()</code></a>.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Unloads the LoRA parameters.</p> <!></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Writes the state dict of the LoRA layers (optionally with metadata) to disk.</p></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into Stable Diffusion <a href="/docs/diffusers/pr_15174/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a> and <a href="https://huggingface.co/docs/transformers/model_doc/clip#transformers.CLIPTextModel" rel="nofollow"><code>CLIPTextModel</code></a>.</p> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>This will load the LoRA layers specified in <code>state_dict</code> into <code>text_encoder</code></p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>This will load the LoRA layers specified in <code>state_dict</code> into <code>unet</code>.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA weights specified in <code>pretrained_model_name_or_path_or_dict</code> into <code>self.unet</code> and <code>self.text_encoder</code>.</p> <p>All kwargs are forwarded to <code>self.lora_state_dict</code>.</p> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details on how the state dict is
loaded.</p> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet">load_lora_into_unet()</a> for more details on how the state dict is
loaded into <code>self.unet</code>.</p> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_text_encoder">load_lora_into_text_encoder()</a> for more details on how the state
dict is loaded into <code>self.text_encoder</code>.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Return state dict for lora weights and the network alphas.</p> <blockquote class="warning"><p>> We support loading A1111 formatted LoRA checkpoints in a limited capacity. > > This function is
experimental and might change in the future.</p></blockquote></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Save the LoRA parameters corresponding to the UNet and text encoder.</p></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into Stable Diffusion XL <a href="/docs/diffusers/pr_15174/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>, <a href="https://huggingface.co/docs/transformers/model_doc/clip#transformers.CLIPTextModel" rel="nofollow"><code>CLIPTextModel</code></a>, and <a href="https://huggingface.co/docs/transformers/model_doc/clip#transformers.CLIPTextModelWithProjection" rel="nofollow"><code>CLIPTextModelWithProjection</code></a>.</p> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>fuse_lora()</code> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>This will load the LoRA layers specified in <code>state_dict</code> into <code>text_encoder</code></p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>This will load the LoRA layers specified in <code>state_dict</code> into <code>unet</code>.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Return state dict for lora weights and the network alphas.</p> <blockquote class="warning"><p>> We support loading A1111 formatted LoRA checkpoints in a limited capacity. > > This function is
experimental and might change in the future.</p></blockquote></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for more information.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>unfuse_lora()</code> for more details.</p></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into <a href="/docs/diffusers/pr_15174/en/api/models/sd3_transformer2d#diffusers.SD3Transformer2DModel">SD3Transformer2DModel</a>, <a href="https://huggingface.co/docs/transformers/model_doc/clip#transformers.CLIPTextModel" rel="nofollow"><code>CLIPTextModel</code></a>, and <a href="https://huggingface.co/docs/transformers/model_doc/clip#transformers.CLIPTextModelWithProjection" rel="nofollow"><code>CLIPTextModelWithProjection</code></a>.</p> <p>Specific to <a href="/docs/diffusers/pr_15174/en/api/pipelines/stable_diffusion/stable_diffusion_3#diffusers.StableDiffusion3Pipeline">StableDiffusion3Pipeline</a>.</p> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>fuse_lora()</code> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>This will load the LoRA layers specified in <code>state_dict</code> into <code>text_encoder</code></p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet">load_lora_into_unet()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for more information.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>unfuse_lora()</code> for more details.</p></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into <a href="/docs/diffusers/pr_15174/en/api/models/flux_transformer#diffusers.FluxTransformer2DModel">FluxTransformer2DModel</a>, <a href="https://huggingface.co/docs/transformers/model_doc/clip#transformers.CLIPTextModel" rel="nofollow"><code>CLIPTextModel</code></a>.</p> <p>Specific to <a href="/docs/diffusers/pr_15174/en/api/pipelines/flux#diffusers.FluxPipeline">FluxPipeline</a>.</p> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>This will load the LoRA layers specified in <code>state_dict</code> into <code>text_encoder</code></p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet">load_lora_into_unet()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Save the LoRA parameters corresponding to the UNet and text encoder.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Reverses the effect of <a href="https://huggingface.co/docs/diffusers/main/en/api/loaders#diffusers.loaders.LoraBaseMixin.fuse_lora" rel="nofollow"><code>pipe.fuse_lora()</code></a>.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Unloads the LoRA parameters.</p> <!></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into <a href="/docs/diffusers/pr_15174/en/api/models/flux2_transformer#diffusers.Flux2Transformer2DModel">Flux2Transformer2DModel</a>. Specific to <a href="/docs/diffusers/pr_15174/en/api/pipelines/flux2#diffusers.Flux2Pipeline">Flux2Pipeline</a>.</p> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>fuse_lora()</code> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet">load_lora_into_unet()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for more information.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>unfuse_lora()</code> for more details.</p></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>fuse_lora()</code> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet">load_lora_into_unet()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for more information.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>unfuse_lora()</code> for more details.</p></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into <a href="/docs/diffusers/pr_15174/en/api/models/transformer_bria_fibo2#diffusers.BriaFibo2Transformer2DModel">BriaFibo2Transformer2DModel</a>. Specific to <a href="/docs/diffusers/pr_15174/en/api/pipelines/bria_fibo2#diffusers.BriaFibo2Pipeline">BriaFibo2Pipeline</a>.</p> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>fuse_lora()</code> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet">load_lora_into_unet()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for more information.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>unfuse_lora()</code> for more details.</p></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into <a href="/docs/diffusers/pr_15174/en/api/models/ernie_image_transformer2d#diffusers.ErnieImageTransformer2DModel">ErnieImageTransformer2DModel</a>. Specific to <code>ErnieImagePipeline</code>.</p> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>fuse_lora()</code> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet">load_lora_into_unet()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for more information.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>unfuse_lora()</code> for more details.</p></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into <a href="/docs/diffusers/pr_15174/en/api/models/ltx2_video_transformer3d#diffusers.LTX2VideoTransformer3DModel">LTX2VideoTransformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_15174/en/api/pipelines/ltx2#diffusers.LTX2Pipeline">LTX2Pipeline</a>.</p> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>fuse_lora()</code> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet">load_lora_into_unet()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for more information.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>unfuse_lora()</code> for more details.</p></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into <a href="/docs/diffusers/pr_15174/en/api/models/cogvideox_transformer3d#diffusers.CogVideoXTransformer3DModel">CogVideoXTransformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_15174/en/api/pipelines/cogvideox#diffusers.CogVideoXPipeline">CogVideoXPipeline</a>.</p> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>fuse_lora()</code> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet">load_lora_into_unet()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for more information.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>unfuse_lora()</code> for more details.</p></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into <a href="/docs/diffusers/pr_15174/en/api/models/mochi_transformer3d#diffusers.MochiTransformer3DModel">MochiTransformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_15174/en/api/pipelines/mochi#diffusers.MochiPipeline">MochiPipeline</a>.</p> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>fuse_lora()</code> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet">load_lora_into_unet()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for more information.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>unfuse_lora()</code> for more details.</p></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into <a href="/docs/diffusers/pr_15174/en/api/models/aura_flow_transformer2d#diffusers.AuraFlowTransformer2DModel">AuraFlowTransformer2DModel</a> Specific to <a href="/docs/diffusers/pr_15174/en/api/pipelines/aura_flow#diffusers.AuraFlowPipeline">AuraFlowPipeline</a>.</p> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>fuse_lora()</code> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet">load_lora_into_unet()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for more information.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>unfuse_lora()</code> for more details.</p></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into <a href="/docs/diffusers/pr_15174/en/api/models/ltx_video_transformer3d#diffusers.LTXVideoTransformer3DModel">LTXVideoTransformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_15174/en/api/pipelines/ltx_video#diffusers.LTXPipeline">LTXPipeline</a>.</p> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>fuse_lora()</code> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet">load_lora_into_unet()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for more information.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>unfuse_lora()</code> for more details.</p></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into <a href="/docs/diffusers/pr_15174/en/api/models/sana_transformer2d#diffusers.SanaTransformer2DModel">SanaTransformer2DModel</a>. Specific to <a href="/docs/diffusers/pr_15174/en/api/pipelines/sana#diffusers.SanaPipeline">SanaPipeline</a>.</p> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>fuse_lora()</code> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet">load_lora_into_unet()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for more information.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>unfuse_lora()</code> for more details.</p></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into <a href="/docs/diffusers/pr_15174/en/api/models/helios_transformer3d#diffusers.HeliosTransformer3DModel">HeliosTransformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_15174/en/api/pipelines/helios#diffusers.HeliosPipeline">HeliosPipeline</a> and <a href="/docs/diffusers/pr_15174/en/api/pipelines/helios#diffusers.HeliosPyramidPipeline">HeliosPyramidPipeline</a>.</p> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>fuse_lora()</code> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet">load_lora_into_unet()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for more information.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>unfuse_lora()</code> for more details.</p></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into <a href="/docs/diffusers/pr_15174/en/api/models/hunyuan_video_transformer_3d#diffusers.HunyuanVideoTransformer3DModel">HunyuanVideoTransformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_15174/en/api/pipelines/hunyuan_video#diffusers.HunyuanVideoPipeline">HunyuanVideoPipeline</a>.</p> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>fuse_lora()</code> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet">load_lora_into_unet()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for more information.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>unfuse_lora()</code> for more details.</p></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into <a href="/docs/diffusers/pr_15174/en/api/models/lumina2_transformer2d#diffusers.Lumina2Transformer2DModel">Lumina2Transformer2DModel</a>. Specific to <a href="/docs/diffusers/pr_15174/en/api/pipelines/lumina2#diffusers.Lumina2Pipeline">Lumina2Pipeline</a>.</p> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>fuse_lora()</code> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet">load_lora_into_unet()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for more information.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>unfuse_lora()</code> for more details.</p></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into <a href="/docs/diffusers/pr_15174/en/api/models/wan_transformer_3d#diffusers.WanTransformer3DModel">WanTransformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_15174/en/api/pipelines/cogview4#diffusers.CogView4Pipeline">CogView4Pipeline</a>.</p> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>fuse_lora()</code> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet">load_lora_into_unet()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for more information.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>unfuse_lora()</code> for more details.</p></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into <a href="/docs/diffusers/pr_15174/en/api/models/wan_transformer_3d#diffusers.WanTransformer3DModel">WanTransformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_15174/en/api/pipelines/wan#diffusers.WanPipeline">WanPipeline</a> and <code>[WanImageToVideoPipeline</code>].</p> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>fuse_lora()</code> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet">load_lora_into_unet()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for more information.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>unfuse_lora()</code> for more details.</p></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into <a href="/docs/diffusers/pr_15174/en/api/models/skyreels_v2_transformer_3d#diffusers.SkyReelsV2Transformer3DModel">SkyReelsV2Transformer3DModel</a>.</p> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>fuse_lora()</code> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet">load_lora_into_unet()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for more information.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>unfuse_lora()</code> for more details.</p></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet">load_lora_into_unet()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Save the LoRA parameters corresponding to the UNet and text encoder.</p></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into <a href="/docs/diffusers/pr_15174/en/api/models/cosmos_transformer3d#diffusers.CosmosTransformer3DModel">CosmosTransformer3DModel</a> and <a href="/docs/diffusers/pr_15174/en/api/pipelines/anima#diffusers.AnimaTextConditioner">AnimaTextConditioner</a>.</p> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>fuse_lora()</code> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>unfuse_lora()</code> for more details.</p></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into <a href="/docs/diffusers/pr_15174/en/api/models/ace_step_transformer#diffusers.AceStepTransformer1DModel">AceStepTransformer1DModel</a>. Specific to <a href="/docs/diffusers/pr_15174/en/api/pipelines/ace_step#diffusers.AceStepPipeline">AceStepPipeline</a>.</p> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>fuse_lora()</code> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet">load_lora_into_unet()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for more information.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>unfuse_lora()</code> for more details.</p></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into <a href="/docs/diffusers/pr_15174/en/api/models/hidream_image_transformer#diffusers.HiDreamImageTransformer2DModel">HiDreamImageTransformer2DModel</a>. Specific to <a href="/docs/diffusers/pr_15174/en/api/pipelines/hidream#diffusers.HiDreamImagePipeline">HiDreamImagePipeline</a>.</p> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>fuse_lora()</code> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet">load_lora_into_unet()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for more information.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>unfuse_lora()</code> for more details.</p></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into <a href="/docs/diffusers/pr_15174/en/api/models/qwenimage_transformer2d#diffusers.QwenImageTransformer2DModel">QwenImageTransformer2DModel</a>. Specific to <a href="/docs/diffusers/pr_15174/en/api/pipelines/qwenimage#diffusers.QwenImagePipeline">QwenImagePipeline</a>.</p> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>fuse_lora()</code> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet">load_lora_into_unet()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for more information.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>unfuse_lora()</code> for more details.</p></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into <a href="/docs/diffusers/pr_15174/en/api/models/z_image_transformer2d#diffusers.ZImageTransformer2DModel">ZImageTransformer2DModel</a>. Specific to <a href="/docs/diffusers/pr_15174/en/api/pipelines/z_image#diffusers.ZImagePipeline">ZImagePipeline</a>.</p> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>fuse_lora()</code> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet">load_lora_into_unet()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for more information.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>unfuse_lora()</code> for more details.</p></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into <a href="/docs/diffusers/pr_15174/en/api/models/cosmos_transformer3d#diffusers.CosmosTransformer3DModel">CosmosTransformer3DModel</a>, Specific to <a href="/docs/diffusers/pr_15174/en/api/pipelines/cosmos#diffusers.Cosmos2_5_PredictBasePipeline">Cosmos2_5_PredictBasePipeline</a>.</p> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>fuse_lora()</code> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet">load_lora_into_unet()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for more information.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>unfuse_lora()</code> for more details.</p></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into <code>Kandinsky5Transformer3DModel</code>,</p> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>fuse_lora()</code> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet">load_lora_into_unet()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for more information.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>unfuse_lora()</code> for more details.</p></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into <a href="/docs/diffusers/pr_15174/en/api/models/ideogram4_transformer2d#diffusers.Ideogram4Transformer2DModel">Ideogram4Transformer2DModel</a>. Specific to <a href="/docs/diffusers/pr_15174/en/api/pipelines/ideogram4#diffusers.Ideogram4Pipeline">Ideogram4Pipeline</a>.</p> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>fuse_lora()</code> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet">load_lora_into_unet()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for more information.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>unfuse_lora()</code> for more details.</p></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into <a href="/docs/diffusers/pr_15174/en/api/models/krea2_transformer2d#diffusers.Krea2Transformer2DModel">Krea2Transformer2DModel</a>. Specific to <a href="/docs/diffusers/pr_15174/en/api/pipelines/krea2#diffusers.Krea2Pipeline">Krea2Pipeline</a>.</p> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>fuse_lora()</code> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet">load_lora_into_unet()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for more information.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>unfuse_lora()</code> for more details.</p></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into <a href="/docs/diffusers/pr_15174/en/api/models/minimax_h3_transformer3d#diffusers.MiniMaxH3Transformer3DModel">MiniMaxH3Transformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_15174/en/api/pipelines/minimax_h3#diffusers.MiniMaxH3ModularPipeline">MiniMaxH3ModularPipeline</a>.</p> <p>MiniMax-H3 ships two independent DiT partitions with identical module names (a LoRA for one loads into the other
and degrades output), so routing is explicit: converted state dicts target <code>transformer.</code>; reach <code>transformer_ref</code> with a <code>transformer_ref.</code>-prefixed file or <code>load_into_transformer_ref=True</code>.</p> <p>DiffSynth-Studio LoRAs (e.g. <a href="https://huggingface.co/DiffSynth-Studio/MiniMax-H3-LoRA-LineartAnime" rel="nofollow">DiffSynth-Studio/MiniMax-H3-LoRA-LineartAnime</a>)
are trained against the raw checkpoint’s per-head-interleaved fused QKV and are de-interleaved on conversion. Their
fp32 factors make the unfused LoRA path compute in fp32; <code>.to(torch.bfloat16)</code> on the model after loading restores
the bf16 memory budget.</p> <p>LoRAs trained against a pruned checkpoint (the <code>*_pruned_*</code> files in <a href="https://huggingface.co/Comfy-Org/MiniMax-H3" rel="nofollow">Comfy-Org/MiniMax-H3</a>; <a href="https://huggingface.co/joyfox/MiniMax-H3-Turbo" rel="nofollow">joyfox/MiniMax-H3-Turbo</a> is one) fail with a size mismatch.
Alpha-less files load at <code>alpha == rank</code> (scale 1.0, the convention stated by e.g. <a href="https://huggingface.co/larryvrh/MiniMax-H3-Turbo-Lora" rel="nofollow">larryvrh/MiniMax-H3-Turbo-Lora</a>); a <code>__metadata__</code> <code>alpha</code> entry (e.g. <a href="https://huggingface.co/lightx2v/Minimax-h3-Turbo" rel="nofollow">lightx2v/Minimax-h3-Turbo</a>’s 8-step file), when
present, is honored instead.</p> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>fuse_lora()</code> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet">load_lora_into_unet()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into the <code>transformer_ref</code> partition. <code>prefix</code> is the component name the keys carry, which is <code>transformer_ref</code> for a file that names the partition and <code>transformer</code> for one routed here by <code>load_into_transformer_ref=True</code>. See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet">load_lora_into_unet()</a> for more
details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into <code>transformer</code> or, with <code>load_into_transformer_ref=True</code>, into <code>transformer_ref</code>. See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Save the LoRA layers of one or both MiniMax-H3 partitions. Which partition a LoRA belongs to is not recoverable
from its keys, so this is the only way to publish an H3 LoRA that records it. See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights">save_lora_weights()</a> for more information.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>See <code>unfuse_lora()</code> for more details.</p></div></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Load LoRA layers into <a href="/docs/diffusers/pr_15174/en/api/models/minimax_h3_transformer3d#diffusers.MiniMaxH3Transformer3DModel">MiniMaxH3Transformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_15174/en/api/pipelines/pika_h3_flex#diffusers.PikaH3FlexModularPipeline">PikaH3FlexModularPipeline</a>.</p> <p>The Pika H3 Flex release <em>is</em> a pair of rank-128 adapters over the two MiniMax-H3 transformer partitions, published
as plain PEFT dumps of the diffusers module names (<code>fl2va/adapter.safetensors</code> for <code>transformer</code>, <code>ref2va/adapter.safetensors</code> for <code>transformer_ref</code>). The alpha-less files load at <code>alpha == rank</code> (scale 1.0), the
adapters’ own contract, and the loading, routing and saving are those of <code>MiniMaxH3LoraLoaderMixin</code>: the <code>fl2va</code> adapter goes into <code>transformer</code>, and the <code>ref2va</code> adapter into <code>transformer_ref</code> — on its own when the pipeline
holds that partition alone (<code>workflow="ref2va"</code>), with <code>load_into_transformer_ref=True</code> when it holds both.</p> <!></div> <!> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Utility class for handling LoRAs.</p> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Delete an adapter’s LoRA layers from the pipeline.</p> <!></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Disables the active LoRA layers of the pipeline.</p> <!></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Enables the active LoRA layers of the pipeline.</p> <!></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Hotswap adapters without triggering recompilation of a model or if the ranks of the loaded adapters are
different.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Fuses the LoRA parameters into the original parameters of the corresponding blocks.</p> <!></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Gets the list of the current active adapters.</p> <!></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Gets the current list of all available adapters in the pipeline.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Set the currently active adapters for use in the pipeline.</p> <!></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Moves the LoRAs listed in <code>adapter_names</code> to a target device. Useful for offloading the LoRA to the CPU in case
you want to load multiple adapters and free some GPU memory.</p> <p>After offloading the LoRA adapters to CPU, as long as the rest of the model is still on GPU, the LoRA adapters
can no longer be used for inference, as that would cause a device mismatch. Remember to set the device back to
GPU before using those LoRA adapters for inference.</p> <!></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Reverses the effect of <a href="https://huggingface.co/docs/diffusers/main/en/api/loaders#diffusers.loaders.LoraBaseMixin.fuse_lora" rel="nofollow"><code>pipe.fuse_lora()</code></a>.</p></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Unloads the LoRA parameters.</p> <!></div> <div class="docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"><!> <p>Writes the state dict of the LoRA layers (optionally with metadata) to disk.</p></div></div> <!> <p></p>`,1);function Qn(Ui,Ji){Wn(Ji,!1),Bn(()=>{new URLSearchParams(window.location.search).get("fw")}),Zn();var ho=qn();Xn("yjofn9",d=>{var n=Cn();Gn(n,"content",An),p(d,n)});var go=e(_(ho),2);jn(go,{containerStyle:"float: inline-end; margin-inline-start: 10px; display: inline-flex; position: relative; z-index: 10;"});var vo=e(go,2);t(vo,{title:"LoRA",local:"lora",headingTag:"h1"});var bo=e(vo,8);t(bo,{title:"RFD4ProteinaLoraLoaderMixin",local:"diffusers.loaders.RFD4ProteinaLoraLoaderMixin",headingTag:"h2"});var h=e(bo,2),Lo=r(h);a(Lo,{name:"class diffusers.loaders.RFD4ProteinaLoraLoaderMixin",anchor:"diffusers.loaders.RFD4ProteinaLoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L7532",parameters:[]});var g=e(Lo,6),Zi=r(g);a(Zi,{name:"fuse_lora",anchor:"diffusers.loaders.RFD4ProteinaLoraLoaderMixin.fuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L7694",parameters:[{name:"components",val:": list = ['transformer']"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": list[str] | None = None"},{name:"**kwargs",val:""}]}),s(2),o(g);var v=e(g,2),Xi=r(v);a(Xi,{name:"load_lora_into_transformer",anchor:"diffusers.loaders.RFD4ProteinaLoraLoaderMixin.load_lora_into_transformer",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L7631",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}]}),s(2),o(v);var b=e(v,2),ji=r(b);a(ji,{name:"load_lora_weights",anchor:"diffusers.loaders.RFD4ProteinaLoraLoaderMixin.load_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L7595",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"adapter_name",val:": str | None = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}]}),s(2),o(b);var L=e(b,2),Ii=r(L);a(Ii,{name:"lora_state_dict",anchor:"diffusers.loaders.RFD4ProteinaLoraLoaderMixin.lora_state_dict",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L7543",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"**kwargs",val:""}]}),s(2),o(L);var x=e(L,2),Gi=r(x);a(Gi,{name:"save_lora_weights",anchor:"diffusers.loaders.RFD4ProteinaLoraLoaderMixin.save_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L7658",parameters:[{name:"save_directory",val:": str | os.PathLike"},{name:"transformer_lora_layers",val:": dict = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": dict | None = None"}]}),s(2),o(x);var xo=e(x,2),Wi=r(xo);a(Wi,{name:"unfuse_lora",anchor:"diffusers.loaders.RFD4ProteinaLoraLoaderMixin.unfuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L7714",parameters:[{name:"components",val:": list = ['transformer']"},{name:"**kwargs",val:""}]}),s(2),o(xo),o(h);var yo=e(h,2);t(yo,{title:"LoraBaseMixin",local:"diffusers.loaders.lora_base.LoraBaseMixin",headingTag:"h2"});var y=e(yo,2),Mo=r(y);a(Mo,{name:"class diffusers.loaders.lora_base.LoraBaseMixin",anchor:"diffusers.loaders.lora_base.LoraBaseMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_base.py#L491",parameters:[]});var M=e(Mo,4),wo=r(M);a(wo,{name:"delete_adapters",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.delete_adapters",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_base.py#L861",parameters:[{name:"adapter_names",val:": list[str] | str"}],parametersDescription:[{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.delete_adapters.adapter_names",description:`<strong>adapter_names</strong> (<code>list[str, str]</code>) &#x2014;
The names of the adapters to delete.`,name:"adapter_names"}]});var Bi=e(wo,4);c(Bi,{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.delete_adapters.example",children:(d,n)=>{var i=m(),l=e(_(i),2);f(l,{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvclRleHQySW1hZ2UlMEFpbXBvcnQlMjB0b3JjaCUwQSUwQXBpcGVsaW5lJTIwJTNEJTIwQXV0b1BpcGVsaW5lRm9yVGV4dDJJbWFnZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIyc3RhYmlsaXR5YWklMkZzdGFibGUtZGlmZnVzaW9uLXhsLWJhc2UtMS4wJTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTBBKS50byglMjJjdWRhJTIyKSUwQXBpcGVsaW5lLmxvYWRfbG9yYV93ZWlnaHRzKCUwQSUyMCUyMCUyMCUyMCUyMmpiaWxja2UtaGYlMkZzZHhsLWNpbmVtYXRpYy0xJTIyJTJDJTIwd2VpZ2h0X25hbWUlM0QlMjJweXRvcmNoX2xvcmFfd2VpZ2h0cy5zYWZldGVuc29ycyUyMiUyQyUyMGFkYXB0ZXJfbmFtZXMlM0QlMjJjaW5lbWF0aWMlMjIlMEEpJTBBcGlwZWxpbmUuZGVsZXRlX2FkYXB0ZXJzKCUyMmNpbmVtYXRpYyUyMik=",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForText2Image
<span class="hljs-keyword">import</span> torch
pipeline = AutoPipelineForText2Image.from_pretrained(
<span class="hljs-string">&quot;stabilityai/stable-diffusion-xl-base-1.0&quot;</span>, torch_dtype=torch.float16
).to(<span class="hljs-string">&quot;cuda&quot;</span>)
pipeline.load_lora_weights(
<span class="hljs-string">&quot;jbilcke-hf/sdxl-cinematic-1&quot;</span>, weight_name=<span class="hljs-string">&quot;pytorch_lora_weights.safetensors&quot;</span>, adapter_names=<span class="hljs-string">&quot;cinematic&quot;</span>
)
pipeline.delete_adapters(<span class="hljs-string">&quot;cinematic&quot;</span>)`,lang:"py",wrap:!1}),p(d,i)},$$slots:{default:!0}}),o(M);var w=e(M,2),So=r(w);a(So,{name:"disable_lora",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.disable_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_base.py#L801",parameters:[]});var Vi=e(So,4);c(Vi,{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.disable_lora.example",children:(d,n)=>{var i=m(),l=e(_(i),2);f(l,{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvclRleHQySW1hZ2UlMEFpbXBvcnQlMjB0b3JjaCUwQSUwQXBpcGVsaW5lJTIwJTNEJTIwQXV0b1BpcGVsaW5lRm9yVGV4dDJJbWFnZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIyc3RhYmlsaXR5YWklMkZzdGFibGUtZGlmZnVzaW9uLXhsLWJhc2UtMS4wJTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTBBKS50byglMjJjdWRhJTIyKSUwQXBpcGVsaW5lLmxvYWRfbG9yYV93ZWlnaHRzKCUwQSUyMCUyMCUyMCUyMCUyMmpiaWxja2UtaGYlMkZzZHhsLWNpbmVtYXRpYy0xJTIyJTJDJTIwd2VpZ2h0X25hbWUlM0QlMjJweXRvcmNoX2xvcmFfd2VpZ2h0cy5zYWZldGVuc29ycyUyMiUyQyUyMGFkYXB0ZXJfbmFtZSUzRCUyMmNpbmVtYXRpYyUyMiUwQSklMEFwaXBlbGluZS5kaXNhYmxlX2xvcmEoKQ==",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForText2Image
<span class="hljs-keyword">import</span> torch
pipeline = AutoPipelineForText2Image.from_pretrained(
<span class="hljs-string">&quot;stabilityai/stable-diffusion-xl-base-1.0&quot;</span>, torch_dtype=torch.float16
).to(<span class="hljs-string">&quot;cuda&quot;</span>)
pipeline.load_lora_weights(
<span class="hljs-string">&quot;jbilcke-hf/sdxl-cinematic-1&quot;</span>, weight_name=<span class="hljs-string">&quot;pytorch_lora_weights.safetensors&quot;</span>, adapter_name=<span class="hljs-string">&quot;cinematic&quot;</span>
)
pipeline.disable_lora()`,lang:"py",wrap:!1}),p(d,i)},$$slots:{default:!0}}),o(w);var S=e(w,2),To=r(S);a(To,{name:"enable_lora",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.enable_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_base.py#L831",parameters:[]});var Ai=e(To,4);c(Ai,{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.enable_lora.example",children:(d,n)=>{var i=m(),l=e(_(i),2);f(l,{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvclRleHQySW1hZ2UlMEFpbXBvcnQlMjB0b3JjaCUwQSUwQXBpcGVsaW5lJTIwJTNEJTIwQXV0b1BpcGVsaW5lRm9yVGV4dDJJbWFnZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIyc3RhYmlsaXR5YWklMkZzdGFibGUtZGlmZnVzaW9uLXhsLWJhc2UtMS4wJTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTBBKS50byglMjJjdWRhJTIyKSUwQXBpcGVsaW5lLmxvYWRfbG9yYV93ZWlnaHRzKCUwQSUyMCUyMCUyMCUyMCUyMmpiaWxja2UtaGYlMkZzZHhsLWNpbmVtYXRpYy0xJTIyJTJDJTIwd2VpZ2h0X25hbWUlM0QlMjJweXRvcmNoX2xvcmFfd2VpZ2h0cy5zYWZldGVuc29ycyUyMiUyQyUyMGFkYXB0ZXJfbmFtZSUzRCUyMmNpbmVtYXRpYyUyMiUwQSklMEFwaXBlbGluZS5lbmFibGVfbG9yYSgp",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForText2Image
<span class="hljs-keyword">import</span> torch
pipeline = AutoPipelineForText2Image.from_pretrained(
<span class="hljs-string">&quot;stabilityai/stable-diffusion-xl-base-1.0&quot;</span>, torch_dtype=torch.float16
).to(<span class="hljs-string">&quot;cuda&quot;</span>)
pipeline.load_lora_weights(
<span class="hljs-string">&quot;jbilcke-hf/sdxl-cinematic-1&quot;</span>, weight_name=<span class="hljs-string">&quot;pytorch_lora_weights.safetensors&quot;</span>, adapter_name=<span class="hljs-string">&quot;cinematic&quot;</span>
)
pipeline.enable_lora()`,lang:"py",wrap:!1}),p(d,i)},$$slots:{default:!0}}),o(S);var T=e(S,2),Ci=r(T);a(Ci,{name:"enable_lora_hotswap",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.enable_lora_hotswap",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_base.py#L1008",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.enable_lora_hotswap.target_rank",description:`<strong>target_rank</strong> (<code>int</code>) &#x2014;
The highest rank among all the adapters that will be loaded.`,name:"target_rank"},{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.enable_lora_hotswap.check_compiled",description:`<strong>check_compiled</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;error&quot;</code>) &#x2014;
How to handle a model that is already compiled. The check can return the following messages:
<ul>
<li>&#x201C;error&#x201D; (default): raise an error</li>
<li>&#x201C;warn&#x201D;: issue a warning</li>
<li>&#x201C;ignore&#x201D;: do nothing</li>
</ul>`,name:"check_compiled"}]}),s(2),o(T);var N=e(T,2),No=r(N);a(No,{name:"fuse_lora",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.fuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_base.py#L549",parameters:[{name:"components",val:": list[str] | None = None"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": list[str] | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.fuse_lora.components",description:"<strong>components</strong> &#x2014; (<code>list[str]</code>): list of LoRA-injectable components to fuse the LoRAs into.",name:"components"},{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.fuse_lora.lora_scale",description:`<strong>lora_scale</strong> (<code>float</code>, defaults to 1.0) &#x2014;
Controls how much to influence the outputs with the LoRA parameters.`,name:"lora_scale"},{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.fuse_lora.safe_fusing",description:`<strong>safe_fusing</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether to check fused weights for NaN values before fusing and if values are NaN not fusing them.`,name:"safe_fusing"},{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.fuse_lora.adapter_names",description:`<strong>adapter_names</strong> (<code>list[str]</code>, <em>optional</em>) &#x2014;
Adapter names to be used for fusing. If nothing is passed, all active adapters will be fused.`,name:"adapter_names"}]});var qi=e(No,4);c(qi,{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.fuse_lora.example",children:(d,n)=>{var i=m(),l=e(_(i),2);f(l,{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMERpZmZ1c2lvblBpcGVsaW5lJTBBaW1wb3J0JTIwdG9yY2glMEElMEFwaXBlbGluZSUyMCUzRCUyMERpZmZ1c2lvblBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJzdGFiaWxpdHlhaSUyRnN0YWJsZS1kaWZmdXNpb24teGwtYmFzZS0xLjAlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYlMEEpLnRvKCUyMmN1ZGElMjIpJTBBcGlwZWxpbmUubG9hZF9sb3JhX3dlaWdodHMoJTIybmVyaWpzJTJGcGl4ZWwtYXJ0LXhsJTIyJTJDJTIwd2VpZ2h0X25hbWUlM0QlMjJwaXhlbC1hcnQteGwuc2FmZXRlbnNvcnMlMjIlMkMlMjBhZGFwdGVyX25hbWUlM0QlMjJwaXhlbCUyMiklMEFwaXBlbGluZS5mdXNlX2xvcmEobG9yYV9zY2FsZSUzRDAuNyk=",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> DiffusionPipeline
<span class="hljs-keyword">import</span> torch
pipeline = DiffusionPipeline.from_pretrained(
<span class="hljs-string">&quot;stabilityai/stable-diffusion-xl-base-1.0&quot;</span>, torch_dtype=torch.float16
).to(<span class="hljs-string">&quot;cuda&quot;</span>)
pipeline.load_lora_weights(<span class="hljs-string">&quot;nerijs/pixel-art-xl&quot;</span>, weight_name=<span class="hljs-string">&quot;pixel-art-xl.safetensors&quot;</span>, adapter_name=<span class="hljs-string">&quot;pixel&quot;</span>)
pipeline.fuse_lora(lora_scale=<span class="hljs-number">0.7</span>)`,lang:"py",wrap:!1}),p(d,i)},$$slots:{default:!0}}),o(N);var k=e(N,2),ko=r(k);a(ko,{name:"get_active_adapters",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.get_active_adapters",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_base.py#L899",parameters:[]});var Yi=e(ko,4);c(Yi,{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.get_active_adapters.example",children:(d,n)=>{var i=m(),l=e(_(i),2);f(l,{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMERpZmZ1c2lvblBpcGVsaW5lJTBBJTBBcGlwZWxpbmUlMjAlM0QlMjBEaWZmdXNpb25QaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIyc3RhYmlsaXR5YWklMkZzdGFibGUtZGlmZnVzaW9uLXhsLWJhc2UtMS4wJTIyJTJDJTBBKS50byglMjJjdWRhJTIyKSUwQXBpcGVsaW5lLmxvYWRfbG9yYV93ZWlnaHRzKCUyMkNpcm9OMjAyMiUyRnRveS1mYWNlJTIyJTJDJTIwd2VpZ2h0X25hbWUlM0QlMjJ0b3lfZmFjZV9zZHhsLnNhZmV0ZW5zb3JzJTIyJTJDJTIwYWRhcHRlcl9uYW1lJTNEJTIydG95JTIyKSUwQXBpcGVsaW5lLmdldF9hY3RpdmVfYWRhcHRlcnMoKQ==",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> DiffusionPipeline
pipeline = DiffusionPipeline.from_pretrained(
<span class="hljs-string">&quot;stabilityai/stable-diffusion-xl-base-1.0&quot;</span>,
).to(<span class="hljs-string">&quot;cuda&quot;</span>)
pipeline.load_lora_weights(<span class="hljs-string">&quot;CiroN2022/toy-face&quot;</span>, weight_name=<span class="hljs-string">&quot;toy_face_sdxl.safetensors&quot;</span>, adapter_name=<span class="hljs-string">&quot;toy&quot;</span>)
pipeline.get_active_adapters()`,lang:"python",wrap:!1}),p(d,i)},$$slots:{default:!0}}),o(k);var F=e(k,2),Hi=r(F);a(Hi,{name:"get_list_adapters",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.get_list_adapters",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_base.py#L932",parameters:[]}),s(2),o(F);var R=e(F,2),Fo=r(R);a(Fo,{name:"set_adapters",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_adapters",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_base.py#L698",parameters:[{name:"adapter_names",val:": list[str] | str"},{name:"adapter_weights",val:": float | dict | list[float] | list[dict] | None = None"}],parametersDescription:[{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_adapters.adapter_names",description:`<strong>adapter_names</strong> (<code>list[str]</code> or <code>str</code>) &#x2014;
The names of the adapters to use.`,name:"adapter_names"},{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_adapters.adapter_weights",description:`<strong>adapter_weights</strong> (<code>list[float, float]</code>, <em>optional</em>) &#x2014;
The adapter(s) weights to use with the UNet. If <code>None</code>, the weights are set to <code>1.0</code> for all the
adapters.`,name:"adapter_weights"}]});var Pi=e(Fo,4);c(Pi,{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_adapters.example",children:(d,n)=>{var i=m(),l=e(_(i),2);f(l,{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvclRleHQySW1hZ2UlMEFpbXBvcnQlMjB0b3JjaCUwQSUwQXBpcGVsaW5lJTIwJTNEJTIwQXV0b1BpcGVsaW5lRm9yVGV4dDJJbWFnZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIyc3RhYmlsaXR5YWklMkZzdGFibGUtZGlmZnVzaW9uLXhsLWJhc2UtMS4wJTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTBBKS50byglMjJjdWRhJTIyKSUwQXBpcGVsaW5lLmxvYWRfbG9yYV93ZWlnaHRzKCUwQSUyMCUyMCUyMCUyMCUyMmpiaWxja2UtaGYlMkZzZHhsLWNpbmVtYXRpYy0xJTIyJTJDJTIwd2VpZ2h0X25hbWUlM0QlMjJweXRvcmNoX2xvcmFfd2VpZ2h0cy5zYWZldGVuc29ycyUyMiUyQyUyMGFkYXB0ZXJfbmFtZSUzRCUyMmNpbmVtYXRpYyUyMiUwQSklMEFwaXBlbGluZS5sb2FkX2xvcmFfd2VpZ2h0cyglMjJuZXJpanMlMkZwaXhlbC1hcnQteGwlMjIlMkMlMjB3ZWlnaHRfbmFtZSUzRCUyMnBpeGVsLWFydC14bC5zYWZldGVuc29ycyUyMiUyQyUyMGFkYXB0ZXJfbmFtZSUzRCUyMnBpeGVsJTIyKSUwQXBpcGVsaW5lLnNldF9hZGFwdGVycyglNUIlMjJjaW5lbWF0aWMlMjIlMkMlMjAlMjJwaXhlbCUyMiU1RCUyQyUyMGFkYXB0ZXJfd2VpZ2h0cyUzRCU1QjAuNSUyQyUyMDAuNSU1RCk=",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForText2Image
<span class="hljs-keyword">import</span> torch
pipeline = AutoPipelineForText2Image.from_pretrained(
<span class="hljs-string">&quot;stabilityai/stable-diffusion-xl-base-1.0&quot;</span>, torch_dtype=torch.float16
).to(<span class="hljs-string">&quot;cuda&quot;</span>)
pipeline.load_lora_weights(
<span class="hljs-string">&quot;jbilcke-hf/sdxl-cinematic-1&quot;</span>, weight_name=<span class="hljs-string">&quot;pytorch_lora_weights.safetensors&quot;</span>, adapter_name=<span class="hljs-string">&quot;cinematic&quot;</span>
)
pipeline.load_lora_weights(<span class="hljs-string">&quot;nerijs/pixel-art-xl&quot;</span>, weight_name=<span class="hljs-string">&quot;pixel-art-xl.safetensors&quot;</span>, adapter_name=<span class="hljs-string">&quot;pixel&quot;</span>)
pipeline.set_adapters([<span class="hljs-string">&quot;cinematic&quot;</span>, <span class="hljs-string">&quot;pixel&quot;</span>], adapter_weights=[<span class="hljs-number">0.5</span>, <span class="hljs-number">0.5</span>])`,lang:"py",wrap:!1}),p(d,i)},$$slots:{default:!0}}),o(R);var D=e(R,2),Ro=r(D);a(Ro,{name:"set_lora_device",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_lora_device",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_base.py#L954",parameters:[{name:"adapter_names",val:": list[str]"},{name:"device",val:": torch.device | str | int"}],parametersDescription:[{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_lora_device.adapter_names",description:`<strong>adapter_names</strong> (<code>list[str]</code>) &#x2014;
list of adapters to send device to.`,name:"adapter_names"},{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_lora_device.device",description:`<strong>device</strong> (<code>torch.device | str | int</code>) &#x2014;
Device to send the adapters to. Can be either a torch device, a str or an integer.`,name:"device"}]});var zi=e(Ro,6);c(zi,{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_lora_device.example",children:(d,n)=>{f(d,{code:"cGlwZS5sb2FkX2xvcmFfd2VpZ2h0cyhwYXRoXzElMkMlMjBhZGFwdGVyX25hbWUlM0QlMjJhZGFwdGVyLTElMjIpJTBBcGlwZS5sb2FkX2xvcmFfd2VpZ2h0cyhwYXRoXzIlMkMlMjBhZGFwdGVyX25hbWUlM0QlMjJhZGFwdGVyLTIlMjIpJTBBcGlwZS5zZXRfYWRhcHRlcnMoJTIyYWRhcHRlci0xJTIyKSUwQWltYWdlXzElMjAlM0QlMjBwaXBlKCoqa3dhcmdzKSUwQSUyMyUyMHN3aXRjaCUyMHRvJTIwYWRhcHRlci0yJTJDJTIwb2ZmbG9hZCUyMGFkYXB0ZXItMSUwQXBpcGVsaW5lLnNldF9sb3JhX2RldmljZShhZGFwdGVyX25hbWVzJTNEJTVCJTIyYWRhcHRlci0xJTIyJTVEJTJDJTIwZGV2aWNlJTNEJTIyY3B1JTIyKSUwQXBpcGVsaW5lLnNldF9sb3JhX2RldmljZShhZGFwdGVyX25hbWVzJTNEJTVCJTIyYWRhcHRlci0yJTIyJTVEJTJDJTIwZGV2aWNlJTNEJTIyY3VkYSUzQTAlMjIpJTBBcGlwZS5zZXRfYWRhcHRlcnMoJTIyYWRhcHRlci0yJTIyKSUwQWltYWdlXzIlMjAlM0QlMjBwaXBlKCoqa3dhcmdzKSUwQSUyMyUyMHN3aXRjaCUyMGJhY2slMjB0byUyMGFkYXB0ZXItMSUyQyUyMG9mZmxvYWQlMjBhZGFwdGVyLTIlMEFwaXBlbGluZS5zZXRfbG9yYV9kZXZpY2UoYWRhcHRlcl9uYW1lcyUzRCU1QiUyMmFkYXB0ZXItMiUyMiU1RCUyQyUyMGRldmljZSUzRCUyMmNwdSUyMiklMEFwaXBlbGluZS5zZXRfbG9yYV9kZXZpY2UoYWRhcHRlcl9uYW1lcyUzRCU1QiUyMmFkYXB0ZXItMSUyMiU1RCUyQyUyMGRldmljZSUzRCUyMmN1ZGElM0EwJTIyKSUwQXBpcGUuc2V0X2FkYXB0ZXJzKCUyMmFkYXB0ZXItMSUyMiklMEEuLi4=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.load_lora_weights(path_1, adapter_name=<span class="hljs-string">&quot;adapter-1&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.load_lora_weights(path_2, adapter_name=<span class="hljs-string">&quot;adapter-2&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.set_adapters(<span class="hljs-string">&quot;adapter-1&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image_1 = pipe(**kwargs)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># switch to adapter-2, offload adapter-1</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline.set_lora_device(adapter_names=[<span class="hljs-string">&quot;adapter-1&quot;</span>], device=<span class="hljs-string">&quot;cpu&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline.set_lora_device(adapter_names=[<span class="hljs-string">&quot;adapter-2&quot;</span>], device=<span class="hljs-string">&quot;cuda:0&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.set_adapters(<span class="hljs-string">&quot;adapter-2&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image_2 = pipe(**kwargs)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># switch back to adapter-1, offload adapter-2</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline.set_lora_device(adapter_names=[<span class="hljs-string">&quot;adapter-2&quot;</span>], device=<span class="hljs-string">&quot;cpu&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline.set_lora_device(adapter_names=[<span class="hljs-string">&quot;adapter-1&quot;</span>], device=<span class="hljs-string">&quot;cuda:0&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.set_adapters(<span class="hljs-string">&quot;adapter-1&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>...`,lang:"python",wrap:!1})},$$slots:{default:!0}}),o(D);var U=e(D,2),Qi=r(U);a(Qi,{name:"unfuse_lora",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.unfuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_base.py#L636",parameters:[{name:"components",val:": list[str] | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>list[str]</code>) &#x2014; list of LoRA-injectable components to unfuse LoRA from.",name:"components"},{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.unfuse_lora.unfuse_unet",description:"<strong>unfuse_unet</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014; Whether to unfuse the UNet LoRA parameters.",name:"unfuse_unet"},{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.unfuse_lora.unfuse_text_encoder",description:`<strong>unfuse_text_encoder</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Whether to unfuse the text encoder LoRA parameters. If the text encoder wasn&#x2019;t monkey-patched with the
LoRA parameters then it won&#x2019;t have any effect.`,name:"unfuse_text_encoder"}]}),s(2),o(U);var J=e(U,2),Do=r(J);a(Do,{name:"unload_lora_weights",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.unload_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_base.py#L526",parameters:[]});var Ei=e(Do,4);c(Ei,{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.unload_lora_weights.example",children:(d,n)=>{var i=uo(),l=e(_(i),2);f(l,{code:"JTIzJTIwQXNzdW1pbmclMjAlNjBwaXBlbGluZSU2MCUyMGlzJTIwYWxyZWFkeSUyMGxvYWRlZCUyMHdpdGglMjB0aGUlMjBMb1JBJTIwcGFyYW1ldGVycy4lMEFwaXBlbGluZS51bmxvYWRfbG9yYV93ZWlnaHRzKCklMEEuLi4=",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Assuming `pipeline` is already loaded with the LoRA parameters.</span>\n<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline.unload_lora_weights()\n<span class="hljs-meta">&gt;&gt;&gt; </span>...',lang:"python",wrap:!1}),p(d,i)},$$slots:{default:!0}}),o(J);var Uo=e(J,2),Ki=r(Uo);a(Ki,{name:"write_lora_layers",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.write_lora_layers",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_base.py#L1031",parameters:[{name:"state_dict",val:": dict[str, torch.Tensor]"},{name:"save_directory",val:": str"},{name:"is_main_process",val:": bool"},{name:"weight_name",val:": str"},{name:"save_function",val:": Callable"},{name:"safe_serialization",val:": bool"},{name:"lora_adapter_metadata",val:": dict | None = None"}]}),s(2),o(Uo),o(y);var Jo=e(y,2);t(Jo,{title:"StableDiffusionLoraLoaderMixin",local:"diffusers.loaders.StableDiffusionLoraLoaderMixin",headingTag:"h2"});var Z=e(Jo,2),Zo=r(Z);a(Zo,{name:"class diffusers.loaders.StableDiffusionLoraLoaderMixin",anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L138",parameters:[]});var X=e(Zo,4),$i=r(X);a($i,{name:"load_lora_into_text_encoder",anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_text_encoder",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L408",parameters:[{name:"state_dict",val:""},{name:"network_alphas",val:""},{name:"text_encoder",val:""},{name:"prefix",val:" = None"},{name:"lora_scale",val:" = 1.0"},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_text_encoder.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) &#x2014;
A standard state dict containing the lora layer parameters. The key should be prefixed with an
additional <code>text_encoder</code> to distinguish between unet lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_text_encoder.network_alphas",description:`<strong>network_alphas</strong> (<code>dict[str, float]</code>) &#x2014;
The value of the network alpha used for stable learning and preventing underflow. This value has the
same meaning as the <code>--network_alpha</code> option in the kohya-ss trainer script. Refer to <a href="https://github.com/darkstorm2150/sd-scripts/blob/main/docs/train_network_README-en.md#execute-learning" rel="nofollow">this
link</a>.`,name:"network_alphas"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_text_encoder.text_encoder",description:`<strong>text_encoder</strong> (<code>CLIPTextModel</code>) &#x2014;
The text encoder model to load the LoRA layers into.`,name:"text_encoder"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_text_encoder.prefix",description:`<strong>prefix</strong> (<code>str</code>) &#x2014;
Expected prefix of the <code>text_encoder</code> in the <code>state_dict</code>.`,name:"prefix"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_text_encoder.lora_scale",description:`<strong>lora_scale</strong> (<code>float</code>) &#x2014;
How much to scale the output of the lora linear layer before it is added with the output of the regular
lora layer.`,name:"lora_scale"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_text_encoder.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_text_encoder.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_text_encoder.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_text_encoder.metadata",description:`<strong>metadata</strong> (<code>dict</code>) &#x2014;
Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won&#x2019;t be derived
from the state dict.`,name:"metadata"}]}),s(2),o(X);var j=e(X,2),Oi=r(j);a(Oi,{name:"load_lora_into_unet",anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L354",parameters:[{name:"state_dict",val:""},{name:"network_alphas",val:""},{name:"unet",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) &#x2014;
A standard state dict containing the lora layer parameters. The keys can either be indexed directly
into the unet or prefixed with an additional <code>unet</code> which can be used to distinguish between text
encoder lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet.network_alphas",description:`<strong>network_alphas</strong> (<code>dict[str, float]</code>) &#x2014;
The value of the network alpha used for stable learning and preventing underflow. This value has the
same meaning as the <code>--network_alpha</code> option in the kohya-ss trainer script. Refer to <a href="https://github.com/darkstorm2150/sd-scripts/blob/main/docs/train_network_README-en.md#execute-learning" rel="nofollow">this
link</a>.`,name:"network_alphas"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet.unet",description:`<strong>unet</strong> (<code>UNet2DConditionModel</code>) &#x2014;
The UNet model to load the LoRA layers into.`,name:"unet"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet.metadata",description:`<strong>metadata</strong> (<code>dict</code>) &#x2014;
Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won&#x2019;t be derived
from the state dict.`,name:"metadata"}]}),s(2),o(j);var I=e(j,2),ed=r(I);a(ed,{name:"load_lora_weights",anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L148",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"adapter_name",val:": str | None = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) &#x2014;
See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"pretrained_model_name_or_path_or_dict"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Defaults to <code>False</code>. Whether to substitute an existing (LoRA) adapter with the newly loaded adapter
in-place. This means that, instead of loading an additional adapter, this will take the existing
adapter weights and replace them with the weights of the new adapter. This can be faster and more
memory efficient. However, the main advantage of hotswapping is that when the model is compiled with
torch.compile, loading the new adapter does not require recompilation of the model. When using
hotswapping, the passed <code>adapter_name</code> should be the name of an already loaded adapter.
<p>If the new adapter and the old adapter have different ranks and/or LoRA alphas (i.e. scaling), you need
to call an additional method before loading the adapter:</p>`,name:"hotswap"}]}),s(10),o(I);var G=e(I,2),ad=r(G);a(ad,{name:"lora_state_dict",anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L243",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) &#x2014;
Can be either:
<ul>
<li>A string, the <em>model id</em> (for example <code>google/ddpm-celebahq-256</code>) of a pretrained model hosted on
the Hub.</li>
<li>A path to a <em>directory</em> (for example <code>./my_model_directory</code>) containing the model weights saved
with <a href="/docs/diffusers/pr_15174/en/api/models/overview#diffusers.ModelMixin.save_pretrained">ModelMixin.save_pretrained()</a>.</li>
<li>A <a href="https://pytorch.org/tutorials/beginner/saving_loading_models.html#what-is-a-state-dict" rel="nofollow">torch state
dict</a>.</li>
</ul>`,name:"pretrained_model_name_or_path_or_dict"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict.cache_dir",description:`<strong>cache_dir</strong> (<code>str | os.PathLike</code>, <em>optional</em>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict.proxies",description:`<strong>proxies</strong> (<code>dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict.weight_name",description:`<strong>weight_name</strong> (<code>str</code>, <em>optional</em>, defaults to None) &#x2014;
Name of the serialized state dict file.`,name:"weight_name"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict.return_lora_metadata",description:`<strong>return_lora_metadata</strong> (<code>bool</code>, <em>optional</em>, defaults to False) &#x2014;
When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.`,name:"return_lora_metadata"}]}),s(4),o(G);var Xo=e(G,2),rd=r(Xo);a(rd,{name:"save_lora_weights",anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L466",parameters:[{name:"save_directory",val:": str | os.PathLike"},{name:"unet_lora_layers",val:": dict = None"},{name:"text_encoder_lora_layers",val:": dict = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"unet_lora_adapter_metadata",val:" = None"},{name:"text_encoder_lora_adapter_metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory to save LoRA parameters to. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights.unet_lora_layers",description:`<strong>unet_lora_layers</strong> (<code>dict[str, torch.nn.Module]</code> or <code>dict[str, torch.Tensor]</code>) &#x2014;
State dict of the LoRA layers corresponding to the <code>unet</code>.`,name:"unet_lora_layers"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights.text_encoder_lora_layers",description:`<strong>text_encoder_lora_layers</strong> (<code>dict[str, torch.nn.Module]</code> or <code>dict[str, torch.Tensor]</code>) &#x2014;
State dict of the LoRA layers corresponding to the <code>text_encoder</code>. Must explicitly pass the text
encoder LoRA state dict because it comes from &#x1F917; Transformers.`,name:"text_encoder_lora_layers"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether the process calling this is the main process or not. Useful during distributed training and you
need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on the main
process to avoid race conditions.`,name:"is_main_process"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) &#x2014;
The function to use to save the state dictionary. Useful during distributed training when you need to
replace <code>torch.save</code> with another method. Can be configured with the environment variable
<code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights.unet_lora_adapter_metadata",description:`<strong>unet_lora_adapter_metadata</strong> &#x2014;
LoRA adapter metadata associated with the unet to be serialized with the state dict.`,name:"unet_lora_adapter_metadata"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights.text_encoder_lora_adapter_metadata",description:`<strong>text_encoder_lora_adapter_metadata</strong> &#x2014;
LoRA adapter metadata associated with the text encoder to be serialized with the state dict.`,name:"text_encoder_lora_adapter_metadata"}]}),s(2),o(Xo),o(Z);var jo=e(Z,2);t(jo,{title:"StableDiffusionXLLoraLoaderMixin",local:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin",headingTag:"h2"});var W=e(jo,2),Io=r(W);a(Io,{name:"class diffusers.loaders.StableDiffusionXLLoraLoaderMixin",anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L585",parameters:[]});var B=e(Io,4),od=r(B);a(od,{name:"fuse_lora",anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.fuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L938",parameters:[{name:"components",val:": list = ['unet', 'text_encoder', 'text_encoder_2']"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": list[str] | None = None"},{name:"**kwargs",val:""}]}),s(2),o(B);var V=e(B,2),sd=r(V);a(sd,{name:"load_lora_into_text_encoder",anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_text_encoder",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L831",parameters:[{name:"state_dict",val:""},{name:"network_alphas",val:""},{name:"text_encoder",val:""},{name:"prefix",val:" = None"},{name:"lora_scale",val:" = 1.0"},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_text_encoder.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) &#x2014;
A standard state dict containing the lora layer parameters. The key should be prefixed with an
additional <code>text_encoder</code> to distinguish between unet lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_text_encoder.network_alphas",description:`<strong>network_alphas</strong> (<code>dict[str, float]</code>) &#x2014;
The value of the network alpha used for stable learning and preventing underflow. This value has the
same meaning as the <code>--network_alpha</code> option in the kohya-ss trainer script. Refer to <a href="https://github.com/darkstorm2150/sd-scripts/blob/main/docs/train_network_README-en.md#execute-learning" rel="nofollow">this
link</a>.`,name:"network_alphas"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_text_encoder.text_encoder",description:`<strong>text_encoder</strong> (<code>CLIPTextModel</code>) &#x2014;
The text encoder model to load the LoRA layers into.`,name:"text_encoder"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_text_encoder.prefix",description:`<strong>prefix</strong> (<code>str</code>) &#x2014;
Expected prefix of the <code>text_encoder</code> in the <code>state_dict</code>.`,name:"prefix"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_text_encoder.lora_scale",description:`<strong>lora_scale</strong> (<code>float</code>) &#x2014;
How much to scale the output of the lora linear layer before it is added with the output of the regular
lora layer.`,name:"lora_scale"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_text_encoder.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_text_encoder.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_text_encoder.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_text_encoder.metadata",description:`<strong>metadata</strong> (<code>dict</code>) &#x2014;
Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won&#x2019;t be derived
from the state dict.`,name:"metadata"}]}),s(2),o(V);var A=e(V,2),id=r(A);a(id,{name:"load_lora_into_unet",anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_unet",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L776",parameters:[{name:"state_dict",val:""},{name:"network_alphas",val:""},{name:"unet",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_unet.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) &#x2014;
A standard state dict containing the lora layer parameters. The keys can either be indexed directly
into the unet or prefixed with an additional <code>unet</code> which can be used to distinguish between text
encoder lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_unet.network_alphas",description:`<strong>network_alphas</strong> (<code>dict[str, float]</code>) &#x2014;
The value of the network alpha used for stable learning and preventing underflow. This value has the
same meaning as the <code>--network_alpha</code> option in the kohya-ss trainer script. Refer to <a href="https://github.com/darkstorm2150/sd-scripts/blob/main/docs/train_network_README-en.md#execute-learning" rel="nofollow">this
link</a>.`,name:"network_alphas"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_unet.unet",description:`<strong>unet</strong> (<code>UNet2DConditionModel</code>) &#x2014;
The UNet model to load the LoRA layers into.`,name:"unet"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_unet.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_unet.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_unet.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_unet.metadata",description:`<strong>metadata</strong> (<code>dict</code>) &#x2014;
Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won&#x2019;t be derived
from the state dict.`,name:"metadata"}]}),s(2),o(A);var C=e(A,2),dd=r(C);a(dd,{name:"load_lora_weights",anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L596",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"adapter_name",val:": str | None = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}]}),s(2),o(C);var q=e(C,2),td=r(q);a(td,{name:"lora_state_dict",anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.lora_state_dict",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L664",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.lora_state_dict.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) &#x2014;
Can be either:
<ul>
<li>A string, the <em>model id</em> (for example <code>google/ddpm-celebahq-256</code>) of a pretrained model hosted on
the Hub.</li>
<li>A path to a <em>directory</em> (for example <code>./my_model_directory</code>) containing the model weights saved
with <a href="/docs/diffusers/pr_15174/en/api/models/overview#diffusers.ModelMixin.save_pretrained">ModelMixin.save_pretrained()</a>.</li>
<li>A <a href="https://pytorch.org/tutorials/beginner/saving_loading_models.html#what-is-a-state-dict" rel="nofollow">torch state
dict</a>.</li>
</ul>`,name:"pretrained_model_name_or_path_or_dict"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.lora_state_dict.cache_dir",description:`<strong>cache_dir</strong> (<code>str | os.PathLike</code>, <em>optional</em>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.lora_state_dict.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.lora_state_dict.proxies",description:`<strong>proxies</strong> (<code>dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.lora_state_dict.weight_name",description:`<strong>weight_name</strong> (<code>str</code>, <em>optional</em>, defaults to None) &#x2014;
Name of the serialized state dict file.`,name:"weight_name"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.lora_state_dict.return_lora_metadata",description:`<strong>return_lora_metadata</strong> (<code>bool</code>, <em>optional</em>, defaults to False) &#x2014;
When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.`,name:"return_lora_metadata"}]}),s(4),o(q);var Y=e(q,2),ld=r(Y);a(ld,{name:"save_lora_weights",anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.save_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L890",parameters:[{name:"save_directory",val:": str | os.PathLike"},{name:"unet_lora_layers",val:": dict = None"},{name:"text_encoder_lora_layers",val:": dict = None"},{name:"text_encoder_2_lora_layers",val:": dict = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"unet_lora_adapter_metadata",val:" = None"},{name:"text_encoder_lora_adapter_metadata",val:" = None"},{name:"text_encoder_2_lora_adapter_metadata",val:" = None"}]}),s(2),o(Y);var Go=e(Y,2),nd=r(Go);a(nd,{name:"unfuse_lora",anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.unfuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L957",parameters:[{name:"components",val:": list = ['unet', 'text_encoder', 'text_encoder_2']"},{name:"**kwargs",val:""}]}),s(2),o(Go),o(W);var Wo=e(W,2);t(Wo,{title:"SD3LoraLoaderMixin",local:"diffusers.loaders.SD3LoraLoaderMixin",headingTag:"h2"});var H=e(Wo,2),Bo=r(H);a(Bo,{name:"class diffusers.loaders.SD3LoraLoaderMixin",anchor:"diffusers.loaders.SD3LoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L964",parameters:[]});var P=e(Bo,6),fd=r(P);a(fd,{name:"fuse_lora",anchor:"diffusers.loaders.SD3LoraLoaderMixin.fuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L1225",parameters:[{name:"components",val:": list = ['transformer', 'text_encoder', 'text_encoder_2']"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": list[str] | None = None"},{name:"**kwargs",val:""}]}),s(2),o(P);var z=e(P,2),cd=r(z);a(cd,{name:"load_lora_into_text_encoder",anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_text_encoder",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L1116",parameters:[{name:"state_dict",val:""},{name:"network_alphas",val:""},{name:"text_encoder",val:""},{name:"prefix",val:" = None"},{name:"lora_scale",val:" = 1.0"},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_text_encoder.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) &#x2014;
A standard state dict containing the lora layer parameters. The key should be prefixed with an
additional <code>text_encoder</code> to distinguish between unet lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_text_encoder.network_alphas",description:`<strong>network_alphas</strong> (<code>dict[str, float]</code>) &#x2014;
The value of the network alpha used for stable learning and preventing underflow. This value has the
same meaning as the <code>--network_alpha</code> option in the kohya-ss trainer script. Refer to <a href="https://github.com/darkstorm2150/sd-scripts/blob/main/docs/train_network_README-en.md#execute-learning" rel="nofollow">this
link</a>.`,name:"network_alphas"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_text_encoder.text_encoder",description:`<strong>text_encoder</strong> (<code>CLIPTextModel</code>) &#x2014;
The text encoder model to load the LoRA layers into.`,name:"text_encoder"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_text_encoder.prefix",description:`<strong>prefix</strong> (<code>str</code>) &#x2014;
Expected prefix of the <code>text_encoder</code> in the <code>state_dict</code>.`,name:"prefix"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_text_encoder.lora_scale",description:`<strong>lora_scale</strong> (<code>float</code>) &#x2014;
How much to scale the output of the lora linear layer before it is added with the output of the regular
lora layer.`,name:"lora_scale"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_text_encoder.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_text_encoder.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_text_encoder.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_text_encoder.metadata",description:`<strong>metadata</strong> (<code>dict</code>) &#x2014;
Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won&#x2019;t be derived
from the state dict.`,name:"metadata"}]}),s(2),o(z);var Q=e(z,2),pd=r(Q);a(pd,{name:"load_lora_into_transformer",anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_transformer",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L1090",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}]}),s(2),o(Q);var E=e(Q,2),_d=r(E);a(_d,{name:"load_lora_weights",anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L1031",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"adapter_name",val:" = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}]}),s(2),o(E);var K=e(E,2),md=r(K);a(md,{name:"lora_state_dict",anchor:"diffusers.loaders.SD3LoraLoaderMixin.lora_state_dict",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L977",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"**kwargs",val:""}]}),s(2),o(K);var $=e(K,2),ud=r($);a(ud,{name:"save_lora_weights",anchor:"diffusers.loaders.SD3LoraLoaderMixin.save_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L1175",parameters:[{name:"save_directory",val:": str | os.PathLike"},{name:"transformer_lora_layers",val:": dict = None"},{name:"text_encoder_lora_layers",val:": dict = None"},{name:"text_encoder_2_lora_layers",val:": dict = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:" = None"},{name:"text_encoder_lora_adapter_metadata",val:" = None"},{name:"text_encoder_2_lora_adapter_metadata",val:" = None"}]}),s(2),o($);var Vo=e($,2),hd=r(Vo);a(hd,{name:"unfuse_lora",anchor:"diffusers.loaders.SD3LoraLoaderMixin.unfuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L1245",parameters:[{name:"components",val:": list = ['transformer', 'text_encoder', 'text_encoder_2']"},{name:"**kwargs",val:""}]}),s(2),o(Vo),o(H);var Ao=e(H,2);t(Ao,{title:"FluxLoraLoaderMixin",local:"diffusers.loaders.FluxLoraLoaderMixin",headingTag:"h2"});var O=e(Ao,2),Co=r(O);a(Co,{name:"class diffusers.loaders.FluxLoraLoaderMixin",anchor:"diffusers.loaders.FluxLoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L1441",parameters:[]});var ee=e(Co,6),gd=r(ee);a(gd,{name:"fuse_lora",anchor:"diffusers.loaders.FluxLoraLoaderMixin.fuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L1879",parameters:[{name:"components",val:": list = ['transformer']"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": list[str] | None = None"},{name:"**kwargs",val:""}]}),s(2),o(ee);var ae=e(ee,2),vd=r(ae);a(vd,{name:"load_lora_into_text_encoder",anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_text_encoder",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L1756",parameters:[{name:"state_dict",val:""},{name:"network_alphas",val:""},{name:"text_encoder",val:""},{name:"prefix",val:" = None"},{name:"lora_scale",val:" = 1.0"},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_text_encoder.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) &#x2014;
A standard state dict containing the lora layer parameters. The key should be prefixed with an
additional <code>text_encoder</code> to distinguish between unet lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_text_encoder.network_alphas",description:`<strong>network_alphas</strong> (<code>dict[str, float]</code>) &#x2014;
The value of the network alpha used for stable learning and preventing underflow. This value has the
same meaning as the <code>--network_alpha</code> option in the kohya-ss trainer script. Refer to <a href="https://github.com/darkstorm2150/sd-scripts/blob/main/docs/train_network_README-en.md#execute-learning" rel="nofollow">this
link</a>.`,name:"network_alphas"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_text_encoder.text_encoder",description:`<strong>text_encoder</strong> (<code>CLIPTextModel</code>) &#x2014;
The text encoder model to load the LoRA layers into.`,name:"text_encoder"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_text_encoder.prefix",description:`<strong>prefix</strong> (<code>str</code>) &#x2014;
Expected prefix of the <code>text_encoder</code> in the <code>state_dict</code>.`,name:"prefix"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_text_encoder.lora_scale",description:`<strong>lora_scale</strong> (<code>float</code>) &#x2014;
How much to scale the output of the lora linear layer before it is added with the output of the regular
lora layer.`,name:"lora_scale"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_text_encoder.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_text_encoder.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_text_encoder.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_15174/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_text_encoder.metadata",description:`<strong>metadata</strong> (<code>dict</code>) &#x2014;
Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won&#x2019;t be derived
from the state dict.`,name:"metadata"}]}),s(2),o(ae);var re=e(ae,2),bd=r(re);a(bd,{name:"load_lora_into_transformer",anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_transformer",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L1675",parameters:[{name:"state_dict",val:""},{name:"network_alphas",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"metadata",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"}]}),s(2),o(re);var oe=e(re,2),Ld=r(oe);a(Ld,{name:"load_lora_weights",anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L1579",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"adapter_name",val:": str | None = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}]}),s(2),o(oe);var se=e(oe,2),xd=r(se);a(xd,{name:"lora_state_dict",anchor:"diffusers.loaders.FluxLoraLoaderMixin.lora_state_dict",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L1454",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"return_alphas",val:": bool = False"},{name:"**kwargs",val:""}]}),s(2),o(se);var ie=e(se,2),yd=r(ie);a(yd,{name:"save_lora_weights",anchor:"diffusers.loaders.FluxLoraLoaderMixin.save_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L1815",parameters:[{name:"save_directory",val:": str | os.PathLike"},{name:"transformer_lora_layers",val:": dict = None"},{name:"text_encoder_lora_layers",val:": dict = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:" = None"},{name:"text_encoder_lora_adapter_metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.FluxLoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory to save LoRA parameters to. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.save_lora_weights.transformer_lora_layers",description:`<strong>transformer_lora_layers</strong> (<code>dict[str, torch.nn.Module]</code> or <code>dict[str, torch.Tensor]</code>) &#x2014;
State dict of the LoRA layers corresponding to the <code>transformer</code>.`,name:"transformer_lora_layers"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.save_lora_weights.text_encoder_lora_layers",description:`<strong>text_encoder_lora_layers</strong> (<code>dict[str, torch.nn.Module]</code> or <code>dict[str, torch.Tensor]</code>) &#x2014;
State dict of the LoRA layers corresponding to the <code>text_encoder</code>. Must explicitly pass the text
encoder LoRA state dict because it comes from &#x1F917; Transformers.`,name:"text_encoder_lora_layers"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.save_lora_weights.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether the process calling this is the main process or not. Useful during distributed training and you
need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on the main
process to avoid race conditions.`,name:"is_main_process"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.save_lora_weights.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) &#x2014;
The function to use to save the state dictionary. Useful during distributed training when you need to
replace <code>torch.save</code> with another method. Can be configured with the environment variable
<code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.save_lora_weights.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.save_lora_weights.transformer_lora_adapter_metadata",description:`<strong>transformer_lora_adapter_metadata</strong> &#x2014;
LoRA adapter metadata associated with the transformer to be serialized with the state dict.`,name:"transformer_lora_adapter_metadata"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.save_lora_weights.text_encoder_lora_adapter_metadata",description:`<strong>text_encoder_lora_adapter_metadata</strong> &#x2014;
LoRA adapter metadata associated with the text encoder to be serialized with the state dict.`,name:"text_encoder_lora_adapter_metadata"}]}),s(2),o(ie);var de=e(ie,2),Md=r(de);a(Md,{name:"unfuse_lora",anchor:"diffusers.loaders.FluxLoraLoaderMixin.unfuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L1911",parameters:[{name:"components",val:": list = ['transformer', 'text_encoder']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.FluxLoraLoaderMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>list[str]</code>) &#x2014; list of LoRA-injectable components to unfuse LoRA from.",name:"components"}]}),s(2),o(de);var qo=e(de,2),Yo=r(qo);a(Yo,{name:"unload_lora_weights",anchor:"diffusers.loaders.FluxLoraLoaderMixin.unload_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L1926",parameters:[{name:"reset_to_overwritten_params",val:" = False"}],parametersDescription:[{anchor:"diffusers.loaders.FluxLoraLoaderMixin.unload_lora_weights.reset_to_overwritten_params",description:`<strong>reset_to_overwritten_params</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014; Whether to reset the LoRA-loaded modules
to their original params. Refer to the <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/flux" rel="nofollow">Flux
documentation</a> to learn more.`,name:"reset_to_overwritten_params"}]});var wd=e(Yo,4);c(wd,{anchor:"diffusers.loaders.FluxLoraLoaderMixin.unload_lora_weights.example",children:(d,n)=>{var i=uo(),l=e(_(i),2);f(l,{code:"JTIzJTIwQXNzdW1pbmclMjAlNjBwaXBlbGluZSU2MCUyMGlzJTIwYWxyZWFkeSUyMGxvYWRlZCUyMHdpdGglMjB0aGUlMjBMb1JBJTIwcGFyYW1ldGVycy4lMEFwaXBlbGluZS51bmxvYWRfbG9yYV93ZWlnaHRzKCklMEEuLi4=",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Assuming `pipeline` is already loaded with the LoRA parameters.</span>\n<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline.unload_lora_weights()\n<span class="hljs-meta">&gt;&gt;&gt; </span>...',lang:"python",wrap:!1}),p(d,i)},$$slots:{default:!0}}),o(qo),o(O);var Ho=e(O,2);t(Ho,{title:"Flux2LoraLoaderMixin",local:"diffusers.loaders.Flux2LoraLoaderMixin",headingTag:"h2"});var te=e(Ho,2),Po=r(te);a(Po,{name:"class diffusers.loaders.Flux2LoraLoaderMixin",anchor:"diffusers.loaders.Flux2LoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5773",parameters:[]});var le=e(Po,4),Sd=r(le);a(Sd,{name:"fuse_lora",anchor:"diffusers.loaders.Flux2LoraLoaderMixin.fuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5957",parameters:[{name:"components",val:": list = ['transformer']"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": list[str] | None = None"},{name:"**kwargs",val:""}]}),s(2),o(le);var ne=e(le,2),Td=r(ne);a(Td,{name:"load_lora_into_transformer",anchor:"diffusers.loaders.Flux2LoraLoaderMixin.load_lora_into_transformer",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5894",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}]}),s(2),o(ne);var fe=e(ne,2),Nd=r(fe);a(Nd,{name:"load_lora_weights",anchor:"diffusers.loaders.Flux2LoraLoaderMixin.load_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5859",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"adapter_name",val:": str | None = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}]}),s(2),o(fe);var ce=e(fe,2),kd=r(ce);a(kd,{name:"lora_state_dict",anchor:"diffusers.loaders.Flux2LoraLoaderMixin.lora_state_dict",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5781",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"**kwargs",val:""}]}),s(2),o(ce);var pe=e(ce,2),Fd=r(pe);a(Fd,{name:"save_lora_weights",anchor:"diffusers.loaders.Flux2LoraLoaderMixin.save_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5921",parameters:[{name:"save_directory",val:": str | os.PathLike"},{name:"transformer_lora_layers",val:": dict = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": dict | None = None"}]}),s(2),o(pe);var zo=e(pe,2),Rd=r(zo);a(Rd,{name:"unfuse_lora",anchor:"diffusers.loaders.Flux2LoraLoaderMixin.unfuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5977",parameters:[{name:"components",val:": list = ['transformer']"},{name:"**kwargs",val:""}]}),s(2),o(zo),o(te);var Qo=e(te,2);t(Qo,{title:"Flux3LoraLoaderMixin",local:"diffusers.loaders.Flux3LoraLoaderMixin",headingTag:"h2"});var _e=e(Qo,2),Eo=r(_e);a(Eo,{name:"class diffusers.loaders.Flux3LoraLoaderMixin",anchor:"diffusers.loaders.Flux3LoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5984",parameters:[]});var me=e(Eo,2),Dd=r(me);a(Dd,{name:"fuse_lora",anchor:"diffusers.loaders.Flux3LoraLoaderMixin.fuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6139",parameters:[{name:"components",val:": list = ['transformer']"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": list[str] | None = None"},{name:"**kwargs",val:""}]}),s(2),o(me);var ue=e(me,2),Ud=r(ue);a(Ud,{name:"load_lora_into_transformer",anchor:"diffusers.loaders.Flux3LoraLoaderMixin.load_lora_into_transformer",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6076",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}]}),s(2),o(ue);var he=e(ue,2),Jd=r(he);a(Jd,{name:"load_lora_weights",anchor:"diffusers.loaders.Flux3LoraLoaderMixin.load_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6040",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"adapter_name",val:": str | None = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}]}),s(2),o(he);var ge=e(he,2),Zd=r(ge);a(Zd,{name:"save_lora_weights",anchor:"diffusers.loaders.Flux3LoraLoaderMixin.save_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6103",parameters:[{name:"save_directory",val:": str | os.PathLike"},{name:"transformer_lora_layers",val:": dict = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": dict | None = None"}]}),s(2),o(ge);var Ko=e(ge,2),Xd=r(Ko);a(Xd,{name:"unfuse_lora",anchor:"diffusers.loaders.Flux3LoraLoaderMixin.unfuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6159",parameters:[{name:"components",val:": list = ['transformer']"},{name:"**kwargs",val:""}]}),s(2),o(Ko),o(_e);var $o=e(_e,2);t($o,{title:"BriaFibo2LoraLoaderMixin",local:"diffusers.loaders.BriaFibo2LoraLoaderMixin",headingTag:"h2"});var ve=e($o,2),Oo=r(ve);a(Oo,{name:"class diffusers.loaders.BriaFibo2LoraLoaderMixin",anchor:"diffusers.loaders.BriaFibo2LoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6166",parameters:[]});var be=e(Oo,4),jd=r(be);a(jd,{name:"fuse_lora",anchor:"diffusers.loaders.BriaFibo2LoraLoaderMixin.fuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6328",parameters:[{name:"components",val:": list = ['transformer']"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": list[str] | None = None"},{name:"**kwargs",val:""}]}),s(2),o(be);var Le=e(be,2),Id=r(Le);a(Id,{name:"load_lora_into_transformer",anchor:"diffusers.loaders.BriaFibo2LoraLoaderMixin.load_lora_into_transformer",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6265",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}]}),s(2),o(Le);var xe=e(Le,2),Gd=r(xe);a(Gd,{name:"load_lora_weights",anchor:"diffusers.loaders.BriaFibo2LoraLoaderMixin.load_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6229",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"adapter_name",val:": str | None = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}]}),s(2),o(xe);var ye=e(xe,2),Wd=r(ye);a(Wd,{name:"lora_state_dict",anchor:"diffusers.loaders.BriaFibo2LoraLoaderMixin.lora_state_dict",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6174",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"**kwargs",val:""}]}),s(2),o(ye);var Me=e(ye,2),Bd=r(Me);a(Bd,{name:"save_lora_weights",anchor:"diffusers.loaders.BriaFibo2LoraLoaderMixin.save_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6292",parameters:[{name:"save_directory",val:": str | os.PathLike"},{name:"transformer_lora_layers",val:": dict = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": dict | None = None"}]}),s(2),o(Me);var es=e(Me,2),Vd=r(es);a(Vd,{name:"unfuse_lora",anchor:"diffusers.loaders.BriaFibo2LoraLoaderMixin.unfuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6348",parameters:[{name:"components",val:": list = ['transformer']"},{name:"**kwargs",val:""}]}),s(2),o(es),o(ve);var as=e(ve,2);t(as,{title:"ErnieImageLoraLoaderMixin",local:"diffusers.loaders.ErnieImageLoraLoaderMixin",headingTag:"h2"});var we=e(as,2),rs=r(we);a(rs,{name:"class diffusers.loaders.ErnieImageLoraLoaderMixin",anchor:"diffusers.loaders.ErnieImageLoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6551",parameters:[]});var Se=e(rs,4),Ad=r(Se);a(Ad,{name:"fuse_lora",anchor:"diffusers.loaders.ErnieImageLoraLoaderMixin.fuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6724",parameters:[{name:"components",val:": list = ['transformer']"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": list[str] | None = None"},{name:"**kwargs",val:""}]}),s(2),o(Se);var Te=e(Se,2),Cd=r(Te);a(Cd,{name:"load_lora_into_transformer",anchor:"diffusers.loaders.ErnieImageLoraLoaderMixin.load_lora_into_transformer",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6661",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}]}),s(2),o(Te);var Ne=e(Te,2),qd=r(Ne);a(qd,{name:"load_lora_weights",anchor:"diffusers.loaders.ErnieImageLoraLoaderMixin.load_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6625",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"adapter_name",val:": str | None = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}]}),s(2),o(Ne);var ke=e(Ne,2),Yd=r(ke);a(Yd,{name:"lora_state_dict",anchor:"diffusers.loaders.ErnieImageLoraLoaderMixin.lora_state_dict",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6559",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"**kwargs",val:""}]}),s(2),o(ke);var Fe=e(ke,2),Hd=r(Fe);a(Hd,{name:"save_lora_weights",anchor:"diffusers.loaders.ErnieImageLoraLoaderMixin.save_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6688",parameters:[{name:"save_directory",val:": str | os.PathLike"},{name:"transformer_lora_layers",val:": dict = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": dict | None = None"}]}),s(2),o(Fe);var os=e(Fe,2),Pd=r(os);a(Pd,{name:"unfuse_lora",anchor:"diffusers.loaders.ErnieImageLoraLoaderMixin.unfuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6744",parameters:[{name:"components",val:": list = ['transformer']"},{name:"**kwargs",val:""}]}),s(2),o(os),o(we);var ss=e(we,2);t(ss,{title:"LTX2LoraLoaderMixin",local:"diffusers.loaders.LTX2LoraLoaderMixin",headingTag:"h2"});var Re=e(ss,2),is=r(Re);a(is,{name:"class diffusers.loaders.LTX2LoraLoaderMixin",anchor:"diffusers.loaders.LTX2LoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L2919",parameters:[]});var De=e(is,4),zd=r(De);a(zd,{name:"fuse_lora",anchor:"diffusers.loaders.LTX2LoraLoaderMixin.fuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3108",parameters:[{name:"components",val:": list = ['transformer']"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": list[str] | None = None"},{name:"**kwargs",val:""}]}),s(2),o(De);var Ue=e(De,2),Qd=r(Ue);a(Qd,{name:"load_lora_into_transformer",anchor:"diffusers.loaders.LTX2LoraLoaderMixin.load_lora_into_transformer",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3044",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"},{name:"prefix",val:": str = 'transformer'"}]}),s(2),o(Ue);var Je=e(Ue,2),Ed=r(Je);a(Ed,{name:"load_lora_weights",anchor:"diffusers.loaders.LTX2LoraLoaderMixin.load_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L2992",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"adapter_name",val:": str | None = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}]}),s(2),o(Je);var Ze=e(Je,2),Kd=r(Ze);a(Kd,{name:"lora_state_dict",anchor:"diffusers.loaders.LTX2LoraLoaderMixin.lora_state_dict",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L2928",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"**kwargs",val:""}]}),s(2),o(Ze);var Xe=e(Ze,2),$d=r(Xe);a($d,{name:"save_lora_weights",anchor:"diffusers.loaders.LTX2LoraLoaderMixin.save_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3072",parameters:[{name:"save_directory",val:": str | os.PathLike"},{name:"transformer_lora_layers",val:": dict = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": dict | None = None"}]}),s(2),o(Xe);var ds=e(Xe,2),Od=r(ds);a(Od,{name:"unfuse_lora",anchor:"diffusers.loaders.LTX2LoraLoaderMixin.unfuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3128",parameters:[{name:"components",val:": list = ['transformer']"},{name:"**kwargs",val:""}]}),s(2),o(ds),o(Re);var ts=e(Re,2);t(ts,{title:"CogVideoXLoraLoaderMixin",local:"diffusers.loaders.CogVideoXLoraLoaderMixin",headingTag:"h2"});var je=e(ts,2),ls=r(je);a(ls,{name:"class diffusers.loaders.CogVideoXLoraLoaderMixin",anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L2353",parameters:[]});var Ie=e(ls,4),et=r(Ie);a(et,{name:"fuse_lora",anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.fuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L2512",parameters:[{name:"components",val:": list = ['transformer']"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": list[str] | None = None"},{name:"**kwargs",val:""}]}),s(2),o(Ie);var Ge=e(Ie,2),at=r(Ge);a(at,{name:"load_lora_into_transformer",anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.load_lora_into_transformer",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L2451",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}]}),s(2),o(Ge);var We=e(Ge,2),rt=r(We);a(rt,{name:"load_lora_weights",anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.load_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L2416",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"adapter_name",val:": str | None = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}]}),s(2),o(We);var Be=e(We,2),ot=r(Be);a(ot,{name:"lora_state_dict",anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.lora_state_dict",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L2361",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"**kwargs",val:""}]}),s(2),o(Be);var Ve=e(Be,2),st=r(Ve);a(st,{name:"save_lora_weights",anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.save_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L2478",parameters:[{name:"save_directory",val:": str | os.PathLike"},{name:"transformer_lora_layers",val:": dict = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": dict | None = None"}]}),s(2),o(Ve);var ns=e(Ve,2),it=r(ns);a(it,{name:"unfuse_lora",anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.unfuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L2531",parameters:[{name:"components",val:": list = ['transformer']"},{name:"**kwargs",val:""}]}),s(2),o(ns),o(je);var fs=e(je,2);t(fs,{title:"Mochi1LoraLoaderMixin",local:"diffusers.loaders.Mochi1LoraLoaderMixin",headingTag:"h2"});var Ae=e(fs,2),cs=r(Ae);a(cs,{name:"class diffusers.loaders.Mochi1LoraLoaderMixin",anchor:"diffusers.loaders.Mochi1LoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L2538",parameters:[]});var Ce=e(cs,4),dt=r(Ce);a(dt,{name:"fuse_lora",anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.fuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L2700",parameters:[{name:"components",val:": list = ['transformer']"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": list[str] | None = None"},{name:"**kwargs",val:""}]}),s(2),o(Ce);var qe=e(Ce,2),tt=r(qe);a(tt,{name:"load_lora_into_transformer",anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.load_lora_into_transformer",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L2637",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}]}),s(2),o(qe);var Ye=e(qe,2),lt=r(Ye);a(lt,{name:"load_lora_weights",anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.load_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L2601",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"adapter_name",val:": str | None = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}]}),s(2),o(Ye);var He=e(Ye,2),nt=r(He);a(nt,{name:"lora_state_dict",anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.lora_state_dict",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L2546",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"**kwargs",val:""}]}),s(2),o(He);var Pe=e(He,2),ft=r(Pe);a(ft,{name:"save_lora_weights",anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.save_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L2664",parameters:[{name:"save_directory",val:": str | os.PathLike"},{name:"transformer_lora_layers",val:": dict = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": dict | None = None"}]}),s(2),o(Pe);var ps=e(Pe,2),ct=r(ps);a(ct,{name:"unfuse_lora",anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.unfuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L2720",parameters:[{name:"components",val:": list = ['transformer']"},{name:"**kwargs",val:""}]}),s(2),o(ps),o(Ae);var _s=e(Ae,2);t(_s,{title:"AuraFlowLoraLoaderMixin",local:"diffusers.loaders.AuraFlowLoraLoaderMixin",headingTag:"h2"});var ze=e(_s,2),ms=r(ze);a(ms,{name:"class diffusers.loaders.AuraFlowLoraLoaderMixin",anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L1252",parameters:[]});var Qe=e(ms,4),pt=r(Qe);a(pt,{name:"fuse_lora",anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.fuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L1414",parameters:[{name:"components",val:": list = ['transformer']"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": list[str] | None = None"},{name:"**kwargs",val:""}]}),s(2),o(Qe);var Ee=e(Qe,2),_t=r(Ee);a(_t,{name:"load_lora_into_transformer",anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.load_lora_into_transformer",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L1351",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}]}),s(2),o(Ee);var Ke=e(Ee,2),mt=r(Ke);a(mt,{name:"load_lora_weights",anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.load_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L1315",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"adapter_name",val:": str | None = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}]}),s(2),o(Ke);var $e=e(Ke,2),ut=r($e);a(ut,{name:"lora_state_dict",anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.lora_state_dict",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L1260",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"**kwargs",val:""}]}),s(2),o($e);var Oe=e($e,2),ht=r(Oe);a(ht,{name:"save_lora_weights",anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.save_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L1378",parameters:[{name:"save_directory",val:": str | os.PathLike"},{name:"transformer_lora_layers",val:": dict = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": dict | None = None"}]}),s(2),o(Oe);var us=e(Oe,2),gt=r(us);a(gt,{name:"unfuse_lora",anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.unfuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L1434",parameters:[{name:"components",val:": list = ['transformer', 'text_encoder']"},{name:"**kwargs",val:""}]}),s(2),o(us),o(ze);var hs=e(ze,2);t(hs,{title:"LTXVideoLoraLoaderMixin",local:"diffusers.loaders.LTXVideoLoraLoaderMixin",headingTag:"h2"});var ea=e(hs,2),gs=r(ea);a(gs,{name:"class diffusers.loaders.LTXVideoLoraLoaderMixin",anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L2727",parameters:[]});var aa=e(gs,4),vt=r(aa);a(vt,{name:"fuse_lora",anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.fuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L2892",parameters:[{name:"components",val:": list = ['transformer']"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": list[str] | None = None"},{name:"**kwargs",val:""}]}),s(2),o(aa);var ra=e(aa,2),bt=r(ra);a(bt,{name:"load_lora_into_transformer",anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.load_lora_into_transformer",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L2829",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}]}),s(2),o(ra);var oa=e(ra,2),Lt=r(oa);a(Lt,{name:"load_lora_weights",anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.load_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L2793",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"adapter_name",val:": str | None = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}]}),s(2),o(oa);var sa=e(oa,2),xt=r(sa);a(xt,{name:"lora_state_dict",anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.lora_state_dict",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L2735",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"**kwargs",val:""}]}),s(2),o(sa);var ia=e(sa,2),yt=r(ia);a(yt,{name:"save_lora_weights",anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.save_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L2856",parameters:[{name:"save_directory",val:": str | os.PathLike"},{name:"transformer_lora_layers",val:": dict = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": dict | None = None"}]}),s(2),o(ia);var vs=e(ia,2),Mt=r(vs);a(Mt,{name:"unfuse_lora",anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.unfuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L2912",parameters:[{name:"components",val:": list = ['transformer']"},{name:"**kwargs",val:""}]}),s(2),o(vs),o(ea);var bs=e(ea,2);t(bs,{title:"SanaLoraLoaderMixin",local:"diffusers.loaders.SanaLoraLoaderMixin",headingTag:"h2"});var da=e(bs,2),Ls=r(da);a(Ls,{name:"class diffusers.loaders.SanaLoraLoaderMixin",anchor:"diffusers.loaders.SanaLoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3135",parameters:[]});var ta=e(Ls,4),wt=r(ta);a(wt,{name:"fuse_lora",anchor:"diffusers.loaders.SanaLoraLoaderMixin.fuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3297",parameters:[{name:"components",val:": list = ['transformer']"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": list[str] | None = None"},{name:"**kwargs",val:""}]}),s(2),o(ta);var la=e(ta,2),St=r(la);a(St,{name:"load_lora_into_transformer",anchor:"diffusers.loaders.SanaLoraLoaderMixin.load_lora_into_transformer",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3234",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}]}),s(2),o(la);var na=e(la,2),Tt=r(na);a(Tt,{name:"load_lora_weights",anchor:"diffusers.loaders.SanaLoraLoaderMixin.load_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3198",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"adapter_name",val:": str | None = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}]}),s(2),o(na);var fa=e(na,2),Nt=r(fa);a(Nt,{name:"lora_state_dict",anchor:"diffusers.loaders.SanaLoraLoaderMixin.lora_state_dict",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3143",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"**kwargs",val:""}]}),s(2),o(fa);var ca=e(fa,2),kt=r(ca);a(kt,{name:"save_lora_weights",anchor:"diffusers.loaders.SanaLoraLoaderMixin.save_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3261",parameters:[{name:"save_directory",val:": str | os.PathLike"},{name:"transformer_lora_layers",val:": dict = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": dict | None = None"}]}),s(2),o(ca);var xs=e(ca,2),Ft=r(xs);a(Ft,{name:"unfuse_lora",anchor:"diffusers.loaders.SanaLoraLoaderMixin.unfuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3317",parameters:[{name:"components",val:": list = ['transformer']"},{name:"**kwargs",val:""}]}),s(2),o(xs),o(da);var ys=e(da,2);t(ys,{title:"HeliosLoraLoaderMixin",local:"diffusers.loaders.HeliosLoraLoaderMixin",headingTag:"h2"});var pa=e(ys,2),Ms=r(pa);a(Ms,{name:"class diffusers.loaders.HeliosLoraLoaderMixin",anchor:"diffusers.loaders.HeliosLoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3324",parameters:[]});var _a=e(Ms,4),Rt=r(_a);a(Rt,{name:"fuse_lora",anchor:"diffusers.loaders.HeliosLoraLoaderMixin.fuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3487",parameters:[{name:"components",val:": list = ['transformer']"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": list[str] | None = None"},{name:"**kwargs",val:""}]}),s(2),o(_a);var ma=e(_a,2),Dt=r(ma);a(Dt,{name:"load_lora_into_transformer",anchor:"diffusers.loaders.HeliosLoraLoaderMixin.load_lora_into_transformer",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3424",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}]}),s(2),o(ma);var ua=e(ma,2),Ut=r(ua);a(Ut,{name:"load_lora_weights",anchor:"diffusers.loaders.HeliosLoraLoaderMixin.load_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3390",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"adapter_name",val:": str | None = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}]}),s(2),o(ua);var ha=e(ua,2),Jt=r(ha);a(Jt,{name:"lora_state_dict",anchor:"diffusers.loaders.HeliosLoraLoaderMixin.lora_state_dict",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3332",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"**kwargs",val:""}]}),s(2),o(ha);var ga=e(ha,2),Zt=r(ga);a(Zt,{name:"save_lora_weights",anchor:"diffusers.loaders.HeliosLoraLoaderMixin.save_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3451",parameters:[{name:"save_directory",val:": str | os.PathLike"},{name:"transformer_lora_layers",val:": dict = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": dict | None = None"}]}),s(2),o(ga);var ws=e(ga,2),Xt=r(ws);a(Xt,{name:"unfuse_lora",anchor:"diffusers.loaders.HeliosLoraLoaderMixin.unfuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3507",parameters:[{name:"components",val:": list = ['transformer']"},{name:"**kwargs",val:""}]}),s(2),o(ws),o(pa);var Ss=e(pa,2);t(Ss,{title:"HunyuanVideoLoraLoaderMixin",local:"diffusers.loaders.HunyuanVideoLoraLoaderMixin",headingTag:"h2"});var va=e(Ss,2),Ts=r(va);a(Ts,{name:"class diffusers.loaders.HunyuanVideoLoraLoaderMixin",anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3514",parameters:[]});var ba=e(Ts,4),jt=r(ba);a(jt,{name:"fuse_lora",anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.fuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3679",parameters:[{name:"components",val:": list = ['transformer']"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": list[str] | None = None"},{name:"**kwargs",val:""}]}),s(2),o(ba);var La=e(ba,2),It=r(La);a(It,{name:"load_lora_into_transformer",anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.load_lora_into_transformer",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3616",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}]}),s(2),o(La);var xa=e(La,2),Gt=r(xa);a(Gt,{name:"load_lora_weights",anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.load_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3580",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"adapter_name",val:": str | None = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}]}),s(2),o(xa);var ya=e(xa,2),Wt=r(ya);a(Wt,{name:"lora_state_dict",anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.lora_state_dict",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3522",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"**kwargs",val:""}]}),s(2),o(ya);var Ma=e(ya,2),Bt=r(Ma);a(Bt,{name:"save_lora_weights",anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.save_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3643",parameters:[{name:"save_directory",val:": str | os.PathLike"},{name:"transformer_lora_layers",val:": dict = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": dict | None = None"}]}),s(2),o(Ma);var Ns=e(Ma,2),Vt=r(Ns);a(Vt,{name:"unfuse_lora",anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.unfuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3699",parameters:[{name:"components",val:": list = ['transformer']"},{name:"**kwargs",val:""}]}),s(2),o(Ns),o(va);var ks=e(va,2);t(ks,{title:"Lumina2LoraLoaderMixin",local:"diffusers.loaders.Lumina2LoraLoaderMixin",headingTag:"h2"});var wa=e(ks,2),Fs=r(wa);a(Fs,{name:"class diffusers.loaders.Lumina2LoraLoaderMixin",anchor:"diffusers.loaders.Lumina2LoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3706",parameters:[]});var Sa=e(Fs,4),At=r(Sa);a(At,{name:"fuse_lora",anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.fuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3872",parameters:[{name:"components",val:": list = ['transformer']"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": list[str] | None = None"},{name:"**kwargs",val:""}]}),s(2),o(Sa);var Ta=e(Sa,2),Ct=r(Ta);a(Ct,{name:"load_lora_into_transformer",anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.load_lora_into_transformer",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3809",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}]}),s(2),o(Ta);var Na=e(Ta,2),qt=r(Na);a(qt,{name:"load_lora_weights",anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.load_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3773",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"adapter_name",val:": str | None = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}]}),s(2),o(Na);var ka=e(Na,2),Yt=r(ka);a(Yt,{name:"lora_state_dict",anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.lora_state_dict",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3714",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"**kwargs",val:""}]}),s(2),o(ka);var Fa=e(ka,2),Ht=r(Fa);a(Ht,{name:"save_lora_weights",anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.save_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3836",parameters:[{name:"save_directory",val:": str | os.PathLike"},{name:"transformer_lora_layers",val:": dict = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": dict | None = None"}]}),s(2),o(Fa);var Rs=e(Fa,2),Pt=r(Rs);a(Pt,{name:"unfuse_lora",anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.unfuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3892",parameters:[{name:"components",val:": list = ['transformer']"},{name:"**kwargs",val:""}]}),s(2),o(Rs),o(wa);var Ds=e(wa,2);t(Ds,{title:"CogView4LoraLoaderMixin",local:"diffusers.loaders.CogView4LoraLoaderMixin",headingTag:"h2"});var Ra=e(Ds,2),Us=r(Ra);a(Us,{name:"class diffusers.loaders.CogView4LoraLoaderMixin",anchor:"diffusers.loaders.CogView4LoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L4617",parameters:[]});var Da=e(Us,4),zt=r(Da);a(zt,{name:"fuse_lora",anchor:"diffusers.loaders.CogView4LoraLoaderMixin.fuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L4779",parameters:[{name:"components",val:": list = ['transformer']"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": list[str] | None = None"},{name:"**kwargs",val:""}]}),s(2),o(Da);var Ua=e(Da,2),Qt=r(Ua);a(Qt,{name:"load_lora_into_transformer",anchor:"diffusers.loaders.CogView4LoraLoaderMixin.load_lora_into_transformer",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L4716",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}]}),s(2),o(Ua);var Ja=e(Ua,2),Et=r(Ja);a(Et,{name:"load_lora_weights",anchor:"diffusers.loaders.CogView4LoraLoaderMixin.load_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L4680",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"adapter_name",val:": str | None = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}]}),s(2),o(Ja);var Za=e(Ja,2),Kt=r(Za);a(Kt,{name:"lora_state_dict",anchor:"diffusers.loaders.CogView4LoraLoaderMixin.lora_state_dict",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L4625",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"**kwargs",val:""}]}),s(2),o(Za);var Xa=e(Za,2),$t=r(Xa);a($t,{name:"save_lora_weights",anchor:"diffusers.loaders.CogView4LoraLoaderMixin.save_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L4743",parameters:[{name:"save_directory",val:": str | os.PathLike"},{name:"transformer_lora_layers",val:": dict = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": dict | None = None"}]}),s(2),o(Xa);var Js=e(Xa,2),Ot=r(Js);a(Ot,{name:"unfuse_lora",anchor:"diffusers.loaders.CogView4LoraLoaderMixin.unfuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L4799",parameters:[{name:"components",val:": list = ['transformer']"},{name:"**kwargs",val:""}]}),s(2),o(Js),o(Ra);var Zs=e(Ra,2);t(Zs,{title:"WanLoraLoaderMixin",local:"diffusers.loaders.WanLoraLoaderMixin",headingTag:"h2"});var ja=e(Zs,2),Xs=r(ja);a(Xs,{name:"class diffusers.loaders.WanLoraLoaderMixin",anchor:"diffusers.loaders.WanLoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L4088",parameters:[]});var Ia=e(Xs,4),el=r(Ia);a(el,{name:"fuse_lora",anchor:"diffusers.loaders.WanLoraLoaderMixin.fuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L4324",parameters:[{name:"components",val:": list = ['transformer']"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": list[str] | None = None"},{name:"**kwargs",val:""}]}),s(2),o(Ia);var Ga=e(Ia,2),al=r(Ga);a(al,{name:"load_lora_into_transformer",anchor:"diffusers.loaders.WanLoraLoaderMixin.load_lora_into_transformer",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L4261",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}]}),s(2),o(Ga);var Wa=e(Ga,2),rl=r(Wa);a(rl,{name:"load_lora_weights",anchor:"diffusers.loaders.WanLoraLoaderMixin.load_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L4202",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"adapter_name",val:": str | None = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}]}),s(2),o(Wa);var Ba=e(Wa,2),ol=r(Ba);a(ol,{name:"lora_state_dict",anchor:"diffusers.loaders.WanLoraLoaderMixin.lora_state_dict",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L4096",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"**kwargs",val:""}]}),s(2),o(Ba);var Va=e(Ba,2),sl=r(Va);a(sl,{name:"save_lora_weights",anchor:"diffusers.loaders.WanLoraLoaderMixin.save_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L4288",parameters:[{name:"save_directory",val:": str | os.PathLike"},{name:"transformer_lora_layers",val:": dict = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": dict | None = None"}]}),s(2),o(Va);var js=e(Va,2),il=r(js);a(il,{name:"unfuse_lora",anchor:"diffusers.loaders.WanLoraLoaderMixin.unfuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L4344",parameters:[{name:"components",val:": list = ['transformer']"},{name:"**kwargs",val:""}]}),s(2),o(js),o(ja);var Is=e(ja,2);t(Is,{title:"SkyReelsV2LoraLoaderMixin",local:"diffusers.loaders.SkyReelsV2LoraLoaderMixin",headingTag:"h2"});var Aa=e(Is,2),Gs=r(Aa);a(Gs,{name:"class diffusers.loaders.SkyReelsV2LoraLoaderMixin",anchor:"diffusers.loaders.SkyReelsV2LoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L4351",parameters:[]});var Ca=e(Gs,4),dl=r(Ca);a(dl,{name:"fuse_lora",anchor:"diffusers.loaders.SkyReelsV2LoraLoaderMixin.fuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L4590",parameters:[{name:"components",val:": list = ['transformer']"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": list[str] | None = None"},{name:"**kwargs",val:""}]}),s(2),o(Ca);var qa=e(Ca,2),tl=r(qa);a(tl,{name:"load_lora_into_transformer",anchor:"diffusers.loaders.SkyReelsV2LoraLoaderMixin.load_lora_into_transformer",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L4527",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}]}),s(2),o(qa);var Ya=e(qa,2),ll=r(Ya);a(ll,{name:"load_lora_weights",anchor:"diffusers.loaders.SkyReelsV2LoraLoaderMixin.load_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L4467",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"adapter_name",val:": str | None = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}]}),s(2),o(Ya);var Ha=e(Ya,2),nl=r(Ha);a(nl,{name:"lora_state_dict",anchor:"diffusers.loaders.SkyReelsV2LoraLoaderMixin.lora_state_dict",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L4359",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"**kwargs",val:""}]}),s(2),o(Ha);var Pa=e(Ha,2),fl=r(Pa);a(fl,{name:"save_lora_weights",anchor:"diffusers.loaders.SkyReelsV2LoraLoaderMixin.save_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L4554",parameters:[{name:"save_directory",val:": str | os.PathLike"},{name:"transformer_lora_layers",val:": dict = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": dict | None = None"}]}),s(2),o(Pa);var Ws=e(Pa,2),cl=r(Ws);a(cl,{name:"unfuse_lora",anchor:"diffusers.loaders.SkyReelsV2LoraLoaderMixin.unfuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L4610",parameters:[{name:"components",val:": list = ['transformer']"},{name:"**kwargs",val:""}]}),s(2),o(Ws),o(Aa);var Bs=e(Aa,2);t(Bs,{title:"AmusedLoraLoaderMixin",local:"diffusers.loaders.AmusedLoraLoaderMixin",headingTag:"h2"});var za=e(Bs,2),Vs=r(za);a(Vs,{name:"class diffusers.loaders.AmusedLoraLoaderMixin",anchor:"diffusers.loaders.AmusedLoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L2206",parameters:[]});var Qa=e(Vs,2),pl=r(Qa);a(pl,{name:"load_lora_into_transformer",anchor:"diffusers.loaders.AmusedLoraLoaderMixin.load_lora_into_transformer",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L2211",parameters:[{name:"state_dict",val:""},{name:"network_alphas",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"metadata",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"}]}),s(2),o(Qa);var As=e(Qa,2),_l=r(As);a(_l,{name:"save_lora_weights",anchor:"diffusers.loaders.AmusedLoraLoaderMixin.save_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L2298",parameters:[{name:"save_directory",val:": str | os.PathLike"},{name:"text_encoder_lora_layers",val:": dict = None"},{name:"transformer_lora_layers",val:": dict = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.loaders.AmusedLoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory to save LoRA parameters to. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"diffusers.loaders.AmusedLoraLoaderMixin.save_lora_weights.unet_lora_layers",description:`<strong>unet_lora_layers</strong> (<code>dict[str, torch.nn.Module]</code> or <code>dict[str, torch.Tensor]</code>) &#x2014;
State dict of the LoRA layers corresponding to the <code>unet</code>.`,name:"unet_lora_layers"},{anchor:"diffusers.loaders.AmusedLoraLoaderMixin.save_lora_weights.text_encoder_lora_layers",description:`<strong>text_encoder_lora_layers</strong> (<code>dict[str, torch.nn.Module]</code> or <code>dict[str, torch.Tensor]</code>) &#x2014;
State dict of the LoRA layers corresponding to the <code>text_encoder</code>. Must explicitly pass the text
encoder LoRA state dict because it comes from &#x1F917; Transformers.`,name:"text_encoder_lora_layers"},{anchor:"diffusers.loaders.AmusedLoraLoaderMixin.save_lora_weights.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether the process calling this is the main process or not. Useful during distributed training and you
need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on the main
process to avoid race conditions.`,name:"is_main_process"},{anchor:"diffusers.loaders.AmusedLoraLoaderMixin.save_lora_weights.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) &#x2014;
The function to use to save the state dictionary. Useful during distributed training when you need to
replace <code>torch.save</code> with another method. Can be configured with the environment variable
<code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"},{anchor:"diffusers.loaders.AmusedLoraLoaderMixin.save_lora_weights.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"}]}),s(2),o(As),o(za);var Cs=e(za,2);t(Cs,{title:"AnimaLoraLoaderMixin",local:"diffusers.loaders.AnimaLoraLoaderMixin",headingTag:"h2"});var Ea=e(Cs,2),qs=r(Ea);a(qs,{name:"class diffusers.loaders.AnimaLoraLoaderMixin",anchor:"diffusers.loaders.AnimaLoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5587",parameters:[]});var Ka=e(qs,4),ml=r(Ka);a(ml,{name:"fuse_lora",anchor:"diffusers.loaders.AnimaLoraLoaderMixin.fuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5747",parameters:[{name:"components",val:": list = ['transformer', 'text_conditioner']"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": list[str] | None = None"},{name:"**kwargs",val:""}]}),s(2),o(Ka);var $a=e(Ka,2),ul=r($a);a(ul,{name:"load_lora_weights",anchor:"diffusers.loaders.AnimaLoraLoaderMixin.load_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5652",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"adapter_name",val:": str | None = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}]}),s(2),o($a);var Oa=e($a,2),hl=r(Oa);a(hl,{name:"lora_state_dict",anchor:"diffusers.loaders.AnimaLoraLoaderMixin.lora_state_dict",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5596",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"**kwargs",val:""}]}),s(2),o(Oa);var Ys=e(Oa,2),gl=r(Ys);a(gl,{name:"unfuse_lora",anchor:"diffusers.loaders.AnimaLoraLoaderMixin.unfuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5766",parameters:[{name:"components",val:": list = ['transformer', 'text_conditioner']"},{name:"**kwargs",val:""}]}),s(2),o(Ys),o(Ea);var Hs=e(Ea,2);t(Hs,{title:"AceStepLoraLoaderMixin",local:"diffusers.loaders.AceStepLoraLoaderMixin",headingTag:"h2"});var er=e(Hs,2),Ps=r(er);a(Ps,{name:"class diffusers.loaders.AceStepLoraLoaderMixin",anchor:"diffusers.loaders.AceStepLoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6941",parameters:[]});var ar=e(Ps,4),vl=r(ar);a(vl,{name:"fuse_lora",anchor:"diffusers.loaders.AceStepLoraLoaderMixin.fuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L7105",parameters:[{name:"components",val:": list = ['transformer']"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": list[str] | None = None"},{name:"**kwargs",val:""}]}),s(2),o(ar);var rr=e(ar,2),bl=r(rr);a(bl,{name:"load_lora_into_transformer",anchor:"diffusers.loaders.AceStepLoraLoaderMixin.load_lora_into_transformer",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L7042",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}]}),s(2),o(rr);var or=e(rr,2),Ll=r(or);a(Ll,{name:"load_lora_weights",anchor:"diffusers.loaders.AceStepLoraLoaderMixin.load_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L7006",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"adapter_name",val:": str | None = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}]}),s(2),o(or);var sr=e(or,2),xl=r(sr);a(xl,{name:"lora_state_dict",anchor:"diffusers.loaders.AceStepLoraLoaderMixin.lora_state_dict",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6949",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"**kwargs",val:""}]}),s(2),o(sr);var ir=e(sr,2),yl=r(ir);a(yl,{name:"save_lora_weights",anchor:"diffusers.loaders.AceStepLoraLoaderMixin.save_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L7069",parameters:[{name:"save_directory",val:": str | os.PathLike"},{name:"transformer_lora_layers",val:": dict = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": dict | None = None"}]}),s(2),o(ir);var zs=e(ir,2),Ml=r(zs);a(Ml,{name:"unfuse_lora",anchor:"diffusers.loaders.AceStepLoraLoaderMixin.unfuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L7125",parameters:[{name:"components",val:": list = ['transformer']"},{name:"**kwargs",val:""}]}),s(2),o(zs),o(er);var Qs=e(er,2);t(Qs,{title:"HiDreamImageLoraLoaderMixin",local:"diffusers.loaders.HiDreamImageLoraLoaderMixin",headingTag:"h2"});var dr=e(Qs,2),Es=r(dr);a(Es,{name:"class diffusers.loaders.HiDreamImageLoraLoaderMixin",anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L4806",parameters:[]});var tr=e(Es,4),wl=r(tr);a(wl,{name:"fuse_lora",anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.fuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L4971",parameters:[{name:"components",val:": list = ['transformer']"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": list[str] | None = None"},{name:"**kwargs",val:""}]}),s(2),o(tr);var lr=e(tr,2),Sl=r(lr);a(Sl,{name:"load_lora_into_transformer",anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.load_lora_into_transformer",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L4908",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}]}),s(2),o(lr);var nr=e(lr,2),Tl=r(nr);a(Tl,{name:"load_lora_weights",anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.load_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L4872",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"adapter_name",val:": str | None = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}]}),s(2),o(nr);var fr=e(nr,2),Nl=r(fr);a(Nl,{name:"lora_state_dict",anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.lora_state_dict",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L4814",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"**kwargs",val:""}]}),s(2),o(fr);var cr=e(fr,2),kl=r(cr);a(kl,{name:"save_lora_weights",anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.save_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L4935",parameters:[{name:"save_directory",val:": str | os.PathLike"},{name:"transformer_lora_layers",val:": dict = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": dict | None = None"}]}),s(2),o(cr);var Ks=e(cr,2),Fl=r(Ks);a(Fl,{name:"unfuse_lora",anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.unfuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L4991",parameters:[{name:"components",val:": list = ['transformer']"},{name:"**kwargs",val:""}]}),s(2),o(Ks),o(dr);var $s=e(dr,2);t($s,{title:"QwenImageLoraLoaderMixin",local:"diffusers.loaders.QwenImageLoraLoaderMixin",headingTag:"h2"});var pr=e($s,2),Os=r(pr);a(Os,{name:"class diffusers.loaders.QwenImageLoraLoaderMixin",anchor:"diffusers.loaders.QwenImageLoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L4998",parameters:[]});var _r=e(Os,4),Rl=r(_r);a(Rl,{name:"fuse_lora",anchor:"diffusers.loaders.QwenImageLoraLoaderMixin.fuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5166",parameters:[{name:"components",val:": list = ['transformer']"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": list[str] | None = None"},{name:"**kwargs",val:""}]}),s(2),o(_r);var mr=e(_r,2),Dl=r(mr);a(Dl,{name:"load_lora_into_transformer",anchor:"diffusers.loaders.QwenImageLoraLoaderMixin.load_lora_into_transformer",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5103",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}]}),s(2),o(mr);var ur=e(mr,2),Ul=r(ur);a(Ul,{name:"load_lora_weights",anchor:"diffusers.loaders.QwenImageLoraLoaderMixin.load_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5067",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"adapter_name",val:": str | None = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}]}),s(2),o(ur);var hr=e(ur,2),Jl=r(hr);a(Jl,{name:"lora_state_dict",anchor:"diffusers.loaders.QwenImageLoraLoaderMixin.lora_state_dict",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5006",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"**kwargs",val:""}]}),s(2),o(hr);var gr=e(hr,2),Zl=r(gr);a(Zl,{name:"save_lora_weights",anchor:"diffusers.loaders.QwenImageLoraLoaderMixin.save_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5130",parameters:[{name:"save_directory",val:": str | os.PathLike"},{name:"transformer_lora_layers",val:": dict = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": dict | None = None"}]}),s(2),o(gr);var ei=e(gr,2),Xl=r(ei);a(Xl,{name:"unfuse_lora",anchor:"diffusers.loaders.QwenImageLoraLoaderMixin.unfuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5186",parameters:[{name:"components",val:": list = ['transformer']"},{name:"**kwargs",val:""}]}),s(2),o(ei),o(pr);var ai=e(pr,2);t(ai,{title:"ZImageLoraLoaderMixin",local:"diffusers.loaders.ZImageLoraLoaderMixin",headingTag:"h2"});var vr=e(ai,2),ri=r(vr);a(ri,{name:"class diffusers.loaders.ZImageLoraLoaderMixin",anchor:"diffusers.loaders.ZImageLoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5387",parameters:[]});var br=e(ri,4),jl=r(br);a(jl,{name:"fuse_lora",anchor:"diffusers.loaders.ZImageLoraLoaderMixin.fuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5560",parameters:[{name:"components",val:": list = ['transformer']"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": list[str] | None = None"},{name:"**kwargs",val:""}]}),s(2),o(br);var Lr=e(br,2),Il=r(Lr);a(Il,{name:"load_lora_into_transformer",anchor:"diffusers.loaders.ZImageLoraLoaderMixin.load_lora_into_transformer",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5497",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}]}),s(2),o(Lr);var xr=e(Lr,2),Gl=r(xr);a(Gl,{name:"load_lora_weights",anchor:"diffusers.loaders.ZImageLoraLoaderMixin.load_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5461",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"adapter_name",val:": str | None = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}]}),s(2),o(xr);var yr=e(xr,2),Wl=r(yr);a(Wl,{name:"lora_state_dict",anchor:"diffusers.loaders.ZImageLoraLoaderMixin.lora_state_dict",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5395",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"**kwargs",val:""}]}),s(2),o(yr);var Mr=e(yr,2),Bl=r(Mr);a(Bl,{name:"save_lora_weights",anchor:"diffusers.loaders.ZImageLoraLoaderMixin.save_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5524",parameters:[{name:"save_directory",val:": str | os.PathLike"},{name:"transformer_lora_layers",val:": dict = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": dict | None = None"}]}),s(2),o(Mr);var oi=e(Mr,2),Vl=r(oi);a(Vl,{name:"unfuse_lora",anchor:"diffusers.loaders.ZImageLoraLoaderMixin.unfuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5580",parameters:[{name:"components",val:": list = ['transformer']"},{name:"**kwargs",val:""}]}),s(2),o(oi),o(vr);var si=e(vr,2);t(si,{title:"CosmosLoraLoaderMixin",local:"diffusers.loaders.CosmosLoraLoaderMixin",headingTag:"h2"});var wr=e(si,2),ii=r(wr);a(ii,{name:"class diffusers.loaders.CosmosLoraLoaderMixin",anchor:"diffusers.loaders.CosmosLoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6751",parameters:[]});var Sr=e(ii,4),Al=r(Sr);a(Al,{name:"fuse_lora",anchor:"diffusers.loaders.CosmosLoraLoaderMixin.fuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6914",parameters:[{name:"components",val:": list = ['transformer']"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": list[str] | None = None"},{name:"**kwargs",val:""}]}),s(2),o(Sr);var Tr=e(Sr,2),Cl=r(Tr);a(Cl,{name:"load_lora_into_transformer",anchor:"diffusers.loaders.CosmosLoraLoaderMixin.load_lora_into_transformer",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6851",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}]}),s(2),o(Tr);var Nr=e(Tr,2),ql=r(Nr);a(ql,{name:"load_lora_weights",anchor:"diffusers.loaders.CosmosLoraLoaderMixin.load_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6815",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"adapter_name",val:": str | None = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}]}),s(2),o(Nr);var kr=e(Nr,2),Yl=r(kr);a(Yl,{name:"lora_state_dict",anchor:"diffusers.loaders.CosmosLoraLoaderMixin.lora_state_dict",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6760",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"**kwargs",val:""}]}),s(2),o(kr);var Fr=e(kr,2),Hl=r(Fr);a(Hl,{name:"save_lora_weights",anchor:"diffusers.loaders.CosmosLoraLoaderMixin.save_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6878",parameters:[{name:"save_directory",val:": str | os.PathLike"},{name:"transformer_lora_layers",val:": dict = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": dict | None = None"}]}),s(2),o(Fr);var di=e(Fr,2),Pl=r(di);a(Pl,{name:"unfuse_lora",anchor:"diffusers.loaders.CosmosLoraLoaderMixin.unfuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6934",parameters:[{name:"components",val:": list = ['transformer']"},{name:"**kwargs",val:""}]}),s(2),o(di),o(wr);var ti=e(wr,2);t(ti,{title:"KandinskyLoraLoaderMixin",local:"diffusers.loaders.KandinskyLoraLoaderMixin",headingTag:"h2"});var Rr=e(ti,2),li=r(Rr);a(li,{name:"class diffusers.loaders.KandinskyLoraLoaderMixin",anchor:"diffusers.loaders.KandinskyLoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3899",parameters:[]});var Dr=e(li,4),zl=r(Dr);a(zl,{name:"fuse_lora",anchor:"diffusers.loaders.KandinskyLoraLoaderMixin.fuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L4061",parameters:[{name:"components",val:": list = ['transformer']"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": list[str] | None = None"},{name:"**kwargs",val:""}]}),s(2),o(Dr);var Ur=e(Dr,2),Ql=r(Ur);a(Ql,{name:"load_lora_into_transformer",anchor:"diffusers.loaders.KandinskyLoraLoaderMixin.load_lora_into_transformer",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3998",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}]}),s(2),o(Ur);var Jr=e(Ur,2),El=r(Jr);a(El,{name:"load_lora_weights",anchor:"diffusers.loaders.KandinskyLoraLoaderMixin.load_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3962",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"adapter_name",val:": str | None = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}]}),s(2),o(Jr);var Zr=e(Jr,2),Kl=r(Zr);a(Kl,{name:"lora_state_dict",anchor:"diffusers.loaders.KandinskyLoraLoaderMixin.lora_state_dict",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L3907",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"**kwargs",val:""}]}),s(2),o(Zr);var Xr=e(Zr,2),$l=r(Xr);a($l,{name:"save_lora_weights",anchor:"diffusers.loaders.KandinskyLoraLoaderMixin.save_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L4025",parameters:[{name:"save_directory",val:": str | os.PathLike"},{name:"transformer_lora_layers",val:": dict = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": dict | None = None"}]}),s(2),o(Xr);var ni=e(Xr,2),Ol=r(ni);a(Ol,{name:"unfuse_lora",anchor:"diffusers.loaders.KandinskyLoraLoaderMixin.unfuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L4081",parameters:[{name:"components",val:": list = ['transformer']"},{name:"**kwargs",val:""}]}),s(2),o(ni),o(Rr);var fi=e(Rr,2);t(fi,{title:"Ideogram4LoraLoaderMixin",local:"diffusers.loaders.Ideogram4LoraLoaderMixin",headingTag:"h2"});var jr=e(fi,2),ci=r(jr);a(ci,{name:"class diffusers.loaders.Ideogram4LoraLoaderMixin",anchor:"diffusers.loaders.Ideogram4LoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6355",parameters:[]});var Ir=e(ci,4),en=r(Ir);a(en,{name:"fuse_lora",anchor:"diffusers.loaders.Ideogram4LoraLoaderMixin.fuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6524",parameters:[{name:"components",val:": list = ['transformer']"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": list[str] | None = None"},{name:"**kwargs",val:""}]}),s(2),o(Ir);var Gr=e(Ir,2),an=r(Gr);a(an,{name:"load_lora_into_transformer",anchor:"diffusers.loaders.Ideogram4LoraLoaderMixin.load_lora_into_transformer",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6461",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}]}),s(2),o(Gr);var Wr=e(Gr,2),rn=r(Wr);a(rn,{name:"load_lora_weights",anchor:"diffusers.loaders.Ideogram4LoraLoaderMixin.load_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6425",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"adapter_name",val:": str | None = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}]}),s(2),o(Wr);var Br=e(Wr,2),on=r(Br);a(on,{name:"lora_state_dict",anchor:"diffusers.loaders.Ideogram4LoraLoaderMixin.lora_state_dict",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6363",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"**kwargs",val:""}]}),s(2),o(Br);var Vr=e(Br,2),sn=r(Vr);a(sn,{name:"save_lora_weights",anchor:"diffusers.loaders.Ideogram4LoraLoaderMixin.save_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6488",parameters:[{name:"save_directory",val:": str | os.PathLike"},{name:"transformer_lora_layers",val:": dict = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": dict | None = None"}]}),s(2),o(Vr);var pi=e(Vr,2),dn=r(pi);a(dn,{name:"unfuse_lora",anchor:"diffusers.loaders.Ideogram4LoraLoaderMixin.unfuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L6544",parameters:[{name:"components",val:": list = ['transformer']"},{name:"**kwargs",val:""}]}),s(2),o(pi),o(jr);var _i=e(jr,2);t(_i,{title:"Krea2LoraLoaderMixin",local:"diffusers.loaders.Krea2LoraLoaderMixin",headingTag:"h2"});var Ar=e(_i,2),mi=r(Ar);a(mi,{name:"class diffusers.loaders.Krea2LoraLoaderMixin",anchor:"diffusers.loaders.Krea2LoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5193",parameters:[]});var Cr=e(mi,4),tn=r(Cr);a(tn,{name:"fuse_lora",anchor:"diffusers.loaders.Krea2LoraLoaderMixin.fuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5360",parameters:[{name:"components",val:": list = ['transformer']"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": list[str] | None = None"},{name:"**kwargs",val:""}]}),s(2),o(Cr);var qr=e(Cr,2),ln=r(qr);a(ln,{name:"load_lora_into_transformer",anchor:"diffusers.loaders.Krea2LoraLoaderMixin.load_lora_into_transformer",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5297",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}]}),s(2),o(qr);var Yr=e(qr,2),nn=r(Yr);a(nn,{name:"load_lora_weights",anchor:"diffusers.loaders.Krea2LoraLoaderMixin.load_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5261",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"adapter_name",val:": str | None = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}]}),s(2),o(Yr);var Hr=e(Yr,2),fn=r(Hr);a(fn,{name:"lora_state_dict",anchor:"diffusers.loaders.Krea2LoraLoaderMixin.lora_state_dict",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5201",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"**kwargs",val:""}]}),s(2),o(Hr);var Pr=e(Hr,2),cn=r(Pr);a(cn,{name:"save_lora_weights",anchor:"diffusers.loaders.Krea2LoraLoaderMixin.save_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5324",parameters:[{name:"save_directory",val:": str | os.PathLike"},{name:"transformer_lora_layers",val:": dict = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": dict | None = None"}]}),s(2),o(Pr);var ui=e(Pr,2),pn=r(ui);a(pn,{name:"unfuse_lora",anchor:"diffusers.loaders.Krea2LoraLoaderMixin.unfuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L5380",parameters:[{name:"components",val:": list = ['transformer']"},{name:"**kwargs",val:""}]}),s(2),o(ui),o(Ar);var hi=e(Ar,2);t(hi,{title:"MiniMaxH3LoraLoaderMixin",local:"diffusers.loaders.MiniMaxH3LoraLoaderMixin",headingTag:"h2"});var zr=e(hi,2),gi=r(zr);a(gi,{name:"class diffusers.loaders.MiniMaxH3LoraLoaderMixin",anchor:"diffusers.loaders.MiniMaxH3LoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L7132",parameters:[]});var Qr=e(gi,10),_n=r(Qr);a(_n,{name:"fuse_lora",anchor:"diffusers.loaders.MiniMaxH3LoraLoaderMixin.fuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L7489",parameters:[{name:"components",val:": list = ['transformer', 'transformer_ref']"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": list[str] | None = None"},{name:"**kwargs",val:""}]}),s(2),o(Qr);var Er=e(Qr,2),mn=r(Er);a(mn,{name:"load_lora_into_transformer",anchor:"diffusers.loaders.MiniMaxH3LoraLoaderMixin.load_lora_into_transformer",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L7389",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}]}),s(2),o(Er);var Kr=e(Er,2),un=r(Kr);a(un,{name:"load_lora_into_transformer_ref",anchor:"diffusers.loaders.MiniMaxH3LoraLoaderMixin.load_lora_into_transformer_ref",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L7416",parameters:[{name:"state_dict",val:""},{name:"transformer_ref",val:""},{name:"prefix",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}]}),s(2),o(Kr);var $r=e(Kr,2),hn=r($r);a(hn,{name:"load_lora_weights",anchor:"diffusers.loaders.MiniMaxH3LoraLoaderMixin.load_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L7274",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"adapter_name",val:": str | None = None"},{name:"hotswap",val:": bool = False"},{name:"load_into_transformer_ref",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.MiniMaxH3LoraLoaderMixin.load_lora_weights.load_into_transformer_ref",description:`<strong>load_into_transformer_ref</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Load the <code>transformer.</code>-prefixed layers into the <code>transformer_ref</code> partition &#x2014; the one the <code>ref2va</code>
workflow denoises with &#x2014; instead of <code>transformer</code>. Only needed when both partitions are loaded: a
pipeline that holds <code>transformer_ref</code> alone routes there on its own.`,name:"load_into_transformer_ref"}]}),s(2),o($r);var Or=e($r,2),gn=r(Or);a(gn,{name:"lora_state_dict",anchor:"diffusers.loaders.MiniMaxH3LoraLoaderMixin.lora_state_dict",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L7159",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": str | dict[str, torch.Tensor]"},{name:"**kwargs",val:""}]}),s(2),o(Or);var eo=e(Or,2),vn=r(eo);a(vn,{name:"save_lora_weights",anchor:"diffusers.loaders.MiniMaxH3LoraLoaderMixin.save_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L7446",parameters:[{name:"save_directory",val:": str | os.PathLike"},{name:"transformer_lora_layers",val:": dict = None"},{name:"transformer_ref_lora_layers",val:": dict = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": dict | None = None"},{name:"transformer_ref_lora_adapter_metadata",val:": dict | None = None"}]}),s(2),o(eo);var vi=e(eo,2),bn=r(vi);a(bn,{name:"unfuse_lora",anchor:"diffusers.loaders.MiniMaxH3LoraLoaderMixin.unfuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L7508",parameters:[{name:"components",val:": list = ['transformer', 'transformer_ref']"},{name:"**kwargs",val:""}]}),s(2),o(vi),o(zr);var bi=e(zr,2);t(bi,{title:"PikaH3FlexLoraLoaderMixin",local:"diffusers.loaders.PikaH3FlexLoraLoaderMixin",headingTag:"h2"});var ao=e(bi,2),Li=r(ao);a(Li,{name:"class diffusers.loaders.PikaH3FlexLoraLoaderMixin",anchor:"diffusers.loaders.PikaH3FlexLoraLoaderMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_pipeline.py#L7515",parameters:[]});var Ln=e(Li,6);c(Ln,{anchor:"diffusers.loaders.PikaH3FlexLoraLoaderMixin.example",children:(d,n)=>{f(d,{code:"cGlwZS5sb2FkX2xvcmFfd2VpZ2h0cyglMjJQaWthLUxhYnMlMkZQaWthLUgzLUZsZXglMjIlMkMlMjB3ZWlnaHRfbmFtZSUzRCUyMmZsMnZhJTJGYWRhcHRlci5zYWZldGVuc29ycyUyMik=",highlighted:'pipe.load_lora_weights(<span class="hljs-string">&quot;Pika-Labs/Pika-H3-Flex&quot;</span>, weight_name=<span class="hljs-string">&quot;fl2va/adapter.safetensors&quot;</span>)',lang:"py",wrap:!1})},$$slots:{default:!0}}),o(ao);var xi=e(ao,2);t(xi,{title:"LoraBaseMixin",local:"diffusers.loaders.lora_base.LoraBaseMixin",headingTag:"h2"});var ro=e(xi,2),yi=r(ro);a(yi,{name:"class diffusers.loaders.lora_base.LoraBaseMixin",anchor:"diffusers.loaders.lora_base.LoraBaseMixin",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_base.py#L491",parameters:[]});var oo=e(yi,4),Mi=r(oo);a(Mi,{name:"delete_adapters",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.delete_adapters",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_base.py#L861",parameters:[{name:"adapter_names",val:": list[str] | str"}],parametersDescription:[{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.delete_adapters.adapter_names",description:`<strong>adapter_names</strong> (<code>list[str, str]</code>) &#x2014;
The names of the adapters to delete.`,name:"adapter_names"}]});var xn=e(Mi,4);c(xn,{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.delete_adapters.example",children:(d,n)=>{var i=m(),l=e(_(i),2);f(l,{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvclRleHQySW1hZ2UlMEFpbXBvcnQlMjB0b3JjaCUwQSUwQXBpcGVsaW5lJTIwJTNEJTIwQXV0b1BpcGVsaW5lRm9yVGV4dDJJbWFnZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIyc3RhYmlsaXR5YWklMkZzdGFibGUtZGlmZnVzaW9uLXhsLWJhc2UtMS4wJTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTBBKS50byglMjJjdWRhJTIyKSUwQXBpcGVsaW5lLmxvYWRfbG9yYV93ZWlnaHRzKCUwQSUyMCUyMCUyMCUyMCUyMmpiaWxja2UtaGYlMkZzZHhsLWNpbmVtYXRpYy0xJTIyJTJDJTIwd2VpZ2h0X25hbWUlM0QlMjJweXRvcmNoX2xvcmFfd2VpZ2h0cy5zYWZldGVuc29ycyUyMiUyQyUyMGFkYXB0ZXJfbmFtZXMlM0QlMjJjaW5lbWF0aWMlMjIlMEEpJTBBcGlwZWxpbmUuZGVsZXRlX2FkYXB0ZXJzKCUyMmNpbmVtYXRpYyUyMik=",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForText2Image
<span class="hljs-keyword">import</span> torch
pipeline = AutoPipelineForText2Image.from_pretrained(
<span class="hljs-string">&quot;stabilityai/stable-diffusion-xl-base-1.0&quot;</span>, torch_dtype=torch.float16
).to(<span class="hljs-string">&quot;cuda&quot;</span>)
pipeline.load_lora_weights(
<span class="hljs-string">&quot;jbilcke-hf/sdxl-cinematic-1&quot;</span>, weight_name=<span class="hljs-string">&quot;pytorch_lora_weights.safetensors&quot;</span>, adapter_names=<span class="hljs-string">&quot;cinematic&quot;</span>
)
pipeline.delete_adapters(<span class="hljs-string">&quot;cinematic&quot;</span>)`,lang:"py",wrap:!1}),p(d,i)},$$slots:{default:!0}}),o(oo);var so=e(oo,2),wi=r(so);a(wi,{name:"disable_lora",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.disable_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_base.py#L801",parameters:[]});var yn=e(wi,4);c(yn,{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.disable_lora.example",children:(d,n)=>{var i=m(),l=e(_(i),2);f(l,{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvclRleHQySW1hZ2UlMEFpbXBvcnQlMjB0b3JjaCUwQSUwQXBpcGVsaW5lJTIwJTNEJTIwQXV0b1BpcGVsaW5lRm9yVGV4dDJJbWFnZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIyc3RhYmlsaXR5YWklMkZzdGFibGUtZGlmZnVzaW9uLXhsLWJhc2UtMS4wJTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTBBKS50byglMjJjdWRhJTIyKSUwQXBpcGVsaW5lLmxvYWRfbG9yYV93ZWlnaHRzKCUwQSUyMCUyMCUyMCUyMCUyMmpiaWxja2UtaGYlMkZzZHhsLWNpbmVtYXRpYy0xJTIyJTJDJTIwd2VpZ2h0X25hbWUlM0QlMjJweXRvcmNoX2xvcmFfd2VpZ2h0cy5zYWZldGVuc29ycyUyMiUyQyUyMGFkYXB0ZXJfbmFtZSUzRCUyMmNpbmVtYXRpYyUyMiUwQSklMEFwaXBlbGluZS5kaXNhYmxlX2xvcmEoKQ==",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForText2Image
<span class="hljs-keyword">import</span> torch
pipeline = AutoPipelineForText2Image.from_pretrained(
<span class="hljs-string">&quot;stabilityai/stable-diffusion-xl-base-1.0&quot;</span>, torch_dtype=torch.float16
).to(<span class="hljs-string">&quot;cuda&quot;</span>)
pipeline.load_lora_weights(
<span class="hljs-string">&quot;jbilcke-hf/sdxl-cinematic-1&quot;</span>, weight_name=<span class="hljs-string">&quot;pytorch_lora_weights.safetensors&quot;</span>, adapter_name=<span class="hljs-string">&quot;cinematic&quot;</span>
)
pipeline.disable_lora()`,lang:"py",wrap:!1}),p(d,i)},$$slots:{default:!0}}),o(so);var io=e(so,2),Si=r(io);a(Si,{name:"enable_lora",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.enable_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_base.py#L831",parameters:[]});var Mn=e(Si,4);c(Mn,{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.enable_lora.example",children:(d,n)=>{var i=m(),l=e(_(i),2);f(l,{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvclRleHQySW1hZ2UlMEFpbXBvcnQlMjB0b3JjaCUwQSUwQXBpcGVsaW5lJTIwJTNEJTIwQXV0b1BpcGVsaW5lRm9yVGV4dDJJbWFnZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIyc3RhYmlsaXR5YWklMkZzdGFibGUtZGlmZnVzaW9uLXhsLWJhc2UtMS4wJTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTBBKS50byglMjJjdWRhJTIyKSUwQXBpcGVsaW5lLmxvYWRfbG9yYV93ZWlnaHRzKCUwQSUyMCUyMCUyMCUyMCUyMmpiaWxja2UtaGYlMkZzZHhsLWNpbmVtYXRpYy0xJTIyJTJDJTIwd2VpZ2h0X25hbWUlM0QlMjJweXRvcmNoX2xvcmFfd2VpZ2h0cy5zYWZldGVuc29ycyUyMiUyQyUyMGFkYXB0ZXJfbmFtZSUzRCUyMmNpbmVtYXRpYyUyMiUwQSklMEFwaXBlbGluZS5lbmFibGVfbG9yYSgp",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForText2Image
<span class="hljs-keyword">import</span> torch
pipeline = AutoPipelineForText2Image.from_pretrained(
<span class="hljs-string">&quot;stabilityai/stable-diffusion-xl-base-1.0&quot;</span>, torch_dtype=torch.float16
).to(<span class="hljs-string">&quot;cuda&quot;</span>)
pipeline.load_lora_weights(
<span class="hljs-string">&quot;jbilcke-hf/sdxl-cinematic-1&quot;</span>, weight_name=<span class="hljs-string">&quot;pytorch_lora_weights.safetensors&quot;</span>, adapter_name=<span class="hljs-string">&quot;cinematic&quot;</span>
)
pipeline.enable_lora()`,lang:"py",wrap:!1}),p(d,i)},$$slots:{default:!0}}),o(io);var to=e(io,2),wn=r(to);a(wn,{name:"enable_lora_hotswap",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.enable_lora_hotswap",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_base.py#L1008",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.enable_lora_hotswap.target_rank",description:`<strong>target_rank</strong> (<code>int</code>) &#x2014;
The highest rank among all the adapters that will be loaded.`,name:"target_rank"},{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.enable_lora_hotswap.check_compiled",description:`<strong>check_compiled</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;error&quot;</code>) &#x2014;
How to handle a model that is already compiled. The check can return the following messages:
<ul>
<li>&#x201C;error&#x201D; (default): raise an error</li>
<li>&#x201C;warn&#x201D;: issue a warning</li>
<li>&#x201C;ignore&#x201D;: do nothing</li>
</ul>`,name:"check_compiled"}]}),s(2),o(to);var lo=e(to,2),Ti=r(lo);a(Ti,{name:"fuse_lora",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.fuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_base.py#L549",parameters:[{name:"components",val:": list[str] | None = None"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": list[str] | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.fuse_lora.components",description:"<strong>components</strong> &#x2014; (<code>list[str]</code>): list of LoRA-injectable components to fuse the LoRAs into.",name:"components"},{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.fuse_lora.lora_scale",description:`<strong>lora_scale</strong> (<code>float</code>, defaults to 1.0) &#x2014;
Controls how much to influence the outputs with the LoRA parameters.`,name:"lora_scale"},{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.fuse_lora.safe_fusing",description:`<strong>safe_fusing</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether to check fused weights for NaN values before fusing and if values are NaN not fusing them.`,name:"safe_fusing"},{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.fuse_lora.adapter_names",description:`<strong>adapter_names</strong> (<code>list[str]</code>, <em>optional</em>) &#x2014;
Adapter names to be used for fusing. If nothing is passed, all active adapters will be fused.`,name:"adapter_names"}]});var Sn=e(Ti,4);c(Sn,{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.fuse_lora.example",children:(d,n)=>{var i=m(),l=e(_(i),2);f(l,{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMERpZmZ1c2lvblBpcGVsaW5lJTBBaW1wb3J0JTIwdG9yY2glMEElMEFwaXBlbGluZSUyMCUzRCUyMERpZmZ1c2lvblBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJzdGFiaWxpdHlhaSUyRnN0YWJsZS1kaWZmdXNpb24teGwtYmFzZS0xLjAlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYlMEEpLnRvKCUyMmN1ZGElMjIpJTBBcGlwZWxpbmUubG9hZF9sb3JhX3dlaWdodHMoJTIybmVyaWpzJTJGcGl4ZWwtYXJ0LXhsJTIyJTJDJTIwd2VpZ2h0X25hbWUlM0QlMjJwaXhlbC1hcnQteGwuc2FmZXRlbnNvcnMlMjIlMkMlMjBhZGFwdGVyX25hbWUlM0QlMjJwaXhlbCUyMiklMEFwaXBlbGluZS5mdXNlX2xvcmEobG9yYV9zY2FsZSUzRDAuNyk=",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> DiffusionPipeline
<span class="hljs-keyword">import</span> torch
pipeline = DiffusionPipeline.from_pretrained(
<span class="hljs-string">&quot;stabilityai/stable-diffusion-xl-base-1.0&quot;</span>, torch_dtype=torch.float16
).to(<span class="hljs-string">&quot;cuda&quot;</span>)
pipeline.load_lora_weights(<span class="hljs-string">&quot;nerijs/pixel-art-xl&quot;</span>, weight_name=<span class="hljs-string">&quot;pixel-art-xl.safetensors&quot;</span>, adapter_name=<span class="hljs-string">&quot;pixel&quot;</span>)
pipeline.fuse_lora(lora_scale=<span class="hljs-number">0.7</span>)`,lang:"py",wrap:!1}),p(d,i)},$$slots:{default:!0}}),o(lo);var no=e(lo,2),Ni=r(no);a(Ni,{name:"get_active_adapters",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.get_active_adapters",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_base.py#L899",parameters:[]});var Tn=e(Ni,4);c(Tn,{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.get_active_adapters.example",children:(d,n)=>{var i=m(),l=e(_(i),2);f(l,{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMERpZmZ1c2lvblBpcGVsaW5lJTBBJTBBcGlwZWxpbmUlMjAlM0QlMjBEaWZmdXNpb25QaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIyc3RhYmlsaXR5YWklMkZzdGFibGUtZGlmZnVzaW9uLXhsLWJhc2UtMS4wJTIyJTJDJTBBKS50byglMjJjdWRhJTIyKSUwQXBpcGVsaW5lLmxvYWRfbG9yYV93ZWlnaHRzKCUyMkNpcm9OMjAyMiUyRnRveS1mYWNlJTIyJTJDJTIwd2VpZ2h0X25hbWUlM0QlMjJ0b3lfZmFjZV9zZHhsLnNhZmV0ZW5zb3JzJTIyJTJDJTIwYWRhcHRlcl9uYW1lJTNEJTIydG95JTIyKSUwQXBpcGVsaW5lLmdldF9hY3RpdmVfYWRhcHRlcnMoKQ==",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> DiffusionPipeline
pipeline = DiffusionPipeline.from_pretrained(
<span class="hljs-string">&quot;stabilityai/stable-diffusion-xl-base-1.0&quot;</span>,
).to(<span class="hljs-string">&quot;cuda&quot;</span>)
pipeline.load_lora_weights(<span class="hljs-string">&quot;CiroN2022/toy-face&quot;</span>, weight_name=<span class="hljs-string">&quot;toy_face_sdxl.safetensors&quot;</span>, adapter_name=<span class="hljs-string">&quot;toy&quot;</span>)
pipeline.get_active_adapters()`,lang:"python",wrap:!1}),p(d,i)},$$slots:{default:!0}}),o(no);var fo=e(no,2),Nn=r(fo);a(Nn,{name:"get_list_adapters",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.get_list_adapters",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_base.py#L932",parameters:[]}),s(2),o(fo);var co=e(fo,2),ki=r(co);a(ki,{name:"set_adapters",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_adapters",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_base.py#L698",parameters:[{name:"adapter_names",val:": list[str] | str"},{name:"adapter_weights",val:": float | dict | list[float] | list[dict] | None = None"}],parametersDescription:[{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_adapters.adapter_names",description:`<strong>adapter_names</strong> (<code>list[str]</code> or <code>str</code>) &#x2014;
The names of the adapters to use.`,name:"adapter_names"},{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_adapters.adapter_weights",description:`<strong>adapter_weights</strong> (<code>list[float, float]</code>, <em>optional</em>) &#x2014;
The adapter(s) weights to use with the UNet. If <code>None</code>, the weights are set to <code>1.0</code> for all the
adapters.`,name:"adapter_weights"}]});var kn=e(ki,4);c(kn,{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_adapters.example",children:(d,n)=>{var i=m(),l=e(_(i),2);f(l,{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvclRleHQySW1hZ2UlMEFpbXBvcnQlMjB0b3JjaCUwQSUwQXBpcGVsaW5lJTIwJTNEJTIwQXV0b1BpcGVsaW5lRm9yVGV4dDJJbWFnZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIyc3RhYmlsaXR5YWklMkZzdGFibGUtZGlmZnVzaW9uLXhsLWJhc2UtMS4wJTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTBBKS50byglMjJjdWRhJTIyKSUwQXBpcGVsaW5lLmxvYWRfbG9yYV93ZWlnaHRzKCUwQSUyMCUyMCUyMCUyMCUyMmpiaWxja2UtaGYlMkZzZHhsLWNpbmVtYXRpYy0xJTIyJTJDJTIwd2VpZ2h0X25hbWUlM0QlMjJweXRvcmNoX2xvcmFfd2VpZ2h0cy5zYWZldGVuc29ycyUyMiUyQyUyMGFkYXB0ZXJfbmFtZSUzRCUyMmNpbmVtYXRpYyUyMiUwQSklMEFwaXBlbGluZS5sb2FkX2xvcmFfd2VpZ2h0cyglMjJuZXJpanMlMkZwaXhlbC1hcnQteGwlMjIlMkMlMjB3ZWlnaHRfbmFtZSUzRCUyMnBpeGVsLWFydC14bC5zYWZldGVuc29ycyUyMiUyQyUyMGFkYXB0ZXJfbmFtZSUzRCUyMnBpeGVsJTIyKSUwQXBpcGVsaW5lLnNldF9hZGFwdGVycyglNUIlMjJjaW5lbWF0aWMlMjIlMkMlMjAlMjJwaXhlbCUyMiU1RCUyQyUyMGFkYXB0ZXJfd2VpZ2h0cyUzRCU1QjAuNSUyQyUyMDAuNSU1RCk=",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForText2Image
<span class="hljs-keyword">import</span> torch
pipeline = AutoPipelineForText2Image.from_pretrained(
<span class="hljs-string">&quot;stabilityai/stable-diffusion-xl-base-1.0&quot;</span>, torch_dtype=torch.float16
).to(<span class="hljs-string">&quot;cuda&quot;</span>)
pipeline.load_lora_weights(
<span class="hljs-string">&quot;jbilcke-hf/sdxl-cinematic-1&quot;</span>, weight_name=<span class="hljs-string">&quot;pytorch_lora_weights.safetensors&quot;</span>, adapter_name=<span class="hljs-string">&quot;cinematic&quot;</span>
)
pipeline.load_lora_weights(<span class="hljs-string">&quot;nerijs/pixel-art-xl&quot;</span>, weight_name=<span class="hljs-string">&quot;pixel-art-xl.safetensors&quot;</span>, adapter_name=<span class="hljs-string">&quot;pixel&quot;</span>)
pipeline.set_adapters([<span class="hljs-string">&quot;cinematic&quot;</span>, <span class="hljs-string">&quot;pixel&quot;</span>], adapter_weights=[<span class="hljs-number">0.5</span>, <span class="hljs-number">0.5</span>])`,lang:"py",wrap:!1}),p(d,i)},$$slots:{default:!0}}),o(co);var po=e(co,2),Fi=r(po);a(Fi,{name:"set_lora_device",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_lora_device",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_base.py#L954",parameters:[{name:"adapter_names",val:": list[str]"},{name:"device",val:": torch.device | str | int"}],parametersDescription:[{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_lora_device.adapter_names",description:`<strong>adapter_names</strong> (<code>list[str]</code>) &#x2014;
list of adapters to send device to.`,name:"adapter_names"},{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_lora_device.device",description:`<strong>device</strong> (<code>torch.device | str | int</code>) &#x2014;
Device to send the adapters to. Can be either a torch device, a str or an integer.`,name:"device"}]});var Fn=e(Fi,6);c(Fn,{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_lora_device.example",children:(d,n)=>{f(d,{code:"cGlwZS5sb2FkX2xvcmFfd2VpZ2h0cyhwYXRoXzElMkMlMjBhZGFwdGVyX25hbWUlM0QlMjJhZGFwdGVyLTElMjIpJTBBcGlwZS5sb2FkX2xvcmFfd2VpZ2h0cyhwYXRoXzIlMkMlMjBhZGFwdGVyX25hbWUlM0QlMjJhZGFwdGVyLTIlMjIpJTBBcGlwZS5zZXRfYWRhcHRlcnMoJTIyYWRhcHRlci0xJTIyKSUwQWltYWdlXzElMjAlM0QlMjBwaXBlKCoqa3dhcmdzKSUwQSUyMyUyMHN3aXRjaCUyMHRvJTIwYWRhcHRlci0yJTJDJTIwb2ZmbG9hZCUyMGFkYXB0ZXItMSUwQXBpcGVsaW5lLnNldF9sb3JhX2RldmljZShhZGFwdGVyX25hbWVzJTNEJTVCJTIyYWRhcHRlci0xJTIyJTVEJTJDJTIwZGV2aWNlJTNEJTIyY3B1JTIyKSUwQXBpcGVsaW5lLnNldF9sb3JhX2RldmljZShhZGFwdGVyX25hbWVzJTNEJTVCJTIyYWRhcHRlci0yJTIyJTVEJTJDJTIwZGV2aWNlJTNEJTIyY3VkYSUzQTAlMjIpJTBBcGlwZS5zZXRfYWRhcHRlcnMoJTIyYWRhcHRlci0yJTIyKSUwQWltYWdlXzIlMjAlM0QlMjBwaXBlKCoqa3dhcmdzKSUwQSUyMyUyMHN3aXRjaCUyMGJhY2slMjB0byUyMGFkYXB0ZXItMSUyQyUyMG9mZmxvYWQlMjBhZGFwdGVyLTIlMEFwaXBlbGluZS5zZXRfbG9yYV9kZXZpY2UoYWRhcHRlcl9uYW1lcyUzRCU1QiUyMmFkYXB0ZXItMiUyMiU1RCUyQyUyMGRldmljZSUzRCUyMmNwdSUyMiklMEFwaXBlbGluZS5zZXRfbG9yYV9kZXZpY2UoYWRhcHRlcl9uYW1lcyUzRCU1QiUyMmFkYXB0ZXItMSUyMiU1RCUyQyUyMGRldmljZSUzRCUyMmN1ZGElM0EwJTIyKSUwQXBpcGUuc2V0X2FkYXB0ZXJzKCUyMmFkYXB0ZXItMSUyMiklMEEuLi4=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.load_lora_weights(path_1, adapter_name=<span class="hljs-string">&quot;adapter-1&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.load_lora_weights(path_2, adapter_name=<span class="hljs-string">&quot;adapter-2&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.set_adapters(<span class="hljs-string">&quot;adapter-1&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image_1 = pipe(**kwargs)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># switch to adapter-2, offload adapter-1</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline.set_lora_device(adapter_names=[<span class="hljs-string">&quot;adapter-1&quot;</span>], device=<span class="hljs-string">&quot;cpu&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline.set_lora_device(adapter_names=[<span class="hljs-string">&quot;adapter-2&quot;</span>], device=<span class="hljs-string">&quot;cuda:0&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.set_adapters(<span class="hljs-string">&quot;adapter-2&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image_2 = pipe(**kwargs)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># switch back to adapter-1, offload adapter-2</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline.set_lora_device(adapter_names=[<span class="hljs-string">&quot;adapter-2&quot;</span>], device=<span class="hljs-string">&quot;cpu&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline.set_lora_device(adapter_names=[<span class="hljs-string">&quot;adapter-1&quot;</span>], device=<span class="hljs-string">&quot;cuda:0&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.set_adapters(<span class="hljs-string">&quot;adapter-1&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>...`,lang:"python",wrap:!1})},$$slots:{default:!0}}),o(po);var _o=e(po,2),Rn=r(_o);a(Rn,{name:"unfuse_lora",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.unfuse_lora",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_base.py#L636",parameters:[{name:"components",val:": list[str] | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>list[str]</code>) &#x2014; list of LoRA-injectable components to unfuse LoRA from.",name:"components"},{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.unfuse_lora.unfuse_unet",description:"<strong>unfuse_unet</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014; Whether to unfuse the UNet LoRA parameters.",name:"unfuse_unet"},{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.unfuse_lora.unfuse_text_encoder",description:`<strong>unfuse_text_encoder</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Whether to unfuse the text encoder LoRA parameters. If the text encoder wasn&#x2019;t monkey-patched with the
LoRA parameters then it won&#x2019;t have any effect.`,name:"unfuse_text_encoder"}]}),s(2),o(_o);var mo=e(_o,2),Ri=r(mo);a(Ri,{name:"unload_lora_weights",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.unload_lora_weights",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_base.py#L526",parameters:[]});var Dn=e(Ri,4);c(Dn,{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.unload_lora_weights.example",children:(d,n)=>{var i=uo(),l=e(_(i),2);f(l,{code:"JTIzJTIwQXNzdW1pbmclMjAlNjBwaXBlbGluZSU2MCUyMGlzJTIwYWxyZWFkeSUyMGxvYWRlZCUyMHdpdGglMjB0aGUlMjBMb1JBJTIwcGFyYW1ldGVycy4lMEFwaXBlbGluZS51bmxvYWRfbG9yYV93ZWlnaHRzKCklMEEuLi4=",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Assuming `pipeline` is already loaded with the LoRA parameters.</span>\n<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline.unload_lora_weights()\n<span class="hljs-meta">&gt;&gt;&gt; </span>...',lang:"python",wrap:!1}),p(d,i)},$$slots:{default:!0}}),o(mo);var Di=e(mo,2),Un=r(Di);a(Un,{name:"write_lora_layers",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.write_lora_layers",source:"https://github.com/huggingface/diffusers/blob/vr_15174/src/diffusers/loaders/lora_base.py#L1031",parameters:[{name:"state_dict",val:": dict[str, torch.Tensor]"},{name:"save_directory",val:": str"},{name:"is_main_process",val:": bool"},{name:"weight_name",val:": str"},{name:"save_function",val:": Callable"},{name:"safe_serialization",val:": bool"},{name:"lora_adapter_metadata",val:": dict | None = None"}]}),s(2),o(Di),o(ro);var Jn=e(ro,2);In(Jn,{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/loaders/lora.md"}),s(2),p(Ui,ho),Vn()}export{Qn as component};

Xet Storage Details

Size:
262 kB
·
Xet hash:
d85f14f00f8feb9bb1307245f73d97a5be5e7b6dbc07df352114e83eff820a36

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.