Buckets:

rtrm's picture
download
raw
23.9 kB
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 M,t as w,w as _}from"../chunks/index.da70eac4.js";import{T as Ft}from"../chunks/Tip.1d9b8c37.js";import{D as F}from"../chunks/Docstring.ee4b6913.js";import{C as Ve}from"../chunks/CodeBlock.00a903b3.js";import{E as We}from"../chunks/ExampleCodeBlock.f7bd2c1f.js";import{H as Gt,E as Rt}from"../chunks/EditOnGithub.1e64e623.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||(M(l.$$.fragment,t),u=!0)},o(t){w(l.$$.fragment,t),u=!1},d(t){t&&(d(s),d(p)),_(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||(M(l.$$.fragment,t),u=!0)},o(t){w(l.$$.fragment,t),u=!1},d(t){t&&(d(s),d(p)),_(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||(M(l.$$.fragment,t),u=!0)},o(t){w(l.$$.fragment,t),u=!1},d(t){t&&(d(s),d(p)),_(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||(M(l.$$.fragment,t),u=!0)},o(t){w(l.$$.fragment,t),u=!1},d(t){t&&(d(s),d(p)),_(l,t)}}}function qt(U){let s,v,p,l,u,t,h,ct='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/main/en/api/loaders/peft#diffusers.loaders.PeftAdapterMixin">PeftAdapterMixin</a> class. This allows modeling classes in Diffusers like <a href="/docs/diffusers/main/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>, <a href="/docs/diffusers/main/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,Mt=`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,me,wt="Delete an adapter’s LoRA layers from the underlying model.",De,Y,He,G,K,ze,ce,_t="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,Me,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,we,jt="Set the currently active adapters for use in the UNet.",mt,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/main/src/diffusers/loaders/peft.py#L39"}}),H=new F({props:{name:"active_adapters",anchor:"diffusers.loaders.PeftAdapterMixin.active_adapters",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/peft.py#L243"}}),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/main/src/diffusers/loaders/peft.py#L111"}}),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/main/src/diffusers/loaders/peft.py#L361"}}),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/main/src/diffusers/loaders/peft.py#L198"}}),O=new F({props:{name:"disable_lora",anchor:"diffusers.loaders.PeftAdapterMixin.disable_lora",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/peft.py#L315"}}),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/main/src/diffusers/loaders/peft.py#L220"}}),te=new F({props:{name:"enable_lora",anchor:"diffusers.loaders.PeftAdapterMixin.enable_lora",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/peft.py#L338"}}),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/main/src/diffusers/loaders/peft.py#L149"}}),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/main/src/diffusers/loaders/peft.py#L55"}}),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=ct,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=Mt,Se=r(),j=o("div"),y(N.$$.fragment),Ae=r(),me=o("p"),me.textContent=wt,De=r(),y(Y.$$.fragment),He=r(),G=o("div"),y(K.$$.fragment),ze=r(),ce=o("p"),ce.textContent=_t,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(),Me=o("p"),Me.innerHTML=Ct,pt=r(),V=o("div"),y(se.$$.fragment),ft=r(),we=o("p"),we.textContent=jt,mt=r(),y(S.$$.fragment),Pe=r(),y(re.$$.fragment),Xe=r(),Je=o("p"),this.h()},l(e){const m=Vt("svelte-u9bgzb",document.head);s=i(m,"META",{name:!0,content:!0}),m.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-19ge5s3"&&(h.innerHTML=ct),Ce=n(e),b(L.$$.fragment,e),je=n(e),b(A.$$.fragment,e),Ge=n(e),f=i(e,"DIV",{class:!0});var c=T(f);b(D.$$.fragment,c),Fe=n(c),ne=i(c,"P",{"data-svelte-h":!0}),g(ne)!=="svelte-16jad6u"&&(ne.innerHTML=ut),Re=n(c),le=i(c,"P",{"data-svelte-h":!0}),g(le)!=="svelte-jgx411"&&(le.textContent=ht),Ee=n(c),oe=i(c,"UL",{"data-svelte-h":!0}),g(oe)!=="svelte-70o87y"&&(oe.innerHTML=gt),ke=n(c),Z=i(c,"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(c),C=i(c,"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=Mt),E.forEach(d),Se=n(c),j=i(c,"DIV",{class:!0});var k=T(j);b(N.$$.fragment,k),Ae=n(k),me=i(k,"P",{"data-svelte-h":!0}),g(me)!=="svelte-1oumhy2"&&(me.textContent=wt),De=n(k),b(Y.$$.fragment,k),k.forEach(d),He=n(c),G=i(c,"DIV",{class:!0});var B=T(G);b(K.$$.fragment,B),ze=n(B),ce=i(B,"P",{"data-svelte-h":!0}),g(ce)!=="svelte-stjif2"&&(ce.textContent=_t),Ne=n(B),ue=i(B,"P",{"data-svelte-h":!0}),g(ue)!=="svelte-pm6rj0"&&(ue.innerHTML=xt),B.forEach(d),Ke=n(c),P=i(c,"DIV",{class:!0});var _e=T(P);b(O.$$.fragment,_e),Oe=n(_e),he=i(_e,"P",{"data-svelte-h":!0}),g(he)!=="svelte-1w71mps"&&(he.textContent=vt),et=n(_e),b(q.$$.fragment,_e),_e.forEach(d),tt=n(c),X=i(c,"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(c),I=i(c,"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(c),W=i(c,"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),Me=i(Ue,"P",{"data-svelte-h":!0}),g(Me)!=="svelte-pm6rj0"&&(Me.innerHTML=Ct),Ue.forEach(d),pt=n(c),V=i(c,"DIV",{class:!0});var Te=T(V);b(se.$$.fragment,Te),ft=n(Te),we=i(Te,"P",{"data-svelte-h":!0}),g(we)!=="svelte-38gdgn"&&(we.textContent=jt),mt=n(Te),b(S.$$.fragment,Te),Te.forEach(d),c.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,m){a(document.head,s),x(e,v,m),x(e,p,m),x(e,l,m),$(u,e,m),x(e,t,m),x(e,h,m),x(e,Ce,m),$(L,e,m),x(e,je,m),$(A,e,m),x(e,Ge,m),x(e,f,m),$(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,me),a(j,De),$(Y,j,null),a(f,He),a(f,G),$(K,G,null),a(G,ze),a(G,ce),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,Me),a(f,pt),a(f,V),$(se,V,null),a(V,ft),a(V,we),a(V,mt),$(S,V,null),x(e,Pe,m),$(re,e,m),x(e,Xe,m),x(e,Je,m),Ie=!0},p(e,[m]){const c={};m&2&&(c.$$scope={dirty:m,ctx:e}),L.$set(c);const R={};m&2&&(R.$$scope={dirty:m,ctx:e}),Y.$set(R);const E={};m&2&&(E.$$scope={dirty:m,ctx:e}),q.$set(E);const k={};m&2&&(k.$$scope={dirty:m,ctx:e}),Q.$set(k);const B={};m&2&&(B.$$scope={dirty:m,ctx:e}),S.$set(B)},i(e){Ie||(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=!0)},o(e){w(u.$$.fragment,e),w(L.$$.fragment,e),w(A.$$.fragment,e),w(D.$$.fragment,e),w(H.$$.fragment,e),w(z.$$.fragment,e),w(N.$$.fragment,e),w(Y.$$.fragment,e),w(K.$$.fragment,e),w(O.$$.fragment,e),w(q.$$.fragment,e),w(ee.$$.fragment,e),w(te.$$.fragment,e),w(Q.$$.fragment,e),w(ae.$$.fragment,e),w(se.$$.fragment,e),w(S.$$.fragment,e),w(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),_(u,e),_(L,e),_(A,e),_(D),_(H),_(z),_(N),_(Y),_(K),_(O),_(q),_(ee),_(te),_(Q),_(ae),_(se),_(S),_(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};

Xet Storage Details

Size:
23.9 kB
·
Xet hash:
4a89da0d0d7905a5099666782f64287b485fb7ffd4570921603c0ef70d61fb83

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