Buckets:
| import{s as Si,o as Ci,n as z}from"../chunks/scheduler.8c3d61f6.js";import{S as ki,i as Ai,g as a,s as t,r as _,A as Ri,h as n,f as i,c as r,j as v,u as m,x as f,k as w,y as o,a as L,v as u,d as h,t as g,w as x}from"../chunks/index.da70eac4.js";import{T as Z}from"../chunks/Tip.1d9b8c37.js";import{D as $}from"../chunks/Docstring.6b390b9a.js";import{C as gs}from"../chunks/CodeBlock.00a903b3.js";import{E as hs}from"../chunks/ExampleCodeBlock.db12be95.js";import{H as _e,E as Pi}from"../chunks/EditOnGithub.1e64e623.js";function Ii(D){let s,b='To learn more about how to load LoRA weights, see the <a href="../../using-diffusers/loading_adapters#lora">LoRA</a> loading guide.';return{c(){s=a("p"),s.innerHTML=b},l(c){s=n(c,"P",{"data-svelte-h":!0}),f(s)!=="svelte-1fw6lx1"&&(s.innerHTML=b)},m(c,l){L(c,s,l)},p:z,d(c){c&&i(s)}}}function Hi(D){let s,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,l,y="This function is experimental and might change in the future.";return{c(){s=a("p"),s.textContent=b,c=t(),l=a("p"),l.textContent=y},l(d){s=n(d,"P",{"data-svelte-h":!0}),f(s)!=="svelte-15l1sdn"&&(s.textContent=b),c=r(d),l=n(d,"P",{"data-svelte-h":!0}),f(l)!=="svelte-3fufvn"&&(l.textContent=y)},m(d,M){L(d,s,M),L(d,c,M),L(d,l,M)},p:z,d(d){d&&(i(s),i(c),i(l))}}}function Vi(D){let s,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,l,y="This function is experimental and might change in the future.";return{c(){s=a("p"),s.textContent=b,c=t(),l=a("p"),l.textContent=y},l(d){s=n(d,"P",{"data-svelte-h":!0}),f(s)!=="svelte-15l1sdn"&&(s.textContent=b),c=r(d),l=n(d,"P",{"data-svelte-h":!0}),f(l)!=="svelte-3fufvn"&&(l.textContent=y)},m(d,M){L(d,s,M),L(d,c,M),L(d,l,M)},p:z,d(d){d&&(i(s),i(c),i(l))}}}function Ei(D){let s,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,l,y="This function is experimental and might change in the future.";return{c(){s=a("p"),s.textContent=b,c=t(),l=a("p"),l.textContent=y},l(d){s=n(d,"P",{"data-svelte-h":!0}),f(s)!=="svelte-15l1sdn"&&(s.textContent=b),c=r(d),l=n(d,"P",{"data-svelte-h":!0}),f(l)!=="svelte-3fufvn"&&(l.textContent=y)},m(d,M){L(d,s,M),L(d,c,M),L(d,l,M)},p:z,d(d){d&&(i(s),i(c),i(l))}}}function Xi(D){let s,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,l,y="This function is experimental and might change in the future.";return{c(){s=a("p"),s.textContent=b,c=t(),l=a("p"),l.textContent=y},l(d){s=n(d,"P",{"data-svelte-h":!0}),f(s)!=="svelte-15l1sdn"&&(s.textContent=b),c=r(d),l=n(d,"P",{"data-svelte-h":!0}),f(l)!=="svelte-3fufvn"&&(l.textContent=y)},m(d,M){L(d,s,M),L(d,c,M),L(d,l,M)},p:z,d(d){d&&(i(s),i(c),i(l))}}}function Ui(D){let s,b="This is an experimental API.";return{c(){s=a("p"),s.textContent=b},l(c){s=n(c,"P",{"data-svelte-h":!0}),f(s)!=="svelte-8w79b9"&&(s.textContent=b)},m(c,l){L(c,s,l)},p:z,d(c){c&&i(s)}}}function Fi(D){let s,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,l,y="This function is experimental and might change in the future.";return{c(){s=a("p"),s.textContent=b,c=t(),l=a("p"),l.textContent=y},l(d){s=n(d,"P",{"data-svelte-h":!0}),f(s)!=="svelte-15l1sdn"&&(s.textContent=b),c=r(d),l=n(d,"P",{"data-svelte-h":!0}),f(l)!=="svelte-3fufvn"&&(l.textContent=y)},m(d,M){L(d,s,M),L(d,c,M),L(d,l,M)},p:z,d(d){d&&(i(s),i(c),i(l))}}}function Ni(D){let s,b="This is an experimental API.";return{c(){s=a("p"),s.textContent=b},l(c){s=n(c,"P",{"data-svelte-h":!0}),f(s)!=="svelte-8w79b9"&&(s.textContent=b)},m(c,l){L(c,s,l)},p:z,d(c){c&&i(s)}}}function Wi(D){let s,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,l,y="This function is experimental and might change in the future.";return{c(){s=a("p"),s.textContent=b,c=t(),l=a("p"),l.textContent=y},l(d){s=n(d,"P",{"data-svelte-h":!0}),f(s)!=="svelte-15l1sdn"&&(s.textContent=b),c=r(d),l=n(d,"P",{"data-svelte-h":!0}),f(l)!=="svelte-3fufvn"&&(l.textContent=y)},m(d,M){L(d,s,M),L(d,c,M),L(d,l,M)},p:z,d(d){d&&(i(s),i(c),i(l))}}}function zi(D){let s,b="This is an experimental API.";return{c(){s=a("p"),s.textContent=b},l(c){s=n(c,"P",{"data-svelte-h":!0}),f(s)!=="svelte-8w79b9"&&(s.textContent=b)},m(c,l){L(c,s,l)},p:z,d(c){c&&i(s)}}}function qi(D){let s,b="This is an experimental API.";return{c(){s=a("p"),s.textContent=b},l(c){s=n(c,"P",{"data-svelte-h":!0}),f(s)!=="svelte-8w79b9"&&(s.textContent=b)},m(c,l){L(c,s,l)},p:z,d(c){c&&i(s)}}}function Bi(D){let s,b="Example:",c,l,y;return l=new gs({props:{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">"stabilityai/stable-diffusion-xl-base-1.0"</span>, torch_dtype=torch.float16 | |
| ).to(<span class="hljs-string">"cuda"</span>) | |
| pipeline.load_lora_weights(<span class="hljs-string">"nerijs/pixel-art-xl"</span>, weight_name=<span class="hljs-string">"pixel-art-xl.safetensors"</span>, adapter_name=<span class="hljs-string">"pixel"</span>) | |
| pipeline.fuse_lora(lora_scale=<span class="hljs-number">0.7</span>)`,wrap:!1}}),{c(){s=a("p"),s.textContent=b,c=t(),_(l.$$.fragment)},l(d){s=n(d,"P",{"data-svelte-h":!0}),f(s)!=="svelte-11lpom8"&&(s.textContent=b),c=r(d),m(l.$$.fragment,d)},m(d,M){L(d,s,M),L(d,c,M),u(l,d,M),y=!0},p:z,i(d){y||(h(l.$$.fragment,d),y=!0)},o(d){g(l.$$.fragment,d),y=!1},d(d){d&&(i(s),i(c)),x(l,d)}}}function ji(D){let s,b="Example:",c,l,y;return l=new gs({props:{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">"stabilityai/stable-diffusion-xl-base-1.0"</span>, | |
| ).to(<span class="hljs-string">"cuda"</span>) | |
| pipeline.load_lora_weights(<span class="hljs-string">"CiroN2022/toy-face"</span>, weight_name=<span class="hljs-string">"toy_face_sdxl.safetensors"</span>, adapter_name=<span class="hljs-string">"toy"</span>) | |
| pipeline.get_active_adapters()`,wrap:!1}}),{c(){s=a("p"),s.textContent=b,c=t(),_(l.$$.fragment)},l(d){s=n(d,"P",{"data-svelte-h":!0}),f(s)!=="svelte-11lpom8"&&(s.textContent=b),c=r(d),m(l.$$.fragment,d)},m(d,M){L(d,s,M),L(d,c,M),u(l,d,M),y=!0},p:z,i(d){y||(h(l.$$.fragment,d),y=!0)},o(d){g(l.$$.fragment,d),y=!1},d(d){d&&(i(s),i(c)),x(l,d)}}}function Ji(D){let s,b="This is an experimental API.";return{c(){s=a("p"),s.textContent=b},l(c){s=n(c,"P",{"data-svelte-h":!0}),f(s)!=="svelte-8w79b9"&&(s.textContent=b)},m(c,l){L(c,s,l)},p:z,d(c){c&&i(s)}}}function Gi(D){let s,b="Examples:",c,l,y;return l=new gs({props:{code:"JTIzJTIwQXNzdW1pbmclMjAlNjBwaXBlbGluZSU2MCUyMGlzJTIwYWxyZWFkeSUyMGxvYWRlZCUyMHdpdGglMjB0aGUlMjBMb1JBJTIwcGFyYW1ldGVycy4lMEFwaXBlbGluZS51bmxvYWRfbG9yYV93ZWlnaHRzKCklMEEuLi4=",highlighted:'<span class="hljs-meta">>>> </span><span class="hljs-comment"># Assuming `pipeline` is already loaded with the LoRA parameters.</span>\n<span class="hljs-meta">>>> </span>pipeline.unload_lora_weights()\n<span class="hljs-meta">>>> </span>...',wrap:!1}}),{c(){s=a("p"),s.textContent=b,c=t(),_(l.$$.fragment)},l(d){s=n(d,"P",{"data-svelte-h":!0}),f(s)!=="svelte-kvfsh7"&&(s.textContent=b),c=r(d),m(l.$$.fragment,d)},m(d,M){L(d,s,M),L(d,c,M),u(l,d,M),y=!0},p:z,i(d){y||(h(l.$$.fragment,d),y=!0)},o(d){g(l.$$.fragment,d),y=!1},d(d){d&&(i(s),i(c)),x(l,d)}}}function Zi(D){let s,b,c,l,y,d,M,xs='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_10312/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>, for example) or a Transformer (<a href="/docs/diffusers/pr_10312/en/api/models/sd3_transformer2d#diffusers.SD3Transformer2DModel">SD3Transformer2DModel</a>, for example). There are several classes for loading LoRA weights:',Sr,Qe,Ls='<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>AmusedLoraLoaderMixin</code> is for the <a href="/docs/diffusers/pr_10312/en/api/pipelines/amused#diffusers.AmusedPipeline">AmusedPipeline</a>.</li> <li><code>LoraBaseMixin</code> provides a base class with several utility methods to fuse, unfuse, unload, LoRAs and more.</li>',Cr,me,kr,Oe,Ar,k,Ke,la,lt,bs=`Load LoRA layers into Stable Diffusion <a href="/docs/diffusers/pr_10312/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>.`,ca,ue,eo,fa,ct,vs="This will load the LoRA layers specified in <code>state_dict</code> into <code>text_encoder</code>",pa,he,oo,_a,ft,ws="This will load the LoRA layers specified in <code>state_dict</code> into <code>unet</code>.",ma,U,to,ua,pt,$s=`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>.`,ha,_t,Ms="All kwargs are forwarded to <code>self.lora_state_dict</code>.",ga,mt,ys=`See <a href="/docs/diffusers/pr_10312/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details on how the state dict is | |
| loaded.`,xa,ut,Ds=`See <a href="/docs/diffusers/pr_10312/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>.`,La,ht,Ts=`See <a href="/docs/diffusers/pr_10312/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>.`,ba,Y,ro,va,gt,Ss="Return state dict for lora weights and the network alphas.",wa,ge,$a,xe,ao,Ma,xt,Cs="Save the LoRA parameters corresponding to the UNet and text encoder.",Rr,no,Pr,A,so,ya,Lt,ks=`Load LoRA layers into Stable Diffusion XL <a href="/docs/diffusers/pr_10312/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>.`,Da,Le,io,Ta,bt,As="This will load the LoRA layers specified in <code>state_dict</code> into <code>text_encoder</code>",Sa,be,lo,Ca,vt,Rs="This will load the LoRA layers specified in <code>state_dict</code> into <code>unet</code>.",ka,F,co,Aa,wt,Ps=`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>.`,Ra,$t,Is="All kwargs are forwarded to <code>self.lora_state_dict</code>.",Pa,Mt,Hs=`See <a href="/docs/diffusers/pr_10312/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details on how the state dict is | |
| loaded.`,Ia,yt,Vs=`See <a href="/docs/diffusers/pr_10312/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>.`,Ha,Dt,Es=`See <a href="/docs/diffusers/pr_10312/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>.`,Va,Q,fo,Ea,Tt,Xs="Return state dict for lora weights and the network alphas.",Xa,ve,Ua,we,po,Fa,St,Us="Save the LoRA parameters corresponding to the UNet and text encoder.",Ir,_o,Hr,C,mo,Na,Ct,Fs=`Load LoRA layers into <a href="/docs/diffusers/pr_10312/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>.`,Wa,kt,Ns='Specific to <a href="/docs/diffusers/pr_10312/en/api/pipelines/stable_diffusion/stable_diffusion_3#diffusers.StableDiffusion3Pipeline">StableDiffusion3Pipeline</a>.',za,$e,uo,qa,At,Ws="This will load the LoRA layers specified in <code>state_dict</code> into <code>text_encoder</code>",Ba,Me,ho,ja,Rt,zs="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",Ja,q,go,Ga,Pt,qs=`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>.`,Za,It,Bs="All kwargs are forwarded to <code>self.lora_state_dict</code>.",Ya,Ht,js=`See <a href="/docs/diffusers/pr_10312/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details on how the state dict is | |
| loaded.`,Qa,Vt,Js=`See <code>~loaders.StableDiffusionLoraLoaderMixin.load_lora_into_transformer</code> for more details on how the state | |
| dict is loaded into <code>self.transformer</code>.`,Oa,O,xo,Ka,Et,Gs="Return state dict for lora weights and the network alphas.",en,ye,on,De,Lo,tn,Xt,Zs="Save the LoRA parameters corresponding to the UNet and text encoder.",Vr,bo,Er,T,vo,rn,Ut,Ys=`Load LoRA layers into <a href="/docs/diffusers/pr_10312/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>.`,an,Ft,Qs='Specific to <a href="/docs/diffusers/pr_10312/en/api/pipelines/stable_diffusion/stable_diffusion_3#diffusers.StableDiffusion3Pipeline">StableDiffusion3Pipeline</a>.',nn,Te,wo,sn,Nt,Os="This will load the LoRA layers specified in <code>state_dict</code> into <code>text_encoder</code>",dn,Se,$o,ln,Wt,Ks="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",cn,B,Mo,fn,zt,ei=`Load LoRA weights specified in <code>pretrained_model_name_or_path_or_dict</code> into <code>self.transformer</code> and | |
| <code>self.text_encoder</code>.`,pn,qt,oi="All kwargs are forwarded to <code>self.lora_state_dict</code>.",_n,Bt,ti=`See <a href="/docs/diffusers/pr_10312/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details on how the state dict is | |
| loaded.`,mn,jt,ri=`See <code>~loaders.StableDiffusionLoraLoaderMixin.load_lora_into_transformer</code> for more details on how the state | |
| dict is loaded into <code>self.transformer</code>.`,un,K,yo,hn,Jt,ai="Return state dict for lora weights and the network alphas.",gn,Ce,xn,ke,Do,Ln,Gt,ni="Save the LoRA parameters corresponding to the UNet and text encoder.",bn,ee,To,vn,Zt,si=`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>.`,wn,Ae,Xr,So,Ur,R,Co,$n,Yt,ii='Load LoRA layers into <a href="/docs/diffusers/pr_10312/en/api/models/cogvideox_transformer3d#diffusers.CogVideoXTransformer3DModel">CogVideoXTransformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_10312/en/api/pipelines/cogvideox#diffusers.CogVideoXPipeline">CogVideoXPipeline</a>.',Mn,Re,ko,yn,Qt,di="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",Dn,Pe,Ao,Tn,Ot,li=`Load LoRA weights specified in <code>pretrained_model_name_or_path_or_dict</code> into <code>self.transformer</code> and | |
| <code>self.text_encoder</code>. All kwargs are forwarded to <code>self.lora_state_dict</code>. See | |
| <a href="/docs/diffusers/pr_10312/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details on how the state dict is loaded. | |
| See <code>~loaders.StableDiffusionLoraLoaderMixin.load_lora_into_transformer</code> for more details on how the state | |
| dict is loaded into <code>self.transformer</code>.`,Sn,oe,Ro,Cn,Kt,ci="Return state dict for lora weights and the network alphas.",kn,Ie,An,He,Po,Rn,er,fi="Save the LoRA parameters corresponding to the UNet and text encoder.",Pn,te,Io,In,or,pi=`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>.`,Hn,Ve,Fr,Ho,Nr,P,Vo,Vn,tr,_i='Load LoRA layers into <a href="/docs/diffusers/pr_10312/en/api/models/mochi_transformer3d#diffusers.MochiTransformer3DModel">MochiTransformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_10312/en/api/pipelines/mochi#diffusers.MochiPipeline">MochiPipeline</a>.',En,Ee,Eo,Xn,rr,mi="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",Un,Xe,Xo,Fn,ar,ui=`Load LoRA weights specified in <code>pretrained_model_name_or_path_or_dict</code> into <code>self.transformer</code> and | |
| <code>self.text_encoder</code>. All kwargs are forwarded to <code>self.lora_state_dict</code>. See | |
| <a href="/docs/diffusers/pr_10312/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details on how the state dict is loaded. | |
| See <code>~loaders.StableDiffusionLoraLoaderMixin.load_lora_into_transformer</code> for more details on how the state | |
| dict is loaded into <code>self.transformer</code>.`,Nn,re,Uo,Wn,nr,hi="Return state dict for lora weights and the network alphas.",zn,Ue,qn,Fe,Fo,Bn,sr,gi="Save the LoRA parameters corresponding to the UNet and text encoder.",jn,ae,No,Jn,ir,xi=`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>.`,Gn,Ne,Wr,Wo,zr,ce,zo,Zn,We,qo,Yn,dr,Li="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",qr,Bo,Br,S,jo,Qn,lr,bi="Utility class for handling LoRAs.",On,cr,Jo,Kn,G,Go,es,fr,vi="Fuses the LoRA parameters into the original parameters of the corresponding blocks.",os,ze,ts,qe,rs,ne,Zo,as,pr,wi="Gets the list of the current active adapters.",ns,Be,ss,je,Yo,is,_r,$i="Gets the current list of all available adapters in the pipeline.",ds,Je,Qo,ls,mr,Mi=`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.`,cs,se,Oo,fs,ur,yi=`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>.`,ps,Ge,_s,ie,Ko,ms,hr,Di="Unloads the LoRA parameters.",us,Ze,jr,et,Jr,Tr,Gr;return y=new _e({props:{title:"LoRA",local:"lora",headingTag:"h1"}}),me=new Z({props:{$$slots:{default:[Ii]},$$scope:{ctx:D}}}),Oe=new _e({props:{title:"StableDiffusionLoraLoaderMixin",local:"diffusers.loaders.StableDiffusionLoraLoaderMixin",headingTag:"h2"}}),Ke=new $({props:{name:"class diffusers.loaders.StableDiffusionLoraLoaderMixin",anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L69"}}),eo=new $({props:{name:"load_lora_into_text_encoder",anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_text_encoder",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"}],parametersDescription:[{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_text_encoder.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| Speed up model loading by only loading the pretrained LoRA weights and not initializing the random | |
| weights.`,name:"low_cpu_mem_usage"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L314"}}),oo=new $({props:{name:"load_lora_into_unet",anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet",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"}],parametersDescription:[{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| Speed up model loading only loading the pretrained LoRA weights and not initializing the random | |
| weights.`,name:"low_cpu_mem_usage"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L264"}}),to=new $({props:{name:"load_lora_weights",anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"adapter_name",val:" = None"},{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>) — | |
| See <a href="/docs/diffusers/pr_10312/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>) — | |
| 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>) — | |
| 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.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_10312/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L79"}}),ro=new $({props:{name:"lora_state_dict",anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.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>) — | |
| Can be either:</p> | |
| <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_10312/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>Union[str, os.PathLike]</code>, <em>optional</em>) — | |
| 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>) — | |
| 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>) — | |
| A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}</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>) — | |
| Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model | |
| won’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>) — | |
| 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>"main"</code>) — | |
| 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>""</code>) — | |
| 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) — | |
| Name of the serialized state dict file.`,name:"weight_name"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L149"}}),ge=new Z({props:{warning:!0,$$slots:{default:[Hi]},$$scope:{ctx:D}}}),ao=new $({props:{name:"save_lora_weights",anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"unet_lora_layers",val:": typing.Dict[str, typing.Union[torch.nn.modules.module.Module, torch.Tensor]] = None"},{name:"text_encoder_lora_layers",val:": typing.Dict[str, torch.nn.modules.module.Module] = 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.StableDiffusionLoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) — | |
| Directory to save LoRA parameters to. Will be created if it doesn’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>) — | |
| 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>) — | |
| 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 🤗 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>) — | |
| 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>) — | |
| 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>) — | |
| Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L465"}}),no=new _e({props:{title:"StableDiffusionXLLoraLoaderMixin",local:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin",headingTag:"h2"}}),so=new $({props:{name:"class diffusers.loaders.StableDiffusionXLLoraLoaderMixin",anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L583"}}),io=new $({props:{name:"load_lora_into_text_encoder",anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_text_encoder",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"}],parametersDescription:[{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_text_encoder.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| Speed up model loading by only loading the pretrained LoRA weights and not initializing the random | |
| weights.`,name:"low_cpu_mem_usage"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L856"}}),lo=new $({props:{name:"load_lora_into_unet",anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_unet",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"}],parametersDescription:[{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_unet.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| Speed up model loading only loading the pretrained LoRA weights and not initializing the random | |
| weights.`,name:"low_cpu_mem_usage"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L805"}}),co=new $({props:{name:"load_lora_weights",anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_weights",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"adapter_name",val:": typing.Optional[str] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.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>) — | |
| See <a href="/docs/diffusers/pr_10312/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.StableDiffusionXLLoraLoaderMixin.load_lora_weights.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) — | |
| 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_weights.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) — | |
| 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_weights.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_10312/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L594"}}),fo=new $({props:{name:"lora_state_dict",anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.lora_state_dict",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.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>) — | |
| Can be either:</p> | |
| <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_10312/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>Union[str, os.PathLike]</code>, <em>optional</em>) — | |
| 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>) — | |
| 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>) — | |
| A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}</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>) — | |
| Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model | |
| won’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>) — | |
| 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>"main"</code>) — | |
| 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>""</code>) — | |
| 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) — | |
| Name of the serialized state dict file.`,name:"weight_name"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L689"}}),ve=new Z({props:{warning:!0,$$slots:{default:[Vi]},$$scope:{ctx:D}}}),po=new $({props:{name:"save_lora_weights",anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.save_lora_weights",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"unet_lora_layers",val:": typing.Dict[str, typing.Union[torch.nn.modules.module.Module, torch.Tensor]] = None"},{name:"text_encoder_lora_layers",val:": typing.Dict[str, typing.Union[torch.nn.modules.module.Module, torch.Tensor]] = None"},{name:"text_encoder_2_lora_layers",val:": typing.Dict[str, typing.Union[torch.nn.modules.module.Module, torch.Tensor]] = 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.StableDiffusionXLLoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) — | |
| Directory to save LoRA parameters to. Will be created if it doesn’t exist.`,name:"save_directory"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.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>) — | |
| State dict of the LoRA layers corresponding to the <code>unet</code>.`,name:"unet_lora_layers"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.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>) — | |
| 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 🤗 Transformers.`,name:"text_encoder_lora_layers"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.save_lora_weights.text_encoder_2_lora_layers",description:`<strong>text_encoder_2_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) — | |
| State dict of the LoRA layers corresponding to the <code>text_encoder_2</code>. Must explicitly pass the text | |
| encoder LoRA state dict because it comes from 🤗 Transformers.`,name:"text_encoder_2_lora_layers"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.save_lora_weights.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| 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.StableDiffusionXLLoraLoaderMixin.save_lora_weights.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) — | |
| 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.StableDiffusionXLLoraLoaderMixin.save_lora_weights.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L1008"}}),_o=new _e({props:{title:"SD3LoraLoaderMixin",local:"diffusers.loaders.SD3LoraLoaderMixin",headingTag:"h2"}}),mo=new $({props:{name:"class diffusers.loaders.SD3LoraLoaderMixin",anchor:"diffusers.loaders.SD3LoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L1134"}}),uo=new $({props:{name:"load_lora_into_text_encoder",anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_text_encoder",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"}],parametersDescription:[{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_text_encoder.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| Speed up model loading by only loading the pretrained LoRA weights and not initializing the random | |
| weights.`,name:"low_cpu_mem_usage"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L1365"}}),ho=new $({props:{name:"load_lora_into_transformer",anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_transformer",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"}],parametersDescription:[{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) — | |
| 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.SD3LoraLoaderMixin.load_lora_into_transformer.transformer",description:`<strong>transformer</strong> (<code>SD3Transformer2DModel</code>) — | |
| The Transformer model to load the LoRA layers into.`,name:"transformer"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_transformer.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) — | |
| 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_transformer.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) — | |
| Speed up model loading by only loading the pretrained LoRA weights and not initializing the random | |
| weights.`,name:"low_cpu_mem_usage"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L1329"}}),go=new $({props:{name:"load_lora_weights",anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_weights",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"adapter_name",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.SD3LoraLoaderMixin.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>) — | |
| See <a href="/docs/diffusers/pr_10312/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.SD3LoraLoaderMixin.load_lora_weights.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) — | |
| 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_weights.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) — | |
| 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_weights.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_10312/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L1244"}}),xo=new $({props:{name:"lora_state_dict",anchor:"diffusers.loaders.SD3LoraLoaderMixin.lora_state_dict",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.SD3LoraLoaderMixin.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>) — | |
| Can be either:</p> | |
| <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_10312/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.SD3LoraLoaderMixin.lora_state_dict.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) — | |
| 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.SD3LoraLoaderMixin.lora_state_dict.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| 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.SD3LoraLoaderMixin.lora_state_dict.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) — | |
| A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model | |
| won’t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) — | |
| 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.SD3LoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>"main"</code>) — | |
| 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.SD3LoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>""</code>) — | |
| The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L1147"}}),ye=new Z({props:{warning:!0,$$slots:{default:[Ei]},$$scope:{ctx:D}}}),Lo=new $({props:{name:"save_lora_weights",anchor:"diffusers.loaders.SD3LoraLoaderMixin.save_lora_weights",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"transformer_lora_layers",val:": typing.Dict[str, torch.nn.modules.module.Module] = None"},{name:"text_encoder_lora_layers",val:": typing.Dict[str, typing.Union[torch.nn.modules.module.Module, torch.Tensor]] = None"},{name:"text_encoder_2_lora_layers",val:": typing.Dict[str, typing.Union[torch.nn.modules.module.Module, torch.Tensor]] = 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.SD3LoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) — | |
| Directory to save LoRA parameters to. Will be created if it doesn’t exist.`,name:"save_directory"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.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>) — | |
| State dict of the LoRA layers corresponding to the <code>transformer</code>.`,name:"transformer_lora_layers"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.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>) — | |
| 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 🤗 Transformers.`,name:"text_encoder_lora_layers"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.save_lora_weights.text_encoder_2_lora_layers",description:`<strong>text_encoder_2_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) — | |
| State dict of the LoRA layers corresponding to the <code>text_encoder_2</code>. Must explicitly pass the text | |
| encoder LoRA state dict because it comes from 🤗 Transformers.`,name:"text_encoder_2_lora_layers"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.save_lora_weights.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| 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.SD3LoraLoaderMixin.save_lora_weights.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) — | |
| 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.SD3LoraLoaderMixin.save_lora_weights.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L1517"}}),bo=new _e({props:{title:"FluxLoraLoaderMixin",local:"diffusers.loaders.FluxLoraLoaderMixin",headingTag:"h2"}}),vo=new $({props:{name:"class diffusers.loaders.FluxLoraLoaderMixin",anchor:"diffusers.loaders.FluxLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L1644"}}),wo=new $({props:{name:"load_lora_into_text_encoder",anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_text_encoder",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"}],parametersDescription:[{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_text_encoder.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| Speed up model loading by only loading the pretrained LoRA weights and not initializing the random | |
| weights.`,name:"low_cpu_mem_usage"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L1997"}}),$o=new $({props:{name:"load_lora_into_transformer",anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_transformer",parameters:[{name:"state_dict",val:""},{name:"network_alphas",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"}],parametersDescription:[{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) — | |
| 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.FluxLoraLoaderMixin.load_lora_into_transformer.network_alphas",description:`<strong>network_alphas</strong> (<code>Dict[str, float]</code>) — | |
| 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_transformer.transformer",description:`<strong>transformer</strong> (<code>FluxTransformer2DModel</code>) — | |
| The Transformer model to load the LoRA layers into.`,name:"transformer"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_transformer.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) — | |
| 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_transformer.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) — | |
| Speed up model loading by only loading the pretrained LoRA weights and not initializing the random | |
| weights.`,name:"low_cpu_mem_usage"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L1900"}}),Mo=new $({props:{name:"load_lora_weights",anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_weights",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"adapter_name",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.FluxLoraLoaderMixin.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>) — | |
| See <a href="/docs/diffusers/pr_10312/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.FluxLoraLoaderMixin.load_lora_weights.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_10312/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_weights.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) — | |
| 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_weights.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) — | |
| \`Speed up model loading by only loading the pretrained LoRA weights and not initializing the random | |
| weights.`,name:"low_cpu_mem_usage"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L1791"}}),yo=new $({props:{name:"lora_state_dict",anchor:"diffusers.loaders.FluxLoraLoaderMixin.lora_state_dict",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"return_alphas",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.FluxLoraLoaderMixin.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>) — | |
| Can be either:</p> | |
| <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_10312/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.FluxLoraLoaderMixin.lora_state_dict.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) — | |
| 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.FluxLoraLoaderMixin.lora_state_dict.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| 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.FluxLoraLoaderMixin.lora_state_dict.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) — | |
| A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model | |
| won’t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) — | |
| 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.FluxLoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>"main"</code>) — | |
| 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.FluxLoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>""</code>) — | |
| The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L1657"}}),Ce=new Z({props:{warning:!0,$$slots:{default:[Xi]},$$scope:{ctx:D}}}),Do=new $({props:{name:"save_lora_weights",anchor:"diffusers.loaders.FluxLoraLoaderMixin.save_lora_weights",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"transformer_lora_layers",val:": typing.Dict[str, typing.Union[torch.nn.modules.module.Module, torch.Tensor]] = None"},{name:"text_encoder_lora_layers",val:": typing.Dict[str, torch.nn.modules.module.Module] = 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.FluxLoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) — | |
| Directory to save LoRA parameters to. Will be created if it doesn’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>) — | |
| 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>) — | |
| 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 🤗 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>) — | |
| 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>) — | |
| 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>) — | |
| Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L2149"}}),To=new $({props:{name:"unfuse_lora",anchor:"diffusers.loaders.FluxLoraLoaderMixin.unfuse_lora",parameters:[{name:"components",val:": typing.List[str] = ['transformer', 'text_encoder']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.FluxLoraLoaderMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>List[str]</code>) — List of LoRA-injectable components to unfuse LoRA from.",name:"components"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L2260"}}),Ae=new Z({props:{warning:!0,$$slots:{default:[Ui]},$$scope:{ctx:D}}}),So=new _e({props:{title:"CogVideoXLoraLoaderMixin",local:"diffusers.loaders.CogVideoXLoraLoaderMixin",headingTag:"h2"}}),Co=new $({props:{name:"class diffusers.loaders.CogVideoXLoraLoaderMixin",anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L2695"}}),ko=new $({props:{name:"load_lora_into_transformer",anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.load_lora_into_transformer",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"}],parametersDescription:[{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) — | |
| 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.CogVideoXLoraLoaderMixin.load_lora_into_transformer.transformer",description:`<strong>transformer</strong> (<code>CogVideoXTransformer3DModel</code>) — | |
| The Transformer model to load the LoRA layers into.`,name:"transformer"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.load_lora_into_transformer.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) — | |
| 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.CogVideoXLoraLoaderMixin.load_lora_into_transformer.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) — | |
| Speed up model loading by only loading the pretrained LoRA weights and not initializing the random | |
| weights.`,name:"low_cpu_mem_usage"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L2851"}}),Ao=new $({props:{name:"load_lora_weights",anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.load_lora_weights",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"adapter_name",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.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>) — | |
| See <a href="/docs/diffusers/pr_10312/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.CogVideoXLoraLoaderMixin.load_lora_weights.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) — | |
| 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.CogVideoXLoraLoaderMixin.load_lora_weights.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) — | |
| 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.CogVideoXLoraLoaderMixin.load_lora_weights.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_10312/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L2801"}}),Ro=new $({props:{name:"lora_state_dict",anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.lora_state_dict",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.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>) — | |
| Can be either:</p> | |
| <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_10312/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.CogVideoXLoraLoaderMixin.lora_state_dict.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) — | |
| 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.CogVideoXLoraLoaderMixin.lora_state_dict.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| 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.CogVideoXLoraLoaderMixin.lora_state_dict.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) — | |
| A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model | |
| won’t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) — | |
| 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.CogVideoXLoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>"main"</code>) — | |
| 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.CogVideoXLoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>""</code>) — | |
| The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L2703"}}),Ie=new Z({props:{warning:!0,$$slots:{default:[Fi]},$$scope:{ctx:D}}}),Po=new $({props:{name:"save_lora_weights",anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.save_lora_weights",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"transformer_lora_layers",val:": typing.Dict[str, typing.Union[torch.nn.modules.module.Module, torch.Tensor]] = 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.CogVideoXLoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) — | |
| Directory to save LoRA parameters to. Will be created if it doesn’t exist.`,name:"save_directory"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.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>) — | |
| State dict of the LoRA layers corresponding to the <code>transformer</code>.`,name:"transformer_lora_layers"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.save_lora_weights.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| 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.CogVideoXLoraLoaderMixin.save_lora_weights.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) — | |
| 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.CogVideoXLoraLoaderMixin.save_lora_weights.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L2888"}}),Io=new $({props:{name:"unfuse_lora",anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.unfuse_lora",parameters:[{name:"components",val:": typing.List[str] = ['transformer', 'text_encoder']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>List[str]</code>) — List of LoRA-injectable components to unfuse LoRA from.",name:"components"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.unfuse_lora.unfuse_transformer",description:"<strong>unfuse_transformer</strong> (<code>bool</code>, defaults to <code>True</code>) — Whether to unfuse the UNet LoRA parameters.",name:"unfuse_transformer"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.unfuse_lora.unfuse_text_encoder",description:`<strong>unfuse_text_encoder</strong> (<code>bool</code>, defaults to <code>True</code>) — | |
| Whether to unfuse the text encoder LoRA parameters. If the text encoder wasn’t monkey-patched with the | |
| LoRA parameters then it won’t have any effect.`,name:"unfuse_text_encoder"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L2981"}}),Ve=new Z({props:{warning:!0,$$slots:{default:[Ni]},$$scope:{ctx:D}}}),Ho=new _e({props:{title:"Mochi1LoraLoaderMixin",local:"diffusers.loaders.Mochi1LoraLoaderMixin",headingTag:"h2"}}),Vo=new $({props:{name:"class diffusers.loaders.Mochi1LoraLoaderMixin",anchor:"diffusers.loaders.Mochi1LoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L3002"}}),Eo=new $({props:{name:"load_lora_into_transformer",anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.load_lora_into_transformer",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"}],parametersDescription:[{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) — | |
| 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.Mochi1LoraLoaderMixin.load_lora_into_transformer.transformer",description:`<strong>transformer</strong> (<code>MochiTransformer3DModel</code>) — | |
| The Transformer model to load the LoRA layers into.`,name:"transformer"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.load_lora_into_transformer.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) — | |
| 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.Mochi1LoraLoaderMixin.load_lora_into_transformer.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) — | |
| Speed up model loading by only loading the pretrained LoRA weights and not initializing the random | |
| weights.`,name:"low_cpu_mem_usage"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L3159"}}),Xo=new $({props:{name:"load_lora_weights",anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.load_lora_weights",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"adapter_name",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.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>) — | |
| See <a href="/docs/diffusers/pr_10312/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.Mochi1LoraLoaderMixin.load_lora_weights.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) — | |
| 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.Mochi1LoraLoaderMixin.load_lora_weights.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) — | |
| 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.Mochi1LoraLoaderMixin.load_lora_weights.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_10312/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L3109"}}),Uo=new $({props:{name:"lora_state_dict",anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.lora_state_dict",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.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>) — | |
| Can be either:</p> | |
| <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_10312/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.Mochi1LoraLoaderMixin.lora_state_dict.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) — | |
| 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.Mochi1LoraLoaderMixin.lora_state_dict.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| 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.Mochi1LoraLoaderMixin.lora_state_dict.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) — | |
| A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model | |
| won’t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) — | |
| 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.Mochi1LoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>"main"</code>) — | |
| 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.Mochi1LoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>""</code>) — | |
| The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L3010"}}),Ue=new Z({props:{warning:!0,$$slots:{default:[Wi]},$$scope:{ctx:D}}}),Fo=new $({props:{name:"save_lora_weights",anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.save_lora_weights",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"transformer_lora_layers",val:": typing.Dict[str, typing.Union[torch.nn.modules.module.Module, torch.Tensor]] = 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.Mochi1LoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) — | |
| Directory to save LoRA parameters to. Will be created if it doesn’t exist.`,name:"save_directory"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.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>) — | |
| State dict of the LoRA layers corresponding to the <code>transformer</code>.`,name:"transformer_lora_layers"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.save_lora_weights.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| 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.Mochi1LoraLoaderMixin.save_lora_weights.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) — | |
| 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.Mochi1LoraLoaderMixin.save_lora_weights.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L3196"}}),No=new $({props:{name:"unfuse_lora",anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.unfuse_lora",parameters:[{name:"components",val:": typing.List[str] = ['transformer', 'text_encoder']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>List[str]</code>) — List of LoRA-injectable components to unfuse LoRA from.",name:"components"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.unfuse_lora.unfuse_transformer",description:"<strong>unfuse_transformer</strong> (<code>bool</code>, defaults to <code>True</code>) — Whether to unfuse the UNet LoRA parameters.",name:"unfuse_transformer"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.unfuse_lora.unfuse_text_encoder",description:`<strong>unfuse_text_encoder</strong> (<code>bool</code>, defaults to <code>True</code>) — | |
| Whether to unfuse the text encoder LoRA parameters. If the text encoder wasn’t monkey-patched with the | |
| LoRA parameters then it won’t have any effect.`,name:"unfuse_text_encoder"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L3289"}}),Ne=new Z({props:{warning:!0,$$slots:{default:[zi]},$$scope:{ctx:D}}}),Wo=new _e({props:{title:"AmusedLoraLoaderMixin",local:"diffusers.loaders.AmusedLoraLoaderMixin",headingTag:"h2"}}),zo=new $({props:{name:"class diffusers.loaders.AmusedLoraLoaderMixin",anchor:"diffusers.loaders.AmusedLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L2439"}}),qo=new $({props:{name:"load_lora_into_transformer",anchor:"diffusers.loaders.AmusedLoraLoaderMixin.load_lora_into_transformer",parameters:[{name:"state_dict",val:""},{name:"network_alphas",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"}],parametersDescription:[{anchor:"diffusers.loaders.AmusedLoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) — | |
| 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.AmusedLoraLoaderMixin.load_lora_into_transformer.network_alphas",description:`<strong>network_alphas</strong> (<code>Dict[str, float]</code>) — | |
| 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.AmusedLoraLoaderMixin.load_lora_into_transformer.transformer",description:`<strong>transformer</strong> (<code>UVit2DModel</code>) — | |
| The Transformer model to load the LoRA layers into.`,name:"transformer"},{anchor:"diffusers.loaders.AmusedLoraLoaderMixin.load_lora_into_transformer.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) — | |
| 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.AmusedLoraLoaderMixin.load_lora_into_transformer.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) — | |
| Speed up model loading by only loading the pretrained LoRA weights and not initializing the random | |
| weights.`,name:"low_cpu_mem_usage"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_pipeline.py#L2444"}}),Bo=new _e({props:{title:"LoraBaseMixin",local:"diffusers.loaders.lora_base.LoraBaseMixin",headingTag:"h2"}}),jo=new $({props:{name:"class diffusers.loaders.lora_base.LoraBaseMixin",anchor:"diffusers.loaders.lora_base.LoraBaseMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_base.py#L300"}}),Jo=new $({props:{name:"delete_adapters",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.delete_adapters",parameters:[{name:"adapter_names",val:": typing.Union[typing.List[str], str]"}],parametersDescription:[{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.delete_adapters.Deletes",description:`<strong>Deletes</strong> the LoRA layers of <code>adapter_name</code> for the unet and text-encoder(s). — | |
| adapter_names (<code>Union[List[str], str]</code>): | |
| The names of the adapter to delete. Can be a single string or a list of strings`,name:"Deletes"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_base.py#L615"}}),Go=new $({props:{name:"fuse_lora",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.fuse_lora",parameters:[{name:"components",val:": typing.List[str] = []"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": typing.Optional[typing.List[str]] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.fuse_lora.components",description:"<strong>components</strong> — (<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) — | |
| 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>) — | |
| 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>) — | |
| Adapter names to be used for fusing. If nothing is passed, all active adapters will be fused.`,name:"adapter_names"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_base.py#L387"}}),ze=new Z({props:{warning:!0,$$slots:{default:[qi]},$$scope:{ctx:D}}}),qe=new hs({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.fuse_lora.example",$$slots:{default:[Bi]},$$scope:{ctx:D}}}),Zo=new $({props:{name:"get_active_adapters",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.get_active_adapters",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_base.py#L637"}}),Be=new hs({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.get_active_adapters.example",$$slots:{default:[ji]},$$scope:{ctx:D}}}),Yo=new $({props:{name:"get_list_adapters",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.get_list_adapters",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_base.py#L670"}}),Qo=new $({props:{name:"set_lora_device",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_lora_device",parameters:[{name:"adapter_names",val:": typing.List[str]"},{name:"device",val:": typing.Union[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>) — | |
| 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>Union[torch.device, str, int]</code>) — | |
| Device to send the adapters to. Can be either a torch device, a str or an integer.`,name:"device"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_base.py#L692"}}),Oo=new $({props:{name:"unfuse_lora",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.unfuse_lora",parameters:[{name:"components",val:": typing.List[str] = []"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>List[str]</code>) — 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>) — 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>) — | |
| Whether to unfuse the text encoder LoRA parameters. If the text encoder wasn’t monkey-patched with the | |
| LoRA parameters then it won’t have any effect.`,name:"unfuse_text_encoder"}],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_base.py#L468"}}),Ge=new Z({props:{warning:!0,$$slots:{default:[Ji]},$$scope:{ctx:D}}}),Ko=new $({props:{name:"unload_lora_weights",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.unload_lora_weights",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_10312/src/diffusers/loaders/lora_base.py#L364"}}),Ze=new hs({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.unload_lora_weights.example",$$slots:{default:[Gi]},$$scope:{ctx:D}}}),et=new Pi({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/loaders/lora.md"}}),{c(){s=a("meta"),b=t(),c=a("p"),l=t(),_(y.$$.fragment),d=t(),M=a("p"),M.innerHTML=xs,Sr=t(),Qe=a("ul"),Qe.innerHTML=Ls,Cr=t(),_(me.$$.fragment),kr=t(),_(Oe.$$.fragment),Ar=t(),k=a("div"),_(Ke.$$.fragment),la=t(),lt=a("p"),lt.innerHTML=bs,ca=t(),ue=a("div"),_(eo.$$.fragment),fa=t(),ct=a("p"),ct.innerHTML=vs,pa=t(),he=a("div"),_(oo.$$.fragment),_a=t(),ft=a("p"),ft.innerHTML=ws,ma=t(),U=a("div"),_(to.$$.fragment),ua=t(),pt=a("p"),pt.innerHTML=$s,ha=t(),_t=a("p"),_t.innerHTML=Ms,ga=t(),mt=a("p"),mt.innerHTML=ys,xa=t(),ut=a("p"),ut.innerHTML=Ds,La=t(),ht=a("p"),ht.innerHTML=Ts,ba=t(),Y=a("div"),_(ro.$$.fragment),va=t(),gt=a("p"),gt.textContent=Ss,wa=t(),_(ge.$$.fragment),$a=t(),xe=a("div"),_(ao.$$.fragment),Ma=t(),xt=a("p"),xt.textContent=Cs,Rr=t(),_(no.$$.fragment),Pr=t(),A=a("div"),_(so.$$.fragment),ya=t(),Lt=a("p"),Lt.innerHTML=ks,Da=t(),Le=a("div"),_(io.$$.fragment),Ta=t(),bt=a("p"),bt.innerHTML=As,Sa=t(),be=a("div"),_(lo.$$.fragment),Ca=t(),vt=a("p"),vt.innerHTML=Rs,ka=t(),F=a("div"),_(co.$$.fragment),Aa=t(),wt=a("p"),wt.innerHTML=Ps,Ra=t(),$t=a("p"),$t.innerHTML=Is,Pa=t(),Mt=a("p"),Mt.innerHTML=Hs,Ia=t(),yt=a("p"),yt.innerHTML=Vs,Ha=t(),Dt=a("p"),Dt.innerHTML=Es,Va=t(),Q=a("div"),_(fo.$$.fragment),Ea=t(),Tt=a("p"),Tt.textContent=Xs,Xa=t(),_(ve.$$.fragment),Ua=t(),we=a("div"),_(po.$$.fragment),Fa=t(),St=a("p"),St.textContent=Us,Ir=t(),_(_o.$$.fragment),Hr=t(),C=a("div"),_(mo.$$.fragment),Na=t(),Ct=a("p"),Ct.innerHTML=Fs,Wa=t(),kt=a("p"),kt.innerHTML=Ns,za=t(),$e=a("div"),_(uo.$$.fragment),qa=t(),At=a("p"),At.innerHTML=Ws,Ba=t(),Me=a("div"),_(ho.$$.fragment),ja=t(),Rt=a("p"),Rt.innerHTML=zs,Ja=t(),q=a("div"),_(go.$$.fragment),Ga=t(),Pt=a("p"),Pt.innerHTML=qs,Za=t(),It=a("p"),It.innerHTML=Bs,Ya=t(),Ht=a("p"),Ht.innerHTML=js,Qa=t(),Vt=a("p"),Vt.innerHTML=Js,Oa=t(),O=a("div"),_(xo.$$.fragment),Ka=t(),Et=a("p"),Et.textContent=Gs,en=t(),_(ye.$$.fragment),on=t(),De=a("div"),_(Lo.$$.fragment),tn=t(),Xt=a("p"),Xt.textContent=Zs,Vr=t(),_(bo.$$.fragment),Er=t(),T=a("div"),_(vo.$$.fragment),rn=t(),Ut=a("p"),Ut.innerHTML=Ys,an=t(),Ft=a("p"),Ft.innerHTML=Qs,nn=t(),Te=a("div"),_(wo.$$.fragment),sn=t(),Nt=a("p"),Nt.innerHTML=Os,dn=t(),Se=a("div"),_($o.$$.fragment),ln=t(),Wt=a("p"),Wt.innerHTML=Ks,cn=t(),B=a("div"),_(Mo.$$.fragment),fn=t(),zt=a("p"),zt.innerHTML=ei,pn=t(),qt=a("p"),qt.innerHTML=oi,_n=t(),Bt=a("p"),Bt.innerHTML=ti,mn=t(),jt=a("p"),jt.innerHTML=ri,un=t(),K=a("div"),_(yo.$$.fragment),hn=t(),Jt=a("p"),Jt.textContent=ai,gn=t(),_(Ce.$$.fragment),xn=t(),ke=a("div"),_(Do.$$.fragment),Ln=t(),Gt=a("p"),Gt.textContent=ni,bn=t(),ee=a("div"),_(To.$$.fragment),vn=t(),Zt=a("p"),Zt.innerHTML=si,wn=t(),_(Ae.$$.fragment),Xr=t(),_(So.$$.fragment),Ur=t(),R=a("div"),_(Co.$$.fragment),$n=t(),Yt=a("p"),Yt.innerHTML=ii,Mn=t(),Re=a("div"),_(ko.$$.fragment),yn=t(),Qt=a("p"),Qt.innerHTML=di,Dn=t(),Pe=a("div"),_(Ao.$$.fragment),Tn=t(),Ot=a("p"),Ot.innerHTML=li,Sn=t(),oe=a("div"),_(Ro.$$.fragment),Cn=t(),Kt=a("p"),Kt.textContent=ci,kn=t(),_(Ie.$$.fragment),An=t(),He=a("div"),_(Po.$$.fragment),Rn=t(),er=a("p"),er.textContent=fi,Pn=t(),te=a("div"),_(Io.$$.fragment),In=t(),or=a("p"),or.innerHTML=pi,Hn=t(),_(Ve.$$.fragment),Fr=t(),_(Ho.$$.fragment),Nr=t(),P=a("div"),_(Vo.$$.fragment),Vn=t(),tr=a("p"),tr.innerHTML=_i,En=t(),Ee=a("div"),_(Eo.$$.fragment),Xn=t(),rr=a("p"),rr.innerHTML=mi,Un=t(),Xe=a("div"),_(Xo.$$.fragment),Fn=t(),ar=a("p"),ar.innerHTML=ui,Nn=t(),re=a("div"),_(Uo.$$.fragment),Wn=t(),nr=a("p"),nr.textContent=hi,zn=t(),_(Ue.$$.fragment),qn=t(),Fe=a("div"),_(Fo.$$.fragment),Bn=t(),sr=a("p"),sr.textContent=gi,jn=t(),ae=a("div"),_(No.$$.fragment),Jn=t(),ir=a("p"),ir.innerHTML=xi,Gn=t(),_(Ne.$$.fragment),Wr=t(),_(Wo.$$.fragment),zr=t(),ce=a("div"),_(zo.$$.fragment),Zn=t(),We=a("div"),_(qo.$$.fragment),Yn=t(),dr=a("p"),dr.innerHTML=Li,qr=t(),_(Bo.$$.fragment),Br=t(),S=a("div"),_(jo.$$.fragment),Qn=t(),lr=a("p"),lr.textContent=bi,On=t(),cr=a("div"),_(Jo.$$.fragment),Kn=t(),G=a("div"),_(Go.$$.fragment),es=t(),fr=a("p"),fr.textContent=vi,os=t(),_(ze.$$.fragment),ts=t(),_(qe.$$.fragment),rs=t(),ne=a("div"),_(Zo.$$.fragment),as=t(),pr=a("p"),pr.textContent=wi,ns=t(),_(Be.$$.fragment),ss=t(),je=a("div"),_(Yo.$$.fragment),is=t(),_r=a("p"),_r.textContent=$i,ds=t(),Je=a("div"),_(Qo.$$.fragment),ls=t(),mr=a("p"),mr.innerHTML=Mi,cs=t(),se=a("div"),_(Oo.$$.fragment),fs=t(),ur=a("p"),ur.innerHTML=yi,ps=t(),_(Ge.$$.fragment),_s=t(),ie=a("div"),_(Ko.$$.fragment),ms=t(),hr=a("p"),hr.textContent=Di,us=t(),_(Ze.$$.fragment),jr=t(),_(et.$$.fragment),Jr=t(),Tr=a("p"),this.h()},l(e){const p=Ri("svelte-u9bgzb",document.head);s=n(p,"META",{name:!0,content:!0}),p.forEach(i),b=r(e),c=n(e,"P",{}),v(c).forEach(i),l=r(e),m(y.$$.fragment,e),d=r(e),M=n(e,"P",{"data-svelte-h":!0}),f(M)!=="svelte-ve4klt"&&(M.innerHTML=xs),Sr=r(e),Qe=n(e,"UL",{"data-svelte-h":!0}),f(Qe)!=="svelte-1j4tyhu"&&(Qe.innerHTML=Ls),Cr=r(e),m(me.$$.fragment,e),kr=r(e),m(Oe.$$.fragment,e),Ar=r(e),k=n(e,"DIV",{class:!0});var E=v(k);m(Ke.$$.fragment,E),la=r(E),lt=n(E,"P",{"data-svelte-h":!0}),f(lt)!=="svelte-1alujxe"&&(lt.innerHTML=bs),ca=r(E),ue=n(E,"DIV",{class:!0});var ot=v(ue);m(eo.$$.fragment,ot),fa=r(ot),ct=n(ot,"P",{"data-svelte-h":!0}),f(ct)!=="svelte-1062ci4"&&(ct.innerHTML=vs),ot.forEach(i),pa=r(E),he=n(E,"DIV",{class:!0});var tt=v(he);m(oo.$$.fragment,tt),_a=r(tt),ft=n(tt,"P",{"data-svelte-h":!0}),f(ft)!=="svelte-u3q4so"&&(ft.innerHTML=ws),tt.forEach(i),ma=r(E),U=n(E,"DIV",{class:!0});var N=v(U);m(to.$$.fragment,N),ua=r(N),pt=n(N,"P",{"data-svelte-h":!0}),f(pt)!=="svelte-vs7s0z"&&(pt.innerHTML=$s),ha=r(N),_t=n(N,"P",{"data-svelte-h":!0}),f(_t)!=="svelte-15b960v"&&(_t.innerHTML=Ms),ga=r(N),mt=n(N,"P",{"data-svelte-h":!0}),f(mt)!=="svelte-ec6t2f"&&(mt.innerHTML=ys),xa=r(N),ut=n(N,"P",{"data-svelte-h":!0}),f(ut)!=="svelte-9e70ps"&&(ut.innerHTML=Ds),La=r(N),ht=n(N,"P",{"data-svelte-h":!0}),f(ht)!=="svelte-etes0e"&&(ht.innerHTML=Ts),N.forEach(i),ba=r(E),Y=n(E,"DIV",{class:!0});var fe=v(Y);m(ro.$$.fragment,fe),va=r(fe),gt=n(fe,"P",{"data-svelte-h":!0}),f(gt)!=="svelte-flusvq"&&(gt.textContent=Ss),wa=r(fe),m(ge.$$.fragment,fe),fe.forEach(i),$a=r(E),xe=n(E,"DIV",{class:!0});var rt=v(xe);m(ao.$$.fragment,rt),Ma=r(rt),xt=n(rt,"P",{"data-svelte-h":!0}),f(xt)!=="svelte-1ufq5ot"&&(xt.textContent=Cs),rt.forEach(i),E.forEach(i),Rr=r(e),m(no.$$.fragment,e),Pr=r(e),A=n(e,"DIV",{class:!0});var X=v(A);m(so.$$.fragment,X),ya=r(X),Lt=n(X,"P",{"data-svelte-h":!0}),f(Lt)!=="svelte-1blejnn"&&(Lt.innerHTML=ks),Da=r(X),Le=n(X,"DIV",{class:!0});var at=v(Le);m(io.$$.fragment,at),Ta=r(at),bt=n(at,"P",{"data-svelte-h":!0}),f(bt)!=="svelte-1062ci4"&&(bt.innerHTML=As),at.forEach(i),Sa=r(X),be=n(X,"DIV",{class:!0});var nt=v(be);m(lo.$$.fragment,nt),Ca=r(nt),vt=n(nt,"P",{"data-svelte-h":!0}),f(vt)!=="svelte-u3q4so"&&(vt.innerHTML=Rs),nt.forEach(i),ka=r(X),F=n(X,"DIV",{class:!0});var W=v(F);m(co.$$.fragment,W),Aa=r(W),wt=n(W,"P",{"data-svelte-h":!0}),f(wt)!=="svelte-vs7s0z"&&(wt.innerHTML=Ps),Ra=r(W),$t=n(W,"P",{"data-svelte-h":!0}),f($t)!=="svelte-15b960v"&&($t.innerHTML=Is),Pa=r(W),Mt=n(W,"P",{"data-svelte-h":!0}),f(Mt)!=="svelte-ec6t2f"&&(Mt.innerHTML=Hs),Ia=r(W),yt=n(W,"P",{"data-svelte-h":!0}),f(yt)!=="svelte-9e70ps"&&(yt.innerHTML=Vs),Ha=r(W),Dt=n(W,"P",{"data-svelte-h":!0}),f(Dt)!=="svelte-etes0e"&&(Dt.innerHTML=Es),W.forEach(i),Va=r(X),Q=n(X,"DIV",{class:!0});var pe=v(Q);m(fo.$$.fragment,pe),Ea=r(pe),Tt=n(pe,"P",{"data-svelte-h":!0}),f(Tt)!=="svelte-flusvq"&&(Tt.textContent=Xs),Xa=r(pe),m(ve.$$.fragment,pe),pe.forEach(i),Ua=r(X),we=n(X,"DIV",{class:!0});var st=v(we);m(po.$$.fragment,st),Fa=r(st),St=n(st,"P",{"data-svelte-h":!0}),f(St)!=="svelte-1ufq5ot"&&(St.textContent=Us),st.forEach(i),X.forEach(i),Ir=r(e),m(_o.$$.fragment,e),Hr=r(e),C=n(e,"DIV",{class:!0});var I=v(C);m(mo.$$.fragment,I),Na=r(I),Ct=n(I,"P",{"data-svelte-h":!0}),f(Ct)!=="svelte-12e0fdi"&&(Ct.innerHTML=Fs),Wa=r(I),kt=n(I,"P",{"data-svelte-h":!0}),f(kt)!=="svelte-1oijbg4"&&(kt.innerHTML=Ns),za=r(I),$e=n(I,"DIV",{class:!0});var it=v($e);m(uo.$$.fragment,it),qa=r(it),At=n(it,"P",{"data-svelte-h":!0}),f(At)!=="svelte-1062ci4"&&(At.innerHTML=Ws),it.forEach(i),Ba=r(I),Me=n(I,"DIV",{class:!0});var dt=v(Me);m(ho.$$.fragment,dt),ja=r(dt),Rt=n(dt,"P",{"data-svelte-h":!0}),f(Rt)!=="svelte-1lgbsz7"&&(Rt.innerHTML=zs),dt.forEach(i),Ja=r(I),q=n(I,"DIV",{class:!0});var de=v(q);m(go.$$.fragment,de),Ga=r(de),Pt=n(de,"P",{"data-svelte-h":!0}),f(Pt)!=="svelte-vs7s0z"&&(Pt.innerHTML=qs),Za=r(de),It=n(de,"P",{"data-svelte-h":!0}),f(It)!=="svelte-15b960v"&&(It.innerHTML=Bs),Ya=r(de),Ht=n(de,"P",{"data-svelte-h":!0}),f(Ht)!=="svelte-ec6t2f"&&(Ht.innerHTML=js),Qa=r(de),Vt=n(de,"P",{"data-svelte-h":!0}),f(Vt)!=="svelte-1ukghd4"&&(Vt.innerHTML=Js),de.forEach(i),Oa=r(I),O=n(I,"DIV",{class:!0});var gr=v(O);m(xo.$$.fragment,gr),Ka=r(gr),Et=n(gr,"P",{"data-svelte-h":!0}),f(Et)!=="svelte-flusvq"&&(Et.textContent=Gs),en=r(gr),m(ye.$$.fragment,gr),gr.forEach(i),on=r(I),De=n(I,"DIV",{class:!0});var Zr=v(De);m(Lo.$$.fragment,Zr),tn=r(Zr),Xt=n(Zr,"P",{"data-svelte-h":!0}),f(Xt)!=="svelte-1ufq5ot"&&(Xt.textContent=Zs),Zr.forEach(i),I.forEach(i),Vr=r(e),m(bo.$$.fragment,e),Er=r(e),T=n(e,"DIV",{class:!0});var H=v(T);m(vo.$$.fragment,H),rn=r(H),Ut=n(H,"P",{"data-svelte-h":!0}),f(Ut)!=="svelte-1xg9vfv"&&(Ut.innerHTML=Ys),an=r(H),Ft=n(H,"P",{"data-svelte-h":!0}),f(Ft)!=="svelte-1oijbg4"&&(Ft.innerHTML=Qs),nn=r(H),Te=n(H,"DIV",{class:!0});var Yr=v(Te);m(wo.$$.fragment,Yr),sn=r(Yr),Nt=n(Yr,"P",{"data-svelte-h":!0}),f(Nt)!=="svelte-1062ci4"&&(Nt.innerHTML=Os),Yr.forEach(i),dn=r(H),Se=n(H,"DIV",{class:!0});var Qr=v(Se);m($o.$$.fragment,Qr),ln=r(Qr),Wt=n(Qr,"P",{"data-svelte-h":!0}),f(Wt)!=="svelte-1lgbsz7"&&(Wt.innerHTML=Ks),Qr.forEach(i),cn=r(H),B=n(H,"DIV",{class:!0});var le=v(B);m(Mo.$$.fragment,le),fn=r(le),zt=n(le,"P",{"data-svelte-h":!0}),f(zt)!=="svelte-178gcly"&&(zt.innerHTML=ei),pn=r(le),qt=n(le,"P",{"data-svelte-h":!0}),f(qt)!=="svelte-15b960v"&&(qt.innerHTML=oi),_n=r(le),Bt=n(le,"P",{"data-svelte-h":!0}),f(Bt)!=="svelte-ec6t2f"&&(Bt.innerHTML=ti),mn=r(le),jt=n(le,"P",{"data-svelte-h":!0}),f(jt)!=="svelte-1ukghd4"&&(jt.innerHTML=ri),le.forEach(i),un=r(H),K=n(H,"DIV",{class:!0});var xr=v(K);m(yo.$$.fragment,xr),hn=r(xr),Jt=n(xr,"P",{"data-svelte-h":!0}),f(Jt)!=="svelte-flusvq"&&(Jt.textContent=ai),gn=r(xr),m(Ce.$$.fragment,xr),xr.forEach(i),xn=r(H),ke=n(H,"DIV",{class:!0});var Or=v(ke);m(Do.$$.fragment,Or),Ln=r(Or),Gt=n(Or,"P",{"data-svelte-h":!0}),f(Gt)!=="svelte-1ufq5ot"&&(Gt.textContent=ni),Or.forEach(i),bn=r(H),ee=n(H,"DIV",{class:!0});var Lr=v(ee);m(To.$$.fragment,Lr),vn=r(Lr),Zt=n(Lr,"P",{"data-svelte-h":!0}),f(Zt)!=="svelte-ioswce"&&(Zt.innerHTML=si),wn=r(Lr),m(Ae.$$.fragment,Lr),Lr.forEach(i),H.forEach(i),Xr=r(e),m(So.$$.fragment,e),Ur=r(e),R=n(e,"DIV",{class:!0});var j=v(R);m(Co.$$.fragment,j),$n=r(j),Yt=n(j,"P",{"data-svelte-h":!0}),f(Yt)!=="svelte-1iebgrt"&&(Yt.innerHTML=ii),Mn=r(j),Re=n(j,"DIV",{class:!0});var Kr=v(Re);m(ko.$$.fragment,Kr),yn=r(Kr),Qt=n(Kr,"P",{"data-svelte-h":!0}),f(Qt)!=="svelte-1lgbsz7"&&(Qt.innerHTML=di),Kr.forEach(i),Dn=r(j),Pe=n(j,"DIV",{class:!0});var ea=v(Pe);m(Ao.$$.fragment,ea),Tn=r(ea),Ot=n(ea,"P",{"data-svelte-h":!0}),f(Ot)!=="svelte-1asuhpm"&&(Ot.innerHTML=li),ea.forEach(i),Sn=r(j),oe=n(j,"DIV",{class:!0});var br=v(oe);m(Ro.$$.fragment,br),Cn=r(br),Kt=n(br,"P",{"data-svelte-h":!0}),f(Kt)!=="svelte-flusvq"&&(Kt.textContent=ci),kn=r(br),m(Ie.$$.fragment,br),br.forEach(i),An=r(j),He=n(j,"DIV",{class:!0});var oa=v(He);m(Po.$$.fragment,oa),Rn=r(oa),er=n(oa,"P",{"data-svelte-h":!0}),f(er)!=="svelte-1ufq5ot"&&(er.textContent=fi),oa.forEach(i),Pn=r(j),te=n(j,"DIV",{class:!0});var vr=v(te);m(Io.$$.fragment,vr),In=r(vr),or=n(vr,"P",{"data-svelte-h":!0}),f(or)!=="svelte-ioswce"&&(or.innerHTML=pi),Hn=r(vr),m(Ve.$$.fragment,vr),vr.forEach(i),j.forEach(i),Fr=r(e),m(Ho.$$.fragment,e),Nr=r(e),P=n(e,"DIV",{class:!0});var J=v(P);m(Vo.$$.fragment,J),Vn=r(J),tr=n(J,"P",{"data-svelte-h":!0}),f(tr)!=="svelte-1sijw2p"&&(tr.innerHTML=_i),En=r(J),Ee=n(J,"DIV",{class:!0});var ta=v(Ee);m(Eo.$$.fragment,ta),Xn=r(ta),rr=n(ta,"P",{"data-svelte-h":!0}),f(rr)!=="svelte-1lgbsz7"&&(rr.innerHTML=mi),ta.forEach(i),Un=r(J),Xe=n(J,"DIV",{class:!0});var ra=v(Xe);m(Xo.$$.fragment,ra),Fn=r(ra),ar=n(ra,"P",{"data-svelte-h":!0}),f(ar)!=="svelte-1asuhpm"&&(ar.innerHTML=ui),ra.forEach(i),Nn=r(J),re=n(J,"DIV",{class:!0});var wr=v(re);m(Uo.$$.fragment,wr),Wn=r(wr),nr=n(wr,"P",{"data-svelte-h":!0}),f(nr)!=="svelte-flusvq"&&(nr.textContent=hi),zn=r(wr),m(Ue.$$.fragment,wr),wr.forEach(i),qn=r(J),Fe=n(J,"DIV",{class:!0});var aa=v(Fe);m(Fo.$$.fragment,aa),Bn=r(aa),sr=n(aa,"P",{"data-svelte-h":!0}),f(sr)!=="svelte-1ufq5ot"&&(sr.textContent=gi),aa.forEach(i),jn=r(J),ae=n(J,"DIV",{class:!0});var $r=v(ae);m(No.$$.fragment,$r),Jn=r($r),ir=n($r,"P",{"data-svelte-h":!0}),f(ir)!=="svelte-ioswce"&&(ir.innerHTML=xi),Gn=r($r),m(Ne.$$.fragment,$r),$r.forEach(i),J.forEach(i),Wr=r(e),m(Wo.$$.fragment,e),zr=r(e),ce=n(e,"DIV",{class:!0});var na=v(ce);m(zo.$$.fragment,na),Zn=r(na),We=n(na,"DIV",{class:!0});var sa=v(We);m(qo.$$.fragment,sa),Yn=r(sa),dr=n(sa,"P",{"data-svelte-h":!0}),f(dr)!=="svelte-1lgbsz7"&&(dr.innerHTML=Li),sa.forEach(i),na.forEach(i),qr=r(e),m(Bo.$$.fragment,e),Br=r(e),S=n(e,"DIV",{class:!0});var V=v(S);m(jo.$$.fragment,V),Qn=r(V),lr=n(V,"P",{"data-svelte-h":!0}),f(lr)!=="svelte-1q4bbx"&&(lr.textContent=bi),On=r(V),cr=n(V,"DIV",{class:!0});var Ti=v(cr);m(Jo.$$.fragment,Ti),Ti.forEach(i),Kn=r(V),G=n(V,"DIV",{class:!0});var Ye=v(G);m(Go.$$.fragment,Ye),es=r(Ye),fr=n(Ye,"P",{"data-svelte-h":!0}),f(fr)!=="svelte-1nr2dy0"&&(fr.textContent=vi),os=r(Ye),m(ze.$$.fragment,Ye),ts=r(Ye),m(qe.$$.fragment,Ye),Ye.forEach(i),rs=r(V),ne=n(V,"DIV",{class:!0});var Mr=v(ne);m(Zo.$$.fragment,Mr),as=r(Mr),pr=n(Mr,"P",{"data-svelte-h":!0}),f(pr)!=="svelte-h0os0v"&&(pr.textContent=wi),ns=r(Mr),m(Be.$$.fragment,Mr),Mr.forEach(i),ss=r(V),je=n(V,"DIV",{class:!0});var ia=v(je);m(Yo.$$.fragment,ia),is=r(ia),_r=n(ia,"P",{"data-svelte-h":!0}),f(_r)!=="svelte-1825k9e"&&(_r.textContent=$i),ia.forEach(i),ds=r(V),Je=n(V,"DIV",{class:!0});var da=v(Je);m(Qo.$$.fragment,da),ls=r(da),mr=n(da,"P",{"data-svelte-h":!0}),f(mr)!=="svelte-rvubqa"&&(mr.innerHTML=Mi),da.forEach(i),cs=r(V),se=n(V,"DIV",{class:!0});var yr=v(se);m(Oo.$$.fragment,yr),fs=r(yr),ur=n(yr,"P",{"data-svelte-h":!0}),f(ur)!=="svelte-ioswce"&&(ur.innerHTML=yi),ps=r(yr),m(Ge.$$.fragment,yr),yr.forEach(i),_s=r(V),ie=n(V,"DIV",{class:!0});var Dr=v(ie);m(Ko.$$.fragment,Dr),ms=r(Dr),hr=n(Dr,"P",{"data-svelte-h":!0}),f(hr)!=="svelte-119cgd9"&&(hr.textContent=Di),us=r(Dr),m(Ze.$$.fragment,Dr),Dr.forEach(i),V.forEach(i),jr=r(e),m(et.$$.fragment,e),Jr=r(e),Tr=n(e,"P",{}),v(Tr).forEach(i),this.h()},h(){w(s,"name","hf:doc:metadata"),w(s,"content",Yi),w(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(he,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(we,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w($e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(De,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(He,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(We,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(cr,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,p){o(document.head,s),L(e,b,p),L(e,c,p),L(e,l,p),u(y,e,p),L(e,d,p),L(e,M,p),L(e,Sr,p),L(e,Qe,p),L(e,Cr,p),u(me,e,p),L(e,kr,p),u(Oe,e,p),L(e,Ar,p),L(e,k,p),u(Ke,k,null),o(k,la),o(k,lt),o(k,ca),o(k,ue),u(eo,ue,null),o(ue,fa),o(ue,ct),o(k,pa),o(k,he),u(oo,he,null),o(he,_a),o(he,ft),o(k,ma),o(k,U),u(to,U,null),o(U,ua),o(U,pt),o(U,ha),o(U,_t),o(U,ga),o(U,mt),o(U,xa),o(U,ut),o(U,La),o(U,ht),o(k,ba),o(k,Y),u(ro,Y,null),o(Y,va),o(Y,gt),o(Y,wa),u(ge,Y,null),o(k,$a),o(k,xe),u(ao,xe,null),o(xe,Ma),o(xe,xt),L(e,Rr,p),u(no,e,p),L(e,Pr,p),L(e,A,p),u(so,A,null),o(A,ya),o(A,Lt),o(A,Da),o(A,Le),u(io,Le,null),o(Le,Ta),o(Le,bt),o(A,Sa),o(A,be),u(lo,be,null),o(be,Ca),o(be,vt),o(A,ka),o(A,F),u(co,F,null),o(F,Aa),o(F,wt),o(F,Ra),o(F,$t),o(F,Pa),o(F,Mt),o(F,Ia),o(F,yt),o(F,Ha),o(F,Dt),o(A,Va),o(A,Q),u(fo,Q,null),o(Q,Ea),o(Q,Tt),o(Q,Xa),u(ve,Q,null),o(A,Ua),o(A,we),u(po,we,null),o(we,Fa),o(we,St),L(e,Ir,p),u(_o,e,p),L(e,Hr,p),L(e,C,p),u(mo,C,null),o(C,Na),o(C,Ct),o(C,Wa),o(C,kt),o(C,za),o(C,$e),u(uo,$e,null),o($e,qa),o($e,At),o(C,Ba),o(C,Me),u(ho,Me,null),o(Me,ja),o(Me,Rt),o(C,Ja),o(C,q),u(go,q,null),o(q,Ga),o(q,Pt),o(q,Za),o(q,It),o(q,Ya),o(q,Ht),o(q,Qa),o(q,Vt),o(C,Oa),o(C,O),u(xo,O,null),o(O,Ka),o(O,Et),o(O,en),u(ye,O,null),o(C,on),o(C,De),u(Lo,De,null),o(De,tn),o(De,Xt),L(e,Vr,p),u(bo,e,p),L(e,Er,p),L(e,T,p),u(vo,T,null),o(T,rn),o(T,Ut),o(T,an),o(T,Ft),o(T,nn),o(T,Te),u(wo,Te,null),o(Te,sn),o(Te,Nt),o(T,dn),o(T,Se),u($o,Se,null),o(Se,ln),o(Se,Wt),o(T,cn),o(T,B),u(Mo,B,null),o(B,fn),o(B,zt),o(B,pn),o(B,qt),o(B,_n),o(B,Bt),o(B,mn),o(B,jt),o(T,un),o(T,K),u(yo,K,null),o(K,hn),o(K,Jt),o(K,gn),u(Ce,K,null),o(T,xn),o(T,ke),u(Do,ke,null),o(ke,Ln),o(ke,Gt),o(T,bn),o(T,ee),u(To,ee,null),o(ee,vn),o(ee,Zt),o(ee,wn),u(Ae,ee,null),L(e,Xr,p),u(So,e,p),L(e,Ur,p),L(e,R,p),u(Co,R,null),o(R,$n),o(R,Yt),o(R,Mn),o(R,Re),u(ko,Re,null),o(Re,yn),o(Re,Qt),o(R,Dn),o(R,Pe),u(Ao,Pe,null),o(Pe,Tn),o(Pe,Ot),o(R,Sn),o(R,oe),u(Ro,oe,null),o(oe,Cn),o(oe,Kt),o(oe,kn),u(Ie,oe,null),o(R,An),o(R,He),u(Po,He,null),o(He,Rn),o(He,er),o(R,Pn),o(R,te),u(Io,te,null),o(te,In),o(te,or),o(te,Hn),u(Ve,te,null),L(e,Fr,p),u(Ho,e,p),L(e,Nr,p),L(e,P,p),u(Vo,P,null),o(P,Vn),o(P,tr),o(P,En),o(P,Ee),u(Eo,Ee,null),o(Ee,Xn),o(Ee,rr),o(P,Un),o(P,Xe),u(Xo,Xe,null),o(Xe,Fn),o(Xe,ar),o(P,Nn),o(P,re),u(Uo,re,null),o(re,Wn),o(re,nr),o(re,zn),u(Ue,re,null),o(P,qn),o(P,Fe),u(Fo,Fe,null),o(Fe,Bn),o(Fe,sr),o(P,jn),o(P,ae),u(No,ae,null),o(ae,Jn),o(ae,ir),o(ae,Gn),u(Ne,ae,null),L(e,Wr,p),u(Wo,e,p),L(e,zr,p),L(e,ce,p),u(zo,ce,null),o(ce,Zn),o(ce,We),u(qo,We,null),o(We,Yn),o(We,dr),L(e,qr,p),u(Bo,e,p),L(e,Br,p),L(e,S,p),u(jo,S,null),o(S,Qn),o(S,lr),o(S,On),o(S,cr),u(Jo,cr,null),o(S,Kn),o(S,G),u(Go,G,null),o(G,es),o(G,fr),o(G,os),u(ze,G,null),o(G,ts),u(qe,G,null),o(S,rs),o(S,ne),u(Zo,ne,null),o(ne,as),o(ne,pr),o(ne,ns),u(Be,ne,null),o(S,ss),o(S,je),u(Yo,je,null),o(je,is),o(je,_r),o(S,ds),o(S,Je),u(Qo,Je,null),o(Je,ls),o(Je,mr),o(S,cs),o(S,se),u(Oo,se,null),o(se,fs),o(se,ur),o(se,ps),u(Ge,se,null),o(S,_s),o(S,ie),u(Ko,ie,null),o(ie,ms),o(ie,hr),o(ie,us),u(Ze,ie,null),L(e,jr,p),u(et,e,p),L(e,Jr,p),L(e,Tr,p),Gr=!0},p(e,[p]){const E={};p&2&&(E.$$scope={dirty:p,ctx:e}),me.$set(E);const ot={};p&2&&(ot.$$scope={dirty:p,ctx:e}),ge.$set(ot);const tt={};p&2&&(tt.$$scope={dirty:p,ctx:e}),ve.$set(tt);const N={};p&2&&(N.$$scope={dirty:p,ctx:e}),ye.$set(N);const fe={};p&2&&(fe.$$scope={dirty:p,ctx:e}),Ce.$set(fe);const rt={};p&2&&(rt.$$scope={dirty:p,ctx:e}),Ae.$set(rt);const X={};p&2&&(X.$$scope={dirty:p,ctx:e}),Ie.$set(X);const at={};p&2&&(at.$$scope={dirty:p,ctx:e}),Ve.$set(at);const nt={};p&2&&(nt.$$scope={dirty:p,ctx:e}),Ue.$set(nt);const W={};p&2&&(W.$$scope={dirty:p,ctx:e}),Ne.$set(W);const pe={};p&2&&(pe.$$scope={dirty:p,ctx:e}),ze.$set(pe);const st={};p&2&&(st.$$scope={dirty:p,ctx:e}),qe.$set(st);const I={};p&2&&(I.$$scope={dirty:p,ctx:e}),Be.$set(I);const it={};p&2&&(it.$$scope={dirty:p,ctx:e}),Ge.$set(it);const dt={};p&2&&(dt.$$scope={dirty:p,ctx:e}),Ze.$set(dt)},i(e){Gr||(h(y.$$.fragment,e),h(me.$$.fragment,e),h(Oe.$$.fragment,e),h(Ke.$$.fragment,e),h(eo.$$.fragment,e),h(oo.$$.fragment,e),h(to.$$.fragment,e),h(ro.$$.fragment,e),h(ge.$$.fragment,e),h(ao.$$.fragment,e),h(no.$$.fragment,e),h(so.$$.fragment,e),h(io.$$.fragment,e),h(lo.$$.fragment,e),h(co.$$.fragment,e),h(fo.$$.fragment,e),h(ve.$$.fragment,e),h(po.$$.fragment,e),h(_o.$$.fragment,e),h(mo.$$.fragment,e),h(uo.$$.fragment,e),h(ho.$$.fragment,e),h(go.$$.fragment,e),h(xo.$$.fragment,e),h(ye.$$.fragment,e),h(Lo.$$.fragment,e),h(bo.$$.fragment,e),h(vo.$$.fragment,e),h(wo.$$.fragment,e),h($o.$$.fragment,e),h(Mo.$$.fragment,e),h(yo.$$.fragment,e),h(Ce.$$.fragment,e),h(Do.$$.fragment,e),h(To.$$.fragment,e),h(Ae.$$.fragment,e),h(So.$$.fragment,e),h(Co.$$.fragment,e),h(ko.$$.fragment,e),h(Ao.$$.fragment,e),h(Ro.$$.fragment,e),h(Ie.$$.fragment,e),h(Po.$$.fragment,e),h(Io.$$.fragment,e),h(Ve.$$.fragment,e),h(Ho.$$.fragment,e),h(Vo.$$.fragment,e),h(Eo.$$.fragment,e),h(Xo.$$.fragment,e),h(Uo.$$.fragment,e),h(Ue.$$.fragment,e),h(Fo.$$.fragment,e),h(No.$$.fragment,e),h(Ne.$$.fragment,e),h(Wo.$$.fragment,e),h(zo.$$.fragment,e),h(qo.$$.fragment,e),h(Bo.$$.fragment,e),h(jo.$$.fragment,e),h(Jo.$$.fragment,e),h(Go.$$.fragment,e),h(ze.$$.fragment,e),h(qe.$$.fragment,e),h(Zo.$$.fragment,e),h(Be.$$.fragment,e),h(Yo.$$.fragment,e),h(Qo.$$.fragment,e),h(Oo.$$.fragment,e),h(Ge.$$.fragment,e),h(Ko.$$.fragment,e),h(Ze.$$.fragment,e),h(et.$$.fragment,e),Gr=!0)},o(e){g(y.$$.fragment,e),g(me.$$.fragment,e),g(Oe.$$.fragment,e),g(Ke.$$.fragment,e),g(eo.$$.fragment,e),g(oo.$$.fragment,e),g(to.$$.fragment,e),g(ro.$$.fragment,e),g(ge.$$.fragment,e),g(ao.$$.fragment,e),g(no.$$.fragment,e),g(so.$$.fragment,e),g(io.$$.fragment,e),g(lo.$$.fragment,e),g(co.$$.fragment,e),g(fo.$$.fragment,e),g(ve.$$.fragment,e),g(po.$$.fragment,e),g(_o.$$.fragment,e),g(mo.$$.fragment,e),g(uo.$$.fragment,e),g(ho.$$.fragment,e),g(go.$$.fragment,e),g(xo.$$.fragment,e),g(ye.$$.fragment,e),g(Lo.$$.fragment,e),g(bo.$$.fragment,e),g(vo.$$.fragment,e),g(wo.$$.fragment,e),g($o.$$.fragment,e),g(Mo.$$.fragment,e),g(yo.$$.fragment,e),g(Ce.$$.fragment,e),g(Do.$$.fragment,e),g(To.$$.fragment,e),g(Ae.$$.fragment,e),g(So.$$.fragment,e),g(Co.$$.fragment,e),g(ko.$$.fragment,e),g(Ao.$$.fragment,e),g(Ro.$$.fragment,e),g(Ie.$$.fragment,e),g(Po.$$.fragment,e),g(Io.$$.fragment,e),g(Ve.$$.fragment,e),g(Ho.$$.fragment,e),g(Vo.$$.fragment,e),g(Eo.$$.fragment,e),g(Xo.$$.fragment,e),g(Uo.$$.fragment,e),g(Ue.$$.fragment,e),g(Fo.$$.fragment,e),g(No.$$.fragment,e),g(Ne.$$.fragment,e),g(Wo.$$.fragment,e),g(zo.$$.fragment,e),g(qo.$$.fragment,e),g(Bo.$$.fragment,e),g(jo.$$.fragment,e),g(Jo.$$.fragment,e),g(Go.$$.fragment,e),g(ze.$$.fragment,e),g(qe.$$.fragment,e),g(Zo.$$.fragment,e),g(Be.$$.fragment,e),g(Yo.$$.fragment,e),g(Qo.$$.fragment,e),g(Oo.$$.fragment,e),g(Ge.$$.fragment,e),g(Ko.$$.fragment,e),g(Ze.$$.fragment,e),g(et.$$.fragment,e),Gr=!1},d(e){e&&(i(b),i(c),i(l),i(d),i(M),i(Sr),i(Qe),i(Cr),i(kr),i(Ar),i(k),i(Rr),i(Pr),i(A),i(Ir),i(Hr),i(C),i(Vr),i(Er),i(T),i(Xr),i(Ur),i(R),i(Fr),i(Nr),i(P),i(Wr),i(zr),i(ce),i(qr),i(Br),i(S),i(jr),i(Jr),i(Tr)),i(s),x(y,e),x(me,e),x(Oe,e),x(Ke),x(eo),x(oo),x(to),x(ro),x(ge),x(ao),x(no,e),x(so),x(io),x(lo),x(co),x(fo),x(ve),x(po),x(_o,e),x(mo),x(uo),x(ho),x(go),x(xo),x(ye),x(Lo),x(bo,e),x(vo),x(wo),x($o),x(Mo),x(yo),x(Ce),x(Do),x(To),x(Ae),x(So,e),x(Co),x(ko),x(Ao),x(Ro),x(Ie),x(Po),x(Io),x(Ve),x(Ho,e),x(Vo),x(Eo),x(Xo),x(Uo),x(Ue),x(Fo),x(No),x(Ne),x(Wo,e),x(zo),x(qo),x(Bo,e),x(jo),x(Jo),x(Go),x(ze),x(qe),x(Zo),x(Be),x(Yo),x(Qo),x(Oo),x(Ge),x(Ko),x(Ze),x(et,e)}}}const Yi='{"title":"LoRA","local":"lora","sections":[{"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":"CogVideoXLoraLoaderMixin","local":"diffusers.loaders.CogVideoXLoraLoaderMixin","sections":[],"depth":2},{"title":"Mochi1LoraLoaderMixin","local":"diffusers.loaders.Mochi1LoraLoaderMixin","sections":[],"depth":2},{"title":"AmusedLoraLoaderMixin","local":"diffusers.loaders.AmusedLoraLoaderMixin","sections":[],"depth":2},{"title":"LoraBaseMixin","local":"diffusers.loaders.lora_base.LoraBaseMixin","sections":[],"depth":2}],"depth":1}';function Qi(D){return Ci(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class nd extends ki{constructor(s){super(),Ai(this,s,Qi,Zi,Si,{})}}export{nd as component}; | |
Xet Storage Details
- Size:
- 142 kB
- Xet hash:
- 20f359e96227bd61ac9b09b2594421aa2110c21c11eadfbb7fd3e7b981ac5846
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.