Buckets:

rtrm's picture
download
raw
349 kB
import{s as jh,o as Gh,n as D}from"../chunks/scheduler.8c3d61f6.js";import{S as Zh,i as Bh,g as n,s as a,r as m,A as Yh,h as s,f as d,c as r,j as v,u as p,x as f,k as w,y as o,a as x,v as _,d as u,t as h,w as g}from"../chunks/index.da70eac4.js";import{T as A}from"../chunks/Tip.1d9b8c37.js";import{D as $}from"../chunks/Docstring.dcbc19b1.js";import{C as Ot}from"../chunks/CodeBlock.a9c4becf.js";import{E as Qt}from"../chunks/ExampleCodeBlock.da4c0768.js";import{H as Z,E as Qh}from"../chunks/getInferenceSnippets.86beaec3.js";function Oh(T){let t,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(){t=n("p"),t.innerHTML=b},l(c){t=s(c,"P",{"data-svelte-h":!0}),f(t)!=="svelte-1fw6lx1"&&(t.innerHTML=b)},m(c,l){x(c,t,l)},p:D,d(c){c&&d(t)}}}function Kh(T){let t,b="Example:",c,l,M;return l=new Ot({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(){t=n("p"),t.textContent=b,c=a(),m(l.$$.fragment)},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-11lpom8"&&(t.textContent=b),c=r(i),p(l.$$.fragment,i)},m(i,y){x(i,t,y),x(i,c,y),_(l,i,y),M=!0},p:D,i(i){M||(u(l.$$.fragment,i),M=!0)},o(i){h(l.$$.fragment,i),M=!1},d(i){i&&(d(t),d(c)),g(l,i)}}}function eg(T){let t,b="Example:",c,l,M;return l=new Ot({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(){t=n("p"),t.textContent=b,c=a(),m(l.$$.fragment)},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-11lpom8"&&(t.textContent=b),c=r(i),p(l.$$.fragment,i)},m(i,y){x(i,t,y),x(i,c,y),_(l,i,y),M=!0},p:D,i(i){M||(u(l.$$.fragment,i),M=!0)},o(i){h(l.$$.fragment,i),M=!1},d(i){i&&(d(t),d(c)),g(l,i)}}}function og(T){let t,b="Example:",c,l,M;return l=new Ot({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(){t=n("p"),t.textContent=b,c=a(),m(l.$$.fragment)},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-11lpom8"&&(t.textContent=b),c=r(i),p(l.$$.fragment,i)},m(i,y){x(i,t,y),x(i,c,y),_(l,i,y),M=!0},p:D,i(i){M||(u(l.$$.fragment,i),M=!0)},o(i){h(l.$$.fragment,i),M=!1},d(i){i&&(d(t),d(c)),g(l,i)}}}function tg(T){let t,b="This is an experimental API.";return{c(){t=n("p"),t.textContent=b},l(c){t=s(c,"P",{"data-svelte-h":!0}),f(t)!=="svelte-8w79b9"&&(t.textContent=b)},m(c,l){x(c,t,l)},p:D,d(c){c&&d(t)}}}function ag(T){let t,b="Example:",c,l,M;return l=new Ot({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">&quot;stabilityai/stable-diffusion-xl-base-1.0&quot;</span>, torch_dtype=torch.float16
).to(<span class="hljs-string">&quot;cuda&quot;</span>)
pipeline.load_lora_weights(<span class="hljs-string">&quot;nerijs/pixel-art-xl&quot;</span>, weight_name=<span class="hljs-string">&quot;pixel-art-xl.safetensors&quot;</span>, adapter_name=<span class="hljs-string">&quot;pixel&quot;</span>)
pipeline.fuse_lora(lora_scale=<span class="hljs-number">0.7</span>)`,wrap:!1}}),{c(){t=n("p"),t.textContent=b,c=a(),m(l.$$.fragment)},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-11lpom8"&&(t.textContent=b),c=r(i),p(l.$$.fragment,i)},m(i,y){x(i,t,y),x(i,c,y),_(l,i,y),M=!0},p:D,i(i){M||(u(l.$$.fragment,i),M=!0)},o(i){h(l.$$.fragment,i),M=!1},d(i){i&&(d(t),d(c)),g(l,i)}}}function rg(T){let t,b="Example:",c,l,M;return l=new Ot({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">&quot;stabilityai/stable-diffusion-xl-base-1.0&quot;</span>,
).to(<span class="hljs-string">&quot;cuda&quot;</span>)
pipeline.load_lora_weights(<span class="hljs-string">&quot;CiroN2022/toy-face&quot;</span>, weight_name=<span class="hljs-string">&quot;toy_face_sdxl.safetensors&quot;</span>, adapter_name=<span class="hljs-string">&quot;toy&quot;</span>)
pipeline.get_active_adapters()`,wrap:!1}}),{c(){t=n("p"),t.textContent=b,c=a(),m(l.$$.fragment)},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-11lpom8"&&(t.textContent=b),c=r(i),p(l.$$.fragment,i)},m(i,y){x(i,t,y),x(i,c,y),_(l,i,y),M=!0},p:D,i(i){M||(u(l.$$.fragment,i),M=!0)},o(i){h(l.$$.fragment,i),M=!1},d(i){i&&(d(t),d(c)),g(l,i)}}}function ng(T){let t,b="Example:",c,l,M;return l=new Ot({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(){t=n("p"),t.textContent=b,c=a(),m(l.$$.fragment)},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-11lpom8"&&(t.textContent=b),c=r(i),p(l.$$.fragment,i)},m(i,y){x(i,t,y),x(i,c,y),_(l,i,y),M=!0},p:D,i(i){M||(u(l.$$.fragment,i),M=!0)},o(i){h(l.$$.fragment,i),M=!1},d(i){i&&(d(t),d(c)),g(l,i)}}}function sg(T){let t,b="This is an experimental API.";return{c(){t=n("p"),t.textContent=b},l(c){t=s(c,"P",{"data-svelte-h":!0}),f(t)!=="svelte-8w79b9"&&(t.textContent=b)},m(c,l){x(c,t,l)},p:D,d(c){c&&d(t)}}}function ig(T){let t,b="Examples:",c,l,M;return l=new Ot({props:{code:"JTIzJTIwQXNzdW1pbmclMjAlNjBwaXBlbGluZSU2MCUyMGlzJTIwYWxyZWFkeSUyMGxvYWRlZCUyMHdpdGglMjB0aGUlMjBMb1JBJTIwcGFyYW1ldGVycy4lMEFwaXBlbGluZS51bmxvYWRfbG9yYV93ZWlnaHRzKCklMEEuLi4=",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Assuming `pipeline` is already loaded with the LoRA parameters.</span>\n<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline.unload_lora_weights()\n<span class="hljs-meta">&gt;&gt;&gt; </span>...',wrap:!1}}),{c(){t=n("p"),t.textContent=b,c=a(),m(l.$$.fragment)},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-kvfsh7"&&(t.textContent=b),c=r(i),p(l.$$.fragment,i)},m(i,y){x(i,t,y),x(i,c,y),_(l,i,y),M=!0},p:D,i(i){M||(u(l.$$.fragment,i),M=!0)},o(i){h(l.$$.fragment,i),M=!1},d(i){i&&(d(t),d(c)),g(l,i)}}}function dg(T){let t,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,l,M="This function is experimental and might change in the future.";return{c(){t=n("p"),t.textContent=b,c=a(),l=n("p"),l.textContent=M},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-15l1sdn"&&(t.textContent=b),c=r(i),l=s(i,"P",{"data-svelte-h":!0}),f(l)!=="svelte-3fufvn"&&(l.textContent=M)},m(i,y){x(i,t,y),x(i,c,y),x(i,l,y)},p:D,d(i){i&&(d(t),d(c),d(l))}}}function lg(T){let t,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,l,M="This function is experimental and might change in the future.";return{c(){t=n("p"),t.textContent=b,c=a(),l=n("p"),l.textContent=M},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-15l1sdn"&&(t.textContent=b),c=r(i),l=s(i,"P",{"data-svelte-h":!0}),f(l)!=="svelte-3fufvn"&&(l.textContent=M)},m(i,y){x(i,t,y),x(i,c,y),x(i,l,y)},p:D,d(i){i&&(d(t),d(c),d(l))}}}function cg(T){let t,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,l,M="This function is experimental and might change in the future.";return{c(){t=n("p"),t.textContent=b,c=a(),l=n("p"),l.textContent=M},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-15l1sdn"&&(t.textContent=b),c=r(i),l=s(i,"P",{"data-svelte-h":!0}),f(l)!=="svelte-3fufvn"&&(l.textContent=M)},m(i,y){x(i,t,y),x(i,c,y),x(i,l,y)},p:D,d(i){i&&(d(t),d(c),d(l))}}}function fg(T){let t,b="This is an experimental API.";return{c(){t=n("p"),t.textContent=b},l(c){t=s(c,"P",{"data-svelte-h":!0}),f(t)!=="svelte-8w79b9"&&(t.textContent=b)},m(c,l){x(c,t,l)},p:D,d(c){c&&d(t)}}}function mg(T){let t,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,l,M="This function is experimental and might change in the future.";return{c(){t=n("p"),t.textContent=b,c=a(),l=n("p"),l.textContent=M},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-15l1sdn"&&(t.textContent=b),c=r(i),l=s(i,"P",{"data-svelte-h":!0}),f(l)!=="svelte-3fufvn"&&(l.textContent=M)},m(i,y){x(i,t,y),x(i,c,y),x(i,l,y)},p:D,d(i){i&&(d(t),d(c),d(l))}}}function pg(T){let t,b="This is an experimental API.";return{c(){t=n("p"),t.textContent=b},l(c){t=s(c,"P",{"data-svelte-h":!0}),f(t)!=="svelte-8w79b9"&&(t.textContent=b)},m(c,l){x(c,t,l)},p:D,d(c){c&&d(t)}}}function _g(T){let t,b="Examples:",c,l,M;return l=new Ot({props:{code:"JTIzJTIwQXNzdW1pbmclMjAlNjBwaXBlbGluZSU2MCUyMGlzJTIwYWxyZWFkeSUyMGxvYWRlZCUyMHdpdGglMjB0aGUlMjBMb1JBJTIwcGFyYW1ldGVycy4lMEFwaXBlbGluZS51bmxvYWRfbG9yYV93ZWlnaHRzKCklMEEuLi4=",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Assuming `pipeline` is already loaded with the LoRA parameters.</span>\n<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline.unload_lora_weights()\n<span class="hljs-meta">&gt;&gt;&gt; </span>...',wrap:!1}}),{c(){t=n("p"),t.textContent=b,c=a(),m(l.$$.fragment)},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-kvfsh7"&&(t.textContent=b),c=r(i),p(l.$$.fragment,i)},m(i,y){x(i,t,y),x(i,c,y),_(l,i,y),M=!0},p:D,i(i){M||(u(l.$$.fragment,i),M=!0)},o(i){h(l.$$.fragment,i),M=!1},d(i){i&&(d(t),d(c)),g(l,i)}}}function ug(T){let t,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,l,M="This function is experimental and might change in the future.";return{c(){t=n("p"),t.textContent=b,c=a(),l=n("p"),l.textContent=M},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-15l1sdn"&&(t.textContent=b),c=r(i),l=s(i,"P",{"data-svelte-h":!0}),f(l)!=="svelte-3fufvn"&&(l.textContent=M)},m(i,y){x(i,t,y),x(i,c,y),x(i,l,y)},p:D,d(i){i&&(d(t),d(c),d(l))}}}function hg(T){let t,b="This is an experimental API.";return{c(){t=n("p"),t.textContent=b},l(c){t=s(c,"P",{"data-svelte-h":!0}),f(t)!=="svelte-8w79b9"&&(t.textContent=b)},m(c,l){x(c,t,l)},p:D,d(c){c&&d(t)}}}function gg(T){let t,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,l,M="This function is experimental and might change in the future.";return{c(){t=n("p"),t.textContent=b,c=a(),l=n("p"),l.textContent=M},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-15l1sdn"&&(t.textContent=b),c=r(i),l=s(i,"P",{"data-svelte-h":!0}),f(l)!=="svelte-3fufvn"&&(l.textContent=M)},m(i,y){x(i,t,y),x(i,c,y),x(i,l,y)},p:D,d(i){i&&(d(t),d(c),d(l))}}}function Lg(T){let t,b="This is an experimental API.";return{c(){t=n("p"),t.textContent=b},l(c){t=s(c,"P",{"data-svelte-h":!0}),f(t)!=="svelte-8w79b9"&&(t.textContent=b)},m(c,l){x(c,t,l)},p:D,d(c){c&&d(t)}}}function xg(T){let t,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,l,M="This function is experimental and might change in the future.";return{c(){t=n("p"),t.textContent=b,c=a(),l=n("p"),l.textContent=M},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-15l1sdn"&&(t.textContent=b),c=r(i),l=s(i,"P",{"data-svelte-h":!0}),f(l)!=="svelte-3fufvn"&&(l.textContent=M)},m(i,y){x(i,t,y),x(i,c,y),x(i,l,y)},p:D,d(i){i&&(d(t),d(c),d(l))}}}function bg(T){let t,b="This is an experimental API.";return{c(){t=n("p"),t.textContent=b},l(c){t=s(c,"P",{"data-svelte-h":!0}),f(t)!=="svelte-8w79b9"&&(t.textContent=b)},m(c,l){x(c,t,l)},p:D,d(c){c&&d(t)}}}function vg(T){let t,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,l,M="This function is experimental and might change in the future.";return{c(){t=n("p"),t.textContent=b,c=a(),l=n("p"),l.textContent=M},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-15l1sdn"&&(t.textContent=b),c=r(i),l=s(i,"P",{"data-svelte-h":!0}),f(l)!=="svelte-3fufvn"&&(l.textContent=M)},m(i,y){x(i,t,y),x(i,c,y),x(i,l,y)},p:D,d(i){i&&(d(t),d(c),d(l))}}}function wg(T){let t,b="This is an experimental API.";return{c(){t=n("p"),t.textContent=b},l(c){t=s(c,"P",{"data-svelte-h":!0}),f(t)!=="svelte-8w79b9"&&(t.textContent=b)},m(c,l){x(c,t,l)},p:D,d(c){c&&d(t)}}}function $g(T){let t,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,l,M="This function is experimental and might change in the future.";return{c(){t=n("p"),t.textContent=b,c=a(),l=n("p"),l.textContent=M},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-15l1sdn"&&(t.textContent=b),c=r(i),l=s(i,"P",{"data-svelte-h":!0}),f(l)!=="svelte-3fufvn"&&(l.textContent=M)},m(i,y){x(i,t,y),x(i,c,y),x(i,l,y)},p:D,d(i){i&&(d(t),d(c),d(l))}}}function yg(T){let t,b="This is an experimental API.";return{c(){t=n("p"),t.textContent=b},l(c){t=s(c,"P",{"data-svelte-h":!0}),f(t)!=="svelte-8w79b9"&&(t.textContent=b)},m(c,l){x(c,t,l)},p:D,d(c){c&&d(t)}}}function Mg(T){let t,b="We support loading original format HunyuanVideo LoRA checkpoints.",c,l,M="This function is experimental and might change in the future.";return{c(){t=n("p"),t.textContent=b,c=a(),l=n("p"),l.textContent=M},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-gyrs6h"&&(t.textContent=b),c=r(i),l=s(i,"P",{"data-svelte-h":!0}),f(l)!=="svelte-3fufvn"&&(l.textContent=M)},m(i,y){x(i,t,y),x(i,c,y),x(i,l,y)},p:D,d(i){i&&(d(t),d(c),d(l))}}}function Tg(T){let t,b="This is an experimental API.";return{c(){t=n("p"),t.textContent=b},l(c){t=s(c,"P",{"data-svelte-h":!0}),f(t)!=="svelte-8w79b9"&&(t.textContent=b)},m(c,l){x(c,t,l)},p:D,d(c){c&&d(t)}}}function Dg(T){let t,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,l,M="This function is experimental and might change in the future.";return{c(){t=n("p"),t.textContent=b,c=a(),l=n("p"),l.textContent=M},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-15l1sdn"&&(t.textContent=b),c=r(i),l=s(i,"P",{"data-svelte-h":!0}),f(l)!=="svelte-3fufvn"&&(l.textContent=M)},m(i,y){x(i,t,y),x(i,c,y),x(i,l,y)},p:D,d(i){i&&(d(t),d(c),d(l))}}}function Cg(T){let t,b="This is an experimental API.";return{c(){t=n("p"),t.textContent=b},l(c){t=s(c,"P",{"data-svelte-h":!0}),f(t)!=="svelte-8w79b9"&&(t.textContent=b)},m(c,l){x(c,t,l)},p:D,d(c){c&&d(t)}}}function Sg(T){let t,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,l,M="This function is experimental and might change in the future.";return{c(){t=n("p"),t.textContent=b,c=a(),l=n("p"),l.textContent=M},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-15l1sdn"&&(t.textContent=b),c=r(i),l=s(i,"P",{"data-svelte-h":!0}),f(l)!=="svelte-3fufvn"&&(l.textContent=M)},m(i,y){x(i,t,y),x(i,c,y),x(i,l,y)},p:D,d(i){i&&(d(t),d(c),d(l))}}}function Ag(T){let t,b="This is an experimental API.";return{c(){t=n("p"),t.textContent=b},l(c){t=s(c,"P",{"data-svelte-h":!0}),f(t)!=="svelte-8w79b9"&&(t.textContent=b)},m(c,l){x(c,t,l)},p:D,d(c){c&&d(t)}}}function kg(T){let t,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,l,M="This function is experimental and might change in the future.";return{c(){t=n("p"),t.textContent=b,c=a(),l=n("p"),l.textContent=M},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-15l1sdn"&&(t.textContent=b),c=r(i),l=s(i,"P",{"data-svelte-h":!0}),f(l)!=="svelte-3fufvn"&&(l.textContent=M)},m(i,y){x(i,t,y),x(i,c,y),x(i,l,y)},p:D,d(i){i&&(d(t),d(c),d(l))}}}function Rg(T){let t,b="This is an experimental API.";return{c(){t=n("p"),t.textContent=b},l(c){t=s(c,"P",{"data-svelte-h":!0}),f(t)!=="svelte-8w79b9"&&(t.textContent=b)},m(c,l){x(c,t,l)},p:D,d(c){c&&d(t)}}}function Ig(T){let t,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,l,M="This function is experimental and might change in the future.";return{c(){t=n("p"),t.textContent=b,c=a(),l=n("p"),l.textContent=M},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-15l1sdn"&&(t.textContent=b),c=r(i),l=s(i,"P",{"data-svelte-h":!0}),f(l)!=="svelte-3fufvn"&&(l.textContent=M)},m(i,y){x(i,t,y),x(i,c,y),x(i,l,y)},p:D,d(i){i&&(d(t),d(c),d(l))}}}function Vg(T){let t,b="This is an experimental API.";return{c(){t=n("p"),t.textContent=b},l(c){t=s(c,"P",{"data-svelte-h":!0}),f(t)!=="svelte-8w79b9"&&(t.textContent=b)},m(c,l){x(c,t,l)},p:D,d(c){c&&d(t)}}}function Pg(T){let t,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,l,M="This function is experimental and might change in the future.";return{c(){t=n("p"),t.textContent=b,c=a(),l=n("p"),l.textContent=M},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-15l1sdn"&&(t.textContent=b),c=r(i),l=s(i,"P",{"data-svelte-h":!0}),f(l)!=="svelte-3fufvn"&&(l.textContent=M)},m(i,y){x(i,t,y),x(i,c,y),x(i,l,y)},p:D,d(i){i&&(d(t),d(c),d(l))}}}function Wg(T){let t,b="This is an experimental API.";return{c(){t=n("p"),t.textContent=b},l(c){t=s(c,"P",{"data-svelte-h":!0}),f(t)!=="svelte-8w79b9"&&(t.textContent=b)},m(c,l){x(c,t,l)},p:D,d(c){c&&d(t)}}}function Hg(T){let t,b,c,l,M,i,y,C_='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_11438/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>, for example) or a Transformer (<a href="/docs/diffusers/pr_11438/en/api/models/sd3_transformer2d#diffusers.SD3Transformer2DModel">SD3Transformer2DModel</a>, for example). There are several classes for loading LoRA weights:',$d,Kt,S_='<li><code>StableDiffusionLoraLoaderMixin</code> provides functions for loading and unloading, fusing and unfusing, enabling and disabling, and more functions for managing LoRA weights. This class can be used with any model.</li> <li><code>StableDiffusionXLLoraLoaderMixin</code> is a <a href="../../api/pipelines/stable_diffusion/stable_diffusion_xl">Stable Diffusion (SDXL)</a> version of the <code>StableDiffusionLoraLoaderMixin</code> class for loading and saving LoRA weights. It can only be used with the SDXL model.</li> <li><code>SD3LoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/blog/sd3" rel="nofollow">Stable Diffusion 3</a>.</li> <li><code>FluxLoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/flux" rel="nofollow">Flux</a>.</li> <li><code>CogVideoXLoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/cogvideox" rel="nofollow">CogVideoX</a>.</li> <li><code>Mochi1LoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/mochi" rel="nofollow">Mochi</a>.</li> <li><code>AuraFlowLoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/fal/AuraFlow" rel="nofollow">AuraFlow</a>.</li> <li><code>LTXVideoLoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/ltx_video" rel="nofollow">LTX-Video</a>.</li> <li><code>SanaLoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/sana" rel="nofollow">Sana</a>.</li> <li><code>HunyuanVideoLoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/hunyuan_video" rel="nofollow">HunyuanVideo</a>.</li> <li><code>Lumina2LoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/lumina2" rel="nofollow">Lumina2</a>.</li> <li><code>WanLoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/wan" rel="nofollow">Wan</a>.</li> <li><code>CogView4LoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/cogview4" rel="nofollow">CogView4</a>.</li> <li><code>AmusedLoraLoaderMixin</code> is for the <a href="/docs/diffusers/pr_11438/en/api/pipelines/amused#diffusers.AmusedPipeline">AmusedPipeline</a>.</li> <li><code>HiDreamImageLoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/hidream" rel="nofollow">HiDream Image</a></li> <li><code>LoraBaseMixin</code> provides a base class with several utility methods to fuse, unfuse, unload, LoRAs and more.</li>',yd,uo,Md,ea,Td,C,oa,zl,Wn,A_="Utility class for handling LoRAs.",ql,xe,ta,Jl,Hn,k_="Delete an adapter’s LoRA layers from the pipeline.",jl,ho,Gl,be,aa,Zl,Un,R_="Disables the active LoRA layers of the pipeline.",Bl,go,Yl,ve,ra,Ql,Fn,I_="Enables the active LoRA layers of the pipeline.",Ol,Lo,Kl,xo,na,ec,Xn,V_=`Hotswap adapters without triggering recompilation of a model or if the ranks of the loaded adapters are
different.`,oc,he,sa,tc,En,P_="Fuses the LoRA parameters into the original parameters of the corresponding blocks.",ac,bo,rc,vo,nc,we,ia,sc,Nn,W_="Gets the list of the current active adapters.",ic,wo,dc,$o,da,lc,zn,H_="Gets the current list of all available adapters in the pipeline.",cc,$e,la,fc,qn,U_="Set the currently active adapters for use in the pipeline.",mc,yo,pc,Mo,ca,_c,Jn,F_=`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.`,uc,ye,fa,hc,jn,X_=`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>.`,gc,To,Lc,Me,ma,xc,Gn,E_="Unloads the LoRA parameters.",bc,Do,vc,Co,pa,wc,Zn,N_="Writes the state dict of the LoRA layers (optionally with metadata) to disk.",Dd,_a,Cd,P,ua,$c,Bn,z_=`Load LoRA layers into Stable Diffusion <a href="/docs/diffusers/pr_11438/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>.`,yc,So,ha,Mc,Yn,q_="This will load the LoRA layers specified in <code>state_dict</code> into <code>text_encoder</code>",Tc,Ao,ga,Dc,Qn,J_="This will load the LoRA layers specified in <code>state_dict</code> into <code>unet</code>.",Cc,Q,La,Sc,On,j_=`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>.`,Ac,Kn,G_="All kwargs are forwarded to <code>self.lora_state_dict</code>.",kc,es,Z_=`See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details on how the state dict is
loaded.`,Rc,os,B_=`See <a href="/docs/diffusers/pr_11438/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>.`,Ic,ts,Y_=`See <a href="/docs/diffusers/pr_11438/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>.`,Vc,Te,xa,Pc,as,Q_="Return state dict for lora weights and the network alphas.",Wc,ko,Hc,Ro,ba,Uc,rs,O_="Save the LoRA parameters corresponding to the UNet and text encoder.",Sd,va,Ad,W,wa,Fc,ns,K_=`Load LoRA layers into Stable Diffusion XL <a href="/docs/diffusers/pr_11438/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>.`,Xc,Io,$a,Ec,ss,eu="This will load the LoRA layers specified in <code>state_dict</code> into <code>text_encoder</code>",Nc,Vo,ya,zc,is,ou="This will load the LoRA layers specified in <code>state_dict</code> into <code>unet</code>.",qc,O,Ma,Jc,ds,tu=`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>.`,jc,ls,au="All kwargs are forwarded to <code>self.lora_state_dict</code>.",Gc,cs,ru=`See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details on how the state dict is
loaded.`,Zc,fs,nu=`See <a href="/docs/diffusers/pr_11438/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>.`,Bc,ms,su=`See <a href="/docs/diffusers/pr_11438/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>.`,Yc,De,Ta,Qc,ps,iu="Return state dict for lora weights and the network alphas.",Oc,Po,Kc,Wo,Da,ef,_s,du="Save the LoRA parameters corresponding to the UNet and text encoder.",kd,Ca,Rd,R,Sa,of,us,lu=`Load LoRA layers into <a href="/docs/diffusers/pr_11438/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>.`,tf,hs,cu='Specific to <a href="/docs/diffusers/pr_11438/en/api/pipelines/stable_diffusion/stable_diffusion_3#diffusers.StableDiffusion3Pipeline">StableDiffusion3Pipeline</a>.',af,Ho,Aa,rf,gs,fu="This will load the LoRA layers specified in <code>state_dict</code> into <code>text_encoder</code>",nf,Uo,ka,sf,Ls,mu="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",df,oe,Ra,lf,xs,pu=`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>.`,cf,bs,_u="All kwargs are forwarded to <code>self.lora_state_dict</code>.",ff,vs,uu=`See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details on how the state dict is
loaded.`,mf,ws,hu=`See <code>~loaders.StableDiffusionLoraLoaderMixin.load_lora_into_transformer</code> for more details on how the state
dict is loaded into <code>self.transformer</code>.`,pf,Ce,Ia,_f,$s,gu="Return state dict for lora weights and the network alphas.",uf,Fo,hf,Xo,Va,gf,ys,Lu="Save the LoRA parameters corresponding to the UNet and text encoder.",Lf,Se,Pa,xf,Ms,xu=`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>.`,bf,Eo,Id,Wa,Vd,k,Ha,vf,Ts,bu=`Load LoRA layers into <a href="/docs/diffusers/pr_11438/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>.`,wf,Ds,vu='Specific to <a href="/docs/diffusers/pr_11438/en/api/pipelines/stable_diffusion/stable_diffusion_3#diffusers.StableDiffusion3Pipeline">StableDiffusion3Pipeline</a>.',$f,No,Ua,yf,Cs,wu="This will load the LoRA layers specified in <code>state_dict</code> into <code>text_encoder</code>",Mf,zo,Fa,Tf,Ss,$u="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",Df,te,Xa,Cf,As,yu=`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>.`,Sf,ks,Mu="All kwargs are forwarded to <code>self.lora_state_dict</code>.",Af,Rs,Tu=`See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details on how the state dict is
loaded.`,kf,Is,Du=`See <code>~loaders.StableDiffusionLoraLoaderMixin.load_lora_into_transformer</code> for more details on how the state
dict is loaded into <code>self.transformer</code>.`,Rf,Ae,Ea,If,Vs,Cu="Return state dict for lora weights and the network alphas.",Vf,qo,Pf,Jo,Na,Wf,Ps,Su="Save the LoRA parameters corresponding to the UNet and text encoder.",Hf,ke,za,Uf,Ws,Au=`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>.`,Ff,jo,Xf,Re,qa,Ef,Hs,ku="Unloads the LoRA parameters.",Nf,Go,Pd,Ja,Wd,H,ja,zf,Us,Ru='Load LoRA layers into <a href="/docs/diffusers/pr_11438/en/api/models/cogvideox_transformer3d#diffusers.CogVideoXTransformer3DModel">CogVideoXTransformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_11438/en/api/pipelines/cogvideox#diffusers.CogVideoXPipeline">CogVideoXPipeline</a>.',qf,Zo,Ga,Jf,Fs,Iu="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",jf,Bo,Za,Gf,Xs,Vu=`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_11438/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>.`,Zf,Ie,Ba,Bf,Es,Pu="Return state dict for lora weights and the network alphas.",Yf,Yo,Qf,Qo,Ya,Of,Ns,Wu="Save the LoRA parameters corresponding to the transformer.",Kf,Ve,Qa,em,zs,Hu=`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>.`,om,Oo,Hd,Oa,Ud,U,Ka,tm,qs,Uu='Load LoRA layers into <a href="/docs/diffusers/pr_11438/en/api/models/mochi_transformer3d#diffusers.MochiTransformer3DModel">MochiTransformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_11438/en/api/pipelines/mochi#diffusers.MochiPipeline">MochiPipeline</a>.',am,Ko,er,rm,Js,Fu="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",nm,et,or,sm,js,Xu=`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_11438/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>.`,im,Pe,tr,dm,Gs,Eu="Return state dict for lora weights and the network alphas.",lm,ot,cm,tt,ar,fm,Zs,Nu="Save the LoRA parameters corresponding to the transformer.",mm,We,rr,pm,Bs,zu=`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>.`,_m,at,Fd,nr,Xd,F,sr,um,Ys,qu='Load LoRA layers into <a href="/docs/diffusers/pr_11438/en/api/models/aura_flow_transformer2d#diffusers.AuraFlowTransformer2DModel">AuraFlowTransformer2DModel</a> Specific to <a href="/docs/diffusers/pr_11438/en/api/pipelines/aura_flow#diffusers.AuraFlowPipeline">AuraFlowPipeline</a>.',hm,rt,ir,gm,Qs,Ju="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",Lm,nt,dr,xm,Os,ju=`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_11438/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>.`,bm,He,lr,vm,Ks,Gu="Return state dict for lora weights and the network alphas.",wm,st,$m,it,cr,ym,ei,Zu="Save the LoRA parameters corresponding to the transformer.",Mm,Ue,fr,Tm,oi,Bu=`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>.`,Dm,dt,Ed,mr,Nd,X,pr,Cm,ti,Yu='Load LoRA layers into <a href="/docs/diffusers/pr_11438/en/api/models/ltx_video_transformer3d#diffusers.LTXVideoTransformer3DModel">LTXVideoTransformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_11438/en/api/pipelines/ltx_video#diffusers.LTXPipeline">LTXPipeline</a>.',Sm,lt,_r,Am,ai,Qu="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",km,ct,ur,Rm,ri,Ou=`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_11438/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>.`,Im,Fe,hr,Vm,ni,Ku="Return state dict for lora weights and the network alphas.",Pm,ft,Wm,mt,gr,Hm,si,eh="Save the LoRA parameters corresponding to the transformer.",Um,Xe,Lr,Fm,ii,oh=`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>.`,Xm,pt,zd,xr,qd,E,br,Em,di,th='Load LoRA layers into <a href="/docs/diffusers/pr_11438/en/api/models/sana_transformer2d#diffusers.SanaTransformer2DModel">SanaTransformer2DModel</a>. Specific to <a href="/docs/diffusers/pr_11438/en/api/pipelines/sana#diffusers.SanaPipeline">SanaPipeline</a>.',Nm,_t,vr,zm,li,ah="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",qm,ut,wr,Jm,ci,rh=`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_11438/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>.`,jm,Ee,$r,Gm,fi,nh="Return state dict for lora weights and the network alphas.",Zm,ht,Bm,gt,yr,Ym,mi,sh="Save the LoRA parameters corresponding to the transformer.",Qm,Ne,Mr,Om,pi,ih=`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>.`,Km,Lt,Jd,Tr,jd,N,Dr,ep,_i,dh='Load LoRA layers into <a href="/docs/diffusers/pr_11438/en/api/models/hunyuan_video_transformer_3d#diffusers.HunyuanVideoTransformer3DModel">HunyuanVideoTransformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_11438/en/api/pipelines/hunyuan_video#diffusers.HunyuanVideoPipeline">HunyuanVideoPipeline</a>.',op,xt,Cr,tp,ui,lh="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",ap,bt,Sr,rp,hi,ch=`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_11438/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>.`,np,ze,Ar,sp,gi,fh="Return state dict for lora weights and the network alphas.",ip,vt,dp,wt,kr,lp,Li,mh="Save the LoRA parameters corresponding to the transformer.",cp,qe,Rr,fp,xi,ph=`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>.`,mp,$t,Gd,Ir,Zd,z,Vr,pp,bi,_h='Load LoRA layers into <a href="/docs/diffusers/pr_11438/en/api/models/lumina2_transformer2d#diffusers.Lumina2Transformer2DModel">Lumina2Transformer2DModel</a>. Specific to <code>Lumina2Text2ImgPipeline</code>.',_p,yt,Pr,up,vi,uh="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",hp,Mt,Wr,gp,wi,hh=`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_11438/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>.`,Lp,Je,Hr,xp,$i,gh="Return state dict for lora weights and the network alphas.",bp,Tt,vp,Dt,Ur,wp,yi,Lh="Save the LoRA parameters corresponding to the transformer.",$p,je,Fr,yp,Mi,xh=`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>.`,Mp,Ct,Bd,Xr,Yd,q,Er,Tp,Ti,bh='Load LoRA layers into <a href="/docs/diffusers/pr_11438/en/api/models/wan_transformer_3d#diffusers.WanTransformer3DModel">WanTransformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_11438/en/api/pipelines/cogview4#diffusers.CogView4Pipeline">CogView4Pipeline</a>.',Dp,St,Nr,Cp,Di,vh="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",Sp,At,zr,Ap,Ci,wh=`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_11438/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>.`,kp,Ge,qr,Rp,Si,$h="Return state dict for lora weights and the network alphas.",Ip,kt,Vp,Rt,Jr,Pp,Ai,yh="Save the LoRA parameters corresponding to the transformer.",Wp,Ze,jr,Hp,ki,Mh=`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>.`,Up,It,Qd,Gr,Od,J,Zr,Fp,Ri,Th='Load LoRA layers into <a href="/docs/diffusers/pr_11438/en/api/models/wan_transformer_3d#diffusers.WanTransformer3DModel">WanTransformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_11438/en/api/pipelines/wan#diffusers.WanPipeline">WanPipeline</a> and <code>[WanImageToVideoPipeline</code>].',Xp,Vt,Br,Ep,Ii,Dh="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",Np,Pt,Yr,zp,Vi,Ch=`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_11438/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>.`,qp,Be,Qr,Jp,Pi,Sh="Return state dict for lora weights and the network alphas.",jp,Wt,Gp,Ht,Or,Zp,Wi,Ah="Save the LoRA parameters corresponding to the transformer.",Bp,Ye,Kr,Yp,Hi,kh=`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>.`,Qp,Ut,Kd,en,el,ge,on,Op,Ft,tn,Kp,Ui,Rh="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",e_,Xt,an,o_,Fi,Ih="Save the LoRA parameters corresponding to the UNet and text encoder.",ol,rn,tl,j,nn,t_,Xi,Vh='Load LoRA layers into <a href="/docs/diffusers/pr_11438/en/api/models/hidream_image_transformer#diffusers.HiDreamImageTransformer2DModel">HiDreamImageTransformer2DModel</a>. Specific to <a href="/docs/diffusers/pr_11438/en/api/pipelines/hidream#diffusers.HiDreamImagePipeline">HiDreamImagePipeline</a>.',a_,Et,sn,r_,Ei,Ph="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",n_,Nt,dn,s_,Ni,Wh=`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_11438/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>.`,i_,Qe,ln,d_,zi,Hh="Return state dict for lora weights and the network alphas.",l_,zt,c_,qt,cn,f_,qi,Uh="Save the LoRA parameters corresponding to the transformer.",m_,Oe,fn,p_,Ji,Fh=`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>.`,__,Jt,al,mn,rl,G,pn,u_,ji,Xh='Load LoRA layers into <a href="/docs/diffusers/pr_11438/en/api/models/wan_transformer_3d#diffusers.WanTransformer3DModel">WanTransformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_11438/en/api/pipelines/wan#diffusers.WanPipeline">WanPipeline</a> and <code>[WanImageToVideoPipeline</code>].',h_,jt,_n,g_,Gi,Eh="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",L_,Gt,un,x_,Zi,Nh=`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_11438/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>.`,b_,Ke,hn,v_,Bi,zh="Return state dict for lora weights and the network alphas.",w_,Zt,$_,Bt,gn,y_,Yi,qh="Save the LoRA parameters corresponding to the transformer.",M_,eo,Ln,T_,Qi,Jh=`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>.`,D_,Yt,nl,xn,sl,wd,il;return M=new Z({props:{title:"LoRA",local:"lora",headingTag:"h1"}}),uo=new A({props:{$$slots:{default:[Oh]},$$scope:{ctx:T}}}),ea=new Z({props:{title:"LoraBaseMixin",local:"diffusers.loaders.lora_base.LoraBaseMixin",headingTag:"h2"}}),oa=new $({props:{name:"class diffusers.loaders.lora_base.LoraBaseMixin",anchor:"diffusers.loaders.lora_base.LoraBaseMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_base.py#L462"}}),ta=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.adapter_names",description:`<strong>adapter_names</strong> (<code>Union[List[str], str]</code>) &#x2014;
The names of the adapters to delete.`,name:"adapter_names"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_base.py#L826"}}),ho=new Qt({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.delete_adapters.example",$$slots:{default:[Kh]},$$scope:{ctx:T}}}),aa=new $({props:{name:"disable_lora",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.disable_lora",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_base.py#L766"}}),go=new Qt({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.disable_lora.example",$$slots:{default:[eg]},$$scope:{ctx:T}}}),ra=new $({props:{name:"enable_lora",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.enable_lora",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_base.py#L796"}}),Lo=new Qt({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.enable_lora.example",$$slots:{default:[og]},$$scope:{ctx:T}}}),na=new $({props:{name:"enable_lora_hotswap",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.enable_lora_hotswap",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.enable_lora_hotswap.target_rank",description:`<strong>target_rank</strong> (<code>int</code>) &#x2014;
The highest rank among all the adapters that will be loaded.`,name:"target_rank"},{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.enable_lora_hotswap.check_compiled",description:`<strong>check_compiled</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;error&quot;</code>) &#x2014;
How to handle a model that is already compiled. The check can return the following messages:<ul>
<li>&#x201C;error&#x201D; (default): raise an error</li>
<li>&#x201C;warn&#x201D;: issue a warning</li>
<li>&#x201C;ignore&#x201D;: do nothing</li>
</ul>`,name:"check_compiled"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_base.py#L948"}}),sa=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> &#x2014; (<code>List[str]</code>): List of LoRA-injectable components to fuse the LoRAs into.",name:"components"},{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.fuse_lora.lora_scale",description:`<strong>lora_scale</strong> (<code>float</code>, defaults to 1.0) &#x2014;
Controls how much to influence the outputs with the LoRA parameters.`,name:"lora_scale"},{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.fuse_lora.safe_fusing",description:`<strong>safe_fusing</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014;
Whether to check fused weights for NaN values before fusing and if values are NaN not fusing them.`,name:"safe_fusing"},{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.fuse_lora.adapter_names",description:`<strong>adapter_names</strong> (<code>List[str]</code>, <em>optional</em>) &#x2014;
Adapter names to be used for fusing. If nothing is passed, all active adapters will be fused.`,name:"adapter_names"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_base.py#L520"}}),bo=new A({props:{warning:!0,$$slots:{default:[tg]},$$scope:{ctx:T}}}),vo=new Qt({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.fuse_lora.example",$$slots:{default:[ag]},$$scope:{ctx:T}}}),ia=new $({props:{name:"get_active_adapters",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.get_active_adapters",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_base.py#L864"}}),wo=new Qt({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.get_active_adapters.example",$$slots:{default:[rg]},$$scope:{ctx:T}}}),da=new $({props:{name:"get_list_adapters",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.get_list_adapters",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_base.py#L897"}}),la=new $({props:{name:"set_adapters",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_adapters",parameters:[{name:"adapter_names",val:": typing.Union[typing.List[str], str]"},{name:"adapter_weights",val:": typing.Union[float, typing.Dict, typing.List[float], typing.List[typing.Dict], NoneType] = None"}],parametersDescription:[{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_adapters.adapter_names",description:`<strong>adapter_names</strong> (<code>List[str]</code> or <code>str</code>) &#x2014;
The names of the adapters to use.`,name:"adapter_names"},{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_adapters.adapter_weights",description:`<strong>adapter_weights</strong> (<code>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_11438/src/diffusers/loaders/lora_base.py#L667"}}),yo=new Qt({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_adapters.example",$$slots:{default:[ng]},$$scope:{ctx:T}}}),ca=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>) &#x2014;
List of adapters to send device to.`,name:"adapter_names"},{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_lora_device.device",description:`<strong>device</strong> (<code>Union[torch.device, str, int]</code>) &#x2014;
Device to send the adapters to. Can be either a torch device, a str or an integer.`,name:"device"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_base.py#L919"}}),fa=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>) &#x2014; List of LoRA-injectable components to unfuse LoRA from.",name:"components"},{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.unfuse_lora.unfuse_unet",description:"<strong>unfuse_unet</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014; Whether to unfuse the UNet LoRA parameters.",name:"unfuse_unet"},{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.unfuse_lora.unfuse_text_encoder",description:`<strong>unfuse_text_encoder</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Whether to unfuse the text encoder LoRA parameters. If the text encoder wasn&#x2019;t monkey-patched with the
LoRA parameters then it won&#x2019;t have any effect.`,name:"unfuse_text_encoder"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_base.py#L610"}}),To=new A({props:{warning:!0,$$slots:{default:[sg]},$$scope:{ctx:T}}}),ma=new $({props:{name:"unload_lora_weights",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.unload_lora_weights",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_base.py#L497"}}),Do=new Qt({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.unload_lora_weights.example",$$slots:{default:[ig]},$$scope:{ctx:T}}}),pa=new $({props:{name:"write_lora_layers",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.write_lora_layers",parameters:[{name:"state_dict",val:": typing.Dict[str, torch.Tensor]"},{name:"save_directory",val:": str"},{name:"is_main_process",val:": bool"},{name:"weight_name",val:": str"},{name:"save_function",val:": typing.Callable"},{name:"safe_serialization",val:": bool"},{name:"lora_adapter_metadata",val:": typing.Optional[dict] = None"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_base.py#L971"}}),_a=new Z({props:{title:"StableDiffusionLoraLoaderMixin",local:"diffusers.loaders.StableDiffusionLoraLoaderMixin",headingTag:"h2"}}),ua=new $({props:{name:"class diffusers.loaders.StableDiffusionLoraLoaderMixin",anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L126"}}),ha=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"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_text_encoder.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) &#x2014;
A standard state dict containing the lora layer parameters. The key should be prefixed with an
additional <code>text_encoder</code> to distinguish between unet lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_text_encoder.network_alphas",description:`<strong>network_alphas</strong> (<code>Dict[str, float]</code>) &#x2014;
The value of the network alpha used for stable learning and preventing underflow. This value has the
same meaning as the <code>--network_alpha</code> option in the kohya-ss trainer script. Refer to <a href="https://github.com/darkstorm2150/sd-scripts/blob/main/docs/train_network_README-en.md#execute-learning" rel="nofollow">this
link</a>.`,name:"network_alphas"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_text_encoder.text_encoder",description:`<strong>text_encoder</strong> (<code>CLIPTextModel</code>) &#x2014;
The text encoder model to load the LoRA layers into.`,name:"text_encoder"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_text_encoder.prefix",description:`<strong>prefix</strong> (<code>str</code>) &#x2014;
Expected prefix of the <code>text_encoder</code> in the <code>state_dict</code>.`,name:"prefix"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_text_encoder.lora_scale",description:`<strong>lora_scale</strong> (<code>float</code>) &#x2014;
How much to scale the output of the lora linear layer before it is added with the output of the regular
lora layer.`,name:"lora_scale"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_text_encoder.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_text_encoder.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_text_encoder.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_text_encoder.metadata",description:`<strong>metadata</strong> (<code>dict</code>) &#x2014;
Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won&#x2019;t be derived
from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L414"}}),ga=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"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) &#x2014;
A standard state dict containing the lora layer parameters. The keys can either be indexed directly
into the unet or prefixed with an additional <code>unet</code> which can be used to distinguish between text
encoder lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet.network_alphas",description:`<strong>network_alphas</strong> (<code>Dict[str, float]</code>) &#x2014;
The value of the network alpha used for stable learning and preventing underflow. This value has the
same meaning as the <code>--network_alpha</code> option in the kohya-ss trainer script. Refer to <a href="https://github.com/darkstorm2150/sd-scripts/blob/main/docs/train_network_README-en.md#execute-learning" rel="nofollow">this
link</a>.`,name:"network_alphas"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet.unet",description:`<strong>unet</strong> (<code>UNet2DConditionModel</code>) &#x2014;
The UNet model to load the LoRA layers into.`,name:"unet"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet.metadata",description:`<strong>metadata</strong> (<code>dict</code>) &#x2014;
Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won&#x2019;t be derived
from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L353"}}),La=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:": typing.Optional[str] = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"pretrained_model_name_or_path_or_dict"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Defaults to <code>False</code>. Whether to substitute an existing (LoRA) adapter with the newly loaded adapter
in-place. This means that, instead of loading an additional adapter, this will take the existing
adapter weights and replace them with the weights of the new adapter. This can be faster and more
memory efficient. However, the main advantage of hotswapping is that when the model is compiled with
torch.compile, loading the new adapter does not require recompilation of the model. When using
hotswapping, the passed <code>adapter_name</code> should be the name of an already loaded adapter.</p>
<p>If the new adapter and the old adapter have different ranks and/or LoRA alphas (i.e. scaling), you need
to call an additional method before loading the adapter:`,name:"hotswap"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L136"}}),xa=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>) &#x2014;
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_11438/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>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict.weight_name",description:`<strong>weight_name</strong> (<code>str</code>, <em>optional</em>, defaults to None) &#x2014;
Name of the serialized state dict file.`,name:"weight_name"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict.return_lora_metadata",description:`<strong>return_lora_metadata</strong> (<code>bool</code>, <em>optional</em>, defaults to False) &#x2014;
When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.`,name:"return_lora_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L237"}}),ko=new A({props:{warning:!0,$$slots:{default:[dg]},$$scope:{ctx:T}}}),ba=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"},{name:"unet_lora_adapter_metadata",val:" = None"},{name:"text_encoder_lora_adapter_metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory to save LoRA parameters to. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights.unet_lora_layers",description:`<strong>unet_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) &#x2014;
State dict of the LoRA layers corresponding to the <code>unet</code>.`,name:"unet_lora_layers"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights.text_encoder_lora_layers",description:`<strong>text_encoder_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) &#x2014;
State dict of the LoRA layers corresponding to the <code>text_encoder</code>. Must explicitly pass the text
encoder LoRA state dict because it comes from &#x1F917; Transformers.`,name:"text_encoder_lora_layers"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether the process calling this is the main process or not. Useful during distributed training and you
need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on the main
process to avoid race conditions.`,name:"is_main_process"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) &#x2014;
The function to use to save the state dictionary. Useful during distributed training when you need to
replace <code>torch.save</code> with another method. Can be configured with the environment variable
<code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights.unet_lora_adapter_metadata",description:`<strong>unet_lora_adapter_metadata</strong> &#x2014;
LoRA adapter metadata associated with the unet to be serialized with the state dict.`,name:"unet_lora_adapter_metadata"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights.text_encoder_lora_adapter_metadata",description:`<strong>text_encoder_lora_adapter_metadata</strong> &#x2014;
LoRA adapter metadata associated with the text encoder to be serialized with the state dict.`,name:"text_encoder_lora_adapter_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L472"}}),va=new Z({props:{title:"StableDiffusionXLLoraLoaderMixin",local:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin",headingTag:"h2"}}),wa=new $({props:{name:"class diffusers.loaders.StableDiffusionXLLoraLoaderMixin",anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L610"}}),$a=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"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_text_encoder.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) &#x2014;
A standard state dict containing the lora layer parameters. The key should be prefixed with an
additional <code>text_encoder</code> to distinguish between unet lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_text_encoder.network_alphas",description:`<strong>network_alphas</strong> (<code>Dict[str, float]</code>) &#x2014;
The value of the network alpha used for stable learning and preventing underflow. This value has the
same meaning as the <code>--network_alpha</code> option in the kohya-ss trainer script. Refer to <a href="https://github.com/darkstorm2150/sd-scripts/blob/main/docs/train_network_README-en.md#execute-learning" rel="nofollow">this
link</a>.`,name:"network_alphas"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_text_encoder.text_encoder",description:`<strong>text_encoder</strong> (<code>CLIPTextModel</code>) &#x2014;
The text encoder model to load the LoRA layers into.`,name:"text_encoder"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_text_encoder.prefix",description:`<strong>prefix</strong> (<code>str</code>) &#x2014;
Expected prefix of the <code>text_encoder</code> in the <code>state_dict</code>.`,name:"prefix"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_text_encoder.lora_scale",description:`<strong>lora_scale</strong> (<code>float</code>) &#x2014;
How much to scale the output of the lora linear layer before it is added with the output of the regular
lora layer.`,name:"lora_scale"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_text_encoder.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_text_encoder.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_text_encoder.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_text_encoder.metadata",description:`<strong>metadata</strong> (<code>dict</code>) &#x2014;
Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won&#x2019;t be derived
from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L900"}}),ya=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"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_unet.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) &#x2014;
A standard state dict containing the lora layer parameters. The keys can either be indexed directly
into the unet or prefixed with an additional <code>unet</code> which can be used to distinguish between text
encoder lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_unet.network_alphas",description:`<strong>network_alphas</strong> (<code>Dict[str, float]</code>) &#x2014;
The value of the network alpha used for stable learning and preventing underflow. This value has the
same meaning as the <code>--network_alpha</code> option in the kohya-ss trainer script. Refer to <a href="https://github.com/darkstorm2150/sd-scripts/blob/main/docs/train_network_README-en.md#execute-learning" rel="nofollow">this
link</a>.`,name:"network_alphas"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_unet.unet",description:`<strong>unet</strong> (<code>UNet2DConditionModel</code>) &#x2014;
The UNet model to load the LoRA layers into.`,name:"unet"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_unet.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_unet.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_unet.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_unet.metadata",description:`<strong>metadata</strong> (<code>dict</code>) &#x2014;
Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won&#x2019;t be derived
from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L838"}}),Ma=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:"hotswap",val:": bool = False"},{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>) &#x2014;
See <a href="/docs/diffusers/pr_11438/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>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_weights.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_weights.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_weights.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L621"}}),Ta=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>) &#x2014;
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_11438/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>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.lora_state_dict.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.lora_state_dict.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.lora_state_dict.weight_name",description:`<strong>weight_name</strong> (<code>str</code>, <em>optional</em>, defaults to None) &#x2014;
Name of the serialized state dict file.`,name:"weight_name"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.lora_state_dict.return_lora_metadata",description:`<strong>return_lora_metadata</strong> (<code>bool</code>, <em>optional</em>, defaults to False) &#x2014;
When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.`,name:"return_lora_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L721"}}),Po=new A({props:{warning:!0,$$slots:{default:[lg]},$$scope:{ctx:T}}}),Da=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"},{name:"unet_lora_adapter_metadata",val:" = None"},{name:"text_encoder_lora_adapter_metadata",val:" = None"},{name:"text_encoder_2_lora_adapter_metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory to save LoRA parameters to. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"diffusers.loaders.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>) &#x2014;
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>) &#x2014;
State dict of the LoRA layers corresponding to the <code>text_encoder</code>. Must explicitly pass the text
encoder LoRA state dict because it comes from &#x1F917; Transformers.`,name:"text_encoder_lora_layers"},{anchor:"diffusers.loaders.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>) &#x2014;
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 &#x1F917; 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>) &#x2014;
Whether the process calling this is the main process or not. Useful during distributed training and you
need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on the main
process to avoid race conditions.`,name:"is_main_process"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.save_lora_weights.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) &#x2014;
The function to use to save the state dictionary. Useful during distributed training when you need to
replace <code>torch.save</code> with another method. Can be configured with the environment variable
<code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.save_lora_weights.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.save_lora_weights.unet_lora_adapter_metadata",description:`<strong>unet_lora_adapter_metadata</strong> &#x2014;
LoRA adapter metadata associated with the unet to be serialized with the state dict.`,name:"unet_lora_adapter_metadata"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.save_lora_weights.text_encoder_lora_adapter_metadata",description:`<strong>text_encoder_lora_adapter_metadata</strong> &#x2014;
LoRA adapter metadata associated with the text encoder to be serialized with the state dict.`,name:"text_encoder_lora_adapter_metadata"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.save_lora_weights.text_encoder_2_lora_adapter_metadata",description:`<strong>text_encoder_2_lora_adapter_metadata</strong> &#x2014;
LoRA adapter metadata associated with the second text encoder to be serialized with the state dict.`,name:"text_encoder_2_lora_adapter_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L959"}}),Ca=new Z({props:{title:"SD3LoraLoaderMixin",local:"diffusers.loaders.SD3LoraLoaderMixin",headingTag:"h2"}}),Sa=new $({props:{name:"class diffusers.loaders.SD3LoraLoaderMixin",anchor:"diffusers.loaders.SD3LoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L1113"}}),Aa=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"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_text_encoder.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) &#x2014;
A standard state dict containing the lora layer parameters. The key should be prefixed with an
additional <code>text_encoder</code> to distinguish between unet lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_text_encoder.network_alphas",description:`<strong>network_alphas</strong> (<code>Dict[str, float]</code>) &#x2014;
The value of the network alpha used for stable learning and preventing underflow. This value has the
same meaning as the <code>--network_alpha</code> option in the kohya-ss trainer script. Refer to <a href="https://github.com/darkstorm2150/sd-scripts/blob/main/docs/train_network_README-en.md#execute-learning" rel="nofollow">this
link</a>.`,name:"network_alphas"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_text_encoder.text_encoder",description:`<strong>text_encoder</strong> (<code>CLIPTextModel</code>) &#x2014;
The text encoder model to load the LoRA layers into.`,name:"text_encoder"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_text_encoder.prefix",description:`<strong>prefix</strong> (<code>str</code>) &#x2014;
Expected prefix of the <code>text_encoder</code> in the <code>state_dict</code>.`,name:"prefix"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_text_encoder.lora_scale",description:`<strong>lora_scale</strong> (<code>float</code>) &#x2014;
How much to scale the output of the lora linear layer before it is added with the output of the regular
lora layer.`,name:"lora_scale"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_text_encoder.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_text_encoder.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_text_encoder.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_text_encoder.metadata",description:`<strong>metadata</strong> (<code>dict</code>) &#x2014;
Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won&#x2019;t be derived
from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L1362"}}),ka=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"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) &#x2014;
A standard state dict containing the lora layer parameters. The keys can either be indexed directly
into the unet or prefixed with an additional <code>unet</code> which can be used to distinguish between text
encoder lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_transformer.transformer",description:`<strong>transformer</strong> (<code>SD3Transformer2DModel</code>) &#x2014;
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>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_transformer.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_transformer.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_transformer.metadata",description:`<strong>metadata</strong> (<code>dict</code>) &#x2014;
Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won&#x2019;t be derived
from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L1312"}}),Ra=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:"hotswap",val:": bool = False"},{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>) &#x2014;
See <a href="/docs/diffusers/pr_11438/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>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_weights.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_weights.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_weights.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L1224"}}),Ia=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>) &#x2014;
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_11438/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>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.lora_state_dict.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.lora_state_dict.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.lora_state_dict.return_lora_metadata",description:`<strong>return_lora_metadata</strong> (<code>bool</code>, <em>optional</em>, defaults to False) &#x2014;
When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.`,name:"return_lora_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L1126"}}),Fo=new A({props:{warning:!0,$$slots:{default:[cg]},$$scope:{ctx:T}}}),Va=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, 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"},{name:"transformer_lora_adapter_metadata",val:" = None"},{name:"text_encoder_lora_adapter_metadata",val:" = None"},{name:"text_encoder_2_lora_adapter_metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.SD3LoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory to save LoRA parameters to. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"diffusers.loaders.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>) &#x2014;
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>) &#x2014;
State dict of the LoRA layers corresponding to the <code>text_encoder</code>. Must explicitly pass the text
encoder LoRA state dict because it comes from &#x1F917; Transformers.`,name:"text_encoder_lora_layers"},{anchor:"diffusers.loaders.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>) &#x2014;
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 &#x1F917; 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>) &#x2014;
Whether the process calling this is the main process or not. Useful during distributed training and you
need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on the main
process to avoid race conditions.`,name:"is_main_process"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.save_lora_weights.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) &#x2014;
The function to use to save the state dictionary. Useful during distributed training when you need to
replace <code>torch.save</code> with another method. Can be configured with the environment variable
<code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.save_lora_weights.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.save_lora_weights.transformer_lora_adapter_metadata",description:`<strong>transformer_lora_adapter_metadata</strong> &#x2014;
LoRA adapter metadata associated with the transformer to be serialized with the state dict.`,name:"transformer_lora_adapter_metadata"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.save_lora_weights.text_encoder_lora_adapter_metadata",description:`<strong>text_encoder_lora_adapter_metadata</strong> &#x2014;
LoRA adapter metadata associated with the text encoder to be serialized with the state dict.`,name:"text_encoder_lora_adapter_metadata"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.save_lora_weights.text_encoder_2_lora_adapter_metadata",description:`<strong>text_encoder_2_lora_adapter_metadata</strong> &#x2014;
LoRA adapter metadata associated with the second text encoder to be serialized with the state dict.`,name:"text_encoder_2_lora_adapter_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L1421"}}),Pa=new $({props:{name:"unfuse_lora",anchor:"diffusers.loaders.SD3LoraLoaderMixin.unfuse_lora",parameters:[{name:"components",val:": typing.List[str] = ['transformer', 'text_encoder', 'text_encoder_2']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.SD3LoraLoaderMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>List[str]</code>) &#x2014; List of LoRA-injectable components to unfuse LoRA from.",name:"components"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.unfuse_lora.unfuse_transformer",description:"<strong>unfuse_transformer</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014; Whether to unfuse the UNet LoRA parameters.",name:"unfuse_transformer"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.unfuse_lora.unfuse_text_encoder",description:`<strong>unfuse_text_encoder</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014;
Whether to unfuse the text encoder LoRA parameters. If the text encoder wasn&#x2019;t monkey-patched with the
LoRA parameters then it won&#x2019;t have any effect.`,name:"unfuse_text_encoder"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L1559"}}),Eo=new A({props:{warning:!0,$$slots:{default:[fg]},$$scope:{ctx:T}}}),Wa=new Z({props:{title:"FluxLoraLoaderMixin",local:"diffusers.loaders.FluxLoraLoaderMixin",headingTag:"h2"}}),Ha=new $({props:{name:"class diffusers.loaders.FluxLoraLoaderMixin",anchor:"diffusers.loaders.FluxLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L1922"}}),Ua=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"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_text_encoder.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) &#x2014;
A standard state dict containing the lora layer parameters. The key should be prefixed with an
additional <code>text_encoder</code> to distinguish between unet lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_text_encoder.network_alphas",description:`<strong>network_alphas</strong> (<code>Dict[str, float]</code>) &#x2014;
The value of the network alpha used for stable learning and preventing underflow. This value has the
same meaning as the <code>--network_alpha</code> option in the kohya-ss trainer script. Refer to <a href="https://github.com/darkstorm2150/sd-scripts/blob/main/docs/train_network_README-en.md#execute-learning" rel="nofollow">this
link</a>.`,name:"network_alphas"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_text_encoder.text_encoder",description:`<strong>text_encoder</strong> (<code>CLIPTextModel</code>) &#x2014;
The text encoder model to load the LoRA layers into.`,name:"text_encoder"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_text_encoder.prefix",description:`<strong>prefix</strong> (<code>str</code>) &#x2014;
Expected prefix of the <code>text_encoder</code> in the <code>state_dict</code>.`,name:"prefix"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_text_encoder.lora_scale",description:`<strong>lora_scale</strong> (<code>float</code>) &#x2014;
How much to scale the output of the lora linear layer before it is added with the output of the regular
lora layer.`,name:"lora_scale"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_text_encoder.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_text_encoder.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_text_encoder.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_text_encoder.metadata",description:`<strong>metadata</strong> (<code>dict</code>) &#x2014;
Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won&#x2019;t be derived
from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L2326"}}),Fa=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:"metadata",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"}],parametersDescription:[{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) &#x2014;
A standard state dict containing the lora layer parameters. The keys can either be indexed directly
into the unet or prefixed with an additional <code>unet</code> which can be used to distinguish between text
encoder lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_transformer.network_alphas",description:`<strong>network_alphas</strong> (<code>Dict[str, float]</code>) &#x2014;
The value of the network alpha used for stable learning and preventing underflow. This value has the
same meaning as the <code>--network_alpha</code> option in the kohya-ss trainer script. Refer to <a href="https://github.com/darkstorm2150/sd-scripts/blob/main/docs/train_network_README-en.md#execute-learning" rel="nofollow">this
link</a>.`,name:"network_alphas"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_transformer.transformer",description:`<strong>transformer</strong> (<code>FluxTransformer2DModel</code>) &#x2014;
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>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_transformer.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_transformer.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_transformer.metadata",description:`<strong>metadata</strong> (<code>dict</code>) &#x2014;
Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won&#x2019;t be derived
from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L2217"}}),Xa=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:": typing.Optional[str] = None"},{name:"hotswap",val:": bool = False"},{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>) &#x2014;
See <a href="/docs/diffusers/pr_11438/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.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_weights.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
\`Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_weights.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_weights.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L2092"}}),Ea=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>) &#x2014;
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_11438/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>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.lora_state_dict.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.lora_state_dict.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.lora_state_dict.return_lora_metadata",description:`<strong>return_lora_metadata</strong> (<code>bool</code>, <em>optional</em>, defaults to False) &#x2014;
When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.`,name:"return_lora_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L1935"}}),qo=new A({props:{warning:!0,$$slots:{default:[mg]},$$scope:{ctx:T}}}),Na=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"},{name:"transformer_lora_adapter_metadata",val:" = None"},{name:"text_encoder_lora_adapter_metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.FluxLoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory to save LoRA parameters to. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.save_lora_weights.transformer_lora_layers",description:`<strong>transformer_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) &#x2014;
State dict of the LoRA layers corresponding to the <code>transformer</code>.`,name:"transformer_lora_layers"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.save_lora_weights.text_encoder_lora_layers",description:`<strong>text_encoder_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) &#x2014;
State dict of the LoRA layers corresponding to the <code>text_encoder</code>. Must explicitly pass the text
encoder LoRA state dict because it comes from &#x1F917; Transformers.`,name:"text_encoder_lora_layers"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.save_lora_weights.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether the process calling this is the main process or not. Useful during distributed training and you
need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on the main
process to avoid race conditions.`,name:"is_main_process"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.save_lora_weights.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) &#x2014;
The function to use to save the state dictionary. Useful during distributed training when you need to
replace <code>torch.save</code> with another method. Can be configured with the environment variable
<code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.save_lora_weights.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.save_lora_weights.transformer_lora_adapter_metadata",description:`<strong>transformer_lora_adapter_metadata</strong> &#x2014;
LoRA adapter metadata associated with the transformer to be serialized with the state dict.`,name:"transformer_lora_adapter_metadata"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.save_lora_weights.text_encoder_lora_adapter_metadata",description:`<strong>text_encoder_lora_adapter_metadata</strong> &#x2014;
LoRA adapter metadata associated with the text encoder to be serialized with the state dict.`,name:"text_encoder_lora_adapter_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L2385"}}),za=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>) &#x2014; List of LoRA-injectable components to unfuse LoRA from.",name:"components"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L2518"}}),jo=new A({props:{warning:!0,$$slots:{default:[pg]},$$scope:{ctx:T}}}),qa=new $({props:{name:"unload_lora_weights",anchor:"diffusers.loaders.FluxLoraLoaderMixin.unload_lora_weights",parameters:[{name:"reset_to_overwritten_params",val:" = False"}],parametersDescription:[{anchor:"diffusers.loaders.FluxLoraLoaderMixin.unload_lora_weights.reset_to_overwritten_params",description:`<strong>reset_to_overwritten_params</strong> (<code>bool</code>, defaults to <code>False</code>) &#x2014; Whether to reset the LoRA-loaded modules
to their original params. Refer to the <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/flux" rel="nofollow">Flux
documentation</a> to learn more.`,name:"reset_to_overwritten_params"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L2539"}}),Go=new Qt({props:{anchor:"diffusers.loaders.FluxLoraLoaderMixin.unload_lora_weights.example",$$slots:{default:[_g]},$$scope:{ctx:T}}}),Ja=new Z({props:{title:"CogVideoXLoraLoaderMixin",local:"diffusers.loaders.CogVideoXLoraLoaderMixin",headingTag:"h2"}}),ja=new $({props:{name:"class diffusers.loaders.CogVideoXLoraLoaderMixin",anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L2994"}}),Ga=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"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) &#x2014;
A standard state dict containing the lora layer parameters. The keys can either be indexed directly
into the unet or prefixed with an additional <code>unet</code> which can be used to distinguish between text
encoder lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.load_lora_into_transformer.transformer",description:`<strong>transformer</strong> (<code>CogVideoXTransformer3DModel</code>) &#x2014;
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>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.load_lora_into_transformer.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.load_lora_into_transformer.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.load_lora_into_transformer.metadata",description:`<strong>metadata</strong> (<code>dict</code>) &#x2014;
Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won&#x2019;t be derived
from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L3160"}}),Za=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:": typing.Optional[str] = None"},{name:"hotswap",val:": bool = False"},{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>) &#x2014;
See <a href="/docs/diffusers/pr_11438/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>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.load_lora_weights.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.load_lora_weights.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.load_lora_weights.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L3101"}}),Ba=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>) &#x2014;
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_11438/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>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.lora_state_dict.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.lora_state_dict.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.lora_state_dict.return_lora_metadata",description:`<strong>return_lora_metadata</strong> (<code>bool</code>, <em>optional</em>, defaults to False) &#x2014;
When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.`,name:"return_lora_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L3002"}}),Yo=new A({props:{warning:!0,$$slots:{default:[ug]},$$scope:{ctx:T}}}),Ya=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"},{name:"transformer_lora_adapter_metadata",val:": typing.Optional[dict] = None"}],parametersDescription:[{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory to save LoRA parameters to. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"diffusers.loaders.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>) &#x2014;
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>) &#x2014;
Whether the process calling this is the main process or not. Useful during distributed training and you
need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on the main
process to avoid race conditions.`,name:"is_main_process"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.save_lora_weights.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) &#x2014;
The function to use to save the state dictionary. Useful during distributed training when you need to
replace <code>torch.save</code> with another method. Can be configured with the environment variable
<code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.save_lora_weights.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.save_lora_weights.transformer_lora_adapter_metadata",description:`<strong>transformer_lora_adapter_metadata</strong> &#x2014;
LoRA adapter metadata associated with the transformer to be serialized with the state dict.`,name:"transformer_lora_adapter_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L3211"}}),Qa=new $({props:{name:"unfuse_lora",anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.unfuse_lora",parameters:[{name:"components",val:": typing.List[str] = ['transformer']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>List[str]</code>) &#x2014; List of LoRA-injectable components to unfuse LoRA from.",name:"components"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.unfuse_lora.unfuse_transformer",description:"<strong>unfuse_transformer</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014; Whether to unfuse the UNet LoRA parameters.",name:"unfuse_transformer"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L3315"}}),Oo=new A({props:{warning:!0,$$slots:{default:[hg]},$$scope:{ctx:T}}}),Oa=new Z({props:{title:"Mochi1LoraLoaderMixin",local:"diffusers.loaders.Mochi1LoraLoaderMixin",headingTag:"h2"}}),Ka=new $({props:{name:"class diffusers.loaders.Mochi1LoraLoaderMixin",anchor:"diffusers.loaders.Mochi1LoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L3333"}}),er=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"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) &#x2014;
A standard state dict containing the lora layer parameters. The keys can either be indexed directly
into the unet or prefixed with an additional <code>unet</code> which can be used to distinguish between text
encoder lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.load_lora_into_transformer.transformer",description:`<strong>transformer</strong> (<code>MochiTransformer3DModel</code>) &#x2014;
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>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.load_lora_into_transformer.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.load_lora_into_transformer.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.load_lora_into_transformer.metadata",description:`<strong>metadata</strong> (<code>dict</code>) &#x2014;
Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won&#x2019;t be derived
from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L3500"}}),or=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:": typing.Optional[str] = None"},{name:"hotswap",val:": bool = False"},{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>) &#x2014;
See <a href="/docs/diffusers/pr_11438/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>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.load_lora_weights.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.load_lora_weights.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.load_lora_weights.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L3441"}}),tr=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>) &#x2014;
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_11438/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>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.lora_state_dict.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.lora_state_dict.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.lora_state_dict.return_lora_metadata",description:`<strong>return_lora_metadata</strong> (<code>bool</code>, <em>optional</em>, defaults to False) &#x2014;
When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.`,name:"return_lora_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L3341"}}),ot=new A({props:{warning:!0,$$slots:{default:[gg]},$$scope:{ctx:T}}}),ar=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"},{name:"transformer_lora_adapter_metadata",val:": typing.Optional[dict] = None"}],parametersDescription:[{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory to save LoRA parameters to. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"diffusers.loaders.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>) &#x2014;
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>) &#x2014;
Whether the process calling this is the main process or not. Useful during distributed training and you
need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on the main
process to avoid race conditions.`,name:"is_main_process"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.save_lora_weights.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) &#x2014;
The function to use to save the state dictionary. Useful during distributed training when you need to
replace <code>torch.save</code> with another method. Can be configured with the environment variable
<code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.save_lora_weights.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.save_lora_weights.transformer_lora_adapter_metadata",description:`<strong>transformer_lora_adapter_metadata</strong> &#x2014;
LoRA adapter metadata associated with the transformer to be serialized with the state dict.`,name:"transformer_lora_adapter_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L3551"}}),rr=new $({props:{name:"unfuse_lora",anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.unfuse_lora",parameters:[{name:"components",val:": typing.List[str] = ['transformer']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>List[str]</code>) &#x2014; List of LoRA-injectable components to unfuse LoRA from.",name:"components"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.unfuse_lora.unfuse_transformer",description:"<strong>unfuse_transformer</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014; Whether to unfuse the UNet LoRA parameters.",name:"unfuse_transformer"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L3657"}}),at=new A({props:{warning:!0,$$slots:{default:[Lg]},$$scope:{ctx:T}}}),nr=new Z({props:{title:"AuraFlowLoraLoaderMixin",local:"diffusers.loaders.AuraFlowLoraLoaderMixin",headingTag:"h2"}}),sr=new $({props:{name:"class diffusers.loaders.AuraFlowLoraLoaderMixin",anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L1580"}}),ir=new $({props:{name:"load_lora_into_transformer",anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.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"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) &#x2014;
A standard state dict containing the lora layer parameters. The keys can either be indexed directly
into the unet or prefixed with an additional <code>unet</code> which can be used to distinguish between text
encoder lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.load_lora_into_transformer.transformer",description:`<strong>transformer</strong> (<code>AuraFlowTransformer2DModel</code>) &#x2014;
The Transformer model to load the LoRA layers into.`,name:"transformer"},{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.load_lora_into_transformer.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.load_lora_into_transformer.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.load_lora_into_transformer.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.load_lora_into_transformer.metadata",description:`<strong>metadata</strong> (<code>dict</code>) &#x2014;
Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won&#x2019;t be derived
from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L1747"}}),dr=new $({props:{name:"load_lora_weights",anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.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:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.load_lora_weights.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) &#x2014;
See <a href="/docs/diffusers/pr_11438/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.AuraFlowLoraLoaderMixin.load_lora_weights.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.load_lora_weights.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.load_lora_weights.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.load_lora_weights.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L1688"}}),lr=new $({props:{name:"lora_state_dict",anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.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.AuraFlowLoraLoaderMixin.lora_state_dict.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) &#x2014;
Can be either:</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_11438/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.AuraFlowLoraLoaderMixin.lora_state_dict.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.lora_state_dict.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.lora_state_dict.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.lora_state_dict.return_lora_metadata",description:`<strong>return_lora_metadata</strong> (<code>bool</code>, <em>optional</em>, defaults to False) &#x2014;
When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.`,name:"return_lora_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L1588"}}),st=new A({props:{warning:!0,$$slots:{default:[xg]},$$scope:{ctx:T}}}),cr=new $({props:{name:"save_lora_weights",anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.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"},{name:"transformer_lora_adapter_metadata",val:": typing.Optional[dict] = None"}],parametersDescription:[{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory to save LoRA parameters to. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.save_lora_weights.transformer_lora_layers",description:`<strong>transformer_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) &#x2014;
State dict of the LoRA layers corresponding to the <code>transformer</code>.`,name:"transformer_lora_layers"},{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.save_lora_weights.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether the process calling this is the main process or not. Useful during distributed training and you
need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on the main
process to avoid race conditions.`,name:"is_main_process"},{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.save_lora_weights.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) &#x2014;
The function to use to save the state dictionary. Useful during distributed training when you need to
replace <code>torch.save</code> with another method. Can be configured with the environment variable
<code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"},{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.save_lora_weights.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"},{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.save_lora_weights.transformer_lora_adapter_metadata",description:`<strong>transformer_lora_adapter_metadata</strong> &#x2014;
LoRA adapter metadata associated with the transformer to be serialized with the state dict.`,name:"transformer_lora_adapter_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L1798"}}),fr=new $({props:{name:"unfuse_lora",anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.unfuse_lora",parameters:[{name:"components",val:": typing.List[str] = ['transformer', 'text_encoder']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>List[str]</code>) &#x2014; List of LoRA-injectable components to unfuse LoRA from.",name:"components"},{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.unfuse_lora.unfuse_transformer",description:"<strong>unfuse_transformer</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014; Whether to unfuse the UNet LoRA parameters.",name:"unfuse_transformer"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L1904"}}),dt=new A({props:{warning:!0,$$slots:{default:[bg]},$$scope:{ctx:T}}}),mr=new Z({props:{title:"LTXVideoLoraLoaderMixin",local:"diffusers.loaders.LTXVideoLoraLoaderMixin",headingTag:"h2"}}),pr=new $({props:{name:"class diffusers.loaders.LTXVideoLoraLoaderMixin",anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L3675"}}),_r=new $({props:{name:"load_lora_into_transformer",anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.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"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) &#x2014;
A standard state dict containing the lora layer parameters. The keys can either be indexed directly
into the unet or prefixed with an additional <code>unet</code> which can be used to distinguish between text
encoder lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.load_lora_into_transformer.transformer",description:`<strong>transformer</strong> (<code>LTXVideoTransformer3DModel</code>) &#x2014;
The Transformer model to load the LoRA layers into.`,name:"transformer"},{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.load_lora_into_transformer.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.load_lora_into_transformer.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.load_lora_into_transformer.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.load_lora_into_transformer.metadata",description:`<strong>metadata</strong> (<code>dict</code>) &#x2014;
Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won&#x2019;t be derived
from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L3844"}}),ur=new $({props:{name:"load_lora_weights",anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.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:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.load_lora_weights.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) &#x2014;
See <a href="/docs/diffusers/pr_11438/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.LTXVideoLoraLoaderMixin.load_lora_weights.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.load_lora_weights.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.load_lora_weights.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.load_lora_weights.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L3785"}}),hr=new $({props:{name:"lora_state_dict",anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.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.LTXVideoLoraLoaderMixin.lora_state_dict.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) &#x2014;
Can be either:</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_11438/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.LTXVideoLoraLoaderMixin.lora_state_dict.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.lora_state_dict.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.lora_state_dict.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.lora_state_dict.return_lora_metadata",description:`<strong>return_lora_metadata</strong> (<code>bool</code>, <em>optional</em>, defaults to False) &#x2014;
When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.`,name:"return_lora_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L3683"}}),ft=new A({props:{warning:!0,$$slots:{default:[vg]},$$scope:{ctx:T}}}),gr=new $({props:{name:"save_lora_weights",anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.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"},{name:"transformer_lora_adapter_metadata",val:": typing.Optional[dict] = None"}],parametersDescription:[{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory to save LoRA parameters to. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.save_lora_weights.transformer_lora_layers",description:`<strong>transformer_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) &#x2014;
State dict of the LoRA layers corresponding to the <code>transformer</code>.`,name:"transformer_lora_layers"},{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.save_lora_weights.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether the process calling this is the main process or not. Useful during distributed training and you
need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on the main
process to avoid race conditions.`,name:"is_main_process"},{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.save_lora_weights.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) &#x2014;
The function to use to save the state dictionary. Useful during distributed training when you need to
replace <code>torch.save</code> with another method. Can be configured with the environment variable
<code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"},{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.save_lora_weights.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"},{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.save_lora_weights.transformer_lora_adapter_metadata",description:`<strong>transformer_lora_adapter_metadata</strong> &#x2014;
LoRA adapter metadata associated with the transformer to be serialized with the state dict.`,name:"transformer_lora_adapter_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L3895"}}),Lr=new $({props:{name:"unfuse_lora",anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.unfuse_lora",parameters:[{name:"components",val:": typing.List[str] = ['transformer']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>List[str]</code>) &#x2014; List of LoRA-injectable components to unfuse LoRA from.",name:"components"},{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.unfuse_lora.unfuse_transformer",description:"<strong>unfuse_transformer</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014; Whether to unfuse the UNet LoRA parameters.",name:"unfuse_transformer"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L4001"}}),pt=new A({props:{warning:!0,$$slots:{default:[wg]},$$scope:{ctx:T}}}),xr=new Z({props:{title:"SanaLoraLoaderMixin",local:"diffusers.loaders.SanaLoraLoaderMixin",headingTag:"h2"}}),br=new $({props:{name:"class diffusers.loaders.SanaLoraLoaderMixin",anchor:"diffusers.loaders.SanaLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L4019"}}),vr=new $({props:{name:"load_lora_into_transformer",anchor:"diffusers.loaders.SanaLoraLoaderMixin.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"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.SanaLoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) &#x2014;
A standard state dict containing the lora layer parameters. The keys can either be indexed directly
into the unet or prefixed with an additional <code>unet</code> which can be used to distinguish between text
encoder lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.SanaLoraLoaderMixin.load_lora_into_transformer.transformer",description:`<strong>transformer</strong> (<code>SanaTransformer2DModel</code>) &#x2014;
The Transformer model to load the LoRA layers into.`,name:"transformer"},{anchor:"diffusers.loaders.SanaLoraLoaderMixin.load_lora_into_transformer.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.SanaLoraLoaderMixin.load_lora_into_transformer.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.SanaLoraLoaderMixin.load_lora_into_transformer.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.SanaLoraLoaderMixin.load_lora_into_transformer.metadata",description:`<strong>metadata</strong> (<code>dict</code>) &#x2014;
Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won&#x2019;t be derived
from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L4186"}}),wr=new $({props:{name:"load_lora_weights",anchor:"diffusers.loaders.SanaLoraLoaderMixin.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:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.SanaLoraLoaderMixin.load_lora_weights.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) &#x2014;
See <a href="/docs/diffusers/pr_11438/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.SanaLoraLoaderMixin.load_lora_weights.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.SanaLoraLoaderMixin.load_lora_weights.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.SanaLoraLoaderMixin.load_lora_weights.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.SanaLoraLoaderMixin.load_lora_weights.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L4127"}}),$r=new $({props:{name:"lora_state_dict",anchor:"diffusers.loaders.SanaLoraLoaderMixin.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.SanaLoraLoaderMixin.lora_state_dict.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) &#x2014;
Can be either:</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_11438/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.SanaLoraLoaderMixin.lora_state_dict.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.loaders.SanaLoraLoaderMixin.lora_state_dict.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.loaders.SanaLoraLoaderMixin.lora_state_dict.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.SanaLoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.SanaLoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.SanaLoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.SanaLoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.loaders.SanaLoraLoaderMixin.lora_state_dict.return_lora_metadata",description:`<strong>return_lora_metadata</strong> (<code>bool</code>, <em>optional</em>, defaults to False) &#x2014;
When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.`,name:"return_lora_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L4027"}}),ht=new A({props:{warning:!0,$$slots:{default:[$g]},$$scope:{ctx:T}}}),yr=new $({props:{name:"save_lora_weights",anchor:"diffusers.loaders.SanaLoraLoaderMixin.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"},{name:"transformer_lora_adapter_metadata",val:": typing.Optional[dict] = None"}],parametersDescription:[{anchor:"diffusers.loaders.SanaLoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory to save LoRA parameters to. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"diffusers.loaders.SanaLoraLoaderMixin.save_lora_weights.transformer_lora_layers",description:`<strong>transformer_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) &#x2014;
State dict of the LoRA layers corresponding to the <code>transformer</code>.`,name:"transformer_lora_layers"},{anchor:"diffusers.loaders.SanaLoraLoaderMixin.save_lora_weights.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether the process calling this is the main process or not. Useful during distributed training and you
need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on the main
process to avoid race conditions.`,name:"is_main_process"},{anchor:"diffusers.loaders.SanaLoraLoaderMixin.save_lora_weights.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) &#x2014;
The function to use to save the state dictionary. Useful during distributed training when you need to
replace <code>torch.save</code> with another method. Can be configured with the environment variable
<code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"},{anchor:"diffusers.loaders.SanaLoraLoaderMixin.save_lora_weights.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"},{anchor:"diffusers.loaders.SanaLoraLoaderMixin.save_lora_weights.transformer_lora_adapter_metadata",description:`<strong>transformer_lora_adapter_metadata</strong> &#x2014;
LoRA adapter metadata associated with the transformer to be serialized with the state dict.`,name:"transformer_lora_adapter_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L4237"}}),Mr=new $({props:{name:"unfuse_lora",anchor:"diffusers.loaders.SanaLoraLoaderMixin.unfuse_lora",parameters:[{name:"components",val:": typing.List[str] = ['transformer']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.SanaLoraLoaderMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>List[str]</code>) &#x2014; List of LoRA-injectable components to unfuse LoRA from.",name:"components"},{anchor:"diffusers.loaders.SanaLoraLoaderMixin.unfuse_lora.unfuse_transformer",description:"<strong>unfuse_transformer</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014; Whether to unfuse the UNet LoRA parameters.",name:"unfuse_transformer"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L4343"}}),Lt=new A({props:{warning:!0,$$slots:{default:[yg]},$$scope:{ctx:T}}}),Tr=new Z({props:{title:"HunyuanVideoLoraLoaderMixin",local:"diffusers.loaders.HunyuanVideoLoraLoaderMixin",headingTag:"h2"}}),Dr=new $({props:{name:"class diffusers.loaders.HunyuanVideoLoraLoaderMixin",anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L4361"}}),Cr=new $({props:{name:"load_lora_into_transformer",anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.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"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) &#x2014;
A standard state dict containing the lora layer parameters. The keys can either be indexed directly
into the unet or prefixed with an additional <code>unet</code> which can be used to distinguish between text
encoder lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.load_lora_into_transformer.transformer",description:`<strong>transformer</strong> (<code>HunyuanVideoTransformer3DModel</code>) &#x2014;
The Transformer model to load the LoRA layers into.`,name:"transformer"},{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.load_lora_into_transformer.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.load_lora_into_transformer.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.load_lora_into_transformer.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.load_lora_into_transformer.metadata",description:`<strong>metadata</strong> (<code>dict</code>) &#x2014;
Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won&#x2019;t be derived
from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L4530"}}),Sr=new $({props:{name:"load_lora_weights",anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.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:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.load_lora_weights.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) &#x2014;
See <a href="/docs/diffusers/pr_11438/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.HunyuanVideoLoraLoaderMixin.load_lora_weights.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.load_lora_weights.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.load_lora_weights.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.load_lora_weights.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L4471"}}),Ar=new $({props:{name:"lora_state_dict",anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.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.HunyuanVideoLoraLoaderMixin.lora_state_dict.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) &#x2014;
Can be either:</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_11438/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.HunyuanVideoLoraLoaderMixin.lora_state_dict.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.lora_state_dict.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.lora_state_dict.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.lora_state_dict.return_lora_metadata",description:`<strong>return_lora_metadata</strong> (<code>bool</code>, <em>optional</em>, defaults to False) &#x2014;
When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.`,name:"return_lora_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L4369"}}),vt=new A({props:{warning:!0,$$slots:{default:[Mg]},$$scope:{ctx:T}}}),kr=new $({props:{name:"save_lora_weights",anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.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"},{name:"transformer_lora_adapter_metadata",val:": typing.Optional[dict] = None"}],parametersDescription:[{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory to save LoRA parameters to. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.save_lora_weights.transformer_lora_layers",description:`<strong>transformer_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) &#x2014;
State dict of the LoRA layers corresponding to the <code>transformer</code>.`,name:"transformer_lora_layers"},{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.save_lora_weights.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether the process calling this is the main process or not. Useful during distributed training and you
need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on the main
process to avoid race conditions.`,name:"is_main_process"},{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.save_lora_weights.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) &#x2014;
The function to use to save the state dictionary. Useful during distributed training when you need to
replace <code>torch.save</code> with another method. Can be configured with the environment variable
<code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"},{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.save_lora_weights.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"},{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.save_lora_weights.transformer_lora_adapter_metadata",description:`<strong>transformer_lora_adapter_metadata</strong> &#x2014;
LoRA adapter metadata associated with the transformer to be serialized with the state dict.`,name:"transformer_lora_adapter_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L4581"}}),Rr=new $({props:{name:"unfuse_lora",anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.unfuse_lora",parameters:[{name:"components",val:": typing.List[str] = ['transformer']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>List[str]</code>) &#x2014; List of LoRA-injectable components to unfuse LoRA from.",name:"components"},{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.unfuse_lora.unfuse_transformer",description:"<strong>unfuse_transformer</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014; Whether to unfuse the UNet LoRA parameters.",name:"unfuse_transformer"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L4687"}}),$t=new A({props:{warning:!0,$$slots:{default:[Tg]},$$scope:{ctx:T}}}),Ir=new Z({props:{title:"Lumina2LoraLoaderMixin",local:"diffusers.loaders.Lumina2LoraLoaderMixin",headingTag:"h2"}}),Vr=new $({props:{name:"class diffusers.loaders.Lumina2LoraLoaderMixin",anchor:"diffusers.loaders.Lumina2LoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L4705"}}),Pr=new $({props:{name:"load_lora_into_transformer",anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.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"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) &#x2014;
A standard state dict containing the lora layer parameters. The keys can either be indexed directly
into the unet or prefixed with an additional <code>unet</code> which can be used to distinguish between text
encoder lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.load_lora_into_transformer.transformer",description:`<strong>transformer</strong> (<code>Lumina2Transformer2DModel</code>) &#x2014;
The Transformer model to load the LoRA layers into.`,name:"transformer"},{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.load_lora_into_transformer.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.load_lora_into_transformer.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.load_lora_into_transformer.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.load_lora_into_transformer.metadata",description:`<strong>metadata</strong> (<code>dict</code>) &#x2014;
Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won&#x2019;t be derived
from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L4875"}}),Wr=new $({props:{name:"load_lora_weights",anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.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:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.load_lora_weights.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) &#x2014;
See <a href="/docs/diffusers/pr_11438/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.Lumina2LoraLoaderMixin.load_lora_weights.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.load_lora_weights.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.load_lora_weights.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.load_lora_weights.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L4816"}}),Hr=new $({props:{name:"lora_state_dict",anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.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.Lumina2LoraLoaderMixin.lora_state_dict.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) &#x2014;
Can be either:</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_11438/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.Lumina2LoraLoaderMixin.lora_state_dict.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.lora_state_dict.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.lora_state_dict.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.lora_state_dict.return_lora_metadata",description:`<strong>return_lora_metadata</strong> (<code>bool</code>, <em>optional</em>, defaults to False) &#x2014;
When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.`,name:"return_lora_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L4713"}}),Tt=new A({props:{warning:!0,$$slots:{default:[Dg]},$$scope:{ctx:T}}}),Ur=new $({props:{name:"save_lora_weights",anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.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"},{name:"transformer_lora_adapter_metadata",val:": typing.Optional[dict] = None"}],parametersDescription:[{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory to save LoRA parameters to. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.save_lora_weights.transformer_lora_layers",description:`<strong>transformer_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) &#x2014;
State dict of the LoRA layers corresponding to the <code>transformer</code>.`,name:"transformer_lora_layers"},{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.save_lora_weights.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether the process calling this is the main process or not. Useful during distributed training and you
need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on the main
process to avoid race conditions.`,name:"is_main_process"},{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.save_lora_weights.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) &#x2014;
The function to use to save the state dictionary. Useful during distributed training when you need to
replace <code>torch.save</code> with another method. Can be configured with the environment variable
<code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"},{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.save_lora_weights.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"},{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.save_lora_weights.transformer_lora_adapter_metadata",description:`<strong>transformer_lora_adapter_metadata</strong> &#x2014;
LoRA adapter metadata associated with the transformer to be serialized with the state dict.`,name:"transformer_lora_adapter_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L4926"}}),Fr=new $({props:{name:"unfuse_lora",anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.unfuse_lora",parameters:[{name:"components",val:": typing.List[str] = ['transformer']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>List[str]</code>) &#x2014; List of LoRA-injectable components to unfuse LoRA from.",name:"components"},{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.unfuse_lora.unfuse_transformer",description:"<strong>unfuse_transformer</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014; Whether to unfuse the UNet LoRA parameters.",name:"unfuse_transformer"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L5032"}}),Ct=new A({props:{warning:!0,$$slots:{default:[Cg]},$$scope:{ctx:T}}}),Xr=new Z({props:{title:"CogView4LoraLoaderMixin",local:"diffusers.loaders.CogView4LoraLoaderMixin",headingTag:"h2"}}),Er=new $({props:{name:"class diffusers.loaders.CogView4LoraLoaderMixin",anchor:"diffusers.loaders.CogView4LoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L5445"}}),Nr=new $({props:{name:"load_lora_into_transformer",anchor:"diffusers.loaders.CogView4LoraLoaderMixin.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"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) &#x2014;
A standard state dict containing the lora layer parameters. The keys can either be indexed directly
into the unet or prefixed with an additional <code>unet</code> which can be used to distinguish between text
encoder lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.load_lora_into_transformer.transformer",description:`<strong>transformer</strong> (<code>CogView4Transformer2DModel</code>) &#x2014;
The Transformer model to load the LoRA layers into.`,name:"transformer"},{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.load_lora_into_transformer.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.load_lora_into_transformer.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.load_lora_into_transformer.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.load_lora_into_transformer.metadata",description:`<strong>metadata</strong> (<code>dict</code>) &#x2014;
Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won&#x2019;t be derived
from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L5612"}}),zr=new $({props:{name:"load_lora_weights",anchor:"diffusers.loaders.CogView4LoraLoaderMixin.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:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.load_lora_weights.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) &#x2014;
See <a href="/docs/diffusers/pr_11438/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.CogView4LoraLoaderMixin.load_lora_weights.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.load_lora_weights.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.load_lora_weights.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.load_lora_weights.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L5553"}}),qr=new $({props:{name:"lora_state_dict",anchor:"diffusers.loaders.CogView4LoraLoaderMixin.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.CogView4LoraLoaderMixin.lora_state_dict.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) &#x2014;
Can be either:</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_11438/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.CogView4LoraLoaderMixin.lora_state_dict.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.lora_state_dict.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.lora_state_dict.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.lora_state_dict.return_lora_metadata",description:`<strong>return_lora_metadata</strong> (<code>bool</code>, <em>optional</em>, defaults to False) &#x2014;
When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.`,name:"return_lora_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L5453"}}),kt=new A({props:{warning:!0,$$slots:{default:[Sg]},$$scope:{ctx:T}}}),Jr=new $({props:{name:"save_lora_weights",anchor:"diffusers.loaders.CogView4LoraLoaderMixin.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"},{name:"transformer_lora_adapter_metadata",val:": typing.Optional[dict] = None"}],parametersDescription:[{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory to save LoRA parameters to. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.save_lora_weights.transformer_lora_layers",description:`<strong>transformer_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) &#x2014;
State dict of the LoRA layers corresponding to the <code>transformer</code>.`,name:"transformer_lora_layers"},{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.save_lora_weights.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether the process calling this is the main process or not. Useful during distributed training and you
need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on the main
process to avoid race conditions.`,name:"is_main_process"},{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.save_lora_weights.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) &#x2014;
The function to use to save the state dictionary. Useful during distributed training when you need to
replace <code>torch.save</code> with another method. Can be configured with the environment variable
<code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"},{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.save_lora_weights.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"},{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.save_lora_weights.transformer_lora_adapter_metadata",description:`<strong>transformer_lora_adapter_metadata</strong> &#x2014;
LoRA adapter metadata associated with the transformer to be serialized with the state dict.`,name:"transformer_lora_adapter_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L5663"}}),jr=new $({props:{name:"unfuse_lora",anchor:"diffusers.loaders.CogView4LoraLoaderMixin.unfuse_lora",parameters:[{name:"components",val:": typing.List[str] = ['transformer']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>List[str]</code>) &#x2014; List of LoRA-injectable components to unfuse LoRA from.",name:"components"},{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.unfuse_lora.unfuse_transformer",description:"<strong>unfuse_transformer</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014; Whether to unfuse the UNet LoRA parameters.",name:"unfuse_transformer"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L5769"}}),It=new A({props:{warning:!0,$$slots:{default:[Ag]},$$scope:{ctx:T}}}),Gr=new Z({props:{title:"WanLoraLoaderMixin",local:"diffusers.loaders.WanLoraLoaderMixin",headingTag:"h2"}}),Zr=new $({props:{name:"class diffusers.loaders.WanLoraLoaderMixin",anchor:"diffusers.loaders.WanLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L5050"}}),Br=new $({props:{name:"load_lora_into_transformer",anchor:"diffusers.loaders.WanLoraLoaderMixin.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"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.WanLoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) &#x2014;
A standard state dict containing the lora layer parameters. The keys can either be indexed directly
into the unet or prefixed with an additional <code>unet</code> which can be used to distinguish between text
encoder lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.load_lora_into_transformer.transformer",description:`<strong>transformer</strong> (<code>WanTransformer3DModel</code>) &#x2014;
The Transformer model to load the LoRA layers into.`,name:"transformer"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.load_lora_into_transformer.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.load_lora_into_transformer.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.load_lora_into_transformer.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.load_lora_into_transformer.metadata",description:`<strong>metadata</strong> (<code>dict</code>) &#x2014;
Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won&#x2019;t be derived
from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L5270"}}),Yr=new $({props:{name:"load_lora_weights",anchor:"diffusers.loaders.WanLoraLoaderMixin.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:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.WanLoraLoaderMixin.load_lora_weights.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) &#x2014;
See <a href="/docs/diffusers/pr_11438/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.WanLoraLoaderMixin.load_lora_weights.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.load_lora_weights.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.load_lora_weights.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.load_lora_weights.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L5207"}}),Qr=new $({props:{name:"lora_state_dict",anchor:"diffusers.loaders.WanLoraLoaderMixin.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.WanLoraLoaderMixin.lora_state_dict.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) &#x2014;
Can be either:</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_11438/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.WanLoraLoaderMixin.lora_state_dict.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.lora_state_dict.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.lora_state_dict.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.lora_state_dict.return_lora_metadata",description:`<strong>return_lora_metadata</strong> (<code>bool</code>, <em>optional</em>, defaults to False) &#x2014;
When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.`,name:"return_lora_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L5058"}}),Wt=new A({props:{warning:!0,$$slots:{default:[kg]},$$scope:{ctx:T}}}),Or=new $({props:{name:"save_lora_weights",anchor:"diffusers.loaders.WanLoraLoaderMixin.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"},{name:"transformer_lora_adapter_metadata",val:": typing.Optional[dict] = None"}],parametersDescription:[{anchor:"diffusers.loaders.WanLoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory to save LoRA parameters to. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.save_lora_weights.transformer_lora_layers",description:`<strong>transformer_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) &#x2014;
State dict of the LoRA layers corresponding to the <code>transformer</code>.`,name:"transformer_lora_layers"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.save_lora_weights.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether the process calling this is the main process or not. Useful during distributed training and you
need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on the main
process to avoid race conditions.`,name:"is_main_process"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.save_lora_weights.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) &#x2014;
The function to use to save the state dictionary. Useful during distributed training when you need to
replace <code>torch.save</code> with another method. Can be configured with the environment variable
<code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.save_lora_weights.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.save_lora_weights.transformer_lora_adapter_metadata",description:`<strong>transformer_lora_adapter_metadata</strong> &#x2014;
LoRA adapter metadata associated with the transformer to be serialized with the state dict.`,name:"transformer_lora_adapter_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L5321"}}),Kr=new $({props:{name:"unfuse_lora",anchor:"diffusers.loaders.WanLoraLoaderMixin.unfuse_lora",parameters:[{name:"components",val:": typing.List[str] = ['transformer']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.WanLoraLoaderMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>List[str]</code>) &#x2014; List of LoRA-injectable components to unfuse LoRA from.",name:"components"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.unfuse_lora.unfuse_transformer",description:"<strong>unfuse_transformer</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014; Whether to unfuse the UNet LoRA parameters.",name:"unfuse_transformer"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L5427"}}),Ut=new A({props:{warning:!0,$$slots:{default:[Rg]},$$scope:{ctx:T}}}),en=new Z({props:{title:"AmusedLoraLoaderMixin",local:"diffusers.loaders.AmusedLoraLoaderMixin",headingTag:"h2"}}),on=new $({props:{name:"class diffusers.loaders.AmusedLoraLoaderMixin",anchor:"diffusers.loaders.AmusedLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L2819"}}),tn=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:"metadata",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"}],parametersDescription:[{anchor:"diffusers.loaders.AmusedLoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) &#x2014;
A standard state dict containing the lora layer parameters. The keys can either be indexed directly
into the unet or prefixed with an additional <code>unet</code> which can be used to distinguish between text
encoder lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.AmusedLoraLoaderMixin.load_lora_into_transformer.network_alphas",description:`<strong>network_alphas</strong> (<code>Dict[str, float]</code>) &#x2014;
The value of the network alpha used for stable learning and preventing underflow. This value has the
same meaning as the <code>--network_alpha</code> option in the kohya-ss trainer script. Refer to <a href="https://github.com/darkstorm2150/sd-scripts/blob/main/docs/train_network_README-en.md#execute-learning" rel="nofollow">this
link</a>.`,name:"network_alphas"},{anchor:"diffusers.loaders.AmusedLoraLoaderMixin.load_lora_into_transformer.transformer",description:`<strong>transformer</strong> (<code>UVit2DModel</code>) &#x2014;
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>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.AmusedLoraLoaderMixin.load_lora_into_transformer.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.AmusedLoraLoaderMixin.load_lora_into_transformer.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.AmusedLoraLoaderMixin.load_lora_into_transformer.metadata",description:`<strong>metadata</strong> (<code>dict</code>) &#x2014;
Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won&#x2019;t be derived
from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L2824"}}),an=new $({props:{name:"save_lora_weights",anchor:"diffusers.loaders.AmusedLoraLoaderMixin.save_lora_weights",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"text_encoder_lora_layers",val:": typing.Dict[str, torch.nn.modules.module.Module] = None"},{name:"transformer_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.AmusedLoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory to save LoRA parameters to. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"diffusers.loaders.AmusedLoraLoaderMixin.save_lora_weights.unet_lora_layers",description:`<strong>unet_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) &#x2014;
State dict of the LoRA layers corresponding to the <code>unet</code>.`,name:"unet_lora_layers"},{anchor:"diffusers.loaders.AmusedLoraLoaderMixin.save_lora_weights.text_encoder_lora_layers",description:`<strong>text_encoder_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) &#x2014;
State dict of the LoRA layers corresponding to the <code>text_encoder</code>. Must explicitly pass the text
encoder LoRA state dict because it comes from &#x1F917; Transformers.`,name:"text_encoder_lora_layers"},{anchor:"diffusers.loaders.AmusedLoraLoaderMixin.save_lora_weights.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether the process calling this is the main process or not. Useful during distributed training and you
need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on the main
process to avoid race conditions.`,name:"is_main_process"},{anchor:"diffusers.loaders.AmusedLoraLoaderMixin.save_lora_weights.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) &#x2014;
The function to use to save the state dictionary. Useful during distributed training when you need to
replace <code>torch.save</code> with another method. Can be configured with the environment variable
<code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"},{anchor:"diffusers.loaders.AmusedLoraLoaderMixin.save_lora_weights.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L2939"}}),rn=new Z({props:{title:"HiDreamImageLoraLoaderMixin",local:"diffusers.loaders.HiDreamImageLoraLoaderMixin",headingTag:"h2"}}),nn=new $({props:{name:"class diffusers.loaders.HiDreamImageLoraLoaderMixin",anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L5787"}}),sn=new $({props:{name:"load_lora_into_transformer",anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.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"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) &#x2014;
A standard state dict containing the lora layer parameters. The keys can either be indexed directly
into the unet or prefixed with an additional <code>unet</code> which can be used to distinguish between text
encoder lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.load_lora_into_transformer.transformer",description:`<strong>transformer</strong> (<code>HiDreamImageTransformer2DModel</code>) &#x2014;
The Transformer model to load the LoRA layers into.`,name:"transformer"},{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.load_lora_into_transformer.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.load_lora_into_transformer.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.load_lora_into_transformer.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.load_lora_into_transformer.metadata",description:`<strong>metadata</strong> (<code>dict</code>) &#x2014;
Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won&#x2019;t be derived
from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L5956"}}),dn=new $({props:{name:"load_lora_weights",anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.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:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.load_lora_weights.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) &#x2014;
See <a href="/docs/diffusers/pr_11438/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.HiDreamImageLoraLoaderMixin.load_lora_weights.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.load_lora_weights.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.load_lora_weights.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.load_lora_weights.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L5897"}}),ln=new $({props:{name:"lora_state_dict",anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.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.HiDreamImageLoraLoaderMixin.lora_state_dict.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) &#x2014;
Can be either:</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_11438/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.HiDreamImageLoraLoaderMixin.lora_state_dict.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.lora_state_dict.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.lora_state_dict.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.lora_state_dict.return_lora_metadata",description:`<strong>return_lora_metadata</strong> (<code>bool</code>, <em>optional</em>, defaults to False) &#x2014;
When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.`,name:"return_lora_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L5795"}}),zt=new A({props:{warning:!0,$$slots:{default:[Ig]},$$scope:{ctx:T}}}),cn=new $({props:{name:"save_lora_weights",anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.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"},{name:"transformer_lora_adapter_metadata",val:": typing.Optional[dict] = None"}],parametersDescription:[{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory to save LoRA parameters to. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.save_lora_weights.transformer_lora_layers",description:`<strong>transformer_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) &#x2014;
State dict of the LoRA layers corresponding to the <code>transformer</code>.`,name:"transformer_lora_layers"},{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.save_lora_weights.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether the process calling this is the main process or not. Useful during distributed training and you
need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on the main
process to avoid race conditions.`,name:"is_main_process"},{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.save_lora_weights.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) &#x2014;
The function to use to save the state dictionary. Useful during distributed training when you need to
replace <code>torch.save</code> with another method. Can be configured with the environment variable
<code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"},{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.save_lora_weights.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"},{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.save_lora_weights.transformer_lora_adapter_metadata",description:`<strong>transformer_lora_adapter_metadata</strong> &#x2014;
LoRA adapter metadata associated with the transformer to be serialized with the state dict.`,name:"transformer_lora_adapter_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L6007"}}),fn=new $({props:{name:"unfuse_lora",anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.unfuse_lora",parameters:[{name:"components",val:": typing.List[str] = ['transformer']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>List[str]</code>) &#x2014; List of LoRA-injectable components to unfuse LoRA from.",name:"components"},{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.unfuse_lora.unfuse_transformer",description:"<strong>unfuse_transformer</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014; Whether to unfuse the UNet LoRA parameters.",name:"unfuse_transformer"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L6113"}}),Jt=new A({props:{warning:!0,$$slots:{default:[Vg]},$$scope:{ctx:T}}}),mn=new Z({props:{title:"WanLoraLoaderMixin",local:"diffusers.loaders.WanLoraLoaderMixin",headingTag:"h2"}}),pn=new $({props:{name:"class diffusers.loaders.WanLoraLoaderMixin",anchor:"diffusers.loaders.WanLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L5050"}}),_n=new $({props:{name:"load_lora_into_transformer",anchor:"diffusers.loaders.WanLoraLoaderMixin.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"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.WanLoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) &#x2014;
A standard state dict containing the lora layer parameters. The keys can either be indexed directly
into the unet or prefixed with an additional <code>unet</code> which can be used to distinguish between text
encoder lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.load_lora_into_transformer.transformer",description:`<strong>transformer</strong> (<code>WanTransformer3DModel</code>) &#x2014;
The Transformer model to load the LoRA layers into.`,name:"transformer"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.load_lora_into_transformer.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.load_lora_into_transformer.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.load_lora_into_transformer.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.load_lora_into_transformer.metadata",description:`<strong>metadata</strong> (<code>dict</code>) &#x2014;
Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won&#x2019;t be derived
from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L5270"}}),un=new $({props:{name:"load_lora_weights",anchor:"diffusers.loaders.WanLoraLoaderMixin.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:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.WanLoraLoaderMixin.load_lora_weights.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) &#x2014;
See <a href="/docs/diffusers/pr_11438/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.WanLoraLoaderMixin.load_lora_weights.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Adapter name to be used for referencing the loaded adapter model. If not specified, it will use
<code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.load_lora_weights.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Speed up model loading by only loading the pretrained LoRA weights and not initializing the random
weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.load_lora_weights.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.load_lora_weights.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/pr_11438/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L5207"}}),hn=new $({props:{name:"lora_state_dict",anchor:"diffusers.loaders.WanLoraLoaderMixin.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.WanLoraLoaderMixin.lora_state_dict.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) &#x2014;
Can be either:</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_11438/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.WanLoraLoaderMixin.lora_state_dict.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.lora_state_dict.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.lora_state_dict.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.lora_state_dict.return_lora_metadata",description:`<strong>return_lora_metadata</strong> (<code>bool</code>, <em>optional</em>, defaults to False) &#x2014;
When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.`,name:"return_lora_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L5058"}}),Zt=new A({props:{warning:!0,$$slots:{default:[Pg]},$$scope:{ctx:T}}}),gn=new $({props:{name:"save_lora_weights",anchor:"diffusers.loaders.WanLoraLoaderMixin.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"},{name:"transformer_lora_adapter_metadata",val:": typing.Optional[dict] = None"}],parametersDescription:[{anchor:"diffusers.loaders.WanLoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory to save LoRA parameters to. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.save_lora_weights.transformer_lora_layers",description:`<strong>transformer_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) &#x2014;
State dict of the LoRA layers corresponding to the <code>transformer</code>.`,name:"transformer_lora_layers"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.save_lora_weights.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether the process calling this is the main process or not. Useful during distributed training and you
need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on the main
process to avoid race conditions.`,name:"is_main_process"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.save_lora_weights.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) &#x2014;
The function to use to save the state dictionary. Useful during distributed training when you need to
replace <code>torch.save</code> with another method. Can be configured with the environment variable
<code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.save_lora_weights.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.save_lora_weights.transformer_lora_adapter_metadata",description:`<strong>transformer_lora_adapter_metadata</strong> &#x2014;
LoRA adapter metadata associated with the transformer to be serialized with the state dict.`,name:"transformer_lora_adapter_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L5321"}}),Ln=new $({props:{name:"unfuse_lora",anchor:"diffusers.loaders.WanLoraLoaderMixin.unfuse_lora",parameters:[{name:"components",val:": typing.List[str] = ['transformer']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.WanLoraLoaderMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>List[str]</code>) &#x2014; List of LoRA-injectable components to unfuse LoRA from.",name:"components"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.unfuse_lora.unfuse_transformer",description:"<strong>unfuse_transformer</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014; Whether to unfuse the UNet LoRA parameters.",name:"unfuse_transformer"}],source:"https://github.com/huggingface/diffusers/blob/vr_11438/src/diffusers/loaders/lora_pipeline.py#L5427"}}),Yt=new A({props:{warning:!0,$$slots:{default:[Wg]},$$scope:{ctx:T}}}),xn=new Qh({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/loaders/lora.md"}}),{c(){t=n("meta"),b=a(),c=n("p"),l=a(),m(M.$$.fragment),i=a(),y=n("p"),y.innerHTML=C_,$d=a(),Kt=n("ul"),Kt.innerHTML=S_,yd=a(),m(uo.$$.fragment),Md=a(),m(ea.$$.fragment),Td=a(),C=n("div"),m(oa.$$.fragment),zl=a(),Wn=n("p"),Wn.textContent=A_,ql=a(),xe=n("div"),m(ta.$$.fragment),Jl=a(),Hn=n("p"),Hn.textContent=k_,jl=a(),m(ho.$$.fragment),Gl=a(),be=n("div"),m(aa.$$.fragment),Zl=a(),Un=n("p"),Un.textContent=R_,Bl=a(),m(go.$$.fragment),Yl=a(),ve=n("div"),m(ra.$$.fragment),Ql=a(),Fn=n("p"),Fn.textContent=I_,Ol=a(),m(Lo.$$.fragment),Kl=a(),xo=n("div"),m(na.$$.fragment),ec=a(),Xn=n("p"),Xn.textContent=V_,oc=a(),he=n("div"),m(sa.$$.fragment),tc=a(),En=n("p"),En.textContent=P_,ac=a(),m(bo.$$.fragment),rc=a(),m(vo.$$.fragment),nc=a(),we=n("div"),m(ia.$$.fragment),sc=a(),Nn=n("p"),Nn.textContent=W_,ic=a(),m(wo.$$.fragment),dc=a(),$o=n("div"),m(da.$$.fragment),lc=a(),zn=n("p"),zn.textContent=H_,cc=a(),$e=n("div"),m(la.$$.fragment),fc=a(),qn=n("p"),qn.textContent=U_,mc=a(),m(yo.$$.fragment),pc=a(),Mo=n("div"),m(ca.$$.fragment),_c=a(),Jn=n("p"),Jn.innerHTML=F_,uc=a(),ye=n("div"),m(fa.$$.fragment),hc=a(),jn=n("p"),jn.innerHTML=X_,gc=a(),m(To.$$.fragment),Lc=a(),Me=n("div"),m(ma.$$.fragment),xc=a(),Gn=n("p"),Gn.textContent=E_,bc=a(),m(Do.$$.fragment),vc=a(),Co=n("div"),m(pa.$$.fragment),wc=a(),Zn=n("p"),Zn.textContent=N_,Dd=a(),m(_a.$$.fragment),Cd=a(),P=n("div"),m(ua.$$.fragment),$c=a(),Bn=n("p"),Bn.innerHTML=z_,yc=a(),So=n("div"),m(ha.$$.fragment),Mc=a(),Yn=n("p"),Yn.innerHTML=q_,Tc=a(),Ao=n("div"),m(ga.$$.fragment),Dc=a(),Qn=n("p"),Qn.innerHTML=J_,Cc=a(),Q=n("div"),m(La.$$.fragment),Sc=a(),On=n("p"),On.innerHTML=j_,Ac=a(),Kn=n("p"),Kn.innerHTML=G_,kc=a(),es=n("p"),es.innerHTML=Z_,Rc=a(),os=n("p"),os.innerHTML=B_,Ic=a(),ts=n("p"),ts.innerHTML=Y_,Vc=a(),Te=n("div"),m(xa.$$.fragment),Pc=a(),as=n("p"),as.textContent=Q_,Wc=a(),m(ko.$$.fragment),Hc=a(),Ro=n("div"),m(ba.$$.fragment),Uc=a(),rs=n("p"),rs.textContent=O_,Sd=a(),m(va.$$.fragment),Ad=a(),W=n("div"),m(wa.$$.fragment),Fc=a(),ns=n("p"),ns.innerHTML=K_,Xc=a(),Io=n("div"),m($a.$$.fragment),Ec=a(),ss=n("p"),ss.innerHTML=eu,Nc=a(),Vo=n("div"),m(ya.$$.fragment),zc=a(),is=n("p"),is.innerHTML=ou,qc=a(),O=n("div"),m(Ma.$$.fragment),Jc=a(),ds=n("p"),ds.innerHTML=tu,jc=a(),ls=n("p"),ls.innerHTML=au,Gc=a(),cs=n("p"),cs.innerHTML=ru,Zc=a(),fs=n("p"),fs.innerHTML=nu,Bc=a(),ms=n("p"),ms.innerHTML=su,Yc=a(),De=n("div"),m(Ta.$$.fragment),Qc=a(),ps=n("p"),ps.textContent=iu,Oc=a(),m(Po.$$.fragment),Kc=a(),Wo=n("div"),m(Da.$$.fragment),ef=a(),_s=n("p"),_s.textContent=du,kd=a(),m(Ca.$$.fragment),Rd=a(),R=n("div"),m(Sa.$$.fragment),of=a(),us=n("p"),us.innerHTML=lu,tf=a(),hs=n("p"),hs.innerHTML=cu,af=a(),Ho=n("div"),m(Aa.$$.fragment),rf=a(),gs=n("p"),gs.innerHTML=fu,nf=a(),Uo=n("div"),m(ka.$$.fragment),sf=a(),Ls=n("p"),Ls.innerHTML=mu,df=a(),oe=n("div"),m(Ra.$$.fragment),lf=a(),xs=n("p"),xs.innerHTML=pu,cf=a(),bs=n("p"),bs.innerHTML=_u,ff=a(),vs=n("p"),vs.innerHTML=uu,mf=a(),ws=n("p"),ws.innerHTML=hu,pf=a(),Ce=n("div"),m(Ia.$$.fragment),_f=a(),$s=n("p"),$s.textContent=gu,uf=a(),m(Fo.$$.fragment),hf=a(),Xo=n("div"),m(Va.$$.fragment),gf=a(),ys=n("p"),ys.textContent=Lu,Lf=a(),Se=n("div"),m(Pa.$$.fragment),xf=a(),Ms=n("p"),Ms.innerHTML=xu,bf=a(),m(Eo.$$.fragment),Id=a(),m(Wa.$$.fragment),Vd=a(),k=n("div"),m(Ha.$$.fragment),vf=a(),Ts=n("p"),Ts.innerHTML=bu,wf=a(),Ds=n("p"),Ds.innerHTML=vu,$f=a(),No=n("div"),m(Ua.$$.fragment),yf=a(),Cs=n("p"),Cs.innerHTML=wu,Mf=a(),zo=n("div"),m(Fa.$$.fragment),Tf=a(),Ss=n("p"),Ss.innerHTML=$u,Df=a(),te=n("div"),m(Xa.$$.fragment),Cf=a(),As=n("p"),As.innerHTML=yu,Sf=a(),ks=n("p"),ks.innerHTML=Mu,Af=a(),Rs=n("p"),Rs.innerHTML=Tu,kf=a(),Is=n("p"),Is.innerHTML=Du,Rf=a(),Ae=n("div"),m(Ea.$$.fragment),If=a(),Vs=n("p"),Vs.textContent=Cu,Vf=a(),m(qo.$$.fragment),Pf=a(),Jo=n("div"),m(Na.$$.fragment),Wf=a(),Ps=n("p"),Ps.textContent=Su,Hf=a(),ke=n("div"),m(za.$$.fragment),Uf=a(),Ws=n("p"),Ws.innerHTML=Au,Ff=a(),m(jo.$$.fragment),Xf=a(),Re=n("div"),m(qa.$$.fragment),Ef=a(),Hs=n("p"),Hs.textContent=ku,Nf=a(),m(Go.$$.fragment),Pd=a(),m(Ja.$$.fragment),Wd=a(),H=n("div"),m(ja.$$.fragment),zf=a(),Us=n("p"),Us.innerHTML=Ru,qf=a(),Zo=n("div"),m(Ga.$$.fragment),Jf=a(),Fs=n("p"),Fs.innerHTML=Iu,jf=a(),Bo=n("div"),m(Za.$$.fragment),Gf=a(),Xs=n("p"),Xs.innerHTML=Vu,Zf=a(),Ie=n("div"),m(Ba.$$.fragment),Bf=a(),Es=n("p"),Es.textContent=Pu,Yf=a(),m(Yo.$$.fragment),Qf=a(),Qo=n("div"),m(Ya.$$.fragment),Of=a(),Ns=n("p"),Ns.textContent=Wu,Kf=a(),Ve=n("div"),m(Qa.$$.fragment),em=a(),zs=n("p"),zs.innerHTML=Hu,om=a(),m(Oo.$$.fragment),Hd=a(),m(Oa.$$.fragment),Ud=a(),U=n("div"),m(Ka.$$.fragment),tm=a(),qs=n("p"),qs.innerHTML=Uu,am=a(),Ko=n("div"),m(er.$$.fragment),rm=a(),Js=n("p"),Js.innerHTML=Fu,nm=a(),et=n("div"),m(or.$$.fragment),sm=a(),js=n("p"),js.innerHTML=Xu,im=a(),Pe=n("div"),m(tr.$$.fragment),dm=a(),Gs=n("p"),Gs.textContent=Eu,lm=a(),m(ot.$$.fragment),cm=a(),tt=n("div"),m(ar.$$.fragment),fm=a(),Zs=n("p"),Zs.textContent=Nu,mm=a(),We=n("div"),m(rr.$$.fragment),pm=a(),Bs=n("p"),Bs.innerHTML=zu,_m=a(),m(at.$$.fragment),Fd=a(),m(nr.$$.fragment),Xd=a(),F=n("div"),m(sr.$$.fragment),um=a(),Ys=n("p"),Ys.innerHTML=qu,hm=a(),rt=n("div"),m(ir.$$.fragment),gm=a(),Qs=n("p"),Qs.innerHTML=Ju,Lm=a(),nt=n("div"),m(dr.$$.fragment),xm=a(),Os=n("p"),Os.innerHTML=ju,bm=a(),He=n("div"),m(lr.$$.fragment),vm=a(),Ks=n("p"),Ks.textContent=Gu,wm=a(),m(st.$$.fragment),$m=a(),it=n("div"),m(cr.$$.fragment),ym=a(),ei=n("p"),ei.textContent=Zu,Mm=a(),Ue=n("div"),m(fr.$$.fragment),Tm=a(),oi=n("p"),oi.innerHTML=Bu,Dm=a(),m(dt.$$.fragment),Ed=a(),m(mr.$$.fragment),Nd=a(),X=n("div"),m(pr.$$.fragment),Cm=a(),ti=n("p"),ti.innerHTML=Yu,Sm=a(),lt=n("div"),m(_r.$$.fragment),Am=a(),ai=n("p"),ai.innerHTML=Qu,km=a(),ct=n("div"),m(ur.$$.fragment),Rm=a(),ri=n("p"),ri.innerHTML=Ou,Im=a(),Fe=n("div"),m(hr.$$.fragment),Vm=a(),ni=n("p"),ni.textContent=Ku,Pm=a(),m(ft.$$.fragment),Wm=a(),mt=n("div"),m(gr.$$.fragment),Hm=a(),si=n("p"),si.textContent=eh,Um=a(),Xe=n("div"),m(Lr.$$.fragment),Fm=a(),ii=n("p"),ii.innerHTML=oh,Xm=a(),m(pt.$$.fragment),zd=a(),m(xr.$$.fragment),qd=a(),E=n("div"),m(br.$$.fragment),Em=a(),di=n("p"),di.innerHTML=th,Nm=a(),_t=n("div"),m(vr.$$.fragment),zm=a(),li=n("p"),li.innerHTML=ah,qm=a(),ut=n("div"),m(wr.$$.fragment),Jm=a(),ci=n("p"),ci.innerHTML=rh,jm=a(),Ee=n("div"),m($r.$$.fragment),Gm=a(),fi=n("p"),fi.textContent=nh,Zm=a(),m(ht.$$.fragment),Bm=a(),gt=n("div"),m(yr.$$.fragment),Ym=a(),mi=n("p"),mi.textContent=sh,Qm=a(),Ne=n("div"),m(Mr.$$.fragment),Om=a(),pi=n("p"),pi.innerHTML=ih,Km=a(),m(Lt.$$.fragment),Jd=a(),m(Tr.$$.fragment),jd=a(),N=n("div"),m(Dr.$$.fragment),ep=a(),_i=n("p"),_i.innerHTML=dh,op=a(),xt=n("div"),m(Cr.$$.fragment),tp=a(),ui=n("p"),ui.innerHTML=lh,ap=a(),bt=n("div"),m(Sr.$$.fragment),rp=a(),hi=n("p"),hi.innerHTML=ch,np=a(),ze=n("div"),m(Ar.$$.fragment),sp=a(),gi=n("p"),gi.textContent=fh,ip=a(),m(vt.$$.fragment),dp=a(),wt=n("div"),m(kr.$$.fragment),lp=a(),Li=n("p"),Li.textContent=mh,cp=a(),qe=n("div"),m(Rr.$$.fragment),fp=a(),xi=n("p"),xi.innerHTML=ph,mp=a(),m($t.$$.fragment),Gd=a(),m(Ir.$$.fragment),Zd=a(),z=n("div"),m(Vr.$$.fragment),pp=a(),bi=n("p"),bi.innerHTML=_h,_p=a(),yt=n("div"),m(Pr.$$.fragment),up=a(),vi=n("p"),vi.innerHTML=uh,hp=a(),Mt=n("div"),m(Wr.$$.fragment),gp=a(),wi=n("p"),wi.innerHTML=hh,Lp=a(),Je=n("div"),m(Hr.$$.fragment),xp=a(),$i=n("p"),$i.textContent=gh,bp=a(),m(Tt.$$.fragment),vp=a(),Dt=n("div"),m(Ur.$$.fragment),wp=a(),yi=n("p"),yi.textContent=Lh,$p=a(),je=n("div"),m(Fr.$$.fragment),yp=a(),Mi=n("p"),Mi.innerHTML=xh,Mp=a(),m(Ct.$$.fragment),Bd=a(),m(Xr.$$.fragment),Yd=a(),q=n("div"),m(Er.$$.fragment),Tp=a(),Ti=n("p"),Ti.innerHTML=bh,Dp=a(),St=n("div"),m(Nr.$$.fragment),Cp=a(),Di=n("p"),Di.innerHTML=vh,Sp=a(),At=n("div"),m(zr.$$.fragment),Ap=a(),Ci=n("p"),Ci.innerHTML=wh,kp=a(),Ge=n("div"),m(qr.$$.fragment),Rp=a(),Si=n("p"),Si.textContent=$h,Ip=a(),m(kt.$$.fragment),Vp=a(),Rt=n("div"),m(Jr.$$.fragment),Pp=a(),Ai=n("p"),Ai.textContent=yh,Wp=a(),Ze=n("div"),m(jr.$$.fragment),Hp=a(),ki=n("p"),ki.innerHTML=Mh,Up=a(),m(It.$$.fragment),Qd=a(),m(Gr.$$.fragment),Od=a(),J=n("div"),m(Zr.$$.fragment),Fp=a(),Ri=n("p"),Ri.innerHTML=Th,Xp=a(),Vt=n("div"),m(Br.$$.fragment),Ep=a(),Ii=n("p"),Ii.innerHTML=Dh,Np=a(),Pt=n("div"),m(Yr.$$.fragment),zp=a(),Vi=n("p"),Vi.innerHTML=Ch,qp=a(),Be=n("div"),m(Qr.$$.fragment),Jp=a(),Pi=n("p"),Pi.textContent=Sh,jp=a(),m(Wt.$$.fragment),Gp=a(),Ht=n("div"),m(Or.$$.fragment),Zp=a(),Wi=n("p"),Wi.textContent=Ah,Bp=a(),Ye=n("div"),m(Kr.$$.fragment),Yp=a(),Hi=n("p"),Hi.innerHTML=kh,Qp=a(),m(Ut.$$.fragment),Kd=a(),m(en.$$.fragment),el=a(),ge=n("div"),m(on.$$.fragment),Op=a(),Ft=n("div"),m(tn.$$.fragment),Kp=a(),Ui=n("p"),Ui.innerHTML=Rh,e_=a(),Xt=n("div"),m(an.$$.fragment),o_=a(),Fi=n("p"),Fi.textContent=Ih,ol=a(),m(rn.$$.fragment),tl=a(),j=n("div"),m(nn.$$.fragment),t_=a(),Xi=n("p"),Xi.innerHTML=Vh,a_=a(),Et=n("div"),m(sn.$$.fragment),r_=a(),Ei=n("p"),Ei.innerHTML=Ph,n_=a(),Nt=n("div"),m(dn.$$.fragment),s_=a(),Ni=n("p"),Ni.innerHTML=Wh,i_=a(),Qe=n("div"),m(ln.$$.fragment),d_=a(),zi=n("p"),zi.textContent=Hh,l_=a(),m(zt.$$.fragment),c_=a(),qt=n("div"),m(cn.$$.fragment),f_=a(),qi=n("p"),qi.textContent=Uh,m_=a(),Oe=n("div"),m(fn.$$.fragment),p_=a(),Ji=n("p"),Ji.innerHTML=Fh,__=a(),m(Jt.$$.fragment),al=a(),m(mn.$$.fragment),rl=a(),G=n("div"),m(pn.$$.fragment),u_=a(),ji=n("p"),ji.innerHTML=Xh,h_=a(),jt=n("div"),m(_n.$$.fragment),g_=a(),Gi=n("p"),Gi.innerHTML=Eh,L_=a(),Gt=n("div"),m(un.$$.fragment),x_=a(),Zi=n("p"),Zi.innerHTML=Nh,b_=a(),Ke=n("div"),m(hn.$$.fragment),v_=a(),Bi=n("p"),Bi.textContent=zh,w_=a(),m(Zt.$$.fragment),$_=a(),Bt=n("div"),m(gn.$$.fragment),y_=a(),Yi=n("p"),Yi.textContent=qh,M_=a(),eo=n("div"),m(Ln.$$.fragment),T_=a(),Qi=n("p"),Qi.innerHTML=Jh,D_=a(),m(Yt.$$.fragment),nl=a(),m(xn.$$.fragment),sl=a(),wd=n("p"),this.h()},l(e){const L=Yh("svelte-u9bgzb",document.head);t=s(L,"META",{name:!0,content:!0}),L.forEach(d),b=r(e),c=s(e,"P",{}),v(c).forEach(d),l=r(e),p(M.$$.fragment,e),i=r(e),y=s(e,"P",{"data-svelte-h":!0}),f(y)!=="svelte-19ub2jd"&&(y.innerHTML=C_),$d=r(e),Kt=s(e,"UL",{"data-svelte-h":!0}),f(Kt)!=="svelte-170zujy"&&(Kt.innerHTML=S_),yd=r(e),p(uo.$$.fragment,e),Md=r(e),p(ea.$$.fragment,e),Td=r(e),C=s(e,"DIV",{class:!0});var S=v(C);p(oa.$$.fragment,S),zl=r(S),Wn=s(S,"P",{"data-svelte-h":!0}),f(Wn)!=="svelte-1q4bbx"&&(Wn.textContent=A_),ql=r(S),xe=s(S,"DIV",{class:!0});var oo=v(xe);p(ta.$$.fragment,oo),Jl=r(oo),Hn=s(oo,"P",{"data-svelte-h":!0}),f(Hn)!=="svelte-197ly1e"&&(Hn.textContent=k_),jl=r(oo),p(ho.$$.fragment,oo),oo.forEach(d),Gl=r(S),be=s(S,"DIV",{class:!0});var to=v(be);p(aa.$$.fragment,to),Zl=r(to),Un=s(to,"P",{"data-svelte-h":!0}),f(Un)!=="svelte-1k7sb6g"&&(Un.textContent=R_),Bl=r(to),p(go.$$.fragment,to),to.forEach(d),Yl=r(S),ve=s(S,"DIV",{class:!0});var ao=v(ve);p(ra.$$.fragment,ao),Ql=r(ao),Fn=s(ao,"P",{"data-svelte-h":!0}),f(Fn)!=="svelte-1270mz9"&&(Fn.textContent=I_),Ol=r(ao),p(Lo.$$.fragment,ao),ao.forEach(d),Kl=r(S),xo=s(S,"DIV",{class:!0});var bn=v(xo);p(na.$$.fragment,bn),ec=r(bn),Xn=s(bn,"P",{"data-svelte-h":!0}),f(Xn)!=="svelte-aqzrjr"&&(Xn.textContent=V_),bn.forEach(d),oc=r(S),he=s(S,"DIV",{class:!0});var Le=v(he);p(sa.$$.fragment,Le),tc=r(Le),En=s(Le,"P",{"data-svelte-h":!0}),f(En)!=="svelte-1nr2dy0"&&(En.textContent=P_),ac=r(Le),p(bo.$$.fragment,Le),rc=r(Le),p(vo.$$.fragment,Le),Le.forEach(d),nc=r(S),we=s(S,"DIV",{class:!0});var ro=v(we);p(ia.$$.fragment,ro),sc=r(ro),Nn=s(ro,"P",{"data-svelte-h":!0}),f(Nn)!=="svelte-h0os0v"&&(Nn.textContent=W_),ic=r(ro),p(wo.$$.fragment,ro),ro.forEach(d),dc=r(S),$o=s(S,"DIV",{class:!0});var vn=v($o);p(da.$$.fragment,vn),lc=r(vn),zn=s(vn,"P",{"data-svelte-h":!0}),f(zn)!=="svelte-1825k9e"&&(zn.textContent=H_),vn.forEach(d),cc=r(S),$e=s(S,"DIV",{class:!0});var no=v($e);p(la.$$.fragment,no),fc=r(no),qn=s(no,"P",{"data-svelte-h":!0}),f(qn)!=="svelte-1nht1gz"&&(qn.textContent=U_),mc=r(no),p(yo.$$.fragment,no),no.forEach(d),pc=r(S),Mo=s(S,"DIV",{class:!0});var wn=v(Mo);p(ca.$$.fragment,wn),_c=r(wn),Jn=s(wn,"P",{"data-svelte-h":!0}),f(Jn)!=="svelte-rvubqa"&&(Jn.innerHTML=F_),wn.forEach(d),uc=r(S),ye=s(S,"DIV",{class:!0});var so=v(ye);p(fa.$$.fragment,so),hc=r(so),jn=s(so,"P",{"data-svelte-h":!0}),f(jn)!=="svelte-ioswce"&&(jn.innerHTML=X_),gc=r(so),p(To.$$.fragment,so),so.forEach(d),Lc=r(S),Me=s(S,"DIV",{class:!0});var io=v(Me);p(ma.$$.fragment,io),xc=r(io),Gn=s(io,"P",{"data-svelte-h":!0}),f(Gn)!=="svelte-119cgd9"&&(Gn.textContent=E_),bc=r(io),p(Do.$$.fragment,io),io.forEach(d),vc=r(S),Co=s(S,"DIV",{class:!0});var $n=v(Co);p(pa.$$.fragment,$n),wc=r($n),Zn=s($n,"P",{"data-svelte-h":!0}),f(Zn)!=="svelte-1rtya5j"&&(Zn.textContent=N_),$n.forEach(d),S.forEach(d),Dd=r(e),p(_a.$$.fragment,e),Cd=r(e),P=s(e,"DIV",{class:!0});var B=v(P);p(ua.$$.fragment,B),$c=r(B),Bn=s(B,"P",{"data-svelte-h":!0}),f(Bn)!=="svelte-icwsm2"&&(Bn.innerHTML=z_),yc=r(B),So=s(B,"DIV",{class:!0});var yn=v(So);p(ha.$$.fragment,yn),Mc=r(yn),Yn=s(yn,"P",{"data-svelte-h":!0}),f(Yn)!=="svelte-1062ci4"&&(Yn.innerHTML=q_),yn.forEach(d),Tc=r(B),Ao=s(B,"DIV",{class:!0});var Mn=v(Ao);p(ga.$$.fragment,Mn),Dc=r(Mn),Qn=s(Mn,"P",{"data-svelte-h":!0}),f(Qn)!=="svelte-u3q4so"&&(Qn.innerHTML=J_),Mn.forEach(d),Cc=r(B),Q=s(B,"DIV",{class:!0});var K=v(Q);p(La.$$.fragment,K),Sc=r(K),On=s(K,"P",{"data-svelte-h":!0}),f(On)!=="svelte-vs7s0z"&&(On.innerHTML=j_),Ac=r(K),Kn=s(K,"P",{"data-svelte-h":!0}),f(Kn)!=="svelte-15b960v"&&(Kn.innerHTML=G_),kc=r(K),es=s(K,"P",{"data-svelte-h":!0}),f(es)!=="svelte-x1m9l7"&&(es.innerHTML=Z_),Rc=r(K),os=s(K,"P",{"data-svelte-h":!0}),f(os)!=="svelte-eu2lms"&&(os.innerHTML=B_),Ic=r(K),ts=s(K,"P",{"data-svelte-h":!0}),f(ts)!=="svelte-1ifciie"&&(ts.innerHTML=Y_),K.forEach(d),Vc=r(B),Te=s(B,"DIV",{class:!0});var lo=v(Te);p(xa.$$.fragment,lo),Pc=r(lo),as=s(lo,"P",{"data-svelte-h":!0}),f(as)!=="svelte-flusvq"&&(as.textContent=Q_),Wc=r(lo),p(ko.$$.fragment,lo),lo.forEach(d),Hc=r(B),Ro=s(B,"DIV",{class:!0});var Tn=v(Ro);p(ba.$$.fragment,Tn),Uc=r(Tn),rs=s(Tn,"P",{"data-svelte-h":!0}),f(rs)!=="svelte-1ufq5ot"&&(rs.textContent=O_),Tn.forEach(d),B.forEach(d),Sd=r(e),p(va.$$.fragment,e),Ad=r(e),W=s(e,"DIV",{class:!0});var Y=v(W);p(wa.$$.fragment,Y),Fc=r(Y),ns=s(Y,"P",{"data-svelte-h":!0}),f(ns)!=="svelte-1bysynr"&&(ns.innerHTML=K_),Xc=r(Y),Io=s(Y,"DIV",{class:!0});var Dn=v(Io);p($a.$$.fragment,Dn),Ec=r(Dn),ss=s(Dn,"P",{"data-svelte-h":!0}),f(ss)!=="svelte-1062ci4"&&(ss.innerHTML=eu),Dn.forEach(d),Nc=r(Y),Vo=s(Y,"DIV",{class:!0});var Cn=v(Vo);p(ya.$$.fragment,Cn),zc=r(Cn),is=s(Cn,"P",{"data-svelte-h":!0}),f(is)!=="svelte-u3q4so"&&(is.innerHTML=ou),Cn.forEach(d),qc=r(Y),O=s(Y,"DIV",{class:!0});var ee=v(O);p(Ma.$$.fragment,ee),Jc=r(ee),ds=s(ee,"P",{"data-svelte-h":!0}),f(ds)!=="svelte-vs7s0z"&&(ds.innerHTML=tu),jc=r(ee),ls=s(ee,"P",{"data-svelte-h":!0}),f(ls)!=="svelte-15b960v"&&(ls.innerHTML=au),Gc=r(ee),cs=s(ee,"P",{"data-svelte-h":!0}),f(cs)!=="svelte-x1m9l7"&&(cs.innerHTML=ru),Zc=r(ee),fs=s(ee,"P",{"data-svelte-h":!0}),f(fs)!=="svelte-eu2lms"&&(fs.innerHTML=nu),Bc=r(ee),ms=s(ee,"P",{"data-svelte-h":!0}),f(ms)!=="svelte-1ifciie"&&(ms.innerHTML=su),ee.forEach(d),Yc=r(Y),De=s(Y,"DIV",{class:!0});var co=v(De);p(Ta.$$.fragment,co),Qc=r(co),ps=s(co,"P",{"data-svelte-h":!0}),f(ps)!=="svelte-flusvq"&&(ps.textContent=iu),Oc=r(co),p(Po.$$.fragment,co),co.forEach(d),Kc=r(Y),Wo=s(Y,"DIV",{class:!0});var Sn=v(Wo);p(Da.$$.fragment,Sn),ef=r(Sn),_s=s(Sn,"P",{"data-svelte-h":!0}),f(_s)!=="svelte-1ufq5ot"&&(_s.textContent=du),Sn.forEach(d),Y.forEach(d),kd=r(e),p(Ca.$$.fragment,e),Rd=r(e),R=s(e,"DIV",{class:!0});var V=v(R);p(Sa.$$.fragment,V),of=r(V),us=s(V,"P",{"data-svelte-h":!0}),f(us)!=="svelte-13ve1by"&&(us.innerHTML=lu),tf=r(V),hs=s(V,"P",{"data-svelte-h":!0}),f(hs)!=="svelte-fc9xr0"&&(hs.innerHTML=cu),af=r(V),Ho=s(V,"DIV",{class:!0});var An=v(Ho);p(Aa.$$.fragment,An),rf=r(An),gs=s(An,"P",{"data-svelte-h":!0}),f(gs)!=="svelte-1062ci4"&&(gs.innerHTML=fu),An.forEach(d),nf=r(V),Uo=s(V,"DIV",{class:!0});var kn=v(Uo);p(ka.$$.fragment,kn),sf=r(kn),Ls=s(kn,"P",{"data-svelte-h":!0}),f(Ls)!=="svelte-1lgbsz7"&&(Ls.innerHTML=mu),kn.forEach(d),df=r(V),oe=s(V,"DIV",{class:!0});var _e=v(oe);p(Ra.$$.fragment,_e),lf=r(_e),xs=s(_e,"P",{"data-svelte-h":!0}),f(xs)!=="svelte-vs7s0z"&&(xs.innerHTML=pu),cf=r(_e),bs=s(_e,"P",{"data-svelte-h":!0}),f(bs)!=="svelte-15b960v"&&(bs.innerHTML=_u),ff=r(_e),vs=s(_e,"P",{"data-svelte-h":!0}),f(vs)!=="svelte-x1m9l7"&&(vs.innerHTML=uu),mf=r(_e),ws=s(_e,"P",{"data-svelte-h":!0}),f(ws)!=="svelte-1ukghd4"&&(ws.innerHTML=hu),_e.forEach(d),pf=r(V),Ce=s(V,"DIV",{class:!0});var fo=v(Ce);p(Ia.$$.fragment,fo),_f=r(fo),$s=s(fo,"P",{"data-svelte-h":!0}),f($s)!=="svelte-flusvq"&&($s.textContent=gu),uf=r(fo),p(Fo.$$.fragment,fo),fo.forEach(d),hf=r(V),Xo=s(V,"DIV",{class:!0});var Rn=v(Xo);p(Va.$$.fragment,Rn),gf=r(Rn),ys=s(Rn,"P",{"data-svelte-h":!0}),f(ys)!=="svelte-1ufq5ot"&&(ys.textContent=Lu),Rn.forEach(d),Lf=r(V),Se=s(V,"DIV",{class:!0});var mo=v(Se);p(Pa.$$.fragment,mo),xf=r(mo),Ms=s(mo,"P",{"data-svelte-h":!0}),f(Ms)!=="svelte-ioswce"&&(Ms.innerHTML=xu),bf=r(mo),p(Eo.$$.fragment,mo),mo.forEach(d),V.forEach(d),Id=r(e),p(Wa.$$.fragment,e),Vd=r(e),k=s(e,"DIV",{class:!0});var I=v(k);p(Ha.$$.fragment,I),vf=r(I),Ts=s(I,"P",{"data-svelte-h":!0}),f(Ts)!=="svelte-1xpw6l3"&&(Ts.innerHTML=bu),wf=r(I),Ds=s(I,"P",{"data-svelte-h":!0}),f(Ds)!=="svelte-fc9xr0"&&(Ds.innerHTML=vu),$f=r(I),No=s(I,"DIV",{class:!0});var In=v(No);p(Ua.$$.fragment,In),yf=r(In),Cs=s(In,"P",{"data-svelte-h":!0}),f(Cs)!=="svelte-1062ci4"&&(Cs.innerHTML=wu),In.forEach(d),Mf=r(I),zo=s(I,"DIV",{class:!0});var Vn=v(zo);p(Fa.$$.fragment,Vn),Tf=r(Vn),Ss=s(Vn,"P",{"data-svelte-h":!0}),f(Ss)!=="svelte-1lgbsz7"&&(Ss.innerHTML=$u),Vn.forEach(d),Df=r(I),te=s(I,"DIV",{class:!0});var ue=v(te);p(Xa.$$.fragment,ue),Cf=r(ue),As=s(ue,"P",{"data-svelte-h":!0}),f(As)!=="svelte-178gcly"&&(As.innerHTML=yu),Sf=r(ue),ks=s(ue,"P",{"data-svelte-h":!0}),f(ks)!=="svelte-15b960v"&&(ks.innerHTML=Mu),Af=r(ue),Rs=s(ue,"P",{"data-svelte-h":!0}),f(Rs)!=="svelte-x1m9l7"&&(Rs.innerHTML=Tu),kf=r(ue),Is=s(ue,"P",{"data-svelte-h":!0}),f(Is)!=="svelte-1ukghd4"&&(Is.innerHTML=Du),ue.forEach(d),Rf=r(I),Ae=s(I,"DIV",{class:!0});var po=v(Ae);p(Ea.$$.fragment,po),If=r(po),Vs=s(po,"P",{"data-svelte-h":!0}),f(Vs)!=="svelte-flusvq"&&(Vs.textContent=Cu),Vf=r(po),p(qo.$$.fragment,po),po.forEach(d),Pf=r(I),Jo=s(I,"DIV",{class:!0});var Pn=v(Jo);p(Na.$$.fragment,Pn),Wf=r(Pn),Ps=s(Pn,"P",{"data-svelte-h":!0}),f(Ps)!=="svelte-1ufq5ot"&&(Ps.textContent=Su),Pn.forEach(d),Hf=r(I),ke=s(I,"DIV",{class:!0});var _o=v(ke);p(za.$$.fragment,_o),Uf=r(_o),Ws=s(_o,"P",{"data-svelte-h":!0}),f(Ws)!=="svelte-ioswce"&&(Ws.innerHTML=Au),Ff=r(_o),p(jo.$$.fragment,_o),_o.forEach(d),Xf=r(I),Re=s(I,"DIV",{class:!0});var Oi=v(Re);p(qa.$$.fragment,Oi),Ef=r(Oi),Hs=s(Oi,"P",{"data-svelte-h":!0}),f(Hs)!=="svelte-119cgd9"&&(Hs.textContent=ku),Nf=r(Oi),p(Go.$$.fragment,Oi),Oi.forEach(d),I.forEach(d),Pd=r(e),p(Ja.$$.fragment,e),Wd=r(e),H=s(e,"DIV",{class:!0});var ae=v(H);p(ja.$$.fragment,ae),zf=r(ae),Us=s(ae,"P",{"data-svelte-h":!0}),f(Us)!=="svelte-n3tlht"&&(Us.innerHTML=Ru),qf=r(ae),Zo=s(ae,"DIV",{class:!0});var dl=v(Zo);p(Ga.$$.fragment,dl),Jf=r(dl),Fs=s(dl,"P",{"data-svelte-h":!0}),f(Fs)!=="svelte-1lgbsz7"&&(Fs.innerHTML=Iu),dl.forEach(d),jf=r(ae),Bo=s(ae,"DIV",{class:!0});var ll=v(Bo);p(Za.$$.fragment,ll),Gf=r(ll),Xs=s(ll,"P",{"data-svelte-h":!0}),f(Xs)!=="svelte-dq6wny"&&(Xs.innerHTML=Vu),ll.forEach(d),Zf=r(ae),Ie=s(ae,"DIV",{class:!0});var Ki=v(Ie);p(Ba.$$.fragment,Ki),Bf=r(Ki),Es=s(Ki,"P",{"data-svelte-h":!0}),f(Es)!=="svelte-flusvq"&&(Es.textContent=Pu),Yf=r(Ki),p(Yo.$$.fragment,Ki),Ki.forEach(d),Qf=r(ae),Qo=s(ae,"DIV",{class:!0});var cl=v(Qo);p(Ya.$$.fragment,cl),Of=r(cl),Ns=s(cl,"P",{"data-svelte-h":!0}),f(Ns)!=="svelte-1gl6t2c"&&(Ns.textContent=Wu),cl.forEach(d),Kf=r(ae),Ve=s(ae,"DIV",{class:!0});var ed=v(Ve);p(Qa.$$.fragment,ed),em=r(ed),zs=s(ed,"P",{"data-svelte-h":!0}),f(zs)!=="svelte-ioswce"&&(zs.innerHTML=Hu),om=r(ed),p(Oo.$$.fragment,ed),ed.forEach(d),ae.forEach(d),Hd=r(e),p(Oa.$$.fragment,e),Ud=r(e),U=s(e,"DIV",{class:!0});var re=v(U);p(Ka.$$.fragment,re),tm=r(re),qs=s(re,"P",{"data-svelte-h":!0}),f(qs)!=="svelte-1h80n6p"&&(qs.innerHTML=Uu),am=r(re),Ko=s(re,"DIV",{class:!0});var fl=v(Ko);p(er.$$.fragment,fl),rm=r(fl),Js=s(fl,"P",{"data-svelte-h":!0}),f(Js)!=="svelte-1lgbsz7"&&(Js.innerHTML=Fu),fl.forEach(d),nm=r(re),et=s(re,"DIV",{class:!0});var ml=v(et);p(or.$$.fragment,ml),sm=r(ml),js=s(ml,"P",{"data-svelte-h":!0}),f(js)!=="svelte-dq6wny"&&(js.innerHTML=Xu),ml.forEach(d),im=r(re),Pe=s(re,"DIV",{class:!0});var od=v(Pe);p(tr.$$.fragment,od),dm=r(od),Gs=s(od,"P",{"data-svelte-h":!0}),f(Gs)!=="svelte-flusvq"&&(Gs.textContent=Eu),lm=r(od),p(ot.$$.fragment,od),od.forEach(d),cm=r(re),tt=s(re,"DIV",{class:!0});var pl=v(tt);p(ar.$$.fragment,pl),fm=r(pl),Zs=s(pl,"P",{"data-svelte-h":!0}),f(Zs)!=="svelte-1gl6t2c"&&(Zs.textContent=Nu),pl.forEach(d),mm=r(re),We=s(re,"DIV",{class:!0});var td=v(We);p(rr.$$.fragment,td),pm=r(td),Bs=s(td,"P",{"data-svelte-h":!0}),f(Bs)!=="svelte-ioswce"&&(Bs.innerHTML=zu),_m=r(td),p(at.$$.fragment,td),td.forEach(d),re.forEach(d),Fd=r(e),p(nr.$$.fragment,e),Xd=r(e),F=s(e,"DIV",{class:!0});var ne=v(F);p(sr.$$.fragment,ne),um=r(ne),Ys=s(ne,"P",{"data-svelte-h":!0}),f(Ys)!=="svelte-k1lpxo"&&(Ys.innerHTML=qu),hm=r(ne),rt=s(ne,"DIV",{class:!0});var _l=v(rt);p(ir.$$.fragment,_l),gm=r(_l),Qs=s(_l,"P",{"data-svelte-h":!0}),f(Qs)!=="svelte-1lgbsz7"&&(Qs.innerHTML=Ju),_l.forEach(d),Lm=r(ne),nt=s(ne,"DIV",{class:!0});var ul=v(nt);p(dr.$$.fragment,ul),xm=r(ul),Os=s(ul,"P",{"data-svelte-h":!0}),f(Os)!=="svelte-dq6wny"&&(Os.innerHTML=ju),ul.forEach(d),bm=r(ne),He=s(ne,"DIV",{class:!0});var ad=v(He);p(lr.$$.fragment,ad),vm=r(ad),Ks=s(ad,"P",{"data-svelte-h":!0}),f(Ks)!=="svelte-flusvq"&&(Ks.textContent=Gu),wm=r(ad),p(st.$$.fragment,ad),ad.forEach(d),$m=r(ne),it=s(ne,"DIV",{class:!0});var hl=v(it);p(cr.$$.fragment,hl),ym=r(hl),ei=s(hl,"P",{"data-svelte-h":!0}),f(ei)!=="svelte-1gl6t2c"&&(ei.textContent=Zu),hl.forEach(d),Mm=r(ne),Ue=s(ne,"DIV",{class:!0});var rd=v(Ue);p(fr.$$.fragment,rd),Tm=r(rd),oi=s(rd,"P",{"data-svelte-h":!0}),f(oi)!=="svelte-ioswce"&&(oi.innerHTML=Bu),Dm=r(rd),p(dt.$$.fragment,rd),rd.forEach(d),ne.forEach(d),Ed=r(e),p(mr.$$.fragment,e),Nd=r(e),X=s(e,"DIV",{class:!0});var se=v(X);p(pr.$$.fragment,se),Cm=r(se),ti=s(se,"P",{"data-svelte-h":!0}),f(ti)!=="svelte-tvtm79"&&(ti.innerHTML=Yu),Sm=r(se),lt=s(se,"DIV",{class:!0});var gl=v(lt);p(_r.$$.fragment,gl),Am=r(gl),ai=s(gl,"P",{"data-svelte-h":!0}),f(ai)!=="svelte-1lgbsz7"&&(ai.innerHTML=Qu),gl.forEach(d),km=r(se),ct=s(se,"DIV",{class:!0});var Ll=v(ct);p(ur.$$.fragment,Ll),Rm=r(Ll),ri=s(Ll,"P",{"data-svelte-h":!0}),f(ri)!=="svelte-dq6wny"&&(ri.innerHTML=Ou),Ll.forEach(d),Im=r(se),Fe=s(se,"DIV",{class:!0});var nd=v(Fe);p(hr.$$.fragment,nd),Vm=r(nd),ni=s(nd,"P",{"data-svelte-h":!0}),f(ni)!=="svelte-flusvq"&&(ni.textContent=Ku),Pm=r(nd),p(ft.$$.fragment,nd),nd.forEach(d),Wm=r(se),mt=s(se,"DIV",{class:!0});var xl=v(mt);p(gr.$$.fragment,xl),Hm=r(xl),si=s(xl,"P",{"data-svelte-h":!0}),f(si)!=="svelte-1gl6t2c"&&(si.textContent=eh),xl.forEach(d),Um=r(se),Xe=s(se,"DIV",{class:!0});var sd=v(Xe);p(Lr.$$.fragment,sd),Fm=r(sd),ii=s(sd,"P",{"data-svelte-h":!0}),f(ii)!=="svelte-ioswce"&&(ii.innerHTML=oh),Xm=r(sd),p(pt.$$.fragment,sd),sd.forEach(d),se.forEach(d),zd=r(e),p(xr.$$.fragment,e),qd=r(e),E=s(e,"DIV",{class:!0});var ie=v(E);p(br.$$.fragment,ie),Em=r(ie),di=s(ie,"P",{"data-svelte-h":!0}),f(di)!=="svelte-12gaieg"&&(di.innerHTML=th),Nm=r(ie),_t=s(ie,"DIV",{class:!0});var bl=v(_t);p(vr.$$.fragment,bl),zm=r(bl),li=s(bl,"P",{"data-svelte-h":!0}),f(li)!=="svelte-1lgbsz7"&&(li.innerHTML=ah),bl.forEach(d),qm=r(ie),ut=s(ie,"DIV",{class:!0});var vl=v(ut);p(wr.$$.fragment,vl),Jm=r(vl),ci=s(vl,"P",{"data-svelte-h":!0}),f(ci)!=="svelte-dq6wny"&&(ci.innerHTML=rh),vl.forEach(d),jm=r(ie),Ee=s(ie,"DIV",{class:!0});var id=v(Ee);p($r.$$.fragment,id),Gm=r(id),fi=s(id,"P",{"data-svelte-h":!0}),f(fi)!=="svelte-flusvq"&&(fi.textContent=nh),Zm=r(id),p(ht.$$.fragment,id),id.forEach(d),Bm=r(ie),gt=s(ie,"DIV",{class:!0});var wl=v(gt);p(yr.$$.fragment,wl),Ym=r(wl),mi=s(wl,"P",{"data-svelte-h":!0}),f(mi)!=="svelte-1gl6t2c"&&(mi.textContent=sh),wl.forEach(d),Qm=r(ie),Ne=s(ie,"DIV",{class:!0});var dd=v(Ne);p(Mr.$$.fragment,dd),Om=r(dd),pi=s(dd,"P",{"data-svelte-h":!0}),f(pi)!=="svelte-ioswce"&&(pi.innerHTML=ih),Km=r(dd),p(Lt.$$.fragment,dd),dd.forEach(d),ie.forEach(d),Jd=r(e),p(Tr.$$.fragment,e),jd=r(e),N=s(e,"DIV",{class:!0});var de=v(N);p(Dr.$$.fragment,de),ep=r(de),_i=s(de,"P",{"data-svelte-h":!0}),f(_i)!=="svelte-1v43uv0"&&(_i.innerHTML=dh),op=r(de),xt=s(de,"DIV",{class:!0});var $l=v(xt);p(Cr.$$.fragment,$l),tp=r($l),ui=s($l,"P",{"data-svelte-h":!0}),f(ui)!=="svelte-1lgbsz7"&&(ui.innerHTML=lh),$l.forEach(d),ap=r(de),bt=s(de,"DIV",{class:!0});var yl=v(bt);p(Sr.$$.fragment,yl),rp=r(yl),hi=s(yl,"P",{"data-svelte-h":!0}),f(hi)!=="svelte-dq6wny"&&(hi.innerHTML=ch),yl.forEach(d),np=r(de),ze=s(de,"DIV",{class:!0});var ld=v(ze);p(Ar.$$.fragment,ld),sp=r(ld),gi=s(ld,"P",{"data-svelte-h":!0}),f(gi)!=="svelte-flusvq"&&(gi.textContent=fh),ip=r(ld),p(vt.$$.fragment,ld),ld.forEach(d),dp=r(de),wt=s(de,"DIV",{class:!0});var Ml=v(wt);p(kr.$$.fragment,Ml),lp=r(Ml),Li=s(Ml,"P",{"data-svelte-h":!0}),f(Li)!=="svelte-1gl6t2c"&&(Li.textContent=mh),Ml.forEach(d),cp=r(de),qe=s(de,"DIV",{class:!0});var cd=v(qe);p(Rr.$$.fragment,cd),fp=r(cd),xi=s(cd,"P",{"data-svelte-h":!0}),f(xi)!=="svelte-ioswce"&&(xi.innerHTML=ph),mp=r(cd),p($t.$$.fragment,cd),cd.forEach(d),de.forEach(d),Gd=r(e),p(Ir.$$.fragment,e),Zd=r(e),z=s(e,"DIV",{class:!0});var le=v(z);p(Vr.$$.fragment,le),pp=r(le),bi=s(le,"P",{"data-svelte-h":!0}),f(bi)!=="svelte-10viq01"&&(bi.innerHTML=_h),_p=r(le),yt=s(le,"DIV",{class:!0});var Tl=v(yt);p(Pr.$$.fragment,Tl),up=r(Tl),vi=s(Tl,"P",{"data-svelte-h":!0}),f(vi)!=="svelte-1lgbsz7"&&(vi.innerHTML=uh),Tl.forEach(d),hp=r(le),Mt=s(le,"DIV",{class:!0});var Dl=v(Mt);p(Wr.$$.fragment,Dl),gp=r(Dl),wi=s(Dl,"P",{"data-svelte-h":!0}),f(wi)!=="svelte-dq6wny"&&(wi.innerHTML=hh),Dl.forEach(d),Lp=r(le),Je=s(le,"DIV",{class:!0});var fd=v(Je);p(Hr.$$.fragment,fd),xp=r(fd),$i=s(fd,"P",{"data-svelte-h":!0}),f($i)!=="svelte-flusvq"&&($i.textContent=gh),bp=r(fd),p(Tt.$$.fragment,fd),fd.forEach(d),vp=r(le),Dt=s(le,"DIV",{class:!0});var Cl=v(Dt);p(Ur.$$.fragment,Cl),wp=r(Cl),yi=s(Cl,"P",{"data-svelte-h":!0}),f(yi)!=="svelte-1gl6t2c"&&(yi.textContent=Lh),Cl.forEach(d),$p=r(le),je=s(le,"DIV",{class:!0});var md=v(je);p(Fr.$$.fragment,md),yp=r(md),Mi=s(md,"P",{"data-svelte-h":!0}),f(Mi)!=="svelte-ioswce"&&(Mi.innerHTML=xh),Mp=r(md),p(Ct.$$.fragment,md),md.forEach(d),le.forEach(d),Bd=r(e),p(Xr.$$.fragment,e),Yd=r(e),q=s(e,"DIV",{class:!0});var ce=v(q);p(Er.$$.fragment,ce),Tp=r(ce),Ti=s(ce,"P",{"data-svelte-h":!0}),f(Ti)!=="svelte-jli8sm"&&(Ti.innerHTML=bh),Dp=r(ce),St=s(ce,"DIV",{class:!0});var Sl=v(St);p(Nr.$$.fragment,Sl),Cp=r(Sl),Di=s(Sl,"P",{"data-svelte-h":!0}),f(Di)!=="svelte-1lgbsz7"&&(Di.innerHTML=vh),Sl.forEach(d),Sp=r(ce),At=s(ce,"DIV",{class:!0});var Al=v(At);p(zr.$$.fragment,Al),Ap=r(Al),Ci=s(Al,"P",{"data-svelte-h":!0}),f(Ci)!=="svelte-dq6wny"&&(Ci.innerHTML=wh),Al.forEach(d),kp=r(ce),Ge=s(ce,"DIV",{class:!0});var pd=v(Ge);p(qr.$$.fragment,pd),Rp=r(pd),Si=s(pd,"P",{"data-svelte-h":!0}),f(Si)!=="svelte-flusvq"&&(Si.textContent=$h),Ip=r(pd),p(kt.$$.fragment,pd),pd.forEach(d),Vp=r(ce),Rt=s(ce,"DIV",{class:!0});var kl=v(Rt);p(Jr.$$.fragment,kl),Pp=r(kl),Ai=s(kl,"P",{"data-svelte-h":!0}),f(Ai)!=="svelte-1gl6t2c"&&(Ai.textContent=yh),kl.forEach(d),Wp=r(ce),Ze=s(ce,"DIV",{class:!0});var _d=v(Ze);p(jr.$$.fragment,_d),Hp=r(_d),ki=s(_d,"P",{"data-svelte-h":!0}),f(ki)!=="svelte-ioswce"&&(ki.innerHTML=Mh),Up=r(_d),p(It.$$.fragment,_d),_d.forEach(d),ce.forEach(d),Qd=r(e),p(Gr.$$.fragment,e),Od=r(e),J=s(e,"DIV",{class:!0});var fe=v(J);p(Zr.$$.fragment,fe),Fp=r(fe),Ri=s(fe,"P",{"data-svelte-h":!0}),f(Ri)!=="svelte-17k0k9p"&&(Ri.innerHTML=Th),Xp=r(fe),Vt=s(fe,"DIV",{class:!0});var Rl=v(Vt);p(Br.$$.fragment,Rl),Ep=r(Rl),Ii=s(Rl,"P",{"data-svelte-h":!0}),f(Ii)!=="svelte-1lgbsz7"&&(Ii.innerHTML=Dh),Rl.forEach(d),Np=r(fe),Pt=s(fe,"DIV",{class:!0});var Il=v(Pt);p(Yr.$$.fragment,Il),zp=r(Il),Vi=s(Il,"P",{"data-svelte-h":!0}),f(Vi)!=="svelte-dq6wny"&&(Vi.innerHTML=Ch),Il.forEach(d),qp=r(fe),Be=s(fe,"DIV",{class:!0});var ud=v(Be);p(Qr.$$.fragment,ud),Jp=r(ud),Pi=s(ud,"P",{"data-svelte-h":!0}),f(Pi)!=="svelte-flusvq"&&(Pi.textContent=Sh),jp=r(ud),p(Wt.$$.fragment,ud),ud.forEach(d),Gp=r(fe),Ht=s(fe,"DIV",{class:!0});var Vl=v(Ht);p(Or.$$.fragment,Vl),Zp=r(Vl),Wi=s(Vl,"P",{"data-svelte-h":!0}),f(Wi)!=="svelte-1gl6t2c"&&(Wi.textContent=Ah),Vl.forEach(d),Bp=r(fe),Ye=s(fe,"DIV",{class:!0});var hd=v(Ye);p(Kr.$$.fragment,hd),Yp=r(hd),Hi=s(hd,"P",{"data-svelte-h":!0}),f(Hi)!=="svelte-ioswce"&&(Hi.innerHTML=kh),Qp=r(hd),p(Ut.$$.fragment,hd),hd.forEach(d),fe.forEach(d),Kd=r(e),p(en.$$.fragment,e),el=r(e),ge=s(e,"DIV",{class:!0});var gd=v(ge);p(on.$$.fragment,gd),Op=r(gd),Ft=s(gd,"DIV",{class:!0});var Pl=v(Ft);p(tn.$$.fragment,Pl),Kp=r(Pl),Ui=s(Pl,"P",{"data-svelte-h":!0}),f(Ui)!=="svelte-1lgbsz7"&&(Ui.innerHTML=Rh),Pl.forEach(d),e_=r(gd),Xt=s(gd,"DIV",{class:!0});var Wl=v(Xt);p(an.$$.fragment,Wl),o_=r(Wl),Fi=s(Wl,"P",{"data-svelte-h":!0}),f(Fi)!=="svelte-1ufq5ot"&&(Fi.textContent=Ih),Wl.forEach(d),gd.forEach(d),ol=r(e),p(rn.$$.fragment,e),tl=r(e),j=s(e,"DIV",{class:!0});var me=v(j);p(nn.$$.fragment,me),t_=r(me),Xi=s(me,"P",{"data-svelte-h":!0}),f(Xi)!=="svelte-1376884"&&(Xi.innerHTML=Vh),a_=r(me),Et=s(me,"DIV",{class:!0});var Hl=v(Et);p(sn.$$.fragment,Hl),r_=r(Hl),Ei=s(Hl,"P",{"data-svelte-h":!0}),f(Ei)!=="svelte-1lgbsz7"&&(Ei.innerHTML=Ph),Hl.forEach(d),n_=r(me),Nt=s(me,"DIV",{class:!0});var Ul=v(Nt);p(dn.$$.fragment,Ul),s_=r(Ul),Ni=s(Ul,"P",{"data-svelte-h":!0}),f(Ni)!=="svelte-dq6wny"&&(Ni.innerHTML=Wh),Ul.forEach(d),i_=r(me),Qe=s(me,"DIV",{class:!0});var Ld=v(Qe);p(ln.$$.fragment,Ld),d_=r(Ld),zi=s(Ld,"P",{"data-svelte-h":!0}),f(zi)!=="svelte-flusvq"&&(zi.textContent=Hh),l_=r(Ld),p(zt.$$.fragment,Ld),Ld.forEach(d),c_=r(me),qt=s(me,"DIV",{class:!0});var Fl=v(qt);p(cn.$$.fragment,Fl),f_=r(Fl),qi=s(Fl,"P",{"data-svelte-h":!0}),f(qi)!=="svelte-1gl6t2c"&&(qi.textContent=Uh),Fl.forEach(d),m_=r(me),Oe=s(me,"DIV",{class:!0});var xd=v(Oe);p(fn.$$.fragment,xd),p_=r(xd),Ji=s(xd,"P",{"data-svelte-h":!0}),f(Ji)!=="svelte-ioswce"&&(Ji.innerHTML=Fh),__=r(xd),p(Jt.$$.fragment,xd),xd.forEach(d),me.forEach(d),al=r(e),p(mn.$$.fragment,e),rl=r(e),G=s(e,"DIV",{class:!0});var pe=v(G);p(pn.$$.fragment,pe),u_=r(pe),ji=s(pe,"P",{"data-svelte-h":!0}),f(ji)!=="svelte-17k0k9p"&&(ji.innerHTML=Xh),h_=r(pe),jt=s(pe,"DIV",{class:!0});var Xl=v(jt);p(_n.$$.fragment,Xl),g_=r(Xl),Gi=s(Xl,"P",{"data-svelte-h":!0}),f(Gi)!=="svelte-1lgbsz7"&&(Gi.innerHTML=Eh),Xl.forEach(d),L_=r(pe),Gt=s(pe,"DIV",{class:!0});var El=v(Gt);p(un.$$.fragment,El),x_=r(El),Zi=s(El,"P",{"data-svelte-h":!0}),f(Zi)!=="svelte-dq6wny"&&(Zi.innerHTML=Nh),El.forEach(d),b_=r(pe),Ke=s(pe,"DIV",{class:!0});var bd=v(Ke);p(hn.$$.fragment,bd),v_=r(bd),Bi=s(bd,"P",{"data-svelte-h":!0}),f(Bi)!=="svelte-flusvq"&&(Bi.textContent=zh),w_=r(bd),p(Zt.$$.fragment,bd),bd.forEach(d),$_=r(pe),Bt=s(pe,"DIV",{class:!0});var Nl=v(Bt);p(gn.$$.fragment,Nl),y_=r(Nl),Yi=s(Nl,"P",{"data-svelte-h":!0}),f(Yi)!=="svelte-1gl6t2c"&&(Yi.textContent=qh),Nl.forEach(d),M_=r(pe),eo=s(pe,"DIV",{class:!0});var vd=v(eo);p(Ln.$$.fragment,vd),T_=r(vd),Qi=s(vd,"P",{"data-svelte-h":!0}),f(Qi)!=="svelte-ioswce"&&(Qi.innerHTML=Jh),D_=r(vd),p(Yt.$$.fragment,vd),vd.forEach(d),pe.forEach(d),nl=r(e),p(xn.$$.fragment,e),sl=r(e),wd=s(e,"P",{}),v(wd).forEach(d),this.h()},h(){w(t,"name","hf:doc:metadata"),w(t,"content",Ug),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(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(ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(xo,"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(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($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($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(Mo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ye,"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(Co,"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(So,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ao,"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(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(Ro,"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(Io,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Vo,"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(Wo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ho,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Uo,"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(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(Xo,"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(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(No,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(zo,"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(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(Jo,"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(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(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(Zo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Bo,"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(Qo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ko,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(et,"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(tt,"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(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(rt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(nt,"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(it,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),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(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(lt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ct,"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(mt,"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(X,"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(ut,"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(gt,"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(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(xt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(bt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ze,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(wt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(qe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(yt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Mt,"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(Dt,"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(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(St,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(At,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Rt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ze,"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(Vt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Pt,"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(Ht,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ft,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Xt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Et,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Nt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Qe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(qt,"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(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(jt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Gt,"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(Bt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(eo,"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")},m(e,L){o(document.head,t),x(e,b,L),x(e,c,L),x(e,l,L),_(M,e,L),x(e,i,L),x(e,y,L),x(e,$d,L),x(e,Kt,L),x(e,yd,L),_(uo,e,L),x(e,Md,L),_(ea,e,L),x(e,Td,L),x(e,C,L),_(oa,C,null),o(C,zl),o(C,Wn),o(C,ql),o(C,xe),_(ta,xe,null),o(xe,Jl),o(xe,Hn),o(xe,jl),_(ho,xe,null),o(C,Gl),o(C,be),_(aa,be,null),o(be,Zl),o(be,Un),o(be,Bl),_(go,be,null),o(C,Yl),o(C,ve),_(ra,ve,null),o(ve,Ql),o(ve,Fn),o(ve,Ol),_(Lo,ve,null),o(C,Kl),o(C,xo),_(na,xo,null),o(xo,ec),o(xo,Xn),o(C,oc),o(C,he),_(sa,he,null),o(he,tc),o(he,En),o(he,ac),_(bo,he,null),o(he,rc),_(vo,he,null),o(C,nc),o(C,we),_(ia,we,null),o(we,sc),o(we,Nn),o(we,ic),_(wo,we,null),o(C,dc),o(C,$o),_(da,$o,null),o($o,lc),o($o,zn),o(C,cc),o(C,$e),_(la,$e,null),o($e,fc),o($e,qn),o($e,mc),_(yo,$e,null),o(C,pc),o(C,Mo),_(ca,Mo,null),o(Mo,_c),o(Mo,Jn),o(C,uc),o(C,ye),_(fa,ye,null),o(ye,hc),o(ye,jn),o(ye,gc),_(To,ye,null),o(C,Lc),o(C,Me),_(ma,Me,null),o(Me,xc),o(Me,Gn),o(Me,bc),_(Do,Me,null),o(C,vc),o(C,Co),_(pa,Co,null),o(Co,wc),o(Co,Zn),x(e,Dd,L),_(_a,e,L),x(e,Cd,L),x(e,P,L),_(ua,P,null),o(P,$c),o(P,Bn),o(P,yc),o(P,So),_(ha,So,null),o(So,Mc),o(So,Yn),o(P,Tc),o(P,Ao),_(ga,Ao,null),o(Ao,Dc),o(Ao,Qn),o(P,Cc),o(P,Q),_(La,Q,null),o(Q,Sc),o(Q,On),o(Q,Ac),o(Q,Kn),o(Q,kc),o(Q,es),o(Q,Rc),o(Q,os),o(Q,Ic),o(Q,ts),o(P,Vc),o(P,Te),_(xa,Te,null),o(Te,Pc),o(Te,as),o(Te,Wc),_(ko,Te,null),o(P,Hc),o(P,Ro),_(ba,Ro,null),o(Ro,Uc),o(Ro,rs),x(e,Sd,L),_(va,e,L),x(e,Ad,L),x(e,W,L),_(wa,W,null),o(W,Fc),o(W,ns),o(W,Xc),o(W,Io),_($a,Io,null),o(Io,Ec),o(Io,ss),o(W,Nc),o(W,Vo),_(ya,Vo,null),o(Vo,zc),o(Vo,is),o(W,qc),o(W,O),_(Ma,O,null),o(O,Jc),o(O,ds),o(O,jc),o(O,ls),o(O,Gc),o(O,cs),o(O,Zc),o(O,fs),o(O,Bc),o(O,ms),o(W,Yc),o(W,De),_(Ta,De,null),o(De,Qc),o(De,ps),o(De,Oc),_(Po,De,null),o(W,Kc),o(W,Wo),_(Da,Wo,null),o(Wo,ef),o(Wo,_s),x(e,kd,L),_(Ca,e,L),x(e,Rd,L),x(e,R,L),_(Sa,R,null),o(R,of),o(R,us),o(R,tf),o(R,hs),o(R,af),o(R,Ho),_(Aa,Ho,null),o(Ho,rf),o(Ho,gs),o(R,nf),o(R,Uo),_(ka,Uo,null),o(Uo,sf),o(Uo,Ls),o(R,df),o(R,oe),_(Ra,oe,null),o(oe,lf),o(oe,xs),o(oe,cf),o(oe,bs),o(oe,ff),o(oe,vs),o(oe,mf),o(oe,ws),o(R,pf),o(R,Ce),_(Ia,Ce,null),o(Ce,_f),o(Ce,$s),o(Ce,uf),_(Fo,Ce,null),o(R,hf),o(R,Xo),_(Va,Xo,null),o(Xo,gf),o(Xo,ys),o(R,Lf),o(R,Se),_(Pa,Se,null),o(Se,xf),o(Se,Ms),o(Se,bf),_(Eo,Se,null),x(e,Id,L),_(Wa,e,L),x(e,Vd,L),x(e,k,L),_(Ha,k,null),o(k,vf),o(k,Ts),o(k,wf),o(k,Ds),o(k,$f),o(k,No),_(Ua,No,null),o(No,yf),o(No,Cs),o(k,Mf),o(k,zo),_(Fa,zo,null),o(zo,Tf),o(zo,Ss),o(k,Df),o(k,te),_(Xa,te,null),o(te,Cf),o(te,As),o(te,Sf),o(te,ks),o(te,Af),o(te,Rs),o(te,kf),o(te,Is),o(k,Rf),o(k,Ae),_(Ea,Ae,null),o(Ae,If),o(Ae,Vs),o(Ae,Vf),_(qo,Ae,null),o(k,Pf),o(k,Jo),_(Na,Jo,null),o(Jo,Wf),o(Jo,Ps),o(k,Hf),o(k,ke),_(za,ke,null),o(ke,Uf),o(ke,Ws),o(ke,Ff),_(jo,ke,null),o(k,Xf),o(k,Re),_(qa,Re,null),o(Re,Ef),o(Re,Hs),o(Re,Nf),_(Go,Re,null),x(e,Pd,L),_(Ja,e,L),x(e,Wd,L),x(e,H,L),_(ja,H,null),o(H,zf),o(H,Us),o(H,qf),o(H,Zo),_(Ga,Zo,null),o(Zo,Jf),o(Zo,Fs),o(H,jf),o(H,Bo),_(Za,Bo,null),o(Bo,Gf),o(Bo,Xs),o(H,Zf),o(H,Ie),_(Ba,Ie,null),o(Ie,Bf),o(Ie,Es),o(Ie,Yf),_(Yo,Ie,null),o(H,Qf),o(H,Qo),_(Ya,Qo,null),o(Qo,Of),o(Qo,Ns),o(H,Kf),o(H,Ve),_(Qa,Ve,null),o(Ve,em),o(Ve,zs),o(Ve,om),_(Oo,Ve,null),x(e,Hd,L),_(Oa,e,L),x(e,Ud,L),x(e,U,L),_(Ka,U,null),o(U,tm),o(U,qs),o(U,am),o(U,Ko),_(er,Ko,null),o(Ko,rm),o(Ko,Js),o(U,nm),o(U,et),_(or,et,null),o(et,sm),o(et,js),o(U,im),o(U,Pe),_(tr,Pe,null),o(Pe,dm),o(Pe,Gs),o(Pe,lm),_(ot,Pe,null),o(U,cm),o(U,tt),_(ar,tt,null),o(tt,fm),o(tt,Zs),o(U,mm),o(U,We),_(rr,We,null),o(We,pm),o(We,Bs),o(We,_m),_(at,We,null),x(e,Fd,L),_(nr,e,L),x(e,Xd,L),x(e,F,L),_(sr,F,null),o(F,um),o(F,Ys),o(F,hm),o(F,rt),_(ir,rt,null),o(rt,gm),o(rt,Qs),o(F,Lm),o(F,nt),_(dr,nt,null),o(nt,xm),o(nt,Os),o(F,bm),o(F,He),_(lr,He,null),o(He,vm),o(He,Ks),o(He,wm),_(st,He,null),o(F,$m),o(F,it),_(cr,it,null),o(it,ym),o(it,ei),o(F,Mm),o(F,Ue),_(fr,Ue,null),o(Ue,Tm),o(Ue,oi),o(Ue,Dm),_(dt,Ue,null),x(e,Ed,L),_(mr,e,L),x(e,Nd,L),x(e,X,L),_(pr,X,null),o(X,Cm),o(X,ti),o(X,Sm),o(X,lt),_(_r,lt,null),o(lt,Am),o(lt,ai),o(X,km),o(X,ct),_(ur,ct,null),o(ct,Rm),o(ct,ri),o(X,Im),o(X,Fe),_(hr,Fe,null),o(Fe,Vm),o(Fe,ni),o(Fe,Pm),_(ft,Fe,null),o(X,Wm),o(X,mt),_(gr,mt,null),o(mt,Hm),o(mt,si),o(X,Um),o(X,Xe),_(Lr,Xe,null),o(Xe,Fm),o(Xe,ii),o(Xe,Xm),_(pt,Xe,null),x(e,zd,L),_(xr,e,L),x(e,qd,L),x(e,E,L),_(br,E,null),o(E,Em),o(E,di),o(E,Nm),o(E,_t),_(vr,_t,null),o(_t,zm),o(_t,li),o(E,qm),o(E,ut),_(wr,ut,null),o(ut,Jm),o(ut,ci),o(E,jm),o(E,Ee),_($r,Ee,null),o(Ee,Gm),o(Ee,fi),o(Ee,Zm),_(ht,Ee,null),o(E,Bm),o(E,gt),_(yr,gt,null),o(gt,Ym),o(gt,mi),o(E,Qm),o(E,Ne),_(Mr,Ne,null),o(Ne,Om),o(Ne,pi),o(Ne,Km),_(Lt,Ne,null),x(e,Jd,L),_(Tr,e,L),x(e,jd,L),x(e,N,L),_(Dr,N,null),o(N,ep),o(N,_i),o(N,op),o(N,xt),_(Cr,xt,null),o(xt,tp),o(xt,ui),o(N,ap),o(N,bt),_(Sr,bt,null),o(bt,rp),o(bt,hi),o(N,np),o(N,ze),_(Ar,ze,null),o(ze,sp),o(ze,gi),o(ze,ip),_(vt,ze,null),o(N,dp),o(N,wt),_(kr,wt,null),o(wt,lp),o(wt,Li),o(N,cp),o(N,qe),_(Rr,qe,null),o(qe,fp),o(qe,xi),o(qe,mp),_($t,qe,null),x(e,Gd,L),_(Ir,e,L),x(e,Zd,L),x(e,z,L),_(Vr,z,null),o(z,pp),o(z,bi),o(z,_p),o(z,yt),_(Pr,yt,null),o(yt,up),o(yt,vi),o(z,hp),o(z,Mt),_(Wr,Mt,null),o(Mt,gp),o(Mt,wi),o(z,Lp),o(z,Je),_(Hr,Je,null),o(Je,xp),o(Je,$i),o(Je,bp),_(Tt,Je,null),o(z,vp),o(z,Dt),_(Ur,Dt,null),o(Dt,wp),o(Dt,yi),o(z,$p),o(z,je),_(Fr,je,null),o(je,yp),o(je,Mi),o(je,Mp),_(Ct,je,null),x(e,Bd,L),_(Xr,e,L),x(e,Yd,L),x(e,q,L),_(Er,q,null),o(q,Tp),o(q,Ti),o(q,Dp),o(q,St),_(Nr,St,null),o(St,Cp),o(St,Di),o(q,Sp),o(q,At),_(zr,At,null),o(At,Ap),o(At,Ci),o(q,kp),o(q,Ge),_(qr,Ge,null),o(Ge,Rp),o(Ge,Si),o(Ge,Ip),_(kt,Ge,null),o(q,Vp),o(q,Rt),_(Jr,Rt,null),o(Rt,Pp),o(Rt,Ai),o(q,Wp),o(q,Ze),_(jr,Ze,null),o(Ze,Hp),o(Ze,ki),o(Ze,Up),_(It,Ze,null),x(e,Qd,L),_(Gr,e,L),x(e,Od,L),x(e,J,L),_(Zr,J,null),o(J,Fp),o(J,Ri),o(J,Xp),o(J,Vt),_(Br,Vt,null),o(Vt,Ep),o(Vt,Ii),o(J,Np),o(J,Pt),_(Yr,Pt,null),o(Pt,zp),o(Pt,Vi),o(J,qp),o(J,Be),_(Qr,Be,null),o(Be,Jp),o(Be,Pi),o(Be,jp),_(Wt,Be,null),o(J,Gp),o(J,Ht),_(Or,Ht,null),o(Ht,Zp),o(Ht,Wi),o(J,Bp),o(J,Ye),_(Kr,Ye,null),o(Ye,Yp),o(Ye,Hi),o(Ye,Qp),_(Ut,Ye,null),x(e,Kd,L),_(en,e,L),x(e,el,L),x(e,ge,L),_(on,ge,null),o(ge,Op),o(ge,Ft),_(tn,Ft,null),o(Ft,Kp),o(Ft,Ui),o(ge,e_),o(ge,Xt),_(an,Xt,null),o(Xt,o_),o(Xt,Fi),x(e,ol,L),_(rn,e,L),x(e,tl,L),x(e,j,L),_(nn,j,null),o(j,t_),o(j,Xi),o(j,a_),o(j,Et),_(sn,Et,null),o(Et,r_),o(Et,Ei),o(j,n_),o(j,Nt),_(dn,Nt,null),o(Nt,s_),o(Nt,Ni),o(j,i_),o(j,Qe),_(ln,Qe,null),o(Qe,d_),o(Qe,zi),o(Qe,l_),_(zt,Qe,null),o(j,c_),o(j,qt),_(cn,qt,null),o(qt,f_),o(qt,qi),o(j,m_),o(j,Oe),_(fn,Oe,null),o(Oe,p_),o(Oe,Ji),o(Oe,__),_(Jt,Oe,null),x(e,al,L),_(mn,e,L),x(e,rl,L),x(e,G,L),_(pn,G,null),o(G,u_),o(G,ji),o(G,h_),o(G,jt),_(_n,jt,null),o(jt,g_),o(jt,Gi),o(G,L_),o(G,Gt),_(un,Gt,null),o(Gt,x_),o(Gt,Zi),o(G,b_),o(G,Ke),_(hn,Ke,null),o(Ke,v_),o(Ke,Bi),o(Ke,w_),_(Zt,Ke,null),o(G,$_),o(G,Bt),_(gn,Bt,null),o(Bt,y_),o(Bt,Yi),o(G,M_),o(G,eo),_(Ln,eo,null),o(eo,T_),o(eo,Qi),o(eo,D_),_(Yt,eo,null),x(e,nl,L),_(xn,e,L),x(e,sl,L),x(e,wd,L),il=!0},p(e,[L]){const S={};L&2&&(S.$$scope={dirty:L,ctx:e}),uo.$set(S);const oo={};L&2&&(oo.$$scope={dirty:L,ctx:e}),ho.$set(oo);const to={};L&2&&(to.$$scope={dirty:L,ctx:e}),go.$set(to);const ao={};L&2&&(ao.$$scope={dirty:L,ctx:e}),Lo.$set(ao);const bn={};L&2&&(bn.$$scope={dirty:L,ctx:e}),bo.$set(bn);const Le={};L&2&&(Le.$$scope={dirty:L,ctx:e}),vo.$set(Le);const ro={};L&2&&(ro.$$scope={dirty:L,ctx:e}),wo.$set(ro);const vn={};L&2&&(vn.$$scope={dirty:L,ctx:e}),yo.$set(vn);const no={};L&2&&(no.$$scope={dirty:L,ctx:e}),To.$set(no);const wn={};L&2&&(wn.$$scope={dirty:L,ctx:e}),Do.$set(wn);const so={};L&2&&(so.$$scope={dirty:L,ctx:e}),ko.$set(so);const io={};L&2&&(io.$$scope={dirty:L,ctx:e}),Po.$set(io);const $n={};L&2&&($n.$$scope={dirty:L,ctx:e}),Fo.$set($n);const B={};L&2&&(B.$$scope={dirty:L,ctx:e}),Eo.$set(B);const yn={};L&2&&(yn.$$scope={dirty:L,ctx:e}),qo.$set(yn);const Mn={};L&2&&(Mn.$$scope={dirty:L,ctx:e}),jo.$set(Mn);const K={};L&2&&(K.$$scope={dirty:L,ctx:e}),Go.$set(K);const lo={};L&2&&(lo.$$scope={dirty:L,ctx:e}),Yo.$set(lo);const Tn={};L&2&&(Tn.$$scope={dirty:L,ctx:e}),Oo.$set(Tn);const Y={};L&2&&(Y.$$scope={dirty:L,ctx:e}),ot.$set(Y);const Dn={};L&2&&(Dn.$$scope={dirty:L,ctx:e}),at.$set(Dn);const Cn={};L&2&&(Cn.$$scope={dirty:L,ctx:e}),st.$set(Cn);const ee={};L&2&&(ee.$$scope={dirty:L,ctx:e}),dt.$set(ee);const co={};L&2&&(co.$$scope={dirty:L,ctx:e}),ft.$set(co);const Sn={};L&2&&(Sn.$$scope={dirty:L,ctx:e}),pt.$set(Sn);const V={};L&2&&(V.$$scope={dirty:L,ctx:e}),ht.$set(V);const An={};L&2&&(An.$$scope={dirty:L,ctx:e}),Lt.$set(An);const kn={};L&2&&(kn.$$scope={dirty:L,ctx:e}),vt.$set(kn);const _e={};L&2&&(_e.$$scope={dirty:L,ctx:e}),$t.$set(_e);const fo={};L&2&&(fo.$$scope={dirty:L,ctx:e}),Tt.$set(fo);const Rn={};L&2&&(Rn.$$scope={dirty:L,ctx:e}),Ct.$set(Rn);const mo={};L&2&&(mo.$$scope={dirty:L,ctx:e}),kt.$set(mo);const I={};L&2&&(I.$$scope={dirty:L,ctx:e}),It.$set(I);const In={};L&2&&(In.$$scope={dirty:L,ctx:e}),Wt.$set(In);const Vn={};L&2&&(Vn.$$scope={dirty:L,ctx:e}),Ut.$set(Vn);const ue={};L&2&&(ue.$$scope={dirty:L,ctx:e}),zt.$set(ue);const po={};L&2&&(po.$$scope={dirty:L,ctx:e}),Jt.$set(po);const Pn={};L&2&&(Pn.$$scope={dirty:L,ctx:e}),Zt.$set(Pn);const _o={};L&2&&(_o.$$scope={dirty:L,ctx:e}),Yt.$set(_o)},i(e){il||(u(M.$$.fragment,e),u(uo.$$.fragment,e),u(ea.$$.fragment,e),u(oa.$$.fragment,e),u(ta.$$.fragment,e),u(ho.$$.fragment,e),u(aa.$$.fragment,e),u(go.$$.fragment,e),u(ra.$$.fragment,e),u(Lo.$$.fragment,e),u(na.$$.fragment,e),u(sa.$$.fragment,e),u(bo.$$.fragment,e),u(vo.$$.fragment,e),u(ia.$$.fragment,e),u(wo.$$.fragment,e),u(da.$$.fragment,e),u(la.$$.fragment,e),u(yo.$$.fragment,e),u(ca.$$.fragment,e),u(fa.$$.fragment,e),u(To.$$.fragment,e),u(ma.$$.fragment,e),u(Do.$$.fragment,e),u(pa.$$.fragment,e),u(_a.$$.fragment,e),u(ua.$$.fragment,e),u(ha.$$.fragment,e),u(ga.$$.fragment,e),u(La.$$.fragment,e),u(xa.$$.fragment,e),u(ko.$$.fragment,e),u(ba.$$.fragment,e),u(va.$$.fragment,e),u(wa.$$.fragment,e),u($a.$$.fragment,e),u(ya.$$.fragment,e),u(Ma.$$.fragment,e),u(Ta.$$.fragment,e),u(Po.$$.fragment,e),u(Da.$$.fragment,e),u(Ca.$$.fragment,e),u(Sa.$$.fragment,e),u(Aa.$$.fragment,e),u(ka.$$.fragment,e),u(Ra.$$.fragment,e),u(Ia.$$.fragment,e),u(Fo.$$.fragment,e),u(Va.$$.fragment,e),u(Pa.$$.fragment,e),u(Eo.$$.fragment,e),u(Wa.$$.fragment,e),u(Ha.$$.fragment,e),u(Ua.$$.fragment,e),u(Fa.$$.fragment,e),u(Xa.$$.fragment,e),u(Ea.$$.fragment,e),u(qo.$$.fragment,e),u(Na.$$.fragment,e),u(za.$$.fragment,e),u(jo.$$.fragment,e),u(qa.$$.fragment,e),u(Go.$$.fragment,e),u(Ja.$$.fragment,e),u(ja.$$.fragment,e),u(Ga.$$.fragment,e),u(Za.$$.fragment,e),u(Ba.$$.fragment,e),u(Yo.$$.fragment,e),u(Ya.$$.fragment,e),u(Qa.$$.fragment,e),u(Oo.$$.fragment,e),u(Oa.$$.fragment,e),u(Ka.$$.fragment,e),u(er.$$.fragment,e),u(or.$$.fragment,e),u(tr.$$.fragment,e),u(ot.$$.fragment,e),u(ar.$$.fragment,e),u(rr.$$.fragment,e),u(at.$$.fragment,e),u(nr.$$.fragment,e),u(sr.$$.fragment,e),u(ir.$$.fragment,e),u(dr.$$.fragment,e),u(lr.$$.fragment,e),u(st.$$.fragment,e),u(cr.$$.fragment,e),u(fr.$$.fragment,e),u(dt.$$.fragment,e),u(mr.$$.fragment,e),u(pr.$$.fragment,e),u(_r.$$.fragment,e),u(ur.$$.fragment,e),u(hr.$$.fragment,e),u(ft.$$.fragment,e),u(gr.$$.fragment,e),u(Lr.$$.fragment,e),u(pt.$$.fragment,e),u(xr.$$.fragment,e),u(br.$$.fragment,e),u(vr.$$.fragment,e),u(wr.$$.fragment,e),u($r.$$.fragment,e),u(ht.$$.fragment,e),u(yr.$$.fragment,e),u(Mr.$$.fragment,e),u(Lt.$$.fragment,e),u(Tr.$$.fragment,e),u(Dr.$$.fragment,e),u(Cr.$$.fragment,e),u(Sr.$$.fragment,e),u(Ar.$$.fragment,e),u(vt.$$.fragment,e),u(kr.$$.fragment,e),u(Rr.$$.fragment,e),u($t.$$.fragment,e),u(Ir.$$.fragment,e),u(Vr.$$.fragment,e),u(Pr.$$.fragment,e),u(Wr.$$.fragment,e),u(Hr.$$.fragment,e),u(Tt.$$.fragment,e),u(Ur.$$.fragment,e),u(Fr.$$.fragment,e),u(Ct.$$.fragment,e),u(Xr.$$.fragment,e),u(Er.$$.fragment,e),u(Nr.$$.fragment,e),u(zr.$$.fragment,e),u(qr.$$.fragment,e),u(kt.$$.fragment,e),u(Jr.$$.fragment,e),u(jr.$$.fragment,e),u(It.$$.fragment,e),u(Gr.$$.fragment,e),u(Zr.$$.fragment,e),u(Br.$$.fragment,e),u(Yr.$$.fragment,e),u(Qr.$$.fragment,e),u(Wt.$$.fragment,e),u(Or.$$.fragment,e),u(Kr.$$.fragment,e),u(Ut.$$.fragment,e),u(en.$$.fragment,e),u(on.$$.fragment,e),u(tn.$$.fragment,e),u(an.$$.fragment,e),u(rn.$$.fragment,e),u(nn.$$.fragment,e),u(sn.$$.fragment,e),u(dn.$$.fragment,e),u(ln.$$.fragment,e),u(zt.$$.fragment,e),u(cn.$$.fragment,e),u(fn.$$.fragment,e),u(Jt.$$.fragment,e),u(mn.$$.fragment,e),u(pn.$$.fragment,e),u(_n.$$.fragment,e),u(un.$$.fragment,e),u(hn.$$.fragment,e),u(Zt.$$.fragment,e),u(gn.$$.fragment,e),u(Ln.$$.fragment,e),u(Yt.$$.fragment,e),u(xn.$$.fragment,e),il=!0)},o(e){h(M.$$.fragment,e),h(uo.$$.fragment,e),h(ea.$$.fragment,e),h(oa.$$.fragment,e),h(ta.$$.fragment,e),h(ho.$$.fragment,e),h(aa.$$.fragment,e),h(go.$$.fragment,e),h(ra.$$.fragment,e),h(Lo.$$.fragment,e),h(na.$$.fragment,e),h(sa.$$.fragment,e),h(bo.$$.fragment,e),h(vo.$$.fragment,e),h(ia.$$.fragment,e),h(wo.$$.fragment,e),h(da.$$.fragment,e),h(la.$$.fragment,e),h(yo.$$.fragment,e),h(ca.$$.fragment,e),h(fa.$$.fragment,e),h(To.$$.fragment,e),h(ma.$$.fragment,e),h(Do.$$.fragment,e),h(pa.$$.fragment,e),h(_a.$$.fragment,e),h(ua.$$.fragment,e),h(ha.$$.fragment,e),h(ga.$$.fragment,e),h(La.$$.fragment,e),h(xa.$$.fragment,e),h(ko.$$.fragment,e),h(ba.$$.fragment,e),h(va.$$.fragment,e),h(wa.$$.fragment,e),h($a.$$.fragment,e),h(ya.$$.fragment,e),h(Ma.$$.fragment,e),h(Ta.$$.fragment,e),h(Po.$$.fragment,e),h(Da.$$.fragment,e),h(Ca.$$.fragment,e),h(Sa.$$.fragment,e),h(Aa.$$.fragment,e),h(ka.$$.fragment,e),h(Ra.$$.fragment,e),h(Ia.$$.fragment,e),h(Fo.$$.fragment,e),h(Va.$$.fragment,e),h(Pa.$$.fragment,e),h(Eo.$$.fragment,e),h(Wa.$$.fragment,e),h(Ha.$$.fragment,e),h(Ua.$$.fragment,e),h(Fa.$$.fragment,e),h(Xa.$$.fragment,e),h(Ea.$$.fragment,e),h(qo.$$.fragment,e),h(Na.$$.fragment,e),h(za.$$.fragment,e),h(jo.$$.fragment,e),h(qa.$$.fragment,e),h(Go.$$.fragment,e),h(Ja.$$.fragment,e),h(ja.$$.fragment,e),h(Ga.$$.fragment,e),h(Za.$$.fragment,e),h(Ba.$$.fragment,e),h(Yo.$$.fragment,e),h(Ya.$$.fragment,e),h(Qa.$$.fragment,e),h(Oo.$$.fragment,e),h(Oa.$$.fragment,e),h(Ka.$$.fragment,e),h(er.$$.fragment,e),h(or.$$.fragment,e),h(tr.$$.fragment,e),h(ot.$$.fragment,e),h(ar.$$.fragment,e),h(rr.$$.fragment,e),h(at.$$.fragment,e),h(nr.$$.fragment,e),h(sr.$$.fragment,e),h(ir.$$.fragment,e),h(dr.$$.fragment,e),h(lr.$$.fragment,e),h(st.$$.fragment,e),h(cr.$$.fragment,e),h(fr.$$.fragment,e),h(dt.$$.fragment,e),h(mr.$$.fragment,e),h(pr.$$.fragment,e),h(_r.$$.fragment,e),h(ur.$$.fragment,e),h(hr.$$.fragment,e),h(ft.$$.fragment,e),h(gr.$$.fragment,e),h(Lr.$$.fragment,e),h(pt.$$.fragment,e),h(xr.$$.fragment,e),h(br.$$.fragment,e),h(vr.$$.fragment,e),h(wr.$$.fragment,e),h($r.$$.fragment,e),h(ht.$$.fragment,e),h(yr.$$.fragment,e),h(Mr.$$.fragment,e),h(Lt.$$.fragment,e),h(Tr.$$.fragment,e),h(Dr.$$.fragment,e),h(Cr.$$.fragment,e),h(Sr.$$.fragment,e),h(Ar.$$.fragment,e),h(vt.$$.fragment,e),h(kr.$$.fragment,e),h(Rr.$$.fragment,e),h($t.$$.fragment,e),h(Ir.$$.fragment,e),h(Vr.$$.fragment,e),h(Pr.$$.fragment,e),h(Wr.$$.fragment,e),h(Hr.$$.fragment,e),h(Tt.$$.fragment,e),h(Ur.$$.fragment,e),h(Fr.$$.fragment,e),h(Ct.$$.fragment,e),h(Xr.$$.fragment,e),h(Er.$$.fragment,e),h(Nr.$$.fragment,e),h(zr.$$.fragment,e),h(qr.$$.fragment,e),h(kt.$$.fragment,e),h(Jr.$$.fragment,e),h(jr.$$.fragment,e),h(It.$$.fragment,e),h(Gr.$$.fragment,e),h(Zr.$$.fragment,e),h(Br.$$.fragment,e),h(Yr.$$.fragment,e),h(Qr.$$.fragment,e),h(Wt.$$.fragment,e),h(Or.$$.fragment,e),h(Kr.$$.fragment,e),h(Ut.$$.fragment,e),h(en.$$.fragment,e),h(on.$$.fragment,e),h(tn.$$.fragment,e),h(an.$$.fragment,e),h(rn.$$.fragment,e),h(nn.$$.fragment,e),h(sn.$$.fragment,e),h(dn.$$.fragment,e),h(ln.$$.fragment,e),h(zt.$$.fragment,e),h(cn.$$.fragment,e),h(fn.$$.fragment,e),h(Jt.$$.fragment,e),h(mn.$$.fragment,e),h(pn.$$.fragment,e),h(_n.$$.fragment,e),h(un.$$.fragment,e),h(hn.$$.fragment,e),h(Zt.$$.fragment,e),h(gn.$$.fragment,e),h(Ln.$$.fragment,e),h(Yt.$$.fragment,e),h(xn.$$.fragment,e),il=!1},d(e){e&&(d(b),d(c),d(l),d(i),d(y),d($d),d(Kt),d(yd),d(Md),d(Td),d(C),d(Dd),d(Cd),d(P),d(Sd),d(Ad),d(W),d(kd),d(Rd),d(R),d(Id),d(Vd),d(k),d(Pd),d(Wd),d(H),d(Hd),d(Ud),d(U),d(Fd),d(Xd),d(F),d(Ed),d(Nd),d(X),d(zd),d(qd),d(E),d(Jd),d(jd),d(N),d(Gd),d(Zd),d(z),d(Bd),d(Yd),d(q),d(Qd),d(Od),d(J),d(Kd),d(el),d(ge),d(ol),d(tl),d(j),d(al),d(rl),d(G),d(nl),d(sl),d(wd)),d(t),g(M,e),g(uo,e),g(ea,e),g(oa),g(ta),g(ho),g(aa),g(go),g(ra),g(Lo),g(na),g(sa),g(bo),g(vo),g(ia),g(wo),g(da),g(la),g(yo),g(ca),g(fa),g(To),g(ma),g(Do),g(pa),g(_a,e),g(ua),g(ha),g(ga),g(La),g(xa),g(ko),g(ba),g(va,e),g(wa),g($a),g(ya),g(Ma),g(Ta),g(Po),g(Da),g(Ca,e),g(Sa),g(Aa),g(ka),g(Ra),g(Ia),g(Fo),g(Va),g(Pa),g(Eo),g(Wa,e),g(Ha),g(Ua),g(Fa),g(Xa),g(Ea),g(qo),g(Na),g(za),g(jo),g(qa),g(Go),g(Ja,e),g(ja),g(Ga),g(Za),g(Ba),g(Yo),g(Ya),g(Qa),g(Oo),g(Oa,e),g(Ka),g(er),g(or),g(tr),g(ot),g(ar),g(rr),g(at),g(nr,e),g(sr),g(ir),g(dr),g(lr),g(st),g(cr),g(fr),g(dt),g(mr,e),g(pr),g(_r),g(ur),g(hr),g(ft),g(gr),g(Lr),g(pt),g(xr,e),g(br),g(vr),g(wr),g($r),g(ht),g(yr),g(Mr),g(Lt),g(Tr,e),g(Dr),g(Cr),g(Sr),g(Ar),g(vt),g(kr),g(Rr),g($t),g(Ir,e),g(Vr),g(Pr),g(Wr),g(Hr),g(Tt),g(Ur),g(Fr),g(Ct),g(Xr,e),g(Er),g(Nr),g(zr),g(qr),g(kt),g(Jr),g(jr),g(It),g(Gr,e),g(Zr),g(Br),g(Yr),g(Qr),g(Wt),g(Or),g(Kr),g(Ut),g(en,e),g(on),g(tn),g(an),g(rn,e),g(nn),g(sn),g(dn),g(ln),g(zt),g(cn),g(fn),g(Jt),g(mn,e),g(pn),g(_n),g(un),g(hn),g(Zt),g(gn),g(Ln),g(Yt),g(xn,e)}}}const Ug='{"title":"LoRA","local":"lora","sections":[{"title":"LoraBaseMixin","local":"diffusers.loaders.lora_base.LoraBaseMixin","sections":[],"depth":2},{"title":"StableDiffusionLoraLoaderMixin","local":"diffusers.loaders.StableDiffusionLoraLoaderMixin","sections":[],"depth":2},{"title":"StableDiffusionXLLoraLoaderMixin","local":"diffusers.loaders.StableDiffusionXLLoraLoaderMixin","sections":[],"depth":2},{"title":"SD3LoraLoaderMixin","local":"diffusers.loaders.SD3LoraLoaderMixin","sections":[],"depth":2},{"title":"FluxLoraLoaderMixin","local":"diffusers.loaders.FluxLoraLoaderMixin","sections":[],"depth":2},{"title":"CogVideoXLoraLoaderMixin","local":"diffusers.loaders.CogVideoXLoraLoaderMixin","sections":[],"depth":2},{"title":"Mochi1LoraLoaderMixin","local":"diffusers.loaders.Mochi1LoraLoaderMixin","sections":[],"depth":2},{"title":"AuraFlowLoraLoaderMixin","local":"diffusers.loaders.AuraFlowLoraLoaderMixin","sections":[],"depth":2},{"title":"LTXVideoLoraLoaderMixin","local":"diffusers.loaders.LTXVideoLoraLoaderMixin","sections":[],"depth":2},{"title":"SanaLoraLoaderMixin","local":"diffusers.loaders.SanaLoraLoaderMixin","sections":[],"depth":2},{"title":"HunyuanVideoLoraLoaderMixin","local":"diffusers.loaders.HunyuanVideoLoraLoaderMixin","sections":[],"depth":2},{"title":"Lumina2LoraLoaderMixin","local":"diffusers.loaders.Lumina2LoraLoaderMixin","sections":[],"depth":2},{"title":"CogView4LoraLoaderMixin","local":"diffusers.loaders.CogView4LoraLoaderMixin","sections":[],"depth":2},{"title":"WanLoraLoaderMixin","local":"diffusers.loaders.WanLoraLoaderMixin","sections":[],"depth":2},{"title":"AmusedLoraLoaderMixin","local":"diffusers.loaders.AmusedLoraLoaderMixin","sections":[],"depth":2},{"title":"HiDreamImageLoraLoaderMixin","local":"diffusers.loaders.HiDreamImageLoraLoaderMixin","sections":[],"depth":2},{"title":"WanLoraLoaderMixin","local":"diffusers.loaders.WanLoraLoaderMixin","sections":[],"depth":2}],"depth":1}';function Fg(T){return Gh(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Gg extends Zh{constructor(t){super(),Bh(this,t,Fg,Hg,jh,{})}}export{Gg as component};

Xet Storage Details

Size:
349 kB
·
Xet hash:
4f95f1f0efd3f1e467f6c5952eadac9e6954fb53f94027369b3e1e4c007d247e

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