import{s as Pt,o as Xt,n as Ze}from"../chunks/scheduler.8c3d61f6.js";import{S as It,i as Wt,g as o,s as r,r as y,A as Vt,h as i,f as d,c as n,j as T,u as b,x as g,k as J,y as a,a as x,v as $,d as _,t as M,w}from"../chunks/index.589a98e8.js";import{T as Ft}from"../chunks/Tip.42aa8582.js";import{D as F}from"../chunks/Docstring.27406313.js";import{C as Ve}from"../chunks/CodeBlock.36627b28.js";import{E as We}from"../chunks/ExampleCodeBlock.3dc467a7.js";import{H as Gt,E as Rt}from"../chunks/EditOnGithub.e5a8d9cb.js";function Et(U){let s,v='Refer to the <a href="../../tutorials/using_peft_for_inference.md">Inference with PEFT</a> tutorial for an overview of how to use PEFT in Diffusers for inference.';return{c(){s=o("p"),s.innerHTML=v},l(p){s=i(p,"P",{"data-svelte-h":!0}),g(s)!=="svelte-1yhqcl5"&&(s.innerHTML=v)},m(p,l){x(p,s,l)},p:Ze,d(p){p&&d(s)}}}function kt(U){let s,v="Example:",p,l,u;return l=new Ve({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvclRleHQySW1hZ2UlMEFpbXBvcnQlMjB0b3JjaCUwQSUwQXBpcGVsaW5lJTIwJTNEJTIwQXV0b1BpcGVsaW5lRm9yVGV4dDJJbWFnZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIyc3RhYmlsaXR5YWklMkZzdGFibGUtZGlmZnVzaW9uLXhsLWJhc2UtMS4wJTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTBBKS50byglMjJjdWRhJTIyKSUwQXBpcGVsaW5lLmxvYWRfbG9yYV93ZWlnaHRzKCUwQSUyMCUyMCUyMCUyMCUyMmpiaWxja2UtaGYlMkZzZHhsLWNpbmVtYXRpYy0xJTIyJTJDJTIwd2VpZ2h0X25hbWUlM0QlMjJweXRvcmNoX2xvcmFfd2VpZ2h0cy5zYWZldGVuc29ycyUyMiUyQyUyMGFkYXB0ZXJfbmFtZXMlM0QlMjJjaW5lbWF0aWMlMjIlMEEpJTBBcGlwZWxpbmUuZGVsZXRlX2FkYXB0ZXJzKCUyMmNpbmVtYXRpYyUyMik=",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForText2Image
<span class="hljs-keyword">import</span> torch

pipeline = AutoPipelineForText2Image.from_pretrained(
    <span class="hljs-string">&quot;stabilityai/stable-diffusion-xl-base-1.0&quot;</span>, torch_dtype=torch.float16
).to(<span class="hljs-string">&quot;cuda&quot;</span>)
pipeline.load_lora_weights(
    <span class="hljs-string">&quot;jbilcke-hf/sdxl-cinematic-1&quot;</span>, weight_name=<span class="hljs-string">&quot;pytorch_lora_weights.safetensors&quot;</span>, adapter_names=<span class="hljs-string">&quot;cinematic&quot;</span>
)
pipeline.delete_adapters(<span class="hljs-string">&quot;cinematic&quot;</span>)`,wrap:!1}}),{c(){s=o("p"),s.textContent=v,p=r(),y(l.$$.fragment)},l(t){s=i(t,"P",{"data-svelte-h":!0}),g(s)!=="svelte-11lpom8"&&(s.textContent=v),p=n(t),b(l.$$.fragment,t)},m(t,h){x(t,s,h),x(t,p,h),$(l,t,h),u=!0},p:Ze,i(t){u||(_(l.$$.fragment,t),u=!0)},o(t){M(l.$$.fragment,t),u=!1},d(t){t&&(d(s),d(p)),w(l,t)}}}function Bt(U){let s,v="Example:",p,l,u;return l=new Ve({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvclRleHQySW1hZ2UlMEFpbXBvcnQlMjB0b3JjaCUwQSUwQXBpcGVsaW5lJTIwJTNEJTIwQXV0b1BpcGVsaW5lRm9yVGV4dDJJbWFnZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIyc3RhYmlsaXR5YWklMkZzdGFibGUtZGlmZnVzaW9uLXhsLWJhc2UtMS4wJTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTBBKS50byglMjJjdWRhJTIyKSUwQXBpcGVsaW5lLmxvYWRfbG9yYV93ZWlnaHRzKCUwQSUyMCUyMCUyMCUyMCUyMmpiaWxja2UtaGYlMkZzZHhsLWNpbmVtYXRpYy0xJTIyJTJDJTIwd2VpZ2h0X25hbWUlM0QlMjJweXRvcmNoX2xvcmFfd2VpZ2h0cy5zYWZldGVuc29ycyUyMiUyQyUyMGFkYXB0ZXJfbmFtZSUzRCUyMmNpbmVtYXRpYyUyMiUwQSklMEFwaXBlbGluZS5kaXNhYmxlX2xvcmEoKQ==",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForText2Image
<span class="hljs-keyword">import</span> torch

pipeline = AutoPipelineForText2Image.from_pretrained(
    <span class="hljs-string">&quot;stabilityai/stable-diffusion-xl-base-1.0&quot;</span>, torch_dtype=torch.float16
).to(<span class="hljs-string">&quot;cuda&quot;</span>)
pipeline.load_lora_weights(
    <span class="hljs-string">&quot;jbilcke-hf/sdxl-cinematic-1&quot;</span>, weight_name=<span class="hljs-string">&quot;pytorch_lora_weights.safetensors&quot;</span>, adapter_name=<span class="hljs-string">&quot;cinematic&quot;</span>
)
pipeline.disable_lora()`,wrap:!1}}),{c(){s=o("p"),s.textContent=v,p=r(),y(l.$$.fragment)},l(t){s=i(t,"P",{"data-svelte-h":!0}),g(s)!=="svelte-11lpom8"&&(s.textContent=v),p=n(t),b(l.$$.fragment,t)},m(t,h){x(t,s,h),x(t,p,h),$(l,t,h),u=!0},p:Ze,i(t){u||(_(l.$$.fragment,t),u=!0)},o(t){M(l.$$.fragment,t),u=!1},d(t){t&&(d(s),d(p)),w(l,t)}}}function Lt(U){let s,v="Example:",p,l,u;return l=new Ve({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvclRleHQySW1hZ2UlMEFpbXBvcnQlMjB0b3JjaCUwQSUwQXBpcGVsaW5lJTIwJTNEJTIwQXV0b1BpcGVsaW5lRm9yVGV4dDJJbWFnZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIyc3RhYmlsaXR5YWklMkZzdGFibGUtZGlmZnVzaW9uLXhsLWJhc2UtMS4wJTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTBBKS50byglMjJjdWRhJTIyKSUwQXBpcGVsaW5lLmxvYWRfbG9yYV93ZWlnaHRzKCUwQSUyMCUyMCUyMCUyMCUyMmpiaWxja2UtaGYlMkZzZHhsLWNpbmVtYXRpYy0xJTIyJTJDJTIwd2VpZ2h0X25hbWUlM0QlMjJweXRvcmNoX2xvcmFfd2VpZ2h0cy5zYWZldGVuc29ycyUyMiUyQyUyMGFkYXB0ZXJfbmFtZSUzRCUyMmNpbmVtYXRpYyUyMiUwQSklMEFwaXBlbGluZS5lbmFibGVfbG9yYSgp",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForText2Image
<span class="hljs-keyword">import</span> torch

pipeline = AutoPipelineForText2Image.from_pretrained(
    <span class="hljs-string">&quot;stabilityai/stable-diffusion-xl-base-1.0&quot;</span>, torch_dtype=torch.float16
).to(<span class="hljs-string">&quot;cuda&quot;</span>)
pipeline.load_lora_weights(
    <span class="hljs-string">&quot;jbilcke-hf/sdxl-cinematic-1&quot;</span>, weight_name=<span class="hljs-string">&quot;pytorch_lora_weights.safetensors&quot;</span>, adapter_name=<span class="hljs-string">&quot;cinematic&quot;</span>
)
pipeline.enable_lora()`,wrap:!1}}),{c(){s=o("p"),s.textContent=v,p=r(),y(l.$$.fragment)},l(t){s=i(t,"P",{"data-svelte-h":!0}),g(s)!=="svelte-11lpom8"&&(s.textContent=v),p=n(t),b(l.$$.fragment,t)},m(t,h){x(t,s,h),x(t,p,h),$(l,t,h),u=!0},p:Ze,i(t){u||(_(l.$$.fragment,t),u=!0)},o(t){M(l.$$.fragment,t),u=!1},d(t){t&&(d(s),d(p)),w(l,t)}}}function Yt(U){let s,v="Example:",p,l,u;return l=new Ve({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEF1dG9QaXBlbGluZUZvclRleHQySW1hZ2UlMEFpbXBvcnQlMjB0b3JjaCUwQSUwQXBpcGVsaW5lJTIwJTNEJTIwQXV0b1BpcGVsaW5lRm9yVGV4dDJJbWFnZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIyc3RhYmlsaXR5YWklMkZzdGFibGUtZGlmZnVzaW9uLXhsLWJhc2UtMS4wJTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTBBKS50byglMjJjdWRhJTIyKSUwQXBpcGVsaW5lLmxvYWRfbG9yYV93ZWlnaHRzKCUwQSUyMCUyMCUyMCUyMCUyMmpiaWxja2UtaGYlMkZzZHhsLWNpbmVtYXRpYy0xJTIyJTJDJTIwd2VpZ2h0X25hbWUlM0QlMjJweXRvcmNoX2xvcmFfd2VpZ2h0cy5zYWZldGVuc29ycyUyMiUyQyUyMGFkYXB0ZXJfbmFtZSUzRCUyMmNpbmVtYXRpYyUyMiUwQSklMEFwaXBlbGluZS5sb2FkX2xvcmFfd2VpZ2h0cyglMjJuZXJpanMlMkZwaXhlbC1hcnQteGwlMjIlMkMlMjB3ZWlnaHRfbmFtZSUzRCUyMnBpeGVsLWFydC14bC5zYWZldGVuc29ycyUyMiUyQyUyMGFkYXB0ZXJfbmFtZSUzRCUyMnBpeGVsJTIyKSUwQXBpcGVsaW5lLnNldF9hZGFwdGVycyglNUIlMjJjaW5lbWF0aWMlMjIlMkMlMjAlMjJwaXhlbCUyMiU1RCUyQyUyMGFkYXB0ZXJfd2VpZ2h0cyUzRCU1QjAuNSUyQyUyMDAuNSU1RCk=",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> AutoPipelineForText2Image
<span class="hljs-keyword">import</span> torch

pipeline = AutoPipelineForText2Image.from_pretrained(
    <span class="hljs-string">&quot;stabilityai/stable-diffusion-xl-base-1.0&quot;</span>, torch_dtype=torch.float16
).to(<span class="hljs-string">&quot;cuda&quot;</span>)
pipeline.load_lora_weights(
    <span class="hljs-string">&quot;jbilcke-hf/sdxl-cinematic-1&quot;</span>, weight_name=<span class="hljs-string">&quot;pytorch_lora_weights.safetensors&quot;</span>, adapter_name=<span class="hljs-string">&quot;cinematic&quot;</span>
)
pipeline.load_lora_weights(<span class="hljs-string">&quot;nerijs/pixel-art-xl&quot;</span>, weight_name=<span class="hljs-string">&quot;pixel-art-xl.safetensors&quot;</span>, adapter_name=<span class="hljs-string">&quot;pixel&quot;</span>)
pipeline.set_adapters([<span class="hljs-string">&quot;cinematic&quot;</span>, <span class="hljs-string">&quot;pixel&quot;</span>], adapter_weights=[<span class="hljs-number">0.5</span>, <span class="hljs-number">0.5</span>])`,wrap:!1}}),{c(){s=o("p"),s.textContent=v,p=r(),y(l.$$.fragment)},l(t){s=i(t,"P",{"data-svelte-h":!0}),g(s)!=="svelte-11lpom8"&&(s.textContent=v),p=n(t),b(l.$$.fragment,t)},m(t,h){x(t,s,h),x(t,p,h),$(l,t,h),u=!0},p:Ze,i(t){u||(_(l.$$.fragment,t),u=!0)},o(t){M(l.$$.fragment,t),u=!1},d(t){t&&(d(s),d(p)),w(l,t)}}}function qt(U){let s,v,p,l,u,t,h,mt='Diffusers supports loading adapters such as <a href="../../using-diffusers/loading_adapters">LoRA</a> with the <a href="https://huggingface.co/docs/peft/index" rel="nofollow">PEFT</a> library with the <a href="/docs/diffusers/pr_7790/en/api/loaders/peft#diffusers.loaders.PeftAdapterMixin">PeftAdapterMixin</a> class. This allows modeling classes in Diffusers like <a href="/docs/diffusers/pr_7790/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>, <a href="/docs/diffusers/pr_7790/en/api/models/sd3_transformer2d#diffusers.SD3Transformer2DModel">SD3Transformer2DModel</a> to operate with an adapter.',Ce,L,je,A,Ge,f,D,Fe,ne,ut=`A class containing all functions for loading and using adapters weights that are supported in PEFT library. For
more details about adapters and injecting them in a base model, check out the PEFT
<a href="https://huggingface.co/docs/peft/index" rel="nofollow">documentation</a>.`,Re,le,ht="Install the latest version of PEFT, and use this mixin to:",Ee,oe,gt="<li>Attach new adapters in the model.</li> <li>Attach multiple adapters and iteratively activate/deactivate them.</li> <li>Activate/deactivate all adapters from the model.</li> <li>Get a list of the active adapters.</li>",ke,Z,H,Be,ie,yt="Gets the current list of active adapters of the model.",Le,de,bt=`If you are not familiar with adapters and PEFT methods, we invite you to read more about them on the PEFT
<a href="https://huggingface.co/docs/peft" rel="nofollow">documentation</a>.`,Ye,C,z,qe,pe,$t=`Adds a new adapter to the current model for training. If no adapter name is passed, a default name is assigned
to the adapter to follow the convention of the PEFT library.`,Qe,fe,_t=`If you are not familiar with adapters and PEFT methods, we invite you to read more about them in the PEFT
<a href="https://huggingface.co/docs/peft" rel="nofollow">documentation</a>.`,Se,j,N,Ae,ce,Mt="Delete an adapter’s LoRA layers from the underlying model.",De,Y,He,G,K,ze,me,wt="Disable all adapters attached to the model and fallback to inference with the base model only.",Ne,ue,xt=`If you are not familiar with adapters and PEFT methods, we invite you to read more about them on the PEFT
<a href="https://huggingface.co/docs/peft" rel="nofollow">documentation</a>.`,Ke,P,O,Oe,he,vt="Disables the active LoRA layers of the underlying model.",et,q,tt,X,ee,at,ge,Ut=`Enable adapters that are attached to the model. The model uses <code>self.active_adapters()</code> to retrieve the list of
adapters to enable.`,st,ye,Tt=`If you are not familiar with adapters and PEFT methods, we invite you to read more about them on the PEFT
<a href="https://huggingface.co/docs/peft" rel="nofollow">documentation</a>.`,rt,I,te,nt,be,Jt="Enables the active LoRA layers of the underlying model.",lt,Q,ot,W,ae,it,$e,Zt="Sets a specific adapter by forcing the model to only use that adapter and disables the other adapters.",dt,_e,Ct=`If you are not familiar with adapters and PEFT methods, we invite you to read more about them on the PEFT
<a href="https://huggingface.co/docs/peft" rel="nofollow">documentation</a>.`,pt,V,se,ft,Me,jt="Set the currently active adapters for use in the UNet.",ct,S,Pe,re,Xe,Je,Ie;return u=new Gt({props:{title:"PEFT",local:"peft",headingTag:"h1"}}),L=new Ft({props:{$$slots:{default:[Et]},$$scope:{ctx:U}}}),A=new Gt({props:{title:"PeftAdapterMixin",local:"diffusers.loaders.PeftAdapterMixin",headingTag:"h2"}}),D=new F({props:{name:"class diffusers.loaders.PeftAdapterMixin",anchor:"diffusers.loaders.PeftAdapterMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_7790/src/diffusers/loaders/peft.py#L37"}}),H=new F({props:{name:"active_adapters",anchor:"diffusers.loaders.PeftAdapterMixin.active_adapters",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_7790/src/diffusers/loaders/peft.py#L241"}}),z=new F({props:{name:"add_adapter",anchor:"diffusers.loaders.PeftAdapterMixin.add_adapter",parameters:[{name:"adapter_config",val:""},{name:"adapter_name",val:": str = 'default'"}],parametersDescription:[{anchor:"diffusers.loaders.PeftAdapterMixin.add_adapter.adapter_config",description:`<strong>adapter_config</strong> (<code>[~peft.PeftConfig]</code>) &#x2014;
The configuration of the adapter to add; supported adapters are non-prefix tuning and adaption prompt
methods.`,name:"adapter_config"},{anchor:"diffusers.loaders.PeftAdapterMixin.add_adapter.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;default&quot;</code>) &#x2014;
The name of the adapter to add. If no name is passed, a default name is assigned to the adapter.`,name:"adapter_name"}],source:"https://github.com/huggingface/diffusers/blob/vr_7790/src/diffusers/loaders/peft.py#L109"}}),N=new F({props:{name:"delete_adapters",anchor:"diffusers.loaders.PeftAdapterMixin.delete_adapters",parameters:[{name:"adapter_names",val:": Union"}],parametersDescription:[{anchor:"diffusers.loaders.PeftAdapterMixin.delete_adapters.adapter_names",description:`<strong>adapter_names</strong> (<code>Union[List[str], str]</code>) &#x2014;
The names (single string or list of strings) of the adapter to delete.`,name:"adapter_names"}],source:"https://github.com/huggingface/diffusers/blob/vr_7790/src/diffusers/loaders/peft.py#L359"}}),Y=new We({props:{anchor:"diffusers.loaders.PeftAdapterMixin.delete_adapters.example",$$slots:{default:[kt]},$$scope:{ctx:U}}}),K=new F({props:{name:"disable_adapters",anchor:"diffusers.loaders.PeftAdapterMixin.disable_adapters",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_7790/src/diffusers/loaders/peft.py#L196"}}),O=new F({props:{name:"disable_lora",anchor:"diffusers.loaders.PeftAdapterMixin.disable_lora",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_7790/src/diffusers/loaders/peft.py#L313"}}),q=new We({props:{anchor:"diffusers.loaders.PeftAdapterMixin.disable_lora.example",$$slots:{default:[Bt]},$$scope:{ctx:U}}}),ee=new F({props:{name:"enable_adapters",anchor:"diffusers.loaders.PeftAdapterMixin.enable_adapters",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_7790/src/diffusers/loaders/peft.py#L218"}}),te=new F({props:{name:"enable_lora",anchor:"diffusers.loaders.PeftAdapterMixin.enable_lora",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_7790/src/diffusers/loaders/peft.py#L336"}}),Q=new We({props:{anchor:"diffusers.loaders.PeftAdapterMixin.enable_lora.example",$$slots:{default:[Lt]},$$scope:{ctx:U}}}),ae=new F({props:{name:"set_adapter",anchor:"diffusers.loaders.PeftAdapterMixin.set_adapter",parameters:[{name:"adapter_name",val:": Union"}],parametersDescription:[{anchor:"diffusers.loaders.PeftAdapterMixin.set_adapter.adapter_name",description:`<strong>adapter_name</strong> (Union[str, List[str]])) &#x2014;
The list of adapters to set or the adapter name in the case of a single adapter.`,name:"adapter_name"}],source:"https://github.com/huggingface/diffusers/blob/vr_7790/src/diffusers/loaders/peft.py#L147"}}),se=new F({props:{name:"set_adapters",anchor:"diffusers.loaders.PeftAdapterMixin.set_adapters",parameters:[{name:"adapter_names",val:": Union"},{name:"weights",val:": Union = None"}],parametersDescription:[{anchor:"diffusers.loaders.PeftAdapterMixin.set_adapters.adapter_names",description:`<strong>adapter_names</strong> (<code>List[str]</code> or <code>str</code>) &#x2014;
The names of the adapters to use.`,name:"adapter_names"},{anchor:"diffusers.loaders.PeftAdapterMixin.set_adapters.adapter_weights",description:`<strong>adapter_weights</strong> (<code>Union[List[float], float]</code>, <em>optional</em>) &#x2014;
The adapter(s) weights to use with the UNet. If <code>None</code>, the weights are set to <code>1.0</code> for all the
adapters.`,name:"adapter_weights"}],source:"https://github.com/huggingface/diffusers/blob/vr_7790/src/diffusers/loaders/peft.py#L53"}}),S=new We({props:{anchor:"diffusers.loaders.PeftAdapterMixin.set_adapters.example",$$slots:{default:[Yt]},$$scope:{ctx:U}}}),re=new Rt({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/loaders/peft.md"}}),{c(){s=o("meta"),v=r(),p=o("p"),l=r(),y(u.$$.fragment),t=r(),h=o("p"),h.innerHTML=mt,Ce=r(),y(L.$$.fragment),je=r(),y(A.$$.fragment),Ge=r(),f=o("div"),y(D.$$.fragment),Fe=r(),ne=o("p"),ne.innerHTML=ut,Re=r(),le=o("p"),le.textContent=ht,Ee=r(),oe=o("ul"),oe.innerHTML=gt,ke=r(),Z=o("div"),y(H.$$.fragment),Be=r(),ie=o("p"),ie.textContent=yt,Le=r(),de=o("p"),de.innerHTML=bt,Ye=r(),C=o("div"),y(z.$$.fragment),qe=r(),pe=o("p"),pe.textContent=$t,Qe=r(),fe=o("p"),fe.innerHTML=_t,Se=r(),j=o("div"),y(N.$$.fragment),Ae=r(),ce=o("p"),ce.textContent=Mt,De=r(),y(Y.$$.fragment),He=r(),G=o("div"),y(K.$$.fragment),ze=r(),me=o("p"),me.textContent=wt,Ne=r(),ue=o("p"),ue.innerHTML=xt,Ke=r(),P=o("div"),y(O.$$.fragment),Oe=r(),he=o("p"),he.textContent=vt,et=r(),y(q.$$.fragment),tt=r(),X=o("div"),y(ee.$$.fragment),at=r(),ge=o("p"),ge.innerHTML=Ut,st=r(),ye=o("p"),ye.innerHTML=Tt,rt=r(),I=o("div"),y(te.$$.fragment),nt=r(),be=o("p"),be.textContent=Jt,lt=r(),y(Q.$$.fragment),ot=r(),W=o("div"),y(ae.$$.fragment),it=r(),$e=o("p"),$e.textContent=Zt,dt=r(),_e=o("p"),_e.innerHTML=Ct,pt=r(),V=o("div"),y(se.$$.fragment),ft=r(),Me=o("p"),Me.textContent=jt,ct=r(),y(S.$$.fragment),Pe=r(),y(re.$$.fragment),Xe=r(),Je=o("p"),this.h()},l(e){const c=Vt("svelte-u9bgzb",document.head);s=i(c,"META",{name:!0,content:!0}),c.forEach(d),v=n(e),p=i(e,"P",{}),T(p).forEach(d),l=n(e),b(u.$$.fragment,e),t=n(e),h=i(e,"P",{"data-svelte-h":!0}),g(h)!=="svelte-ggxa7c"&&(h.innerHTML=mt),Ce=n(e),b(L.$$.fragment,e),je=n(e),b(A.$$.fragment,e),Ge=n(e),f=i(e,"DIV",{class:!0});var m=T(f);b(D.$$.fragment,m),Fe=n(m),ne=i(m,"P",{"data-svelte-h":!0}),g(ne)!=="svelte-16jad6u"&&(ne.innerHTML=ut),Re=n(m),le=i(m,"P",{"data-svelte-h":!0}),g(le)!=="svelte-jgx411"&&(le.textContent=ht),Ee=n(m),oe=i(m,"UL",{"data-svelte-h":!0}),g(oe)!=="svelte-70o87y"&&(oe.innerHTML=gt),ke=n(m),Z=i(m,"DIV",{class:!0});var R=T(Z);b(H.$$.fragment,R),Be=n(R),ie=i(R,"P",{"data-svelte-h":!0}),g(ie)!=="svelte-1i9yvzx"&&(ie.textContent=yt),Le=n(R),de=i(R,"P",{"data-svelte-h":!0}),g(de)!=="svelte-pm6rj0"&&(de.innerHTML=bt),R.forEach(d),Ye=n(m),C=i(m,"DIV",{class:!0});var E=T(C);b(z.$$.fragment,E),qe=n(E),pe=i(E,"P",{"data-svelte-h":!0}),g(pe)!=="svelte-ayg1h"&&(pe.textContent=$t),Qe=n(E),fe=i(E,"P",{"data-svelte-h":!0}),g(fe)!=="svelte-m719pe"&&(fe.innerHTML=_t),E.forEach(d),Se=n(m),j=i(m,"DIV",{class:!0});var k=T(j);b(N.$$.fragment,k),Ae=n(k),ce=i(k,"P",{"data-svelte-h":!0}),g(ce)!=="svelte-1oumhy2"&&(ce.textContent=Mt),De=n(k),b(Y.$$.fragment,k),k.forEach(d),He=n(m),G=i(m,"DIV",{class:!0});var B=T(G);b(K.$$.fragment,B),ze=n(B),me=i(B,"P",{"data-svelte-h":!0}),g(me)!=="svelte-stjif2"&&(me.textContent=wt),Ne=n(B),ue=i(B,"P",{"data-svelte-h":!0}),g(ue)!=="svelte-pm6rj0"&&(ue.innerHTML=xt),B.forEach(d),Ke=n(m),P=i(m,"DIV",{class:!0});var we=T(P);b(O.$$.fragment,we),Oe=n(we),he=i(we,"P",{"data-svelte-h":!0}),g(he)!=="svelte-1w71mps"&&(he.textContent=vt),et=n(we),b(q.$$.fragment,we),we.forEach(d),tt=n(m),X=i(m,"DIV",{class:!0});var xe=T(X);b(ee.$$.fragment,xe),at=n(xe),ge=i(xe,"P",{"data-svelte-h":!0}),g(ge)!=="svelte-hmbjwp"&&(ge.innerHTML=Ut),st=n(xe),ye=i(xe,"P",{"data-svelte-h":!0}),g(ye)!=="svelte-pm6rj0"&&(ye.innerHTML=Tt),xe.forEach(d),rt=n(m),I=i(m,"DIV",{class:!0});var ve=T(I);b(te.$$.fragment,ve),nt=n(ve),be=i(ve,"P",{"data-svelte-h":!0}),g(be)!=="svelte-9erqj1"&&(be.textContent=Jt),lt=n(ve),b(Q.$$.fragment,ve),ve.forEach(d),ot=n(m),W=i(m,"DIV",{class:!0});var Ue=T(W);b(ae.$$.fragment,Ue),it=n(Ue),$e=i(Ue,"P",{"data-svelte-h":!0}),g($e)!=="svelte-1kp30gn"&&($e.textContent=Zt),dt=n(Ue),_e=i(Ue,"P",{"data-svelte-h":!0}),g(_e)!=="svelte-pm6rj0"&&(_e.innerHTML=Ct),Ue.forEach(d),pt=n(m),V=i(m,"DIV",{class:!0});var Te=T(V);b(se.$$.fragment,Te),ft=n(Te),Me=i(Te,"P",{"data-svelte-h":!0}),g(Me)!=="svelte-38gdgn"&&(Me.textContent=jt),ct=n(Te),b(S.$$.fragment,Te),Te.forEach(d),m.forEach(d),Pe=n(e),b(re.$$.fragment,e),Xe=n(e),Je=i(e,"P",{}),T(Je).forEach(d),this.h()},h(){J(s,"name","hf:doc:metadata"),J(s,"content",Qt),J(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),J(f,"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,c){a(document.head,s),x(e,v,c),x(e,p,c),x(e,l,c),$(u,e,c),x(e,t,c),x(e,h,c),x(e,Ce,c),$(L,e,c),x(e,je,c),$(A,e,c),x(e,Ge,c),x(e,f,c),$(D,f,null),a(f,Fe),a(f,ne),a(f,Re),a(f,le),a(f,Ee),a(f,oe),a(f,ke),a(f,Z),$(H,Z,null),a(Z,Be),a(Z,ie),a(Z,Le),a(Z,de),a(f,Ye),a(f,C),$(z,C,null),a(C,qe),a(C,pe),a(C,Qe),a(C,fe),a(f,Se),a(f,j),$(N,j,null),a(j,Ae),a(j,ce),a(j,De),$(Y,j,null),a(f,He),a(f,G),$(K,G,null),a(G,ze),a(G,me),a(G,Ne),a(G,ue),a(f,Ke),a(f,P),$(O,P,null),a(P,Oe),a(P,he),a(P,et),$(q,P,null),a(f,tt),a(f,X),$(ee,X,null),a(X,at),a(X,ge),a(X,st),a(X,ye),a(f,rt),a(f,I),$(te,I,null),a(I,nt),a(I,be),a(I,lt),$(Q,I,null),a(f,ot),a(f,W),$(ae,W,null),a(W,it),a(W,$e),a(W,dt),a(W,_e),a(f,pt),a(f,V),$(se,V,null),a(V,ft),a(V,Me),a(V,ct),$(S,V,null),x(e,Pe,c),$(re,e,c),x(e,Xe,c),x(e,Je,c),Ie=!0},p(e,[c]){const m={};c&2&&(m.$$scope={dirty:c,ctx:e}),L.$set(m);const R={};c&2&&(R.$$scope={dirty:c,ctx:e}),Y.$set(R);const E={};c&2&&(E.$$scope={dirty:c,ctx:e}),q.$set(E);const k={};c&2&&(k.$$scope={dirty:c,ctx:e}),Q.$set(k);const B={};c&2&&(B.$$scope={dirty:c,ctx:e}),S.$set(B)},i(e){Ie||(_(u.$$.fragment,e),_(L.$$.fragment,e),_(A.$$.fragment,e),_(D.$$.fragment,e),_(H.$$.fragment,e),_(z.$$.fragment,e),_(N.$$.fragment,e),_(Y.$$.fragment,e),_(K.$$.fragment,e),_(O.$$.fragment,e),_(q.$$.fragment,e),_(ee.$$.fragment,e),_(te.$$.fragment,e),_(Q.$$.fragment,e),_(ae.$$.fragment,e),_(se.$$.fragment,e),_(S.$$.fragment,e),_(re.$$.fragment,e),Ie=!0)},o(e){M(u.$$.fragment,e),M(L.$$.fragment,e),M(A.$$.fragment,e),M(D.$$.fragment,e),M(H.$$.fragment,e),M(z.$$.fragment,e),M(N.$$.fragment,e),M(Y.$$.fragment,e),M(K.$$.fragment,e),M(O.$$.fragment,e),M(q.$$.fragment,e),M(ee.$$.fragment,e),M(te.$$.fragment,e),M(Q.$$.fragment,e),M(ae.$$.fragment,e),M(se.$$.fragment,e),M(S.$$.fragment,e),M(re.$$.fragment,e),Ie=!1},d(e){e&&(d(v),d(p),d(l),d(t),d(h),d(Ce),d(je),d(Ge),d(f),d(Pe),d(Xe),d(Je)),d(s),w(u,e),w(L,e),w(A,e),w(D),w(H),w(z),w(N),w(Y),w(K),w(O),w(q),w(ee),w(te),w(Q),w(ae),w(se),w(S),w(re,e)}}}const Qt='{"title":"PEFT","local":"peft","sections":[{"title":"PeftAdapterMixin","local":"diffusers.loaders.PeftAdapterMixin","sections":[],"depth":2}],"depth":1}';function St(U){return Xt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ea extends It{constructor(s){super(),Wt(this,s,St,qt,Pt,{})}}export{ea as component};
