import{s as nL,o as sL,n as D}from"../chunks/scheduler.8c3d61f6.js";import{S as iL,i as dL,g as s,s as r,r as f,A as lL,h as i,f as l,c as n,j as $,u as m,x as g,k as y,y as o,a as b,v as p,d as _,t as u,w as h}from"../chunks/index.da70eac4.js";import{T as k}from"../chunks/Tip.1d9b8c37.js";import{D as M}from"../chunks/Docstring.c021b19a.js";import{C as te}from"../chunks/CodeBlock.a9c4becf.js";import{E as oe}from"../chunks/ExampleCodeBlock.56b4589c.js";import{H as Y,E as cL}from"../chunks/getInferenceSnippets.725ed3d4.js";function fL(T){let t,L='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=s("p"),t.innerHTML=L},l(c){t=i(c,"P",{"data-svelte-h":!0}),g(t)!=="svelte-1fw6lx1"&&(t.innerHTML=L)},m(c,d){b(c,t,d)},p:D,d(c){c&&l(t)}}}function mL(T){let t,L="Example:",c,d,w;return d=new te({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=s("p"),t.textContent=L,c=r(),f(d.$$.fragment)},l(a){t=i(a,"P",{"data-svelte-h":!0}),g(t)!=="svelte-11lpom8"&&(t.textContent=L),c=n(a),m(d.$$.fragment,a)},m(a,v){b(a,t,v),b(a,c,v),p(d,a,v),w=!0},p:D,i(a){w||(_(d.$$.fragment,a),w=!0)},o(a){u(d.$$.fragment,a),w=!1},d(a){a&&(l(t),l(c)),h(d,a)}}}function pL(T){let t,L="Example:",c,d,w;return d=new te({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=s("p"),t.textContent=L,c=r(),f(d.$$.fragment)},l(a){t=i(a,"P",{"data-svelte-h":!0}),g(t)!=="svelte-11lpom8"&&(t.textContent=L),c=n(a),m(d.$$.fragment,a)},m(a,v){b(a,t,v),b(a,c,v),p(d,a,v),w=!0},p:D,i(a){w||(_(d.$$.fragment,a),w=!0)},o(a){u(d.$$.fragment,a),w=!1},d(a){a&&(l(t),l(c)),h(d,a)}}}function _L(T){let t,L="Example:",c,d,w;return d=new te({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=s("p"),t.textContent=L,c=r(),f(d.$$.fragment)},l(a){t=i(a,"P",{"data-svelte-h":!0}),g(t)!=="svelte-11lpom8"&&(t.textContent=L),c=n(a),m(d.$$.fragment,a)},m(a,v){b(a,t,v),b(a,c,v),p(d,a,v),w=!0},p:D,i(a){w||(_(d.$$.fragment,a),w=!0)},o(a){u(d.$$.fragment,a),w=!1},d(a){a&&(l(t),l(c)),h(d,a)}}}function uL(T){let t,L="This is an experimental API.";return{c(){t=s("p"),t.textContent=L},l(c){t=i(c,"P",{"data-svelte-h":!0}),g(t)!=="svelte-8w79b9"&&(t.textContent=L)},m(c,d){b(c,t,d)},p:D,d(c){c&&l(t)}}}function hL(T){let t,L="Example:",c,d,w;return d=new te({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=s("p"),t.textContent=L,c=r(),f(d.$$.fragment)},l(a){t=i(a,"P",{"data-svelte-h":!0}),g(t)!=="svelte-11lpom8"&&(t.textContent=L),c=n(a),m(d.$$.fragment,a)},m(a,v){b(a,t,v),b(a,c,v),p(d,a,v),w=!0},p:D,i(a){w||(_(d.$$.fragment,a),w=!0)},o(a){u(d.$$.fragment,a),w=!1},d(a){a&&(l(t),l(c)),h(d,a)}}}function gL(T){let t,L="Example:",c,d,w;return d=new te({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=s("p"),t.textContent=L,c=r(),f(d.$$.fragment)},l(a){t=i(a,"P",{"data-svelte-h":!0}),g(t)!=="svelte-11lpom8"&&(t.textContent=L),c=n(a),m(d.$$.fragment,a)},m(a,v){b(a,t,v),b(a,c,v),p(d,a,v),w=!0},p:D,i(a){w||(_(d.$$.fragment,a),w=!0)},o(a){u(d.$$.fragment,a),w=!1},d(a){a&&(l(t),l(c)),h(d,a)}}}function xL(T){let t,L="Example:",c,d,w;return d=new te({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=s("p"),t.textContent=L,c=r(),f(d.$$.fragment)},l(a){t=i(a,"P",{"data-svelte-h":!0}),g(t)!=="svelte-11lpom8"&&(t.textContent=L),c=n(a),m(d.$$.fragment,a)},m(a,v){b(a,t,v),b(a,c,v),p(d,a,v),w=!0},p:D,i(a){w||(_(d.$$.fragment,a),w=!0)},o(a){u(d.$$.fragment,a),w=!1},d(a){a&&(l(t),l(c)),h(d,a)}}}function LL(T){let t,L;return t=new te({props:{code:"cGlwZS5sb2FkX2xvcmFfd2VpZ2h0cyhwYXRoXzElMkMlMjBhZGFwdGVyX25hbWUlM0QlMjJhZGFwdGVyLTElMjIpJTBBcGlwZS5sb2FkX2xvcmFfd2VpZ2h0cyhwYXRoXzIlMkMlMjBhZGFwdGVyX25hbWUlM0QlMjJhZGFwdGVyLTIlMjIpJTBBcGlwZS5zZXRfYWRhcHRlcnMoJTIyYWRhcHRlci0xJTIyKSUwQWltYWdlXzElMjAlM0QlMjBwaXBlKCoqa3dhcmdzKSUwQSUyMyUyMHN3aXRjaCUyMHRvJTIwYWRhcHRlci0yJTJDJTIwb2ZmbG9hZCUyMGFkYXB0ZXItMSUwQXBpcGVsaW5lLnNldF9sb3JhX2RldmljZShhZGFwdGVyX25hbWVzJTNEJTVCJTIyYWRhcHRlci0xJTIyJTVEJTJDJTIwZGV2aWNlJTNEJTIyY3B1JTIyKSUwQXBpcGVsaW5lLnNldF9sb3JhX2RldmljZShhZGFwdGVyX25hbWVzJTNEJTVCJTIyYWRhcHRlci0yJTIyJTVEJTJDJTIwZGV2aWNlJTNEJTIyY3VkYSUzQTAlMjIpJTBBcGlwZS5zZXRfYWRhcHRlcnMoJTIyYWRhcHRlci0yJTIyKSUwQWltYWdlXzIlMjAlM0QlMjBwaXBlKCoqa3dhcmdzKSUwQSUyMyUyMHN3aXRjaCUyMGJhY2slMjB0byUyMGFkYXB0ZXItMSUyQyUyMG9mZmxvYWQlMjBhZGFwdGVyLTIlMEFwaXBlbGluZS5zZXRfbG9yYV9kZXZpY2UoYWRhcHRlcl9uYW1lcyUzRCU1QiUyMmFkYXB0ZXItMiUyMiU1RCUyQyUyMGRldmljZSUzRCUyMmNwdSUyMiklMEFwaXBlbGluZS5zZXRfbG9yYV9kZXZpY2UoYWRhcHRlcl9uYW1lcyUzRCU1QiUyMmFkYXB0ZXItMSUyMiU1RCUyQyUyMGRldmljZSUzRCUyMmN1ZGElM0EwJTIyKSUwQXBpcGUuc2V0X2FkYXB0ZXJzKCUyMmFkYXB0ZXItMSUyMiklMEEuLi4=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.load_lora_weights(path_1, adapter_name=<span class="hljs-string">&quot;adapter-1&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.load_lora_weights(path_2, adapter_name=<span class="hljs-string">&quot;adapter-2&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.set_adapters(<span class="hljs-string">&quot;adapter-1&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image_1 = pipe(**kwargs)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># switch to adapter-2, offload adapter-1</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline.set_lora_device(adapter_names=[<span class="hljs-string">&quot;adapter-1&quot;</span>], device=<span class="hljs-string">&quot;cpu&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline.set_lora_device(adapter_names=[<span class="hljs-string">&quot;adapter-2&quot;</span>], device=<span class="hljs-string">&quot;cuda:0&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.set_adapters(<span class="hljs-string">&quot;adapter-2&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image_2 = pipe(**kwargs)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># switch back to adapter-1, offload adapter-2</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline.set_lora_device(adapter_names=[<span class="hljs-string">&quot;adapter-2&quot;</span>], device=<span class="hljs-string">&quot;cpu&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline.set_lora_device(adapter_names=[<span class="hljs-string">&quot;adapter-1&quot;</span>], device=<span class="hljs-string">&quot;cuda:0&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.set_adapters(<span class="hljs-string">&quot;adapter-1&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>...`,wrap:!1}}),{c(){f(t.$$.fragment)},l(c){m(t.$$.fragment,c)},m(c,d){p(t,c,d),L=!0},p:D,i(c){L||(_(t.$$.fragment,c),L=!0)},o(c){u(t.$$.fragment,c),L=!1},d(c){h(t,c)}}}function bL(T){let t,L="This is an experimental API.";return{c(){t=s("p"),t.textContent=L},l(c){t=i(c,"P",{"data-svelte-h":!0}),g(t)!=="svelte-8w79b9"&&(t.textContent=L)},m(c,d){b(c,t,d)},p:D,d(c){c&&l(t)}}}function wL(T){let t,L="Examples:",c,d,w;return d=new te({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=s("p"),t.textContent=L,c=r(),f(d.$$.fragment)},l(a){t=i(a,"P",{"data-svelte-h":!0}),g(t)!=="svelte-kvfsh7"&&(t.textContent=L),c=n(a),m(d.$$.fragment,a)},m(a,v){b(a,t,v),b(a,c,v),p(d,a,v),w=!0},p:D,i(a){w||(_(d.$$.fragment,a),w=!0)},o(a){u(d.$$.fragment,a),w=!1},d(a){a&&(l(t),l(c)),h(d,a)}}}function vL(T){let t,L="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,d,w="This function is experimental and might change in the future.";return{c(){t=s("p"),t.textContent=L,c=r(),d=s("p"),d.textContent=w},l(a){t=i(a,"P",{"data-svelte-h":!0}),g(t)!=="svelte-15l1sdn"&&(t.textContent=L),c=n(a),d=i(a,"P",{"data-svelte-h":!0}),g(d)!=="svelte-3fufvn"&&(d.textContent=w)},m(a,v){b(a,t,v),b(a,c,v),b(a,d,v)},p:D,d(a){a&&(l(t),l(c),l(d))}}}function $L(T){let t,L="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,d,w="This function is experimental and might change in the future.";return{c(){t=s("p"),t.textContent=L,c=r(),d=s("p"),d.textContent=w},l(a){t=i(a,"P",{"data-svelte-h":!0}),g(t)!=="svelte-15l1sdn"&&(t.textContent=L),c=n(a),d=i(a,"P",{"data-svelte-h":!0}),g(d)!=="svelte-3fufvn"&&(d.textContent=w)},m(a,v){b(a,t,v),b(a,c,v),b(a,d,v)},p:D,d(a){a&&(l(t),l(c),l(d))}}}function yL(T){let t,L="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,d,w="This function is experimental and might change in the future.";return{c(){t=s("p"),t.textContent=L,c=r(),d=s("p"),d.textContent=w},l(a){t=i(a,"P",{"data-svelte-h":!0}),g(t)!=="svelte-15l1sdn"&&(t.textContent=L),c=n(a),d=i(a,"P",{"data-svelte-h":!0}),g(d)!=="svelte-3fufvn"&&(d.textContent=w)},m(a,v){b(a,t,v),b(a,c,v),b(a,d,v)},p:D,d(a){a&&(l(t),l(c),l(d))}}}function ML(T){let t,L="This is an experimental API.";return{c(){t=s("p"),t.textContent=L},l(c){t=i(c,"P",{"data-svelte-h":!0}),g(t)!=="svelte-8w79b9"&&(t.textContent=L)},m(c,d){b(c,t,d)},p:D,d(c){c&&l(t)}}}function TL(T){let t,L="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,d,w="This function is experimental and might change in the future.";return{c(){t=s("p"),t.textContent=L,c=r(),d=s("p"),d.textContent=w},l(a){t=i(a,"P",{"data-svelte-h":!0}),g(t)!=="svelte-15l1sdn"&&(t.textContent=L),c=n(a),d=i(a,"P",{"data-svelte-h":!0}),g(d)!=="svelte-3fufvn"&&(d.textContent=w)},m(a,v){b(a,t,v),b(a,c,v),b(a,d,v)},p:D,d(a){a&&(l(t),l(c),l(d))}}}function DL(T){let t,L="This is an experimental API.";return{c(){t=s("p"),t.textContent=L},l(c){t=i(c,"P",{"data-svelte-h":!0}),g(t)!=="svelte-8w79b9"&&(t.textContent=L)},m(c,d){b(c,t,d)},p:D,d(c){c&&l(t)}}}function CL(T){let t,L="Examples:",c,d,w;return d=new te({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=s("p"),t.textContent=L,c=r(),f(d.$$.fragment)},l(a){t=i(a,"P",{"data-svelte-h":!0}),g(t)!=="svelte-kvfsh7"&&(t.textContent=L),c=n(a),m(d.$$.fragment,a)},m(a,v){b(a,t,v),b(a,c,v),p(d,a,v),w=!0},p:D,i(a){w||(_(d.$$.fragment,a),w=!0)},o(a){u(d.$$.fragment,a),w=!1},d(a){a&&(l(t),l(c)),h(d,a)}}}function SL(T){let t,L="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,d,w="This function is experimental and might change in the future.";return{c(){t=s("p"),t.textContent=L,c=r(),d=s("p"),d.textContent=w},l(a){t=i(a,"P",{"data-svelte-h":!0}),g(t)!=="svelte-15l1sdn"&&(t.textContent=L),c=n(a),d=i(a,"P",{"data-svelte-h":!0}),g(d)!=="svelte-3fufvn"&&(d.textContent=w)},m(a,v){b(a,t,v),b(a,c,v),b(a,d,v)},p:D,d(a){a&&(l(t),l(c),l(d))}}}function kL(T){let t,L="This is an experimental API.";return{c(){t=s("p"),t.textContent=L},l(c){t=i(c,"P",{"data-svelte-h":!0}),g(t)!=="svelte-8w79b9"&&(t.textContent=L)},m(c,d){b(c,t,d)},p:D,d(c){c&&l(t)}}}function RL(T){let t,L="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,d,w="This function is experimental and might change in the future.";return{c(){t=s("p"),t.textContent=L,c=r(),d=s("p"),d.textContent=w},l(a){t=i(a,"P",{"data-svelte-h":!0}),g(t)!=="svelte-15l1sdn"&&(t.textContent=L),c=n(a),d=i(a,"P",{"data-svelte-h":!0}),g(d)!=="svelte-3fufvn"&&(d.textContent=w)},m(a,v){b(a,t,v),b(a,c,v),b(a,d,v)},p:D,d(a){a&&(l(t),l(c),l(d))}}}function AL(T){let t,L="This is an experimental API.";return{c(){t=s("p"),t.textContent=L},l(c){t=i(c,"P",{"data-svelte-h":!0}),g(t)!=="svelte-8w79b9"&&(t.textContent=L)},m(c,d){b(c,t,d)},p:D,d(c){c&&l(t)}}}function UL(T){let t,L="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,d,w="This function is experimental and might change in the future.";return{c(){t=s("p"),t.textContent=L,c=r(),d=s("p"),d.textContent=w},l(a){t=i(a,"P",{"data-svelte-h":!0}),g(t)!=="svelte-15l1sdn"&&(t.textContent=L),c=n(a),d=i(a,"P",{"data-svelte-h":!0}),g(d)!=="svelte-3fufvn"&&(d.textContent=w)},m(a,v){b(a,t,v),b(a,c,v),b(a,d,v)},p:D,d(a){a&&(l(t),l(c),l(d))}}}function VL(T){let t,L="This is an experimental API.";return{c(){t=s("p"),t.textContent=L},l(c){t=i(c,"P",{"data-svelte-h":!0}),g(t)!=="svelte-8w79b9"&&(t.textContent=L)},m(c,d){b(c,t,d)},p:D,d(c){c&&l(t)}}}function IL(T){let t,L="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,d,w="This function is experimental and might change in the future.";return{c(){t=s("p"),t.textContent=L,c=r(),d=s("p"),d.textContent=w},l(a){t=i(a,"P",{"data-svelte-h":!0}),g(t)!=="svelte-15l1sdn"&&(t.textContent=L),c=n(a),d=i(a,"P",{"data-svelte-h":!0}),g(d)!=="svelte-3fufvn"&&(d.textContent=w)},m(a,v){b(a,t,v),b(a,c,v),b(a,d,v)},p:D,d(a){a&&(l(t),l(c),l(d))}}}function WL(T){let t,L="This is an experimental API.";return{c(){t=s("p"),t.textContent=L},l(c){t=i(c,"P",{"data-svelte-h":!0}),g(t)!=="svelte-8w79b9"&&(t.textContent=L)},m(c,d){b(c,t,d)},p:D,d(c){c&&l(t)}}}function XL(T){let t,L="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,d,w="This function is experimental and might change in the future.";return{c(){t=s("p"),t.textContent=L,c=r(),d=s("p"),d.textContent=w},l(a){t=i(a,"P",{"data-svelte-h":!0}),g(t)!=="svelte-15l1sdn"&&(t.textContent=L),c=n(a),d=i(a,"P",{"data-svelte-h":!0}),g(d)!=="svelte-3fufvn"&&(d.textContent=w)},m(a,v){b(a,t,v),b(a,c,v),b(a,d,v)},p:D,d(a){a&&(l(t),l(c),l(d))}}}function FL(T){let t,L="This is an experimental API.";return{c(){t=s("p"),t.textContent=L},l(c){t=i(c,"P",{"data-svelte-h":!0}),g(t)!=="svelte-8w79b9"&&(t.textContent=L)},m(c,d){b(c,t,d)},p:D,d(c){c&&l(t)}}}function JL(T){let t,L="We support loading original format HunyuanVideo LoRA checkpoints.",c,d,w="This function is experimental and might change in the future.";return{c(){t=s("p"),t.textContent=L,c=r(),d=s("p"),d.textContent=w},l(a){t=i(a,"P",{"data-svelte-h":!0}),g(t)!=="svelte-gyrs6h"&&(t.textContent=L),c=n(a),d=i(a,"P",{"data-svelte-h":!0}),g(d)!=="svelte-3fufvn"&&(d.textContent=w)},m(a,v){b(a,t,v),b(a,c,v),b(a,d,v)},p:D,d(a){a&&(l(t),l(c),l(d))}}}function PL(T){let t,L="This is an experimental API.";return{c(){t=s("p"),t.textContent=L},l(c){t=i(c,"P",{"data-svelte-h":!0}),g(t)!=="svelte-8w79b9"&&(t.textContent=L)},m(c,d){b(c,t,d)},p:D,d(c){c&&l(t)}}}function HL(T){let t,L="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,d,w="This function is experimental and might change in the future.";return{c(){t=s("p"),t.textContent=L,c=r(),d=s("p"),d.textContent=w},l(a){t=i(a,"P",{"data-svelte-h":!0}),g(t)!=="svelte-15l1sdn"&&(t.textContent=L),c=n(a),d=i(a,"P",{"data-svelte-h":!0}),g(d)!=="svelte-3fufvn"&&(d.textContent=w)},m(a,v){b(a,t,v),b(a,c,v),b(a,d,v)},p:D,d(a){a&&(l(t),l(c),l(d))}}}function jL(T){let t,L="This is an experimental API.";return{c(){t=s("p"),t.textContent=L},l(c){t=i(c,"P",{"data-svelte-h":!0}),g(t)!=="svelte-8w79b9"&&(t.textContent=L)},m(c,d){b(c,t,d)},p:D,d(c){c&&l(t)}}}function ZL(T){let t,L="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,d,w="This function is experimental and might change in the future.";return{c(){t=s("p"),t.textContent=L,c=r(),d=s("p"),d.textContent=w},l(a){t=i(a,"P",{"data-svelte-h":!0}),g(t)!=="svelte-15l1sdn"&&(t.textContent=L),c=n(a),d=i(a,"P",{"data-svelte-h":!0}),g(d)!=="svelte-3fufvn"&&(d.textContent=w)},m(a,v){b(a,t,v),b(a,c,v),b(a,d,v)},p:D,d(a){a&&(l(t),l(c),l(d))}}}function GL(T){let t,L="This is an experimental API.";return{c(){t=s("p"),t.textContent=L},l(c){t=i(c,"P",{"data-svelte-h":!0}),g(t)!=="svelte-8w79b9"&&(t.textContent=L)},m(c,d){b(c,t,d)},p:D,d(c){c&&l(t)}}}function BL(T){let t,L="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,d,w="This function is experimental and might change in the future.";return{c(){t=s("p"),t.textContent=L,c=r(),d=s("p"),d.textContent=w},l(a){t=i(a,"P",{"data-svelte-h":!0}),g(t)!=="svelte-15l1sdn"&&(t.textContent=L),c=n(a),d=i(a,"P",{"data-svelte-h":!0}),g(d)!=="svelte-3fufvn"&&(d.textContent=w)},m(a,v){b(a,t,v),b(a,c,v),b(a,d,v)},p:D,d(a){a&&(l(t),l(c),l(d))}}}function qL(T){let t,L="This is an experimental API.";return{c(){t=s("p"),t.textContent=L},l(c){t=i(c,"P",{"data-svelte-h":!0}),g(t)!=="svelte-8w79b9"&&(t.textContent=L)},m(c,d){b(c,t,d)},p:D,d(c){c&&l(t)}}}function EL(T){let t,L="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,d,w="This function is experimental and might change in the future.";return{c(){t=s("p"),t.textContent=L,c=r(),d=s("p"),d.textContent=w},l(a){t=i(a,"P",{"data-svelte-h":!0}),g(t)!=="svelte-15l1sdn"&&(t.textContent=L),c=n(a),d=i(a,"P",{"data-svelte-h":!0}),g(d)!=="svelte-3fufvn"&&(d.textContent=w)},m(a,v){b(a,t,v),b(a,c,v),b(a,d,v)},p:D,d(a){a&&(l(t),l(c),l(d))}}}function NL(T){let t,L="This is an experimental API.";return{c(){t=s("p"),t.textContent=L},l(c){t=i(c,"P",{"data-svelte-h":!0}),g(t)!=="svelte-8w79b9"&&(t.textContent=L)},m(c,d){b(c,t,d)},p:D,d(c){c&&l(t)}}}function zL(T){let t,L="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",c,d,w="This function is experimental and might change in the future.";return{c(){t=s("p"),t.textContent=L,c=r(),d=s("p"),d.textContent=w},l(a){t=i(a,"P",{"data-svelte-h":!0}),g(t)!=="svelte-15l1sdn"&&(t.textContent=L),c=n(a),d=i(a,"P",{"data-svelte-h":!0}),g(d)!=="svelte-3fufvn"&&(d.textContent=w)},m(a,v){b(a,t,v),b(a,c,v),b(a,d,v)},p:D,d(a){a&&(l(t),l(c),l(d))}}}function YL(T){let t,L="This is an experimental API.";return{c(){t=s("p"),t.textContent=L},l(c){t=i(c,"P",{"data-svelte-h":!0}),g(t)!=="svelte-8w79b9"&&(t.textContent=L)},m(c,d){b(c,t,d)},p:D,d(c){c&&l(t)}}}function QL(T){let t,L="Example:",c,d,w;return d=new te({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=s("p"),t.textContent=L,c=r(),f(d.$$.fragment)},l(a){t=i(a,"P",{"data-svelte-h":!0}),g(t)!=="svelte-11lpom8"&&(t.textContent=L),c=n(a),m(d.$$.fragment,a)},m(a,v){b(a,t,v),b(a,c,v),p(d,a,v),w=!0},p:D,i(a){w||(_(d.$$.fragment,a),w=!0)},o(a){u(d.$$.fragment,a),w=!1},d(a){a&&(l(t),l(c)),h(d,a)}}}function OL(T){let t,L="Example:",c,d,w;return d=new te({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=s("p"),t.textContent=L,c=r(),f(d.$$.fragment)},l(a){t=i(a,"P",{"data-svelte-h":!0}),g(t)!=="svelte-11lpom8"&&(t.textContent=L),c=n(a),m(d.$$.fragment,a)},m(a,v){b(a,t,v),b(a,c,v),p(d,a,v),w=!0},p:D,i(a){w||(_(d.$$.fragment,a),w=!0)},o(a){u(d.$$.fragment,a),w=!1},d(a){a&&(l(t),l(c)),h(d,a)}}}function KL(T){let t,L="Example:",c,d,w;return d=new te({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=s("p"),t.textContent=L,c=r(),f(d.$$.fragment)},l(a){t=i(a,"P",{"data-svelte-h":!0}),g(t)!=="svelte-11lpom8"&&(t.textContent=L),c=n(a),m(d.$$.fragment,a)},m(a,v){b(a,t,v),b(a,c,v),p(d,a,v),w=!0},p:D,i(a){w||(_(d.$$.fragment,a),w=!0)},o(a){u(d.$$.fragment,a),w=!1},d(a){a&&(l(t),l(c)),h(d,a)}}}function eb(T){let t,L="This is an experimental API.";return{c(){t=s("p"),t.textContent=L},l(c){t=i(c,"P",{"data-svelte-h":!0}),g(t)!=="svelte-8w79b9"&&(t.textContent=L)},m(c,d){b(c,t,d)},p:D,d(c){c&&l(t)}}}function ob(T){let t,L="Example:",c,d,w;return d=new te({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=s("p"),t.textContent=L,c=r(),f(d.$$.fragment)},l(a){t=i(a,"P",{"data-svelte-h":!0}),g(t)!=="svelte-11lpom8"&&(t.textContent=L),c=n(a),m(d.$$.fragment,a)},m(a,v){b(a,t,v),b(a,c,v),p(d,a,v),w=!0},p:D,i(a){w||(_(d.$$.fragment,a),w=!0)},o(a){u(d.$$.fragment,a),w=!1},d(a){a&&(l(t),l(c)),h(d,a)}}}function tb(T){let t,L="Example:",c,d,w;return d=new te({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=s("p"),t.textContent=L,c=r(),f(d.$$.fragment)},l(a){t=i(a,"P",{"data-svelte-h":!0}),g(t)!=="svelte-11lpom8"&&(t.textContent=L),c=n(a),m(d.$$.fragment,a)},m(a,v){b(a,t,v),b(a,c,v),p(d,a,v),w=!0},p:D,i(a){w||(_(d.$$.fragment,a),w=!0)},o(a){u(d.$$.fragment,a),w=!1},d(a){a&&(l(t),l(c)),h(d,a)}}}function ab(T){let t,L="Example:",c,d,w;return d=new te({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=s("p"),t.textContent=L,c=r(),f(d.$$.fragment)},l(a){t=i(a,"P",{"data-svelte-h":!0}),g(t)!=="svelte-11lpom8"&&(t.textContent=L),c=n(a),m(d.$$.fragment,a)},m(a,v){b(a,t,v),b(a,c,v),p(d,a,v),w=!0},p:D,i(a){w||(_(d.$$.fragment,a),w=!0)},o(a){u(d.$$.fragment,a),w=!1},d(a){a&&(l(t),l(c)),h(d,a)}}}function rb(T){let t,L;return t=new te({props:{code:"cGlwZS5sb2FkX2xvcmFfd2VpZ2h0cyhwYXRoXzElMkMlMjBhZGFwdGVyX25hbWUlM0QlMjJhZGFwdGVyLTElMjIpJTBBcGlwZS5sb2FkX2xvcmFfd2VpZ2h0cyhwYXRoXzIlMkMlMjBhZGFwdGVyX25hbWUlM0QlMjJhZGFwdGVyLTIlMjIpJTBBcGlwZS5zZXRfYWRhcHRlcnMoJTIyYWRhcHRlci0xJTIyKSUwQWltYWdlXzElMjAlM0QlMjBwaXBlKCoqa3dhcmdzKSUwQSUyMyUyMHN3aXRjaCUyMHRvJTIwYWRhcHRlci0yJTJDJTIwb2ZmbG9hZCUyMGFkYXB0ZXItMSUwQXBpcGVsaW5lLnNldF9sb3JhX2RldmljZShhZGFwdGVyX25hbWVzJTNEJTVCJTIyYWRhcHRlci0xJTIyJTVEJTJDJTIwZGV2aWNlJTNEJTIyY3B1JTIyKSUwQXBpcGVsaW5lLnNldF9sb3JhX2RldmljZShhZGFwdGVyX25hbWVzJTNEJTVCJTIyYWRhcHRlci0yJTIyJTVEJTJDJTIwZGV2aWNlJTNEJTIyY3VkYSUzQTAlMjIpJTBBcGlwZS5zZXRfYWRhcHRlcnMoJTIyYWRhcHRlci0yJTIyKSUwQWltYWdlXzIlMjAlM0QlMjBwaXBlKCoqa3dhcmdzKSUwQSUyMyUyMHN3aXRjaCUyMGJhY2slMjB0byUyMGFkYXB0ZXItMSUyQyUyMG9mZmxvYWQlMjBhZGFwdGVyLTIlMEFwaXBlbGluZS5zZXRfbG9yYV9kZXZpY2UoYWRhcHRlcl9uYW1lcyUzRCU1QiUyMmFkYXB0ZXItMiUyMiU1RCUyQyUyMGRldmljZSUzRCUyMmNwdSUyMiklMEFwaXBlbGluZS5zZXRfbG9yYV9kZXZpY2UoYWRhcHRlcl9uYW1lcyUzRCU1QiUyMmFkYXB0ZXItMSUyMiU1RCUyQyUyMGRldmljZSUzRCUyMmN1ZGElM0EwJTIyKSUwQXBpcGUuc2V0X2FkYXB0ZXJzKCUyMmFkYXB0ZXItMSUyMiklMEEuLi4=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.load_lora_weights(path_1, adapter_name=<span class="hljs-string">&quot;adapter-1&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.load_lora_weights(path_2, adapter_name=<span class="hljs-string">&quot;adapter-2&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.set_adapters(<span class="hljs-string">&quot;adapter-1&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image_1 = pipe(**kwargs)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># switch to adapter-2, offload adapter-1</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline.set_lora_device(adapter_names=[<span class="hljs-string">&quot;adapter-1&quot;</span>], device=<span class="hljs-string">&quot;cpu&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline.set_lora_device(adapter_names=[<span class="hljs-string">&quot;adapter-2&quot;</span>], device=<span class="hljs-string">&quot;cuda:0&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.set_adapters(<span class="hljs-string">&quot;adapter-2&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image_2 = pipe(**kwargs)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># switch back to adapter-1, offload adapter-2</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline.set_lora_device(adapter_names=[<span class="hljs-string">&quot;adapter-2&quot;</span>], device=<span class="hljs-string">&quot;cpu&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipeline.set_lora_device(adapter_names=[<span class="hljs-string">&quot;adapter-1&quot;</span>], device=<span class="hljs-string">&quot;cuda:0&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>pipe.set_adapters(<span class="hljs-string">&quot;adapter-1&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>...`,wrap:!1}}),{c(){f(t.$$.fragment)},l(c){m(t.$$.fragment,c)},m(c,d){p(t,c,d),L=!0},p:D,i(c){L||(_(t.$$.fragment,c),L=!0)},o(c){u(t.$$.fragment,c),L=!1},d(c){h(t,c)}}}function nb(T){let t,L="This is an experimental API.";return{c(){t=s("p"),t.textContent=L},l(c){t=i(c,"P",{"data-svelte-h":!0}),g(t)!=="svelte-8w79b9"&&(t.textContent=L)},m(c,d){b(c,t,d)},p:D,d(c){c&&l(t)}}}function sb(T){let t,L="Examples:",c,d,w;return d=new te({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=s("p"),t.textContent=L,c=r(),f(d.$$.fragment)},l(a){t=i(a,"P",{"data-svelte-h":!0}),g(t)!=="svelte-kvfsh7"&&(t.textContent=L),c=n(a),m(d.$$.fragment,a)},m(a,v){b(a,t,v),b(a,c,v),p(d,a,v),w=!0},p:D,i(a){w||(_(d.$$.fragment,a),w=!0)},o(a){u(d.$$.fragment,a),w=!1},d(a){a&&(l(t),l(c)),h(d,a)}}}function ib(T){let t,L,c,d,w,a,v,Th='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/main/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>, for example) or a Transformer (<a href="/docs/diffusers/main/en/api/models/sd3_transformer2d#diffusers.SD3Transformer2DModel">SD3Transformer2DModel</a>, for example). There are several classes for loading LoRA weights:',Xl,Ra,Dh='<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>SkyReelsV2LoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/skyreels_v2" rel="nofollow">SkyReels-V2</a>.</li> <li><code>CogView4LoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/cogview4" rel="nofollow">CogView4</a>.</li> <li><code>AmusedLoraLoaderMixin</code> is for the <a href="/docs/diffusers/main/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>',Fl,Vo,Jl,Aa,Pl,C,Ua,af,As,Ch="Utility class for handling LoRAs.",rf,De,Va,nf,Us,Sh="Delete an adapter’s LoRA layers from the pipeline.",sf,Io,df,Ce,Ia,lf,Vs,kh="Disables the active LoRA layers of the pipeline.",cf,Wo,ff,Se,Wa,mf,Is,Rh="Enables the active LoRA layers of the pipeline.",pf,Xo,_f,Fo,Xa,uf,Ws,Ah=`Hotswap adapters without triggering recompilation of a model or if the ranks of the loaded adapters are
different.`,hf,be,Fa,gf,Xs,Uh="Fuses the LoRA parameters into the original parameters of the corresponding blocks.",xf,Jo,Lf,Po,bf,ke,Ja,wf,Fs,Vh="Gets the list of the current active adapters.",vf,Ho,$f,jo,Pa,yf,Js,Ih="Gets the current list of all available adapters in the pipeline.",Mf,Re,Ha,Tf,Ps,Wh="Set the currently active adapters for use in the pipeline.",Df,Zo,Cf,we,ja,Sf,Hs,Xh=`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.`,kf,js,Fh=`After offloading the LoRA adapters to CPU, as long as the rest of the model is still on GPU, the LoRA adapters
can no longer be used for inference, as that would cause a device mismatch. Remember to set the device back to
GPU before using those LoRA adapters for inference.`,Rf,Go,Af,Ae,Za,Uf,Zs,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>.`,Vf,Bo,If,Ue,Ga,Wf,Gs,Ph="Unloads the LoRA parameters.",Xf,qo,Ff,Eo,Ba,Jf,Bs,Hh="Writes the state dict of the LoRA layers (optionally with metadata) to disk.",Hl,qa,jl,X,Ea,Pf,qs,jh=`Load LoRA layers into Stable Diffusion <a href="/docs/diffusers/main/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>.`,Hf,No,Na,jf,Es,Zh="This will load the LoRA layers specified in <code>state_dict</code> into <code>text_encoder</code>",Zf,zo,za,Gf,Ns,Gh="This will load the LoRA layers specified in <code>state_dict</code> into <code>unet</code>.",Bf,ae,Ya,qf,zs,Bh=`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>.`,Ef,Ys,qh="All kwargs are forwarded to <code>self.lora_state_dict</code>.",Nf,Qs,Eh=`See <a href="/docs/diffusers/main/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details on how the state dict is
loaded.`,zf,Os,Nh=`See <a href="/docs/diffusers/main/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>.`,Yf,Ks,zh=`See <a href="/docs/diffusers/main/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>.`,Qf,Ve,Qa,Of,ei,Yh="Return state dict for lora weights and the network alphas.",Kf,Yo,em,Qo,Oa,om,oi,Qh="Save the LoRA parameters corresponding to the UNet and text encoder.",Zl,Ka,Gl,F,er,tm,ti,Oh=`Load LoRA layers into Stable Diffusion XL <a href="/docs/diffusers/main/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>.`,am,Oo,or,rm,ai,Kh="This will load the LoRA layers specified in <code>state_dict</code> into <code>text_encoder</code>",nm,Ko,tr,sm,ri,eg="This will load the LoRA layers specified in <code>state_dict</code> into <code>unet</code>.",im,re,ar,dm,ni,og=`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>.`,lm,si,tg="All kwargs are forwarded to <code>self.lora_state_dict</code>.",cm,ii,ag=`See <a href="/docs/diffusers/main/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details on how the state dict is
loaded.`,fm,di,rg=`See <a href="/docs/diffusers/main/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>.`,mm,li,ng=`See <a href="/docs/diffusers/main/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>.`,pm,Ie,rr,_m,ci,sg="Return state dict for lora weights and the network alphas.",um,et,hm,ot,nr,gm,fi,ig="Save the LoRA parameters corresponding to the UNet and text encoder.",Bl,sr,ql,V,ir,xm,mi,dg=`Load LoRA layers into <a href="/docs/diffusers/main/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>.`,Lm,pi,lg='Specific to <a href="/docs/diffusers/main/en/api/pipelines/stable_diffusion/stable_diffusion_3#diffusers.StableDiffusion3Pipeline">StableDiffusion3Pipeline</a>.',bm,tt,dr,wm,_i,cg="This will load the LoRA layers specified in <code>state_dict</code> into <code>text_encoder</code>",vm,at,lr,$m,ui,fg="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",ym,ie,cr,Mm,hi,mg=`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>.`,Tm,gi,pg="All kwargs are forwarded to <code>self.lora_state_dict</code>.",Dm,xi,_g=`See <a href="/docs/diffusers/main/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details on how the state dict is
loaded.`,Cm,Li,ug=`See <code>~loaders.StableDiffusionLoraLoaderMixin.load_lora_into_transformer</code> for more details on how the state
dict is loaded into <code>self.transformer</code>.`,Sm,We,fr,km,bi,hg="Return state dict for lora weights and the network alphas.",Rm,rt,Am,nt,mr,Um,wi,gg="Save the LoRA parameters corresponding to the UNet and text encoder.",Vm,Xe,pr,Im,vi,xg=`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>.`,Wm,st,El,_r,Nl,U,ur,Xm,$i,Lg=`Load LoRA layers into <a href="/docs/diffusers/main/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>.`,Fm,yi,bg='Specific to <a href="/docs/diffusers/main/en/api/pipelines/stable_diffusion/stable_diffusion_3#diffusers.StableDiffusion3Pipeline">StableDiffusion3Pipeline</a>.',Jm,it,hr,Pm,Mi,wg="This will load the LoRA layers specified in <code>state_dict</code> into <code>text_encoder</code>",Hm,dt,gr,jm,Ti,vg="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",Zm,de,xr,Gm,Di,$g=`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>.`,Bm,Ci,yg="All kwargs are forwarded to <code>self.lora_state_dict</code>.",qm,Si,Mg=`See <a href="/docs/diffusers/main/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details on how the state dict is
loaded.`,Em,ki,Tg=`See <code>~loaders.StableDiffusionLoraLoaderMixin.load_lora_into_transformer</code> for more details on how the state
dict is loaded into <code>self.transformer</code>.`,Nm,Fe,Lr,zm,Ri,Dg="Return state dict for lora weights and the network alphas.",Ym,lt,Qm,ct,br,Om,Ai,Cg="Save the LoRA parameters corresponding to the UNet and text encoder.",Km,Je,wr,ep,Ui,Sg=`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>.`,op,ft,tp,Pe,vr,ap,Vi,kg="Unloads the LoRA parameters.",rp,mt,zl,$r,Yl,J,yr,np,Ii,Rg='Load LoRA layers into <a href="/docs/diffusers/main/en/api/models/cogvideox_transformer3d#diffusers.CogVideoXTransformer3DModel">CogVideoXTransformer3DModel</a>. Specific to <a href="/docs/diffusers/main/en/api/pipelines/cogvideox#diffusers.CogVideoXPipeline">CogVideoXPipeline</a>.',sp,pt,Mr,ip,Wi,Ag="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",dp,_t,Tr,lp,Xi,Ug=`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/main/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>.`,cp,He,Dr,fp,Fi,Vg="Return state dict for lora weights and the network alphas.",mp,ut,pp,ht,Cr,_p,Ji,Ig="Save the LoRA parameters corresponding to the transformer.",up,je,Sr,hp,Pi,Wg=`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>.`,gp,gt,Ql,kr,Ol,P,Rr,xp,Hi,Xg='Load LoRA layers into <a href="/docs/diffusers/main/en/api/models/mochi_transformer3d#diffusers.MochiTransformer3DModel">MochiTransformer3DModel</a>. Specific to <a href="/docs/diffusers/main/en/api/pipelines/mochi#diffusers.MochiPipeline">MochiPipeline</a>.',Lp,xt,Ar,bp,ji,Fg="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",wp,Lt,Ur,vp,Zi,Jg=`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/main/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>.`,$p,Ze,Vr,yp,Gi,Pg="Return state dict for lora weights and the network alphas.",Mp,bt,Tp,wt,Ir,Dp,Bi,Hg="Save the LoRA parameters corresponding to the transformer.",Cp,Ge,Wr,Sp,qi,jg=`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>.`,kp,vt,Kl,Xr,ec,H,Fr,Rp,Ei,Zg='Load LoRA layers into <a href="/docs/diffusers/main/en/api/models/aura_flow_transformer2d#diffusers.AuraFlowTransformer2DModel">AuraFlowTransformer2DModel</a> Specific to <a href="/docs/diffusers/main/en/api/pipelines/aura_flow#diffusers.AuraFlowPipeline">AuraFlowPipeline</a>.',Ap,$t,Jr,Up,Ni,Gg="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",Vp,yt,Pr,Ip,zi,Bg=`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/main/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>.`,Wp,Be,Hr,Xp,Yi,qg="Return state dict for lora weights and the network alphas.",Fp,Mt,Jp,Tt,jr,Pp,Qi,Eg="Save the LoRA parameters corresponding to the transformer.",Hp,qe,Zr,jp,Oi,Ng=`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>.`,Zp,Dt,oc,Gr,tc,j,Br,Gp,Ki,zg='Load LoRA layers into <a href="/docs/diffusers/main/en/api/models/ltx_video_transformer3d#diffusers.LTXVideoTransformer3DModel">LTXVideoTransformer3DModel</a>. Specific to <a href="/docs/diffusers/main/en/api/pipelines/ltx_video#diffusers.LTXPipeline">LTXPipeline</a>.',Bp,Ct,qr,qp,ed,Yg="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",Ep,St,Er,Np,od,Qg=`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/main/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>.`,zp,Ee,Nr,Yp,td,Og="Return state dict for lora weights and the network alphas.",Qp,kt,Op,Rt,zr,Kp,ad,Kg="Save the LoRA parameters corresponding to the transformer.",e_,Ne,Yr,o_,rd,ex=`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>.`,t_,At,ac,Qr,rc,Z,Or,a_,nd,ox='Load LoRA layers into <a href="/docs/diffusers/main/en/api/models/sana_transformer2d#diffusers.SanaTransformer2DModel">SanaTransformer2DModel</a>. Specific to <a href="/docs/diffusers/main/en/api/pipelines/sana#diffusers.SanaPipeline">SanaPipeline</a>.',r_,Ut,Kr,n_,sd,tx="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",s_,Vt,en,i_,id,ax=`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/main/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>.`,d_,ze,on,l_,dd,rx="Return state dict for lora weights and the network alphas.",c_,It,f_,Wt,tn,m_,ld,nx="Save the LoRA parameters corresponding to the transformer.",p_,Ye,an,__,cd,sx=`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>.`,u_,Xt,nc,rn,sc,G,nn,h_,fd,ix='Load LoRA layers into <a href="/docs/diffusers/main/en/api/models/hunyuan_video_transformer_3d#diffusers.HunyuanVideoTransformer3DModel">HunyuanVideoTransformer3DModel</a>. Specific to <a href="/docs/diffusers/main/en/api/pipelines/hunyuan_video#diffusers.HunyuanVideoPipeline">HunyuanVideoPipeline</a>.',g_,Ft,sn,x_,md,dx="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",L_,Jt,dn,b_,pd,lx=`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/main/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>.`,w_,Qe,ln,v_,_d,cx="Return state dict for lora weights and the network alphas.",$_,Pt,y_,Ht,cn,M_,ud,fx="Save the LoRA parameters corresponding to the transformer.",T_,Oe,fn,D_,hd,mx=`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>.`,C_,jt,ic,mn,dc,B,pn,S_,gd,px='Load LoRA layers into <a href="/docs/diffusers/main/en/api/models/lumina2_transformer2d#diffusers.Lumina2Transformer2DModel">Lumina2Transformer2DModel</a>. Specific to <code>Lumina2Text2ImgPipeline</code>.',k_,Zt,_n,R_,xd,_x="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",A_,Gt,un,U_,Ld,ux=`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/main/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>.`,V_,Ke,hn,I_,bd,hx="Return state dict for lora weights and the network alphas.",W_,Bt,X_,qt,gn,F_,wd,gx="Save the LoRA parameters corresponding to the transformer.",J_,eo,xn,P_,vd,xx=`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>.`,H_,Et,lc,Ln,cc,q,bn,j_,$d,Lx='Load LoRA layers into <a href="/docs/diffusers/main/en/api/models/wan_transformer_3d#diffusers.WanTransformer3DModel">WanTransformer3DModel</a>. Specific to <a href="/docs/diffusers/main/en/api/pipelines/cogview4#diffusers.CogView4Pipeline">CogView4Pipeline</a>.',Z_,Nt,wn,G_,yd,bx="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",B_,zt,vn,q_,Md,wx=`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/main/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>.`,E_,oo,$n,N_,Td,vx="Return state dict for lora weights and the network alphas.",z_,Yt,Y_,Qt,yn,Q_,Dd,$x="Save the LoRA parameters corresponding to the transformer.",O_,to,Mn,K_,Cd,yx=`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>.`,eu,Ot,fc,Tn,mc,E,Dn,ou,Sd,Mx='Load LoRA layers into <a href="/docs/diffusers/main/en/api/models/wan_transformer_3d#diffusers.WanTransformer3DModel">WanTransformer3DModel</a>. Specific to <a href="/docs/diffusers/main/en/api/pipelines/wan#diffusers.WanPipeline">WanPipeline</a> and <code>[WanImageToVideoPipeline</code>].',tu,Kt,Cn,au,kd,Tx="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",ru,ea,Sn,nu,Rd,Dx=`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/main/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>.`,su,ao,kn,iu,Ad,Cx="Return state dict for lora weights and the network alphas.",du,oa,lu,ta,Rn,cu,Ud,Sx="Save the LoRA parameters corresponding to the transformer.",fu,ro,An,mu,Vd,kx=`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>.`,pu,aa,pc,Un,_c,N,Vn,_u,Id,Rx='Load LoRA layers into <a href="/docs/diffusers/main/en/api/models/skyreels_v2_transformer_3d#diffusers.SkyReelsV2Transformer3DModel">SkyReelsV2Transformer3DModel</a>.',uu,ra,In,hu,Wd,Ax="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",gu,na,Wn,xu,Xd,Ux=`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/main/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>.`,Lu,no,Xn,bu,Fd,Vx="Return state dict for lora weights and the network alphas.",wu,sa,vu,ia,Fn,$u,Jd,Ix="Save the LoRA parameters corresponding to the transformer.",yu,so,Jn,Mu,Pd,Wx=`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>.`,Tu,da,uc,Pn,hc,ye,Hn,Du,la,jn,Cu,Hd,Xx="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",Su,ca,Zn,ku,jd,Fx="Save the LoRA parameters corresponding to the UNet and text encoder.",gc,Gn,xc,z,Bn,Ru,Zd,Jx='Load LoRA layers into <a href="/docs/diffusers/main/en/api/models/hidream_image_transformer#diffusers.HiDreamImageTransformer2DModel">HiDreamImageTransformer2DModel</a>. Specific to <a href="/docs/diffusers/main/en/api/pipelines/hidream#diffusers.HiDreamImagePipeline">HiDreamImagePipeline</a>.',Au,fa,qn,Uu,Gd,Px="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",Vu,ma,En,Iu,Bd,Hx=`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/main/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>.`,Wu,io,Nn,Xu,qd,jx="Return state dict for lora weights and the network alphas.",Fu,pa,Ju,_a,zn,Pu,Ed,Zx="Save the LoRA parameters corresponding to the transformer.",Hu,lo,Yn,ju,Nd,Gx=`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>.`,Zu,ua,Lc,Qn,bc,S,On,Gu,zd,Bx="Utility class for handling LoRAs.",Bu,co,Kn,qu,Yd,qx="Delete an adapter’s LoRA layers from the pipeline.",Eu,ha,Nu,fo,es,zu,Qd,Ex="Disables the active LoRA layers of the pipeline.",Yu,ga,Qu,mo,os,Ou,Od,Nx="Enables the active LoRA layers of the pipeline.",Ku,xa,eh,La,ts,oh,Kd,zx=`Hotswap adapters without triggering recompilation of a model or if the ranks of the loaded adapters are
different.`,th,ve,as,ah,el,Yx="Fuses the LoRA parameters into the original parameters of the corresponding blocks.",rh,ba,nh,wa,sh,po,rs,ih,ol,Qx="Gets the list of the current active adapters.",dh,va,lh,$a,ns,ch,tl,Ox="Gets the current list of all available adapters in the pipeline.",fh,_o,ss,mh,al,Kx="Set the currently active adapters for use in the pipeline.",ph,ya,_h,$e,is,uh,rl,eL=`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.`,hh,nl,oL=`After offloading the LoRA adapters to CPU, as long as the rest of the model is still on GPU, the LoRA adapters
can no longer be used for inference, as that would cause a device mismatch. Remember to set the device back to
GPU before using those LoRA adapters for inference.`,gh,Ma,xh,uo,ds,Lh,sl,tL=`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>.`,bh,Ta,wh,ho,ls,vh,il,aL="Unloads the LoRA parameters.",$h,Da,yh,Ca,cs,Mh,dl,rL="Writes the state dict of the LoRA layers (optionally with metadata) to disk.",wc,fs,vc,Wl,$c;return w=new Y({props:{title:"LoRA",local:"lora",headingTag:"h1"}}),Vo=new k({props:{$$slots:{default:[fL]},$$scope:{ctx:T}}}),Aa=new Y({props:{title:"LoraBaseMixin",local:"diffusers.loaders.lora_base.LoraBaseMixin",headingTag:"h2"}}),Ua=new M({props:{name:"class diffusers.loaders.lora_base.LoraBaseMixin",anchor:"diffusers.loaders.lora_base.LoraBaseMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_base.py#L478"}}),Va=new M({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/main/src/diffusers/loaders/lora_base.py#L842"}}),Io=new oe({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.delete_adapters.example",$$slots:{default:[mL]},$$scope:{ctx:T}}}),Ia=new M({props:{name:"disable_lora",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.disable_lora",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_base.py#L782"}}),Wo=new oe({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.disable_lora.example",$$slots:{default:[pL]},$$scope:{ctx:T}}}),Wa=new M({props:{name:"enable_lora",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.enable_lora",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_base.py#L812"}}),Xo=new oe({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.enable_lora.example",$$slots:{default:[_L]},$$scope:{ctx:T}}}),Xa=new M({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/main/src/diffusers/loaders/lora_base.py#L989"}}),Fa=new M({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/main/src/diffusers/loaders/lora_base.py#L536"}}),Jo=new k({props:{warning:!0,$$slots:{default:[uL]},$$scope:{ctx:T}}}),Po=new oe({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.fuse_lora.example",$$slots:{default:[hL]},$$scope:{ctx:T}}}),Ja=new M({props:{name:"get_active_adapters",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.get_active_adapters",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_base.py#L880"}}),Ho=new oe({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.get_active_adapters.example",$$slots:{default:[gL]},$$scope:{ctx:T}}}),Pa=new M({props:{name:"get_list_adapters",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.get_list_adapters",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_base.py#L913"}}),Ha=new M({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/main/src/diffusers/loaders/lora_base.py#L683"}}),Zo=new oe({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_adapters.example",$$slots:{default:[xL]},$$scope:{ctx:T}}}),ja=new M({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/main/src/diffusers/loaders/lora_base.py#L935"}}),Go=new oe({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_lora_device.example",$$slots:{default:[LL]},$$scope:{ctx:T}}}),Za=new M({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/main/src/diffusers/loaders/lora_base.py#L626"}}),Bo=new k({props:{warning:!0,$$slots:{default:[bL]},$$scope:{ctx:T}}}),Ga=new M({props:{name:"unload_lora_weights",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.unload_lora_weights",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_base.py#L513"}}),qo=new oe({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.unload_lora_weights.example",$$slots:{default:[wL]},$$scope:{ctx:T}}}),Ba=new M({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/main/src/diffusers/loaders/lora_base.py#L1012"}}),qa=new Y({props:{title:"StableDiffusionLoraLoaderMixin",local:"diffusers.loaders.StableDiffusionLoraLoaderMixin",headingTag:"h2"}}),Ea=new M({props:{name:"class diffusers.loaders.StableDiffusionLoraLoaderMixin",anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_pipeline.py#L127"}}),Na=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L415"}}),za=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L354"}}),Ya=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L137"}}),Qa=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L238"}}),Yo=new k({props:{warning:!0,$$slots:{default:[vL]},$$scope:{ctx:T}}}),Oa=new M({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/main/src/diffusers/loaders/lora_pipeline.py#L473"}}),Ka=new Y({props:{title:"StableDiffusionXLLoraLoaderMixin",local:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin",headingTag:"h2"}}),er=new M({props:{name:"class diffusers.loaders.StableDiffusionXLLoraLoaderMixin",anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_pipeline.py#L611"}}),or=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L901"}}),tr=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L839"}}),ar=new M({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/main/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/main/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/main/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_pipeline.py#L622"}}),rr=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L722"}}),et=new k({props:{warning:!0,$$slots:{default:[$L]},$$scope:{ctx:T}}}),nr=new M({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/main/src/diffusers/loaders/lora_pipeline.py#L960"}}),sr=new Y({props:{title:"SD3LoraLoaderMixin",local:"diffusers.loaders.SD3LoraLoaderMixin",headingTag:"h2"}}),ir=new M({props:{name:"class diffusers.loaders.SD3LoraLoaderMixin",anchor:"diffusers.loaders.SD3LoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_pipeline.py#L1114"}}),dr=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L1363"}}),lr=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L1313"}}),cr=new M({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/main/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/main/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/main/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_pipeline.py#L1225"}}),fr=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L1127"}}),rt=new k({props:{warning:!0,$$slots:{default:[yL]},$$scope:{ctx:T}}}),mr=new M({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/main/src/diffusers/loaders/lora_pipeline.py#L1422"}}),pr=new M({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/main/src/diffusers/loaders/lora_pipeline.py#L1560"}}),st=new k({props:{warning:!0,$$slots:{default:[ML]},$$scope:{ctx:T}}}),_r=new Y({props:{title:"FluxLoraLoaderMixin",local:"diffusers.loaders.FluxLoraLoaderMixin",headingTag:"h2"}}),ur=new M({props:{name:"class diffusers.loaders.FluxLoraLoaderMixin",anchor:"diffusers.loaders.FluxLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_pipeline.py#L1923"}}),hr=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L2338"}}),gr=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L2229"}}),xr=new M({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/main/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/main/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/main/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_pipeline.py#L2104"}}),Lr=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L1936"}}),lt=new k({props:{warning:!0,$$slots:{default:[TL]},$$scope:{ctx:T}}}),br=new M({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/main/src/diffusers/loaders/lora_pipeline.py#L2397"}}),wr=new M({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/main/src/diffusers/loaders/lora_pipeline.py#L2530"}}),ft=new k({props:{warning:!0,$$slots:{default:[DL]},$$scope:{ctx:T}}}),vr=new M({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/main/src/diffusers/loaders/lora_pipeline.py#L2551"}}),mt=new oe({props:{anchor:"diffusers.loaders.FluxLoraLoaderMixin.unload_lora_weights.example",$$slots:{default:[CL]},$$scope:{ctx:T}}}),$r=new Y({props:{title:"CogVideoXLoraLoaderMixin",local:"diffusers.loaders.CogVideoXLoraLoaderMixin",headingTag:"h2"}}),yr=new M({props:{name:"class diffusers.loaders.CogVideoXLoraLoaderMixin",anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_pipeline.py#L3006"}}),Mr=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L3172"}}),Tr=new M({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/main/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/main/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/main/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_pipeline.py#L3113"}}),Dr=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L3014"}}),ut=new k({props:{warning:!0,$$slots:{default:[SL]},$$scope:{ctx:T}}}),Cr=new M({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/main/src/diffusers/loaders/lora_pipeline.py#L3223"}}),Sr=new M({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/main/src/diffusers/loaders/lora_pipeline.py#L3327"}}),gt=new k({props:{warning:!0,$$slots:{default:[kL]},$$scope:{ctx:T}}}),kr=new Y({props:{title:"Mochi1LoraLoaderMixin",local:"diffusers.loaders.Mochi1LoraLoaderMixin",headingTag:"h2"}}),Rr=new M({props:{name:"class diffusers.loaders.Mochi1LoraLoaderMixin",anchor:"diffusers.loaders.Mochi1LoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_pipeline.py#L3345"}}),Ar=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L3512"}}),Ur=new M({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/main/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/main/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/main/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_pipeline.py#L3453"}}),Vr=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L3353"}}),bt=new k({props:{warning:!0,$$slots:{default:[RL]},$$scope:{ctx:T}}}),Ir=new M({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/main/src/diffusers/loaders/lora_pipeline.py#L3563"}}),Wr=new M({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/main/src/diffusers/loaders/lora_pipeline.py#L3669"}}),vt=new k({props:{warning:!0,$$slots:{default:[AL]},$$scope:{ctx:T}}}),Xr=new Y({props:{title:"AuraFlowLoraLoaderMixin",local:"diffusers.loaders.AuraFlowLoraLoaderMixin",headingTag:"h2"}}),Fr=new M({props:{name:"class diffusers.loaders.AuraFlowLoraLoaderMixin",anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_pipeline.py#L1581"}}),Jr=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L1748"}}),Pr=new M({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/main/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/main/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/main/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_pipeline.py#L1689"}}),Hr=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L1589"}}),Mt=new k({props:{warning:!0,$$slots:{default:[UL]},$$scope:{ctx:T}}}),jr=new M({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/main/src/diffusers/loaders/lora_pipeline.py#L1799"}}),Zr=new M({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/main/src/diffusers/loaders/lora_pipeline.py#L1905"}}),Dt=new k({props:{warning:!0,$$slots:{default:[VL]},$$scope:{ctx:T}}}),Gr=new Y({props:{title:"LTXVideoLoraLoaderMixin",local:"diffusers.loaders.LTXVideoLoraLoaderMixin",headingTag:"h2"}}),Br=new M({props:{name:"class diffusers.loaders.LTXVideoLoraLoaderMixin",anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_pipeline.py#L3687"}}),qr=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L3856"}}),Er=new M({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/main/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/main/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/main/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_pipeline.py#L3797"}}),Nr=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L3695"}}),kt=new k({props:{warning:!0,$$slots:{default:[IL]},$$scope:{ctx:T}}}),zr=new M({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/main/src/diffusers/loaders/lora_pipeline.py#L3907"}}),Yr=new M({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/main/src/diffusers/loaders/lora_pipeline.py#L4013"}}),At=new k({props:{warning:!0,$$slots:{default:[WL]},$$scope:{ctx:T}}}),Qr=new Y({props:{title:"SanaLoraLoaderMixin",local:"diffusers.loaders.SanaLoraLoaderMixin",headingTag:"h2"}}),Or=new M({props:{name:"class diffusers.loaders.SanaLoraLoaderMixin",anchor:"diffusers.loaders.SanaLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_pipeline.py#L4031"}}),Kr=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L4198"}}),en=new M({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/main/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/main/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/main/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_pipeline.py#L4139"}}),on=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L4039"}}),It=new k({props:{warning:!0,$$slots:{default:[XL]},$$scope:{ctx:T}}}),tn=new M({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/main/src/diffusers/loaders/lora_pipeline.py#L4249"}}),an=new M({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/main/src/diffusers/loaders/lora_pipeline.py#L4355"}}),Xt=new k({props:{warning:!0,$$slots:{default:[FL]},$$scope:{ctx:T}}}),rn=new Y({props:{title:"HunyuanVideoLoraLoaderMixin",local:"diffusers.loaders.HunyuanVideoLoraLoaderMixin",headingTag:"h2"}}),nn=new M({props:{name:"class diffusers.loaders.HunyuanVideoLoraLoaderMixin",anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_pipeline.py#L4373"}}),sn=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L4542"}}),dn=new M({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/main/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/main/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/main/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_pipeline.py#L4483"}}),ln=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L4381"}}),Pt=new k({props:{warning:!0,$$slots:{default:[JL]},$$scope:{ctx:T}}}),cn=new M({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/main/src/diffusers/loaders/lora_pipeline.py#L4593"}}),fn=new M({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/main/src/diffusers/loaders/lora_pipeline.py#L4699"}}),jt=new k({props:{warning:!0,$$slots:{default:[PL]},$$scope:{ctx:T}}}),mn=new Y({props:{title:"Lumina2LoraLoaderMixin",local:"diffusers.loaders.Lumina2LoraLoaderMixin",headingTag:"h2"}}),pn=new M({props:{name:"class diffusers.loaders.Lumina2LoraLoaderMixin",anchor:"diffusers.loaders.Lumina2LoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_pipeline.py#L4717"}}),_n=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L4887"}}),un=new M({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/main/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/main/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/main/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_pipeline.py#L4828"}}),hn=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L4725"}}),Bt=new k({props:{warning:!0,$$slots:{default:[HL]},$$scope:{ctx:T}}}),gn=new M({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/main/src/diffusers/loaders/lora_pipeline.py#L4938"}}),xn=new M({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/main/src/diffusers/loaders/lora_pipeline.py#L5044"}}),Et=new k({props:{warning:!0,$$slots:{default:[jL]},$$scope:{ctx:T}}}),Ln=new Y({props:{title:"CogView4LoraLoaderMixin",local:"diffusers.loaders.CogView4LoraLoaderMixin",headingTag:"h2"}}),bn=new M({props:{name:"class diffusers.loaders.CogView4LoraLoaderMixin",anchor:"diffusers.loaders.CogView4LoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_pipeline.py#L5855"}}),wn=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L6022"}}),vn=new M({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/main/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/main/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/main/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_pipeline.py#L5963"}}),$n=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L5863"}}),Yt=new k({props:{warning:!0,$$slots:{default:[ZL]},$$scope:{ctx:T}}}),yn=new M({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/main/src/diffusers/loaders/lora_pipeline.py#L6073"}}),Mn=new M({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/main/src/diffusers/loaders/lora_pipeline.py#L6179"}}),Ot=new k({props:{warning:!0,$$slots:{default:[GL]},$$scope:{ctx:T}}}),Tn=new Y({props:{title:"WanLoraLoaderMixin",local:"diffusers.loaders.WanLoraLoaderMixin",headingTag:"h2"}}),Dn=new M({props:{name:"class diffusers.loaders.WanLoraLoaderMixin",anchor:"diffusers.loaders.WanLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_pipeline.py#L5062"}}),Cn=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L5282"}}),Sn=new M({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/main/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/main/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/main/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_pipeline.py#L5219"}}),kn=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L5070"}}),oa=new k({props:{warning:!0,$$slots:{default:[BL]},$$scope:{ctx:T}}}),Rn=new M({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/main/src/diffusers/loaders/lora_pipeline.py#L5333"}}),An=new M({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/main/src/diffusers/loaders/lora_pipeline.py#L5439"}}),aa=new k({props:{warning:!0,$$slots:{default:[qL]},$$scope:{ctx:T}}}),Un=new Y({props:{title:"SkyReelsV2LoraLoaderMixin",local:"diffusers.loaders.SkyReelsV2LoraLoaderMixin",headingTag:"h2"}}),Vn=new M({props:{name:"class diffusers.loaders.SkyReelsV2LoraLoaderMixin",anchor:"diffusers.loaders.SkyReelsV2LoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_pipeline.py#L5457"}}),In=new M({props:{name:"load_lora_into_transformer",anchor:"diffusers.loaders.SkyReelsV2LoraLoaderMixin.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.SkyReelsV2LoraLoaderMixin.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.SkyReelsV2LoraLoaderMixin.load_lora_into_transformer.transformer",description:`<strong>transformer</strong> (<code>SkyReelsV2Transformer3DModel</code>) &#x2014;
The Transformer model to load the LoRA layers into.`,name:"transformer"},{anchor:"diffusers.loaders.SkyReelsV2LoraLoaderMixin.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.SkyReelsV2LoraLoaderMixin.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.SkyReelsV2LoraLoaderMixin.load_lora_into_transformer.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/main/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.SkyReelsV2LoraLoaderMixin.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/main/src/diffusers/loaders/lora_pipeline.py#L5680"}}),Wn=new M({props:{name:"load_lora_weights",anchor:"diffusers.loaders.SkyReelsV2LoraLoaderMixin.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.SkyReelsV2LoraLoaderMixin.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/main/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.SkyReelsV2LoraLoaderMixin.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.SkyReelsV2LoraLoaderMixin.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.SkyReelsV2LoraLoaderMixin.load_lora_weights.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/main/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights">load_lora_weights()</a>.`,name:"hotswap"},{anchor:"diffusers.loaders.SkyReelsV2LoraLoaderMixin.load_lora_weights.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
See <a href="/docs/diffusers/main/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_pipeline.py#L5617"}}),Xn=new M({props:{name:"lora_state_dict",anchor:"diffusers.loaders.SkyReelsV2LoraLoaderMixin.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.SkyReelsV2LoraLoaderMixin.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/main/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.SkyReelsV2LoraLoaderMixin.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.SkyReelsV2LoraLoaderMixin.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.SkyReelsV2LoraLoaderMixin.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.SkyReelsV2LoraLoaderMixin.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.SkyReelsV2LoraLoaderMixin.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.SkyReelsV2LoraLoaderMixin.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.SkyReelsV2LoraLoaderMixin.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.SkyReelsV2LoraLoaderMixin.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/main/src/diffusers/loaders/lora_pipeline.py#L5465"}}),sa=new k({props:{warning:!0,$$slots:{default:[EL]},$$scope:{ctx:T}}}),Fn=new M({props:{name:"save_lora_weights",anchor:"diffusers.loaders.SkyReelsV2LoraLoaderMixin.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.SkyReelsV2LoraLoaderMixin.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.SkyReelsV2LoraLoaderMixin.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.SkyReelsV2LoraLoaderMixin.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.SkyReelsV2LoraLoaderMixin.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.SkyReelsV2LoraLoaderMixin.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.SkyReelsV2LoraLoaderMixin.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/main/src/diffusers/loaders/lora_pipeline.py#L5731"}}),Jn=new M({props:{name:"unfuse_lora",anchor:"diffusers.loaders.SkyReelsV2LoraLoaderMixin.unfuse_lora",parameters:[{name:"components",val:": typing.List[str] = ['transformer']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.SkyReelsV2LoraLoaderMixin.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.SkyReelsV2LoraLoaderMixin.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/main/src/diffusers/loaders/lora_pipeline.py#L5837"}}),da=new k({props:{warning:!0,$$slots:{default:[NL]},$$scope:{ctx:T}}}),Pn=new Y({props:{title:"AmusedLoraLoaderMixin",local:"diffusers.loaders.AmusedLoraLoaderMixin",headingTag:"h2"}}),Hn=new M({props:{name:"class diffusers.loaders.AmusedLoraLoaderMixin",anchor:"diffusers.loaders.AmusedLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_pipeline.py#L2831"}}),jn=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L2836"}}),Zn=new M({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/main/src/diffusers/loaders/lora_pipeline.py#L2951"}}),Gn=new Y({props:{title:"HiDreamImageLoraLoaderMixin",local:"diffusers.loaders.HiDreamImageLoraLoaderMixin",headingTag:"h2"}}),Bn=new M({props:{name:"class diffusers.loaders.HiDreamImageLoraLoaderMixin",anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_pipeline.py#L6197"}}),qn=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L6366"}}),En=new M({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/main/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/main/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/main/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_pipeline.py#L6307"}}),Nn=new M({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/main/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/main/src/diffusers/loaders/lora_pipeline.py#L6205"}}),pa=new k({props:{warning:!0,$$slots:{default:[zL]},$$scope:{ctx:T}}}),zn=new M({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/main/src/diffusers/loaders/lora_pipeline.py#L6417"}}),Yn=new M({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/main/src/diffusers/loaders/lora_pipeline.py#L6523"}}),ua=new k({props:{warning:!0,$$slots:{default:[YL]},$$scope:{ctx:T}}}),Qn=new Y({props:{title:"LoraBaseMixin",local:"diffusers.loaders.lora_base.LoraBaseMixin",headingTag:"h2"}}),On=new M({props:{name:"class diffusers.loaders.lora_base.LoraBaseMixin",anchor:"diffusers.loaders.lora_base.LoraBaseMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_base.py#L478"}}),Kn=new M({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/main/src/diffusers/loaders/lora_base.py#L842"}}),ha=new oe({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.delete_adapters.example",$$slots:{default:[QL]},$$scope:{ctx:T}}}),es=new M({props:{name:"disable_lora",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.disable_lora",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_base.py#L782"}}),ga=new oe({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.disable_lora.example",$$slots:{default:[OL]},$$scope:{ctx:T}}}),os=new M({props:{name:"enable_lora",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.enable_lora",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_base.py#L812"}}),xa=new oe({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.enable_lora.example",$$slots:{default:[KL]},$$scope:{ctx:T}}}),ts=new M({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/main/src/diffusers/loaders/lora_base.py#L989"}}),as=new M({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/main/src/diffusers/loaders/lora_base.py#L536"}}),ba=new k({props:{warning:!0,$$slots:{default:[eb]},$$scope:{ctx:T}}}),wa=new oe({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.fuse_lora.example",$$slots:{default:[ob]},$$scope:{ctx:T}}}),rs=new M({props:{name:"get_active_adapters",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.get_active_adapters",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_base.py#L880"}}),va=new oe({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.get_active_adapters.example",$$slots:{default:[tb]},$$scope:{ctx:T}}}),ns=new M({props:{name:"get_list_adapters",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.get_list_adapters",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_base.py#L913"}}),ss=new M({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/main/src/diffusers/loaders/lora_base.py#L683"}}),ya=new oe({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_adapters.example",$$slots:{default:[ab]},$$scope:{ctx:T}}}),is=new M({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/main/src/diffusers/loaders/lora_base.py#L935"}}),Ma=new oe({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_lora_device.example",$$slots:{default:[rb]},$$scope:{ctx:T}}}),ds=new M({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/main/src/diffusers/loaders/lora_base.py#L626"}}),Ta=new k({props:{warning:!0,$$slots:{default:[nb]},$$scope:{ctx:T}}}),ls=new M({props:{name:"unload_lora_weights",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.unload_lora_weights",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders/lora_base.py#L513"}}),Da=new oe({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.unload_lora_weights.example",$$slots:{default:[sb]},$$scope:{ctx:T}}}),cs=new M({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/main/src/diffusers/loaders/lora_base.py#L1012"}}),fs=new cL({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/loaders/lora.md"}}),{c(){t=s("meta"),L=r(),c=s("p"),d=r(),f(w.$$.fragment),a=r(),v=s("p"),v.innerHTML=Th,Xl=r(),Ra=s("ul"),Ra.innerHTML=Dh,Fl=r(),f(Vo.$$.fragment),Jl=r(),f(Aa.$$.fragment),Pl=r(),C=s("div"),f(Ua.$$.fragment),af=r(),As=s("p"),As.textContent=Ch,rf=r(),De=s("div"),f(Va.$$.fragment),nf=r(),Us=s("p"),Us.textContent=Sh,sf=r(),f(Io.$$.fragment),df=r(),Ce=s("div"),f(Ia.$$.fragment),lf=r(),Vs=s("p"),Vs.textContent=kh,cf=r(),f(Wo.$$.fragment),ff=r(),Se=s("div"),f(Wa.$$.fragment),mf=r(),Is=s("p"),Is.textContent=Rh,pf=r(),f(Xo.$$.fragment),_f=r(),Fo=s("div"),f(Xa.$$.fragment),uf=r(),Ws=s("p"),Ws.textContent=Ah,hf=r(),be=s("div"),f(Fa.$$.fragment),gf=r(),Xs=s("p"),Xs.textContent=Uh,xf=r(),f(Jo.$$.fragment),Lf=r(),f(Po.$$.fragment),bf=r(),ke=s("div"),f(Ja.$$.fragment),wf=r(),Fs=s("p"),Fs.textContent=Vh,vf=r(),f(Ho.$$.fragment),$f=r(),jo=s("div"),f(Pa.$$.fragment),yf=r(),Js=s("p"),Js.textContent=Ih,Mf=r(),Re=s("div"),f(Ha.$$.fragment),Tf=r(),Ps=s("p"),Ps.textContent=Wh,Df=r(),f(Zo.$$.fragment),Cf=r(),we=s("div"),f(ja.$$.fragment),Sf=r(),Hs=s("p"),Hs.innerHTML=Xh,kf=r(),js=s("p"),js.textContent=Fh,Rf=r(),f(Go.$$.fragment),Af=r(),Ae=s("div"),f(Za.$$.fragment),Uf=r(),Zs=s("p"),Zs.innerHTML=Jh,Vf=r(),f(Bo.$$.fragment),If=r(),Ue=s("div"),f(Ga.$$.fragment),Wf=r(),Gs=s("p"),Gs.textContent=Ph,Xf=r(),f(qo.$$.fragment),Ff=r(),Eo=s("div"),f(Ba.$$.fragment),Jf=r(),Bs=s("p"),Bs.textContent=Hh,Hl=r(),f(qa.$$.fragment),jl=r(),X=s("div"),f(Ea.$$.fragment),Pf=r(),qs=s("p"),qs.innerHTML=jh,Hf=r(),No=s("div"),f(Na.$$.fragment),jf=r(),Es=s("p"),Es.innerHTML=Zh,Zf=r(),zo=s("div"),f(za.$$.fragment),Gf=r(),Ns=s("p"),Ns.innerHTML=Gh,Bf=r(),ae=s("div"),f(Ya.$$.fragment),qf=r(),zs=s("p"),zs.innerHTML=Bh,Ef=r(),Ys=s("p"),Ys.innerHTML=qh,Nf=r(),Qs=s("p"),Qs.innerHTML=Eh,zf=r(),Os=s("p"),Os.innerHTML=Nh,Yf=r(),Ks=s("p"),Ks.innerHTML=zh,Qf=r(),Ve=s("div"),f(Qa.$$.fragment),Of=r(),ei=s("p"),ei.textContent=Yh,Kf=r(),f(Yo.$$.fragment),em=r(),Qo=s("div"),f(Oa.$$.fragment),om=r(),oi=s("p"),oi.textContent=Qh,Zl=r(),f(Ka.$$.fragment),Gl=r(),F=s("div"),f(er.$$.fragment),tm=r(),ti=s("p"),ti.innerHTML=Oh,am=r(),Oo=s("div"),f(or.$$.fragment),rm=r(),ai=s("p"),ai.innerHTML=Kh,nm=r(),Ko=s("div"),f(tr.$$.fragment),sm=r(),ri=s("p"),ri.innerHTML=eg,im=r(),re=s("div"),f(ar.$$.fragment),dm=r(),ni=s("p"),ni.innerHTML=og,lm=r(),si=s("p"),si.innerHTML=tg,cm=r(),ii=s("p"),ii.innerHTML=ag,fm=r(),di=s("p"),di.innerHTML=rg,mm=r(),li=s("p"),li.innerHTML=ng,pm=r(),Ie=s("div"),f(rr.$$.fragment),_m=r(),ci=s("p"),ci.textContent=sg,um=r(),f(et.$$.fragment),hm=r(),ot=s("div"),f(nr.$$.fragment),gm=r(),fi=s("p"),fi.textContent=ig,Bl=r(),f(sr.$$.fragment),ql=r(),V=s("div"),f(ir.$$.fragment),xm=r(),mi=s("p"),mi.innerHTML=dg,Lm=r(),pi=s("p"),pi.innerHTML=lg,bm=r(),tt=s("div"),f(dr.$$.fragment),wm=r(),_i=s("p"),_i.innerHTML=cg,vm=r(),at=s("div"),f(lr.$$.fragment),$m=r(),ui=s("p"),ui.innerHTML=fg,ym=r(),ie=s("div"),f(cr.$$.fragment),Mm=r(),hi=s("p"),hi.innerHTML=mg,Tm=r(),gi=s("p"),gi.innerHTML=pg,Dm=r(),xi=s("p"),xi.innerHTML=_g,Cm=r(),Li=s("p"),Li.innerHTML=ug,Sm=r(),We=s("div"),f(fr.$$.fragment),km=r(),bi=s("p"),bi.textContent=hg,Rm=r(),f(rt.$$.fragment),Am=r(),nt=s("div"),f(mr.$$.fragment),Um=r(),wi=s("p"),wi.textContent=gg,Vm=r(),Xe=s("div"),f(pr.$$.fragment),Im=r(),vi=s("p"),vi.innerHTML=xg,Wm=r(),f(st.$$.fragment),El=r(),f(_r.$$.fragment),Nl=r(),U=s("div"),f(ur.$$.fragment),Xm=r(),$i=s("p"),$i.innerHTML=Lg,Fm=r(),yi=s("p"),yi.innerHTML=bg,Jm=r(),it=s("div"),f(hr.$$.fragment),Pm=r(),Mi=s("p"),Mi.innerHTML=wg,Hm=r(),dt=s("div"),f(gr.$$.fragment),jm=r(),Ti=s("p"),Ti.innerHTML=vg,Zm=r(),de=s("div"),f(xr.$$.fragment),Gm=r(),Di=s("p"),Di.innerHTML=$g,Bm=r(),Ci=s("p"),Ci.innerHTML=yg,qm=r(),Si=s("p"),Si.innerHTML=Mg,Em=r(),ki=s("p"),ki.innerHTML=Tg,Nm=r(),Fe=s("div"),f(Lr.$$.fragment),zm=r(),Ri=s("p"),Ri.textContent=Dg,Ym=r(),f(lt.$$.fragment),Qm=r(),ct=s("div"),f(br.$$.fragment),Om=r(),Ai=s("p"),Ai.textContent=Cg,Km=r(),Je=s("div"),f(wr.$$.fragment),ep=r(),Ui=s("p"),Ui.innerHTML=Sg,op=r(),f(ft.$$.fragment),tp=r(),Pe=s("div"),f(vr.$$.fragment),ap=r(),Vi=s("p"),Vi.textContent=kg,rp=r(),f(mt.$$.fragment),zl=r(),f($r.$$.fragment),Yl=r(),J=s("div"),f(yr.$$.fragment),np=r(),Ii=s("p"),Ii.innerHTML=Rg,sp=r(),pt=s("div"),f(Mr.$$.fragment),ip=r(),Wi=s("p"),Wi.innerHTML=Ag,dp=r(),_t=s("div"),f(Tr.$$.fragment),lp=r(),Xi=s("p"),Xi.innerHTML=Ug,cp=r(),He=s("div"),f(Dr.$$.fragment),fp=r(),Fi=s("p"),Fi.textContent=Vg,mp=r(),f(ut.$$.fragment),pp=r(),ht=s("div"),f(Cr.$$.fragment),_p=r(),Ji=s("p"),Ji.textContent=Ig,up=r(),je=s("div"),f(Sr.$$.fragment),hp=r(),Pi=s("p"),Pi.innerHTML=Wg,gp=r(),f(gt.$$.fragment),Ql=r(),f(kr.$$.fragment),Ol=r(),P=s("div"),f(Rr.$$.fragment),xp=r(),Hi=s("p"),Hi.innerHTML=Xg,Lp=r(),xt=s("div"),f(Ar.$$.fragment),bp=r(),ji=s("p"),ji.innerHTML=Fg,wp=r(),Lt=s("div"),f(Ur.$$.fragment),vp=r(),Zi=s("p"),Zi.innerHTML=Jg,$p=r(),Ze=s("div"),f(Vr.$$.fragment),yp=r(),Gi=s("p"),Gi.textContent=Pg,Mp=r(),f(bt.$$.fragment),Tp=r(),wt=s("div"),f(Ir.$$.fragment),Dp=r(),Bi=s("p"),Bi.textContent=Hg,Cp=r(),Ge=s("div"),f(Wr.$$.fragment),Sp=r(),qi=s("p"),qi.innerHTML=jg,kp=r(),f(vt.$$.fragment),Kl=r(),f(Xr.$$.fragment),ec=r(),H=s("div"),f(Fr.$$.fragment),Rp=r(),Ei=s("p"),Ei.innerHTML=Zg,Ap=r(),$t=s("div"),f(Jr.$$.fragment),Up=r(),Ni=s("p"),Ni.innerHTML=Gg,Vp=r(),yt=s("div"),f(Pr.$$.fragment),Ip=r(),zi=s("p"),zi.innerHTML=Bg,Wp=r(),Be=s("div"),f(Hr.$$.fragment),Xp=r(),Yi=s("p"),Yi.textContent=qg,Fp=r(),f(Mt.$$.fragment),Jp=r(),Tt=s("div"),f(jr.$$.fragment),Pp=r(),Qi=s("p"),Qi.textContent=Eg,Hp=r(),qe=s("div"),f(Zr.$$.fragment),jp=r(),Oi=s("p"),Oi.innerHTML=Ng,Zp=r(),f(Dt.$$.fragment),oc=r(),f(Gr.$$.fragment),tc=r(),j=s("div"),f(Br.$$.fragment),Gp=r(),Ki=s("p"),Ki.innerHTML=zg,Bp=r(),Ct=s("div"),f(qr.$$.fragment),qp=r(),ed=s("p"),ed.innerHTML=Yg,Ep=r(),St=s("div"),f(Er.$$.fragment),Np=r(),od=s("p"),od.innerHTML=Qg,zp=r(),Ee=s("div"),f(Nr.$$.fragment),Yp=r(),td=s("p"),td.textContent=Og,Qp=r(),f(kt.$$.fragment),Op=r(),Rt=s("div"),f(zr.$$.fragment),Kp=r(),ad=s("p"),ad.textContent=Kg,e_=r(),Ne=s("div"),f(Yr.$$.fragment),o_=r(),rd=s("p"),rd.innerHTML=ex,t_=r(),f(At.$$.fragment),ac=r(),f(Qr.$$.fragment),rc=r(),Z=s("div"),f(Or.$$.fragment),a_=r(),nd=s("p"),nd.innerHTML=ox,r_=r(),Ut=s("div"),f(Kr.$$.fragment),n_=r(),sd=s("p"),sd.innerHTML=tx,s_=r(),Vt=s("div"),f(en.$$.fragment),i_=r(),id=s("p"),id.innerHTML=ax,d_=r(),ze=s("div"),f(on.$$.fragment),l_=r(),dd=s("p"),dd.textContent=rx,c_=r(),f(It.$$.fragment),f_=r(),Wt=s("div"),f(tn.$$.fragment),m_=r(),ld=s("p"),ld.textContent=nx,p_=r(),Ye=s("div"),f(an.$$.fragment),__=r(),cd=s("p"),cd.innerHTML=sx,u_=r(),f(Xt.$$.fragment),nc=r(),f(rn.$$.fragment),sc=r(),G=s("div"),f(nn.$$.fragment),h_=r(),fd=s("p"),fd.innerHTML=ix,g_=r(),Ft=s("div"),f(sn.$$.fragment),x_=r(),md=s("p"),md.innerHTML=dx,L_=r(),Jt=s("div"),f(dn.$$.fragment),b_=r(),pd=s("p"),pd.innerHTML=lx,w_=r(),Qe=s("div"),f(ln.$$.fragment),v_=r(),_d=s("p"),_d.textContent=cx,$_=r(),f(Pt.$$.fragment),y_=r(),Ht=s("div"),f(cn.$$.fragment),M_=r(),ud=s("p"),ud.textContent=fx,T_=r(),Oe=s("div"),f(fn.$$.fragment),D_=r(),hd=s("p"),hd.innerHTML=mx,C_=r(),f(jt.$$.fragment),ic=r(),f(mn.$$.fragment),dc=r(),B=s("div"),f(pn.$$.fragment),S_=r(),gd=s("p"),gd.innerHTML=px,k_=r(),Zt=s("div"),f(_n.$$.fragment),R_=r(),xd=s("p"),xd.innerHTML=_x,A_=r(),Gt=s("div"),f(un.$$.fragment),U_=r(),Ld=s("p"),Ld.innerHTML=ux,V_=r(),Ke=s("div"),f(hn.$$.fragment),I_=r(),bd=s("p"),bd.textContent=hx,W_=r(),f(Bt.$$.fragment),X_=r(),qt=s("div"),f(gn.$$.fragment),F_=r(),wd=s("p"),wd.textContent=gx,J_=r(),eo=s("div"),f(xn.$$.fragment),P_=r(),vd=s("p"),vd.innerHTML=xx,H_=r(),f(Et.$$.fragment),lc=r(),f(Ln.$$.fragment),cc=r(),q=s("div"),f(bn.$$.fragment),j_=r(),$d=s("p"),$d.innerHTML=Lx,Z_=r(),Nt=s("div"),f(wn.$$.fragment),G_=r(),yd=s("p"),yd.innerHTML=bx,B_=r(),zt=s("div"),f(vn.$$.fragment),q_=r(),Md=s("p"),Md.innerHTML=wx,E_=r(),oo=s("div"),f($n.$$.fragment),N_=r(),Td=s("p"),Td.textContent=vx,z_=r(),f(Yt.$$.fragment),Y_=r(),Qt=s("div"),f(yn.$$.fragment),Q_=r(),Dd=s("p"),Dd.textContent=$x,O_=r(),to=s("div"),f(Mn.$$.fragment),K_=r(),Cd=s("p"),Cd.innerHTML=yx,eu=r(),f(Ot.$$.fragment),fc=r(),f(Tn.$$.fragment),mc=r(),E=s("div"),f(Dn.$$.fragment),ou=r(),Sd=s("p"),Sd.innerHTML=Mx,tu=r(),Kt=s("div"),f(Cn.$$.fragment),au=r(),kd=s("p"),kd.innerHTML=Tx,ru=r(),ea=s("div"),f(Sn.$$.fragment),nu=r(),Rd=s("p"),Rd.innerHTML=Dx,su=r(),ao=s("div"),f(kn.$$.fragment),iu=r(),Ad=s("p"),Ad.textContent=Cx,du=r(),f(oa.$$.fragment),lu=r(),ta=s("div"),f(Rn.$$.fragment),cu=r(),Ud=s("p"),Ud.textContent=Sx,fu=r(),ro=s("div"),f(An.$$.fragment),mu=r(),Vd=s("p"),Vd.innerHTML=kx,pu=r(),f(aa.$$.fragment),pc=r(),f(Un.$$.fragment),_c=r(),N=s("div"),f(Vn.$$.fragment),_u=r(),Id=s("p"),Id.innerHTML=Rx,uu=r(),ra=s("div"),f(In.$$.fragment),hu=r(),Wd=s("p"),Wd.innerHTML=Ax,gu=r(),na=s("div"),f(Wn.$$.fragment),xu=r(),Xd=s("p"),Xd.innerHTML=Ux,Lu=r(),no=s("div"),f(Xn.$$.fragment),bu=r(),Fd=s("p"),Fd.textContent=Vx,wu=r(),f(sa.$$.fragment),vu=r(),ia=s("div"),f(Fn.$$.fragment),$u=r(),Jd=s("p"),Jd.textContent=Ix,yu=r(),so=s("div"),f(Jn.$$.fragment),Mu=r(),Pd=s("p"),Pd.innerHTML=Wx,Tu=r(),f(da.$$.fragment),uc=r(),f(Pn.$$.fragment),hc=r(),ye=s("div"),f(Hn.$$.fragment),Du=r(),la=s("div"),f(jn.$$.fragment),Cu=r(),Hd=s("p"),Hd.innerHTML=Xx,Su=r(),ca=s("div"),f(Zn.$$.fragment),ku=r(),jd=s("p"),jd.textContent=Fx,gc=r(),f(Gn.$$.fragment),xc=r(),z=s("div"),f(Bn.$$.fragment),Ru=r(),Zd=s("p"),Zd.innerHTML=Jx,Au=r(),fa=s("div"),f(qn.$$.fragment),Uu=r(),Gd=s("p"),Gd.innerHTML=Px,Vu=r(),ma=s("div"),f(En.$$.fragment),Iu=r(),Bd=s("p"),Bd.innerHTML=Hx,Wu=r(),io=s("div"),f(Nn.$$.fragment),Xu=r(),qd=s("p"),qd.textContent=jx,Fu=r(),f(pa.$$.fragment),Ju=r(),_a=s("div"),f(zn.$$.fragment),Pu=r(),Ed=s("p"),Ed.textContent=Zx,Hu=r(),lo=s("div"),f(Yn.$$.fragment),ju=r(),Nd=s("p"),Nd.innerHTML=Gx,Zu=r(),f(ua.$$.fragment),Lc=r(),f(Qn.$$.fragment),bc=r(),S=s("div"),f(On.$$.fragment),Gu=r(),zd=s("p"),zd.textContent=Bx,Bu=r(),co=s("div"),f(Kn.$$.fragment),qu=r(),Yd=s("p"),Yd.textContent=qx,Eu=r(),f(ha.$$.fragment),Nu=r(),fo=s("div"),f(es.$$.fragment),zu=r(),Qd=s("p"),Qd.textContent=Ex,Yu=r(),f(ga.$$.fragment),Qu=r(),mo=s("div"),f(os.$$.fragment),Ou=r(),Od=s("p"),Od.textContent=Nx,Ku=r(),f(xa.$$.fragment),eh=r(),La=s("div"),f(ts.$$.fragment),oh=r(),Kd=s("p"),Kd.textContent=zx,th=r(),ve=s("div"),f(as.$$.fragment),ah=r(),el=s("p"),el.textContent=Yx,rh=r(),f(ba.$$.fragment),nh=r(),f(wa.$$.fragment),sh=r(),po=s("div"),f(rs.$$.fragment),ih=r(),ol=s("p"),ol.textContent=Qx,dh=r(),f(va.$$.fragment),lh=r(),$a=s("div"),f(ns.$$.fragment),ch=r(),tl=s("p"),tl.textContent=Ox,fh=r(),_o=s("div"),f(ss.$$.fragment),mh=r(),al=s("p"),al.textContent=Kx,ph=r(),f(ya.$$.fragment),_h=r(),$e=s("div"),f(is.$$.fragment),uh=r(),rl=s("p"),rl.innerHTML=eL,hh=r(),nl=s("p"),nl.textContent=oL,gh=r(),f(Ma.$$.fragment),xh=r(),uo=s("div"),f(ds.$$.fragment),Lh=r(),sl=s("p"),sl.innerHTML=tL,bh=r(),f(Ta.$$.fragment),wh=r(),ho=s("div"),f(ls.$$.fragment),vh=r(),il=s("p"),il.textContent=aL,$h=r(),f(Da.$$.fragment),yh=r(),Ca=s("div"),f(cs.$$.fragment),Mh=r(),dl=s("p"),dl.textContent=rL,wc=r(),f(fs.$$.fragment),vc=r(),Wl=s("p"),this.h()},l(e){const x=lL("svelte-u9bgzb",document.head);t=i(x,"META",{name:!0,content:!0}),x.forEach(l),L=n(e),c=i(e,"P",{}),$(c).forEach(l),d=n(e),m(w.$$.fragment,e),a=n(e),v=i(e,"P",{"data-svelte-h":!0}),g(v)!=="svelte-1gbgnc1"&&(v.innerHTML=Th),Xl=n(e),Ra=i(e,"UL",{"data-svelte-h":!0}),g(Ra)!=="svelte-qz88q0"&&(Ra.innerHTML=Dh),Fl=n(e),m(Vo.$$.fragment,e),Jl=n(e),m(Aa.$$.fragment,e),Pl=n(e),C=i(e,"DIV",{class:!0});var R=$(C);m(Ua.$$.fragment,R),af=n(R),As=i(R,"P",{"data-svelte-h":!0}),g(As)!=="svelte-1q4bbx"&&(As.textContent=Ch),rf=n(R),De=i(R,"DIV",{class:!0});var go=$(De);m(Va.$$.fragment,go),nf=n(go),Us=i(go,"P",{"data-svelte-h":!0}),g(Us)!=="svelte-197ly1e"&&(Us.textContent=Sh),sf=n(go),m(Io.$$.fragment,go),go.forEach(l),df=n(R),Ce=i(R,"DIV",{class:!0});var xo=$(Ce);m(Ia.$$.fragment,xo),lf=n(xo),Vs=i(xo,"P",{"data-svelte-h":!0}),g(Vs)!=="svelte-1k7sb6g"&&(Vs.textContent=kh),cf=n(xo),m(Wo.$$.fragment,xo),xo.forEach(l),ff=n(R),Se=i(R,"DIV",{class:!0});var Lo=$(Se);m(Wa.$$.fragment,Lo),mf=n(Lo),Is=i(Lo,"P",{"data-svelte-h":!0}),g(Is)!=="svelte-1270mz9"&&(Is.textContent=Rh),pf=n(Lo),m(Xo.$$.fragment,Lo),Lo.forEach(l),_f=n(R),Fo=i(R,"DIV",{class:!0});var ms=$(Fo);m(Xa.$$.fragment,ms),uf=n(ms),Ws=i(ms,"P",{"data-svelte-h":!0}),g(Ws)!=="svelte-aqzrjr"&&(Ws.textContent=Ah),ms.forEach(l),hf=n(R),be=i(R,"DIV",{class:!0});var Me=$(be);m(Fa.$$.fragment,Me),gf=n(Me),Xs=i(Me,"P",{"data-svelte-h":!0}),g(Xs)!=="svelte-1nr2dy0"&&(Xs.textContent=Uh),xf=n(Me),m(Jo.$$.fragment,Me),Lf=n(Me),m(Po.$$.fragment,Me),Me.forEach(l),bf=n(R),ke=i(R,"DIV",{class:!0});var bo=$(ke);m(Ja.$$.fragment,bo),wf=n(bo),Fs=i(bo,"P",{"data-svelte-h":!0}),g(Fs)!=="svelte-h0os0v"&&(Fs.textContent=Vh),vf=n(bo),m(Ho.$$.fragment,bo),bo.forEach(l),$f=n(R),jo=i(R,"DIV",{class:!0});var ps=$(jo);m(Pa.$$.fragment,ps),yf=n(ps),Js=i(ps,"P",{"data-svelte-h":!0}),g(Js)!=="svelte-1825k9e"&&(Js.textContent=Ih),ps.forEach(l),Mf=n(R),Re=i(R,"DIV",{class:!0});var wo=$(Re);m(Ha.$$.fragment,wo),Tf=n(wo),Ps=i(wo,"P",{"data-svelte-h":!0}),g(Ps)!=="svelte-1nht1gz"&&(Ps.textContent=Wh),Df=n(wo),m(Zo.$$.fragment,wo),wo.forEach(l),Cf=n(R),we=i(R,"DIV",{class:!0});var Te=$(we);m(ja.$$.fragment,Te),Sf=n(Te),Hs=i(Te,"P",{"data-svelte-h":!0}),g(Hs)!=="svelte-rvubqa"&&(Hs.innerHTML=Xh),kf=n(Te),js=i(Te,"P",{"data-svelte-h":!0}),g(js)!=="svelte-x8llv0"&&(js.textContent=Fh),Rf=n(Te),m(Go.$$.fragment,Te),Te.forEach(l),Af=n(R),Ae=i(R,"DIV",{class:!0});var vo=$(Ae);m(Za.$$.fragment,vo),Uf=n(vo),Zs=i(vo,"P",{"data-svelte-h":!0}),g(Zs)!=="svelte-ioswce"&&(Zs.innerHTML=Jh),Vf=n(vo),m(Bo.$$.fragment,vo),vo.forEach(l),If=n(R),Ue=i(R,"DIV",{class:!0});var $o=$(Ue);m(Ga.$$.fragment,$o),Wf=n($o),Gs=i($o,"P",{"data-svelte-h":!0}),g(Gs)!=="svelte-119cgd9"&&(Gs.textContent=Ph),Xf=n($o),m(qo.$$.fragment,$o),$o.forEach(l),Ff=n(R),Eo=i(R,"DIV",{class:!0});var _s=$(Eo);m(Ba.$$.fragment,_s),Jf=n(_s),Bs=i(_s,"P",{"data-svelte-h":!0}),g(Bs)!=="svelte-1rtya5j"&&(Bs.textContent=Hh),_s.forEach(l),R.forEach(l),Hl=n(e),m(qa.$$.fragment,e),jl=n(e),X=i(e,"DIV",{class:!0});var Q=$(X);m(Ea.$$.fragment,Q),Pf=n(Q),qs=i(Q,"P",{"data-svelte-h":!0}),g(qs)!=="svelte-1xpk7vh"&&(qs.innerHTML=jh),Hf=n(Q),No=i(Q,"DIV",{class:!0});var us=$(No);m(Na.$$.fragment,us),jf=n(us),Es=i(us,"P",{"data-svelte-h":!0}),g(Es)!=="svelte-1062ci4"&&(Es.innerHTML=Zh),us.forEach(l),Zf=n(Q),zo=i(Q,"DIV",{class:!0});var hs=$(zo);m(za.$$.fragment,hs),Gf=n(hs),Ns=i(hs,"P",{"data-svelte-h":!0}),g(Ns)!=="svelte-u3q4so"&&(Ns.innerHTML=Gh),hs.forEach(l),Bf=n(Q),ae=i(Q,"DIV",{class:!0});var ne=$(ae);m(Ya.$$.fragment,ne),qf=n(ne),zs=i(ne,"P",{"data-svelte-h":!0}),g(zs)!=="svelte-vs7s0z"&&(zs.innerHTML=Bh),Ef=n(ne),Ys=i(ne,"P",{"data-svelte-h":!0}),g(Ys)!=="svelte-15b960v"&&(Ys.innerHTML=qh),Nf=n(ne),Qs=i(ne,"P",{"data-svelte-h":!0}),g(Qs)!=="svelte-15mw932"&&(Qs.innerHTML=Eh),zf=n(ne),Os=i(ne,"P",{"data-svelte-h":!0}),g(Os)!=="svelte-qyr8zl"&&(Os.innerHTML=Nh),Yf=n(ne),Ks=i(ne,"P",{"data-svelte-h":!0}),g(Ks)!=="svelte-9uqd0r"&&(Ks.innerHTML=zh),ne.forEach(l),Qf=n(Q),Ve=i(Q,"DIV",{class:!0});var yo=$(Ve);m(Qa.$$.fragment,yo),Of=n(yo),ei=i(yo,"P",{"data-svelte-h":!0}),g(ei)!=="svelte-flusvq"&&(ei.textContent=Yh),Kf=n(yo),m(Yo.$$.fragment,yo),yo.forEach(l),em=n(Q),Qo=i(Q,"DIV",{class:!0});var gs=$(Qo);m(Oa.$$.fragment,gs),om=n(gs),oi=i(gs,"P",{"data-svelte-h":!0}),g(oi)!=="svelte-1ufq5ot"&&(oi.textContent=Qh),gs.forEach(l),Q.forEach(l),Zl=n(e),m(Ka.$$.fragment,e),Gl=n(e),F=i(e,"DIV",{class:!0});var O=$(F);m(er.$$.fragment,O),tm=n(O),ti=i(O,"P",{"data-svelte-h":!0}),g(ti)!=="svelte-46vapy"&&(ti.innerHTML=Oh),am=n(O),Oo=i(O,"DIV",{class:!0});var xs=$(Oo);m(or.$$.fragment,xs),rm=n(xs),ai=i(xs,"P",{"data-svelte-h":!0}),g(ai)!=="svelte-1062ci4"&&(ai.innerHTML=Kh),xs.forEach(l),nm=n(O),Ko=i(O,"DIV",{class:!0});var Ls=$(Ko);m(tr.$$.fragment,Ls),sm=n(Ls),ri=i(Ls,"P",{"data-svelte-h":!0}),g(ri)!=="svelte-u3q4so"&&(ri.innerHTML=eg),Ls.forEach(l),im=n(O),re=i(O,"DIV",{class:!0});var se=$(re);m(ar.$$.fragment,se),dm=n(se),ni=i(se,"P",{"data-svelte-h":!0}),g(ni)!=="svelte-vs7s0z"&&(ni.innerHTML=og),lm=n(se),si=i(se,"P",{"data-svelte-h":!0}),g(si)!=="svelte-15b960v"&&(si.innerHTML=tg),cm=n(se),ii=i(se,"P",{"data-svelte-h":!0}),g(ii)!=="svelte-15mw932"&&(ii.innerHTML=ag),fm=n(se),di=i(se,"P",{"data-svelte-h":!0}),g(di)!=="svelte-qyr8zl"&&(di.innerHTML=rg),mm=n(se),li=i(se,"P",{"data-svelte-h":!0}),g(li)!=="svelte-9uqd0r"&&(li.innerHTML=ng),se.forEach(l),pm=n(O),Ie=i(O,"DIV",{class:!0});var Mo=$(Ie);m(rr.$$.fragment,Mo),_m=n(Mo),ci=i(Mo,"P",{"data-svelte-h":!0}),g(ci)!=="svelte-flusvq"&&(ci.textContent=sg),um=n(Mo),m(et.$$.fragment,Mo),Mo.forEach(l),hm=n(O),ot=i(O,"DIV",{class:!0});var bs=$(ot);m(nr.$$.fragment,bs),gm=n(bs),fi=i(bs,"P",{"data-svelte-h":!0}),g(fi)!=="svelte-1ufq5ot"&&(fi.textContent=ig),bs.forEach(l),O.forEach(l),Bl=n(e),m(sr.$$.fragment,e),ql=n(e),V=i(e,"DIV",{class:!0});var W=$(V);m(ir.$$.fragment,W),xm=n(W),mi=i(W,"P",{"data-svelte-h":!0}),g(mi)!=="svelte-j7diyz"&&(mi.innerHTML=dg),Lm=n(W),pi=i(W,"P",{"data-svelte-h":!0}),g(pi)!=="svelte-dges5l"&&(pi.innerHTML=lg),bm=n(W),tt=i(W,"DIV",{class:!0});var ws=$(tt);m(dr.$$.fragment,ws),wm=n(ws),_i=i(ws,"P",{"data-svelte-h":!0}),g(_i)!=="svelte-1062ci4"&&(_i.innerHTML=cg),ws.forEach(l),vm=n(W),at=i(W,"DIV",{class:!0});var vs=$(at);m(lr.$$.fragment,vs),$m=n(vs),ui=i(vs,"P",{"data-svelte-h":!0}),g(ui)!=="svelte-1lgbsz7"&&(ui.innerHTML=fg),vs.forEach(l),ym=n(W),ie=i(W,"DIV",{class:!0});var xe=$(ie);m(cr.$$.fragment,xe),Mm=n(xe),hi=i(xe,"P",{"data-svelte-h":!0}),g(hi)!=="svelte-vs7s0z"&&(hi.innerHTML=mg),Tm=n(xe),gi=i(xe,"P",{"data-svelte-h":!0}),g(gi)!=="svelte-15b960v"&&(gi.innerHTML=pg),Dm=n(xe),xi=i(xe,"P",{"data-svelte-h":!0}),g(xi)!=="svelte-15mw932"&&(xi.innerHTML=_g),Cm=n(xe),Li=i(xe,"P",{"data-svelte-h":!0}),g(Li)!=="svelte-1ukghd4"&&(Li.innerHTML=ug),xe.forEach(l),Sm=n(W),We=i(W,"DIV",{class:!0});var To=$(We);m(fr.$$.fragment,To),km=n(To),bi=i(To,"P",{"data-svelte-h":!0}),g(bi)!=="svelte-flusvq"&&(bi.textContent=hg),Rm=n(To),m(rt.$$.fragment,To),To.forEach(l),Am=n(W),nt=i(W,"DIV",{class:!0});var $s=$(nt);m(mr.$$.fragment,$s),Um=n($s),wi=i($s,"P",{"data-svelte-h":!0}),g(wi)!=="svelte-1ufq5ot"&&(wi.textContent=gg),$s.forEach(l),Vm=n(W),Xe=i(W,"DIV",{class:!0});var Do=$(Xe);m(pr.$$.fragment,Do),Im=n(Do),vi=i(Do,"P",{"data-svelte-h":!0}),g(vi)!=="svelte-ioswce"&&(vi.innerHTML=xg),Wm=n(Do),m(st.$$.fragment,Do),Do.forEach(l),W.forEach(l),El=n(e),m(_r.$$.fragment,e),Nl=n(e),U=i(e,"DIV",{class:!0});var I=$(U);m(ur.$$.fragment,I),Xm=n(I),$i=i(I,"P",{"data-svelte-h":!0}),g($i)!=="svelte-13tzz5e"&&($i.innerHTML=Lg),Fm=n(I),yi=i(I,"P",{"data-svelte-h":!0}),g(yi)!=="svelte-dges5l"&&(yi.innerHTML=bg),Jm=n(I),it=i(I,"DIV",{class:!0});var ys=$(it);m(hr.$$.fragment,ys),Pm=n(ys),Mi=i(ys,"P",{"data-svelte-h":!0}),g(Mi)!=="svelte-1062ci4"&&(Mi.innerHTML=wg),ys.forEach(l),Hm=n(I),dt=i(I,"DIV",{class:!0});var Ms=$(dt);m(gr.$$.fragment,Ms),jm=n(Ms),Ti=i(Ms,"P",{"data-svelte-h":!0}),g(Ti)!=="svelte-1lgbsz7"&&(Ti.innerHTML=vg),Ms.forEach(l),Zm=n(I),de=i(I,"DIV",{class:!0});var Le=$(de);m(xr.$$.fragment,Le),Gm=n(Le),Di=i(Le,"P",{"data-svelte-h":!0}),g(Di)!=="svelte-178gcly"&&(Di.innerHTML=$g),Bm=n(Le),Ci=i(Le,"P",{"data-svelte-h":!0}),g(Ci)!=="svelte-15b960v"&&(Ci.innerHTML=yg),qm=n(Le),Si=i(Le,"P",{"data-svelte-h":!0}),g(Si)!=="svelte-15mw932"&&(Si.innerHTML=Mg),Em=n(Le),ki=i(Le,"P",{"data-svelte-h":!0}),g(ki)!=="svelte-1ukghd4"&&(ki.innerHTML=Tg),Le.forEach(l),Nm=n(I),Fe=i(I,"DIV",{class:!0});var Co=$(Fe);m(Lr.$$.fragment,Co),zm=n(Co),Ri=i(Co,"P",{"data-svelte-h":!0}),g(Ri)!=="svelte-flusvq"&&(Ri.textContent=Dg),Ym=n(Co),m(lt.$$.fragment,Co),Co.forEach(l),Qm=n(I),ct=i(I,"DIV",{class:!0});var Ts=$(ct);m(br.$$.fragment,Ts),Om=n(Ts),Ai=i(Ts,"P",{"data-svelte-h":!0}),g(Ai)!=="svelte-1ufq5ot"&&(Ai.textContent=Cg),Ts.forEach(l),Km=n(I),Je=i(I,"DIV",{class:!0});var So=$(Je);m(wr.$$.fragment,So),ep=n(So),Ui=i(So,"P",{"data-svelte-h":!0}),g(Ui)!=="svelte-ioswce"&&(Ui.innerHTML=Sg),op=n(So),m(ft.$$.fragment,So),So.forEach(l),tp=n(I),Pe=i(I,"DIV",{class:!0});var ko=$(Pe);m(vr.$$.fragment,ko),ap=n(ko),Vi=i(ko,"P",{"data-svelte-h":!0}),g(Vi)!=="svelte-119cgd9"&&(Vi.textContent=kg),rp=n(ko),m(mt.$$.fragment,ko),ko.forEach(l),I.forEach(l),zl=n(e),m($r.$$.fragment,e),Yl=n(e),J=i(e,"DIV",{class:!0});var K=$(J);m(yr.$$.fragment,K),np=n(K),Ii=i(K,"P",{"data-svelte-h":!0}),g(Ii)!=="svelte-14ytigb"&&(Ii.innerHTML=Rg),sp=n(K),pt=i(K,"DIV",{class:!0});var Ds=$(pt);m(Mr.$$.fragment,Ds),ip=n(Ds),Wi=i(Ds,"P",{"data-svelte-h":!0}),g(Wi)!=="svelte-1lgbsz7"&&(Wi.innerHTML=Ag),Ds.forEach(l),dp=n(K),_t=i(K,"DIV",{class:!0});var Cs=$(_t);m(Tr.$$.fragment,Cs),lp=n(Cs),Xi=i(Cs,"P",{"data-svelte-h":!0}),g(Xi)!=="svelte-1i809lv"&&(Xi.innerHTML=Ug),Cs.forEach(l),cp=n(K),He=i(K,"DIV",{class:!0});var Ro=$(He);m(Dr.$$.fragment,Ro),fp=n(Ro),Fi=i(Ro,"P",{"data-svelte-h":!0}),g(Fi)!=="svelte-flusvq"&&(Fi.textContent=Vg),mp=n(Ro),m(ut.$$.fragment,Ro),Ro.forEach(l),pp=n(K),ht=i(K,"DIV",{class:!0});var Ss=$(ht);m(Cr.$$.fragment,Ss),_p=n(Ss),Ji=i(Ss,"P",{"data-svelte-h":!0}),g(Ji)!=="svelte-1gl6t2c"&&(Ji.textContent=Ig),Ss.forEach(l),up=n(K),je=i(K,"DIV",{class:!0});var Ao=$(je);m(Sr.$$.fragment,Ao),hp=n(Ao),Pi=i(Ao,"P",{"data-svelte-h":!0}),g(Pi)!=="svelte-ioswce"&&(Pi.innerHTML=Wg),gp=n(Ao),m(gt.$$.fragment,Ao),Ao.forEach(l),K.forEach(l),Ql=n(e),m(kr.$$.fragment,e),Ol=n(e),P=i(e,"DIV",{class:!0});var ee=$(P);m(Rr.$$.fragment,ee),xp=n(ee),Hi=i(ee,"P",{"data-svelte-h":!0}),g(Hi)!=="svelte-d8oj1j"&&(Hi.innerHTML=Xg),Lp=n(ee),xt=i(ee,"DIV",{class:!0});var ks=$(xt);m(Ar.$$.fragment,ks),bp=n(ks),ji=i(ks,"P",{"data-svelte-h":!0}),g(ji)!=="svelte-1lgbsz7"&&(ji.innerHTML=Fg),ks.forEach(l),wp=n(ee),Lt=i(ee,"DIV",{class:!0});var Rs=$(Lt);m(Ur.$$.fragment,Rs),vp=n(Rs),Zi=i(Rs,"P",{"data-svelte-h":!0}),g(Zi)!=="svelte-1i809lv"&&(Zi.innerHTML=Jg),Rs.forEach(l),$p=n(ee),Ze=i(ee,"DIV",{class:!0});var Uo=$(Ze);m(Vr.$$.fragment,Uo),yp=n(Uo),Gi=i(Uo,"P",{"data-svelte-h":!0}),g(Gi)!=="svelte-flusvq"&&(Gi.textContent=Pg),Mp=n(Uo),m(bt.$$.fragment,Uo),Uo.forEach(l),Tp=n(ee),wt=i(ee,"DIV",{class:!0});var yc=$(wt);m(Ir.$$.fragment,yc),Dp=n(yc),Bi=i(yc,"P",{"data-svelte-h":!0}),g(Bi)!=="svelte-1gl6t2c"&&(Bi.textContent=Hg),yc.forEach(l),Cp=n(ee),Ge=i(ee,"DIV",{class:!0});var ll=$(Ge);m(Wr.$$.fragment,ll),Sp=n(ll),qi=i(ll,"P",{"data-svelte-h":!0}),g(qi)!=="svelte-ioswce"&&(qi.innerHTML=jg),kp=n(ll),m(vt.$$.fragment,ll),ll.forEach(l),ee.forEach(l),Kl=n(e),m(Xr.$$.fragment,e),ec=n(e),H=i(e,"DIV",{class:!0});var le=$(H);m(Fr.$$.fragment,le),Rp=n(le),Ei=i(le,"P",{"data-svelte-h":!0}),g(Ei)!=="svelte-pbm3ow"&&(Ei.innerHTML=Zg),Ap=n(le),$t=i(le,"DIV",{class:!0});var Mc=$($t);m(Jr.$$.fragment,Mc),Up=n(Mc),Ni=i(Mc,"P",{"data-svelte-h":!0}),g(Ni)!=="svelte-1lgbsz7"&&(Ni.innerHTML=Gg),Mc.forEach(l),Vp=n(le),yt=i(le,"DIV",{class:!0});var Tc=$(yt);m(Pr.$$.fragment,Tc),Ip=n(Tc),zi=i(Tc,"P",{"data-svelte-h":!0}),g(zi)!=="svelte-1i809lv"&&(zi.innerHTML=Bg),Tc.forEach(l),Wp=n(le),Be=i(le,"DIV",{class:!0});var cl=$(Be);m(Hr.$$.fragment,cl),Xp=n(cl),Yi=i(cl,"P",{"data-svelte-h":!0}),g(Yi)!=="svelte-flusvq"&&(Yi.textContent=qg),Fp=n(cl),m(Mt.$$.fragment,cl),cl.forEach(l),Jp=n(le),Tt=i(le,"DIV",{class:!0});var Dc=$(Tt);m(jr.$$.fragment,Dc),Pp=n(Dc),Qi=i(Dc,"P",{"data-svelte-h":!0}),g(Qi)!=="svelte-1gl6t2c"&&(Qi.textContent=Eg),Dc.forEach(l),Hp=n(le),qe=i(le,"DIV",{class:!0});var fl=$(qe);m(Zr.$$.fragment,fl),jp=n(fl),Oi=i(fl,"P",{"data-svelte-h":!0}),g(Oi)!=="svelte-ioswce"&&(Oi.innerHTML=Ng),Zp=n(fl),m(Dt.$$.fragment,fl),fl.forEach(l),le.forEach(l),oc=n(e),m(Gr.$$.fragment,e),tc=n(e),j=i(e,"DIV",{class:!0});var ce=$(j);m(Br.$$.fragment,ce),Gp=n(ce),Ki=i(ce,"P",{"data-svelte-h":!0}),g(Ki)!=="svelte-1eml3yr"&&(Ki.innerHTML=zg),Bp=n(ce),Ct=i(ce,"DIV",{class:!0});var Cc=$(Ct);m(qr.$$.fragment,Cc),qp=n(Cc),ed=i(Cc,"P",{"data-svelte-h":!0}),g(ed)!=="svelte-1lgbsz7"&&(ed.innerHTML=Yg),Cc.forEach(l),Ep=n(ce),St=i(ce,"DIV",{class:!0});var Sc=$(St);m(Er.$$.fragment,Sc),Np=n(Sc),od=i(Sc,"P",{"data-svelte-h":!0}),g(od)!=="svelte-1i809lv"&&(od.innerHTML=Qg),Sc.forEach(l),zp=n(ce),Ee=i(ce,"DIV",{class:!0});var ml=$(Ee);m(Nr.$$.fragment,ml),Yp=n(ml),td=i(ml,"P",{"data-svelte-h":!0}),g(td)!=="svelte-flusvq"&&(td.textContent=Og),Qp=n(ml),m(kt.$$.fragment,ml),ml.forEach(l),Op=n(ce),Rt=i(ce,"DIV",{class:!0});var kc=$(Rt);m(zr.$$.fragment,kc),Kp=n(kc),ad=i(kc,"P",{"data-svelte-h":!0}),g(ad)!=="svelte-1gl6t2c"&&(ad.textContent=Kg),kc.forEach(l),e_=n(ce),Ne=i(ce,"DIV",{class:!0});var pl=$(Ne);m(Yr.$$.fragment,pl),o_=n(pl),rd=i(pl,"P",{"data-svelte-h":!0}),g(rd)!=="svelte-ioswce"&&(rd.innerHTML=ex),t_=n(pl),m(At.$$.fragment,pl),pl.forEach(l),ce.forEach(l),ac=n(e),m(Qr.$$.fragment,e),rc=n(e),Z=i(e,"DIV",{class:!0});var fe=$(Z);m(Or.$$.fragment,fe),a_=n(fe),nd=i(fe,"P",{"data-svelte-h":!0}),g(nd)!=="svelte-1rw1gj4"&&(nd.innerHTML=ox),r_=n(fe),Ut=i(fe,"DIV",{class:!0});var Rc=$(Ut);m(Kr.$$.fragment,Rc),n_=n(Rc),sd=i(Rc,"P",{"data-svelte-h":!0}),g(sd)!=="svelte-1lgbsz7"&&(sd.innerHTML=tx),Rc.forEach(l),s_=n(fe),Vt=i(fe,"DIV",{class:!0});var Ac=$(Vt);m(en.$$.fragment,Ac),i_=n(Ac),id=i(Ac,"P",{"data-svelte-h":!0}),g(id)!=="svelte-1i809lv"&&(id.innerHTML=ax),Ac.forEach(l),d_=n(fe),ze=i(fe,"DIV",{class:!0});var _l=$(ze);m(on.$$.fragment,_l),l_=n(_l),dd=i(_l,"P",{"data-svelte-h":!0}),g(dd)!=="svelte-flusvq"&&(dd.textContent=rx),c_=n(_l),m(It.$$.fragment,_l),_l.forEach(l),f_=n(fe),Wt=i(fe,"DIV",{class:!0});var Uc=$(Wt);m(tn.$$.fragment,Uc),m_=n(Uc),ld=i(Uc,"P",{"data-svelte-h":!0}),g(ld)!=="svelte-1gl6t2c"&&(ld.textContent=nx),Uc.forEach(l),p_=n(fe),Ye=i(fe,"DIV",{class:!0});var ul=$(Ye);m(an.$$.fragment,ul),__=n(ul),cd=i(ul,"P",{"data-svelte-h":!0}),g(cd)!=="svelte-ioswce"&&(cd.innerHTML=sx),u_=n(ul),m(Xt.$$.fragment,ul),ul.forEach(l),fe.forEach(l),nc=n(e),m(rn.$$.fragment,e),sc=n(e),G=i(e,"DIV",{class:!0});var me=$(G);m(nn.$$.fragment,me),h_=n(me),fd=i(me,"P",{"data-svelte-h":!0}),g(fd)!=="svelte-11wf3k"&&(fd.innerHTML=ix),g_=n(me),Ft=i(me,"DIV",{class:!0});var Vc=$(Ft);m(sn.$$.fragment,Vc),x_=n(Vc),md=i(Vc,"P",{"data-svelte-h":!0}),g(md)!=="svelte-1lgbsz7"&&(md.innerHTML=dx),Vc.forEach(l),L_=n(me),Jt=i(me,"DIV",{class:!0});var Ic=$(Jt);m(dn.$$.fragment,Ic),b_=n(Ic),pd=i(Ic,"P",{"data-svelte-h":!0}),g(pd)!=="svelte-1i809lv"&&(pd.innerHTML=lx),Ic.forEach(l),w_=n(me),Qe=i(me,"DIV",{class:!0});var hl=$(Qe);m(ln.$$.fragment,hl),v_=n(hl),_d=i(hl,"P",{"data-svelte-h":!0}),g(_d)!=="svelte-flusvq"&&(_d.textContent=cx),$_=n(hl),m(Pt.$$.fragment,hl),hl.forEach(l),y_=n(me),Ht=i(me,"DIV",{class:!0});var Wc=$(Ht);m(cn.$$.fragment,Wc),M_=n(Wc),ud=i(Wc,"P",{"data-svelte-h":!0}),g(ud)!=="svelte-1gl6t2c"&&(ud.textContent=fx),Wc.forEach(l),T_=n(me),Oe=i(me,"DIV",{class:!0});var gl=$(Oe);m(fn.$$.fragment,gl),D_=n(gl),hd=i(gl,"P",{"data-svelte-h":!0}),g(hd)!=="svelte-ioswce"&&(hd.innerHTML=mx),C_=n(gl),m(jt.$$.fragment,gl),gl.forEach(l),me.forEach(l),ic=n(e),m(mn.$$.fragment,e),dc=n(e),B=i(e,"DIV",{class:!0});var pe=$(B);m(pn.$$.fragment,pe),S_=n(pe),gd=i(pe,"P",{"data-svelte-h":!0}),g(gd)!=="svelte-jwwyn0"&&(gd.innerHTML=px),k_=n(pe),Zt=i(pe,"DIV",{class:!0});var Xc=$(Zt);m(_n.$$.fragment,Xc),R_=n(Xc),xd=i(Xc,"P",{"data-svelte-h":!0}),g(xd)!=="svelte-1lgbsz7"&&(xd.innerHTML=_x),Xc.forEach(l),A_=n(pe),Gt=i(pe,"DIV",{class:!0});var Fc=$(Gt);m(un.$$.fragment,Fc),U_=n(Fc),Ld=i(Fc,"P",{"data-svelte-h":!0}),g(Ld)!=="svelte-1i809lv"&&(Ld.innerHTML=ux),Fc.forEach(l),V_=n(pe),Ke=i(pe,"DIV",{class:!0});var xl=$(Ke);m(hn.$$.fragment,xl),I_=n(xl),bd=i(xl,"P",{"data-svelte-h":!0}),g(bd)!=="svelte-flusvq"&&(bd.textContent=hx),W_=n(xl),m(Bt.$$.fragment,xl),xl.forEach(l),X_=n(pe),qt=i(pe,"DIV",{class:!0});var Jc=$(qt);m(gn.$$.fragment,Jc),F_=n(Jc),wd=i(Jc,"P",{"data-svelte-h":!0}),g(wd)!=="svelte-1gl6t2c"&&(wd.textContent=gx),Jc.forEach(l),J_=n(pe),eo=i(pe,"DIV",{class:!0});var Ll=$(eo);m(xn.$$.fragment,Ll),P_=n(Ll),vd=i(Ll,"P",{"data-svelte-h":!0}),g(vd)!=="svelte-ioswce"&&(vd.innerHTML=xx),H_=n(Ll),m(Et.$$.fragment,Ll),Ll.forEach(l),pe.forEach(l),lc=n(e),m(Ln.$$.fragment,e),cc=n(e),q=i(e,"DIV",{class:!0});var _e=$(q);m(bn.$$.fragment,_e),j_=n(_e),$d=i(_e,"P",{"data-svelte-h":!0}),g($d)!=="svelte-1wornke"&&($d.innerHTML=Lx),Z_=n(_e),Nt=i(_e,"DIV",{class:!0});var Pc=$(Nt);m(wn.$$.fragment,Pc),G_=n(Pc),yd=i(Pc,"P",{"data-svelte-h":!0}),g(yd)!=="svelte-1lgbsz7"&&(yd.innerHTML=bx),Pc.forEach(l),B_=n(_e),zt=i(_e,"DIV",{class:!0});var Hc=$(zt);m(vn.$$.fragment,Hc),q_=n(Hc),Md=i(Hc,"P",{"data-svelte-h":!0}),g(Md)!=="svelte-1i809lv"&&(Md.innerHTML=wx),Hc.forEach(l),E_=n(_e),oo=i(_e,"DIV",{class:!0});var bl=$(oo);m($n.$$.fragment,bl),N_=n(bl),Td=i(bl,"P",{"data-svelte-h":!0}),g(Td)!=="svelte-flusvq"&&(Td.textContent=vx),z_=n(bl),m(Yt.$$.fragment,bl),bl.forEach(l),Y_=n(_e),Qt=i(_e,"DIV",{class:!0});var jc=$(Qt);m(yn.$$.fragment,jc),Q_=n(jc),Dd=i(jc,"P",{"data-svelte-h":!0}),g(Dd)!=="svelte-1gl6t2c"&&(Dd.textContent=$x),jc.forEach(l),O_=n(_e),to=i(_e,"DIV",{class:!0});var wl=$(to);m(Mn.$$.fragment,wl),K_=n(wl),Cd=i(wl,"P",{"data-svelte-h":!0}),g(Cd)!=="svelte-ioswce"&&(Cd.innerHTML=yx),eu=n(wl),m(Ot.$$.fragment,wl),wl.forEach(l),_e.forEach(l),fc=n(e),m(Tn.$$.fragment,e),mc=n(e),E=i(e,"DIV",{class:!0});var ue=$(E);m(Dn.$$.fragment,ue),ou=n(ue),Sd=i(ue,"P",{"data-svelte-h":!0}),g(Sd)!=="svelte-4zrakt"&&(Sd.innerHTML=Mx),tu=n(ue),Kt=i(ue,"DIV",{class:!0});var Zc=$(Kt);m(Cn.$$.fragment,Zc),au=n(Zc),kd=i(Zc,"P",{"data-svelte-h":!0}),g(kd)!=="svelte-1lgbsz7"&&(kd.innerHTML=Tx),Zc.forEach(l),ru=n(ue),ea=i(ue,"DIV",{class:!0});var Gc=$(ea);m(Sn.$$.fragment,Gc),nu=n(Gc),Rd=i(Gc,"P",{"data-svelte-h":!0}),g(Rd)!=="svelte-1i809lv"&&(Rd.innerHTML=Dx),Gc.forEach(l),su=n(ue),ao=i(ue,"DIV",{class:!0});var vl=$(ao);m(kn.$$.fragment,vl),iu=n(vl),Ad=i(vl,"P",{"data-svelte-h":!0}),g(Ad)!=="svelte-flusvq"&&(Ad.textContent=Cx),du=n(vl),m(oa.$$.fragment,vl),vl.forEach(l),lu=n(ue),ta=i(ue,"DIV",{class:!0});var Bc=$(ta);m(Rn.$$.fragment,Bc),cu=n(Bc),Ud=i(Bc,"P",{"data-svelte-h":!0}),g(Ud)!=="svelte-1gl6t2c"&&(Ud.textContent=Sx),Bc.forEach(l),fu=n(ue),ro=i(ue,"DIV",{class:!0});var $l=$(ro);m(An.$$.fragment,$l),mu=n($l),Vd=i($l,"P",{"data-svelte-h":!0}),g(Vd)!=="svelte-ioswce"&&(Vd.innerHTML=kx),pu=n($l),m(aa.$$.fragment,$l),$l.forEach(l),ue.forEach(l),pc=n(e),m(Un.$$.fragment,e),_c=n(e),N=i(e,"DIV",{class:!0});var he=$(N);m(Vn.$$.fragment,he),_u=n(he),Id=i(he,"P",{"data-svelte-h":!0}),g(Id)!=="svelte-1svlrlz"&&(Id.innerHTML=Rx),uu=n(he),ra=i(he,"DIV",{class:!0});var qc=$(ra);m(In.$$.fragment,qc),hu=n(qc),Wd=i(qc,"P",{"data-svelte-h":!0}),g(Wd)!=="svelte-1lgbsz7"&&(Wd.innerHTML=Ax),qc.forEach(l),gu=n(he),na=i(he,"DIV",{class:!0});var Ec=$(na);m(Wn.$$.fragment,Ec),xu=n(Ec),Xd=i(Ec,"P",{"data-svelte-h":!0}),g(Xd)!=="svelte-1i809lv"&&(Xd.innerHTML=Ux),Ec.forEach(l),Lu=n(he),no=i(he,"DIV",{class:!0});var yl=$(no);m(Xn.$$.fragment,yl),bu=n(yl),Fd=i(yl,"P",{"data-svelte-h":!0}),g(Fd)!=="svelte-flusvq"&&(Fd.textContent=Vx),wu=n(yl),m(sa.$$.fragment,yl),yl.forEach(l),vu=n(he),ia=i(he,"DIV",{class:!0});var Nc=$(ia);m(Fn.$$.fragment,Nc),$u=n(Nc),Jd=i(Nc,"P",{"data-svelte-h":!0}),g(Jd)!=="svelte-1gl6t2c"&&(Jd.textContent=Ix),Nc.forEach(l),yu=n(he),so=i(he,"DIV",{class:!0});var Ml=$(so);m(Jn.$$.fragment,Ml),Mu=n(Ml),Pd=i(Ml,"P",{"data-svelte-h":!0}),g(Pd)!=="svelte-ioswce"&&(Pd.innerHTML=Wx),Tu=n(Ml),m(da.$$.fragment,Ml),Ml.forEach(l),he.forEach(l),uc=n(e),m(Pn.$$.fragment,e),hc=n(e),ye=i(e,"DIV",{class:!0});var Tl=$(ye);m(Hn.$$.fragment,Tl),Du=n(Tl),la=i(Tl,"DIV",{class:!0});var zc=$(la);m(jn.$$.fragment,zc),Cu=n(zc),Hd=i(zc,"P",{"data-svelte-h":!0}),g(Hd)!=="svelte-1lgbsz7"&&(Hd.innerHTML=Xx),zc.forEach(l),Su=n(Tl),ca=i(Tl,"DIV",{class:!0});var Yc=$(ca);m(Zn.$$.fragment,Yc),ku=n(Yc),jd=i(Yc,"P",{"data-svelte-h":!0}),g(jd)!=="svelte-1ufq5ot"&&(jd.textContent=Fx),Yc.forEach(l),Tl.forEach(l),gc=n(e),m(Gn.$$.fragment,e),xc=n(e),z=i(e,"DIV",{class:!0});var ge=$(z);m(Bn.$$.fragment,ge),Ru=n(ge),Zd=i(ge,"P",{"data-svelte-h":!0}),g(Zd)!=="svelte-y3mzwq"&&(Zd.innerHTML=Jx),Au=n(ge),fa=i(ge,"DIV",{class:!0});var Qc=$(fa);m(qn.$$.fragment,Qc),Uu=n(Qc),Gd=i(Qc,"P",{"data-svelte-h":!0}),g(Gd)!=="svelte-1lgbsz7"&&(Gd.innerHTML=Px),Qc.forEach(l),Vu=n(ge),ma=i(ge,"DIV",{class:!0});var Oc=$(ma);m(En.$$.fragment,Oc),Iu=n(Oc),Bd=i(Oc,"P",{"data-svelte-h":!0}),g(Bd)!=="svelte-1i809lv"&&(Bd.innerHTML=Hx),Oc.forEach(l),Wu=n(ge),io=i(ge,"DIV",{class:!0});var Dl=$(io);m(Nn.$$.fragment,Dl),Xu=n(Dl),qd=i(Dl,"P",{"data-svelte-h":!0}),g(qd)!=="svelte-flusvq"&&(qd.textContent=jx),Fu=n(Dl),m(pa.$$.fragment,Dl),Dl.forEach(l),Ju=n(ge),_a=i(ge,"DIV",{class:!0});var Kc=$(_a);m(zn.$$.fragment,Kc),Pu=n(Kc),Ed=i(Kc,"P",{"data-svelte-h":!0}),g(Ed)!=="svelte-1gl6t2c"&&(Ed.textContent=Zx),Kc.forEach(l),Hu=n(ge),lo=i(ge,"DIV",{class:!0});var Cl=$(lo);m(Yn.$$.fragment,Cl),ju=n(Cl),Nd=i(Cl,"P",{"data-svelte-h":!0}),g(Nd)!=="svelte-ioswce"&&(Nd.innerHTML=Gx),Zu=n(Cl),m(ua.$$.fragment,Cl),Cl.forEach(l),ge.forEach(l),Lc=n(e),m(Qn.$$.fragment,e),bc=n(e),S=i(e,"DIV",{class:!0});var A=$(S);m(On.$$.fragment,A),Gu=n(A),zd=i(A,"P",{"data-svelte-h":!0}),g(zd)!=="svelte-1q4bbx"&&(zd.textContent=Bx),Bu=n(A),co=i(A,"DIV",{class:!0});var Sl=$(co);m(Kn.$$.fragment,Sl),qu=n(Sl),Yd=i(Sl,"P",{"data-svelte-h":!0}),g(Yd)!=="svelte-197ly1e"&&(Yd.textContent=qx),Eu=n(Sl),m(ha.$$.fragment,Sl),Sl.forEach(l),Nu=n(A),fo=i(A,"DIV",{class:!0});var kl=$(fo);m(es.$$.fragment,kl),zu=n(kl),Qd=i(kl,"P",{"data-svelte-h":!0}),g(Qd)!=="svelte-1k7sb6g"&&(Qd.textContent=Ex),Yu=n(kl),m(ga.$$.fragment,kl),kl.forEach(l),Qu=n(A),mo=i(A,"DIV",{class:!0});var Rl=$(mo);m(os.$$.fragment,Rl),Ou=n(Rl),Od=i(Rl,"P",{"data-svelte-h":!0}),g(Od)!=="svelte-1270mz9"&&(Od.textContent=Nx),Ku=n(Rl),m(xa.$$.fragment,Rl),Rl.forEach(l),eh=n(A),La=i(A,"DIV",{class:!0});var ef=$(La);m(ts.$$.fragment,ef),oh=n(ef),Kd=i(ef,"P",{"data-svelte-h":!0}),g(Kd)!=="svelte-aqzrjr"&&(Kd.textContent=zx),ef.forEach(l),th=n(A),ve=i(A,"DIV",{class:!0});var Sa=$(ve);m(as.$$.fragment,Sa),ah=n(Sa),el=i(Sa,"P",{"data-svelte-h":!0}),g(el)!=="svelte-1nr2dy0"&&(el.textContent=Yx),rh=n(Sa),m(ba.$$.fragment,Sa),nh=n(Sa),m(wa.$$.fragment,Sa),Sa.forEach(l),sh=n(A),po=i(A,"DIV",{class:!0});var Al=$(po);m(rs.$$.fragment,Al),ih=n(Al),ol=i(Al,"P",{"data-svelte-h":!0}),g(ol)!=="svelte-h0os0v"&&(ol.textContent=Qx),dh=n(Al),m(va.$$.fragment,Al),Al.forEach(l),lh=n(A),$a=i(A,"DIV",{class:!0});var of=$($a);m(ns.$$.fragment,of),ch=n(of),tl=i(of,"P",{"data-svelte-h":!0}),g(tl)!=="svelte-1825k9e"&&(tl.textContent=Ox),of.forEach(l),fh=n(A),_o=i(A,"DIV",{class:!0});var Ul=$(_o);m(ss.$$.fragment,Ul),mh=n(Ul),al=i(Ul,"P",{"data-svelte-h":!0}),g(al)!=="svelte-1nht1gz"&&(al.textContent=Kx),ph=n(Ul),m(ya.$$.fragment,Ul),Ul.forEach(l),_h=n(A),$e=i(A,"DIV",{class:!0});var ka=$($e);m(is.$$.fragment,ka),uh=n(ka),rl=i(ka,"P",{"data-svelte-h":!0}),g(rl)!=="svelte-rvubqa"&&(rl.innerHTML=eL),hh=n(ka),nl=i(ka,"P",{"data-svelte-h":!0}),g(nl)!=="svelte-x8llv0"&&(nl.textContent=oL),gh=n(ka),m(Ma.$$.fragment,ka),ka.forEach(l),xh=n(A),uo=i(A,"DIV",{class:!0});var Vl=$(uo);m(ds.$$.fragment,Vl),Lh=n(Vl),sl=i(Vl,"P",{"data-svelte-h":!0}),g(sl)!=="svelte-ioswce"&&(sl.innerHTML=tL),bh=n(Vl),m(Ta.$$.fragment,Vl),Vl.forEach(l),wh=n(A),ho=i(A,"DIV",{class:!0});var Il=$(ho);m(ls.$$.fragment,Il),vh=n(Il),il=i(Il,"P",{"data-svelte-h":!0}),g(il)!=="svelte-119cgd9"&&(il.textContent=aL),$h=n(Il),m(Da.$$.fragment,Il),Il.forEach(l),yh=n(A),Ca=i(A,"DIV",{class:!0});var tf=$(Ca);m(cs.$$.fragment,tf),Mh=n(tf),dl=i(tf,"P",{"data-svelte-h":!0}),g(dl)!=="svelte-1rtya5j"&&(dl.textContent=rL),tf.forEach(l),A.forEach(l),wc=n(e),m(fs.$$.fragment,e),vc=n(e),Wl=i(e,"P",{}),$(Wl).forEach(l),this.h()},h(){y(t,"name","hf:doc:metadata"),y(t,"content",db),y(De,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Fo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(jo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(we,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Eo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(No,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(zo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Qo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Oo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ko,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ot,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(tt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(at,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(We,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(nt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(it,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(dt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ct,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(pt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(_t,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(He,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ht,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(xt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Lt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ze,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(wt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y($t,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(yt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Tt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(qe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ct,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(St,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Rt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ut,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Vt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ze,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Wt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ft,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Jt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Qe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ht,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Zt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Gt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(qt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(eo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Nt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(zt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(oo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Qt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(to,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Kt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ea,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ao,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ta,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ro,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ra,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(na,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(no,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ia,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(so,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(la,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ca,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(fa,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ma,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(io,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(_a,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(lo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(co,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(fo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(mo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(La,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(po,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y($a,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(_o,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y($e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(uo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ho,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ca,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,x){o(document.head,t),b(e,L,x),b(e,c,x),b(e,d,x),p(w,e,x),b(e,a,x),b(e,v,x),b(e,Xl,x),b(e,Ra,x),b(e,Fl,x),p(Vo,e,x),b(e,Jl,x),p(Aa,e,x),b(e,Pl,x),b(e,C,x),p(Ua,C,null),o(C,af),o(C,As),o(C,rf),o(C,De),p(Va,De,null),o(De,nf),o(De,Us),o(De,sf),p(Io,De,null),o(C,df),o(C,Ce),p(Ia,Ce,null),o(Ce,lf),o(Ce,Vs),o(Ce,cf),p(Wo,Ce,null),o(C,ff),o(C,Se),p(Wa,Se,null),o(Se,mf),o(Se,Is),o(Se,pf),p(Xo,Se,null),o(C,_f),o(C,Fo),p(Xa,Fo,null),o(Fo,uf),o(Fo,Ws),o(C,hf),o(C,be),p(Fa,be,null),o(be,gf),o(be,Xs),o(be,xf),p(Jo,be,null),o(be,Lf),p(Po,be,null),o(C,bf),o(C,ke),p(Ja,ke,null),o(ke,wf),o(ke,Fs),o(ke,vf),p(Ho,ke,null),o(C,$f),o(C,jo),p(Pa,jo,null),o(jo,yf),o(jo,Js),o(C,Mf),o(C,Re),p(Ha,Re,null),o(Re,Tf),o(Re,Ps),o(Re,Df),p(Zo,Re,null),o(C,Cf),o(C,we),p(ja,we,null),o(we,Sf),o(we,Hs),o(we,kf),o(we,js),o(we,Rf),p(Go,we,null),o(C,Af),o(C,Ae),p(Za,Ae,null),o(Ae,Uf),o(Ae,Zs),o(Ae,Vf),p(Bo,Ae,null),o(C,If),o(C,Ue),p(Ga,Ue,null),o(Ue,Wf),o(Ue,Gs),o(Ue,Xf),p(qo,Ue,null),o(C,Ff),o(C,Eo),p(Ba,Eo,null),o(Eo,Jf),o(Eo,Bs),b(e,Hl,x),p(qa,e,x),b(e,jl,x),b(e,X,x),p(Ea,X,null),o(X,Pf),o(X,qs),o(X,Hf),o(X,No),p(Na,No,null),o(No,jf),o(No,Es),o(X,Zf),o(X,zo),p(za,zo,null),o(zo,Gf),o(zo,Ns),o(X,Bf),o(X,ae),p(Ya,ae,null),o(ae,qf),o(ae,zs),o(ae,Ef),o(ae,Ys),o(ae,Nf),o(ae,Qs),o(ae,zf),o(ae,Os),o(ae,Yf),o(ae,Ks),o(X,Qf),o(X,Ve),p(Qa,Ve,null),o(Ve,Of),o(Ve,ei),o(Ve,Kf),p(Yo,Ve,null),o(X,em),o(X,Qo),p(Oa,Qo,null),o(Qo,om),o(Qo,oi),b(e,Zl,x),p(Ka,e,x),b(e,Gl,x),b(e,F,x),p(er,F,null),o(F,tm),o(F,ti),o(F,am),o(F,Oo),p(or,Oo,null),o(Oo,rm),o(Oo,ai),o(F,nm),o(F,Ko),p(tr,Ko,null),o(Ko,sm),o(Ko,ri),o(F,im),o(F,re),p(ar,re,null),o(re,dm),o(re,ni),o(re,lm),o(re,si),o(re,cm),o(re,ii),o(re,fm),o(re,di),o(re,mm),o(re,li),o(F,pm),o(F,Ie),p(rr,Ie,null),o(Ie,_m),o(Ie,ci),o(Ie,um),p(et,Ie,null),o(F,hm),o(F,ot),p(nr,ot,null),o(ot,gm),o(ot,fi),b(e,Bl,x),p(sr,e,x),b(e,ql,x),b(e,V,x),p(ir,V,null),o(V,xm),o(V,mi),o(V,Lm),o(V,pi),o(V,bm),o(V,tt),p(dr,tt,null),o(tt,wm),o(tt,_i),o(V,vm),o(V,at),p(lr,at,null),o(at,$m),o(at,ui),o(V,ym),o(V,ie),p(cr,ie,null),o(ie,Mm),o(ie,hi),o(ie,Tm),o(ie,gi),o(ie,Dm),o(ie,xi),o(ie,Cm),o(ie,Li),o(V,Sm),o(V,We),p(fr,We,null),o(We,km),o(We,bi),o(We,Rm),p(rt,We,null),o(V,Am),o(V,nt),p(mr,nt,null),o(nt,Um),o(nt,wi),o(V,Vm),o(V,Xe),p(pr,Xe,null),o(Xe,Im),o(Xe,vi),o(Xe,Wm),p(st,Xe,null),b(e,El,x),p(_r,e,x),b(e,Nl,x),b(e,U,x),p(ur,U,null),o(U,Xm),o(U,$i),o(U,Fm),o(U,yi),o(U,Jm),o(U,it),p(hr,it,null),o(it,Pm),o(it,Mi),o(U,Hm),o(U,dt),p(gr,dt,null),o(dt,jm),o(dt,Ti),o(U,Zm),o(U,de),p(xr,de,null),o(de,Gm),o(de,Di),o(de,Bm),o(de,Ci),o(de,qm),o(de,Si),o(de,Em),o(de,ki),o(U,Nm),o(U,Fe),p(Lr,Fe,null),o(Fe,zm),o(Fe,Ri),o(Fe,Ym),p(lt,Fe,null),o(U,Qm),o(U,ct),p(br,ct,null),o(ct,Om),o(ct,Ai),o(U,Km),o(U,Je),p(wr,Je,null),o(Je,ep),o(Je,Ui),o(Je,op),p(ft,Je,null),o(U,tp),o(U,Pe),p(vr,Pe,null),o(Pe,ap),o(Pe,Vi),o(Pe,rp),p(mt,Pe,null),b(e,zl,x),p($r,e,x),b(e,Yl,x),b(e,J,x),p(yr,J,null),o(J,np),o(J,Ii),o(J,sp),o(J,pt),p(Mr,pt,null),o(pt,ip),o(pt,Wi),o(J,dp),o(J,_t),p(Tr,_t,null),o(_t,lp),o(_t,Xi),o(J,cp),o(J,He),p(Dr,He,null),o(He,fp),o(He,Fi),o(He,mp),p(ut,He,null),o(J,pp),o(J,ht),p(Cr,ht,null),o(ht,_p),o(ht,Ji),o(J,up),o(J,je),p(Sr,je,null),o(je,hp),o(je,Pi),o(je,gp),p(gt,je,null),b(e,Ql,x),p(kr,e,x),b(e,Ol,x),b(e,P,x),p(Rr,P,null),o(P,xp),o(P,Hi),o(P,Lp),o(P,xt),p(Ar,xt,null),o(xt,bp),o(xt,ji),o(P,wp),o(P,Lt),p(Ur,Lt,null),o(Lt,vp),o(Lt,Zi),o(P,$p),o(P,Ze),p(Vr,Ze,null),o(Ze,yp),o(Ze,Gi),o(Ze,Mp),p(bt,Ze,null),o(P,Tp),o(P,wt),p(Ir,wt,null),o(wt,Dp),o(wt,Bi),o(P,Cp),o(P,Ge),p(Wr,Ge,null),o(Ge,Sp),o(Ge,qi),o(Ge,kp),p(vt,Ge,null),b(e,Kl,x),p(Xr,e,x),b(e,ec,x),b(e,H,x),p(Fr,H,null),o(H,Rp),o(H,Ei),o(H,Ap),o(H,$t),p(Jr,$t,null),o($t,Up),o($t,Ni),o(H,Vp),o(H,yt),p(Pr,yt,null),o(yt,Ip),o(yt,zi),o(H,Wp),o(H,Be),p(Hr,Be,null),o(Be,Xp),o(Be,Yi),o(Be,Fp),p(Mt,Be,null),o(H,Jp),o(H,Tt),p(jr,Tt,null),o(Tt,Pp),o(Tt,Qi),o(H,Hp),o(H,qe),p(Zr,qe,null),o(qe,jp),o(qe,Oi),o(qe,Zp),p(Dt,qe,null),b(e,oc,x),p(Gr,e,x),b(e,tc,x),b(e,j,x),p(Br,j,null),o(j,Gp),o(j,Ki),o(j,Bp),o(j,Ct),p(qr,Ct,null),o(Ct,qp),o(Ct,ed),o(j,Ep),o(j,St),p(Er,St,null),o(St,Np),o(St,od),o(j,zp),o(j,Ee),p(Nr,Ee,null),o(Ee,Yp),o(Ee,td),o(Ee,Qp),p(kt,Ee,null),o(j,Op),o(j,Rt),p(zr,Rt,null),o(Rt,Kp),o(Rt,ad),o(j,e_),o(j,Ne),p(Yr,Ne,null),o(Ne,o_),o(Ne,rd),o(Ne,t_),p(At,Ne,null),b(e,ac,x),p(Qr,e,x),b(e,rc,x),b(e,Z,x),p(Or,Z,null),o(Z,a_),o(Z,nd),o(Z,r_),o(Z,Ut),p(Kr,Ut,null),o(Ut,n_),o(Ut,sd),o(Z,s_),o(Z,Vt),p(en,Vt,null),o(Vt,i_),o(Vt,id),o(Z,d_),o(Z,ze),p(on,ze,null),o(ze,l_),o(ze,dd),o(ze,c_),p(It,ze,null),o(Z,f_),o(Z,Wt),p(tn,Wt,null),o(Wt,m_),o(Wt,ld),o(Z,p_),o(Z,Ye),p(an,Ye,null),o(Ye,__),o(Ye,cd),o(Ye,u_),p(Xt,Ye,null),b(e,nc,x),p(rn,e,x),b(e,sc,x),b(e,G,x),p(nn,G,null),o(G,h_),o(G,fd),o(G,g_),o(G,Ft),p(sn,Ft,null),o(Ft,x_),o(Ft,md),o(G,L_),o(G,Jt),p(dn,Jt,null),o(Jt,b_),o(Jt,pd),o(G,w_),o(G,Qe),p(ln,Qe,null),o(Qe,v_),o(Qe,_d),o(Qe,$_),p(Pt,Qe,null),o(G,y_),o(G,Ht),p(cn,Ht,null),o(Ht,M_),o(Ht,ud),o(G,T_),o(G,Oe),p(fn,Oe,null),o(Oe,D_),o(Oe,hd),o(Oe,C_),p(jt,Oe,null),b(e,ic,x),p(mn,e,x),b(e,dc,x),b(e,B,x),p(pn,B,null),o(B,S_),o(B,gd),o(B,k_),o(B,Zt),p(_n,Zt,null),o(Zt,R_),o(Zt,xd),o(B,A_),o(B,Gt),p(un,Gt,null),o(Gt,U_),o(Gt,Ld),o(B,V_),o(B,Ke),p(hn,Ke,null),o(Ke,I_),o(Ke,bd),o(Ke,W_),p(Bt,Ke,null),o(B,X_),o(B,qt),p(gn,qt,null),o(qt,F_),o(qt,wd),o(B,J_),o(B,eo),p(xn,eo,null),o(eo,P_),o(eo,vd),o(eo,H_),p(Et,eo,null),b(e,lc,x),p(Ln,e,x),b(e,cc,x),b(e,q,x),p(bn,q,null),o(q,j_),o(q,$d),o(q,Z_),o(q,Nt),p(wn,Nt,null),o(Nt,G_),o(Nt,yd),o(q,B_),o(q,zt),p(vn,zt,null),o(zt,q_),o(zt,Md),o(q,E_),o(q,oo),p($n,oo,null),o(oo,N_),o(oo,Td),o(oo,z_),p(Yt,oo,null),o(q,Y_),o(q,Qt),p(yn,Qt,null),o(Qt,Q_),o(Qt,Dd),o(q,O_),o(q,to),p(Mn,to,null),o(to,K_),o(to,Cd),o(to,eu),p(Ot,to,null),b(e,fc,x),p(Tn,e,x),b(e,mc,x),b(e,E,x),p(Dn,E,null),o(E,ou),o(E,Sd),o(E,tu),o(E,Kt),p(Cn,Kt,null),o(Kt,au),o(Kt,kd),o(E,ru),o(E,ea),p(Sn,ea,null),o(ea,nu),o(ea,Rd),o(E,su),o(E,ao),p(kn,ao,null),o(ao,iu),o(ao,Ad),o(ao,du),p(oa,ao,null),o(E,lu),o(E,ta),p(Rn,ta,null),o(ta,cu),o(ta,Ud),o(E,fu),o(E,ro),p(An,ro,null),o(ro,mu),o(ro,Vd),o(ro,pu),p(aa,ro,null),b(e,pc,x),p(Un,e,x),b(e,_c,x),b(e,N,x),p(Vn,N,null),o(N,_u),o(N,Id),o(N,uu),o(N,ra),p(In,ra,null),o(ra,hu),o(ra,Wd),o(N,gu),o(N,na),p(Wn,na,null),o(na,xu),o(na,Xd),o(N,Lu),o(N,no),p(Xn,no,null),o(no,bu),o(no,Fd),o(no,wu),p(sa,no,null),o(N,vu),o(N,ia),p(Fn,ia,null),o(ia,$u),o(ia,Jd),o(N,yu),o(N,so),p(Jn,so,null),o(so,Mu),o(so,Pd),o(so,Tu),p(da,so,null),b(e,uc,x),p(Pn,e,x),b(e,hc,x),b(e,ye,x),p(Hn,ye,null),o(ye,Du),o(ye,la),p(jn,la,null),o(la,Cu),o(la,Hd),o(ye,Su),o(ye,ca),p(Zn,ca,null),o(ca,ku),o(ca,jd),b(e,gc,x),p(Gn,e,x),b(e,xc,x),b(e,z,x),p(Bn,z,null),o(z,Ru),o(z,Zd),o(z,Au),o(z,fa),p(qn,fa,null),o(fa,Uu),o(fa,Gd),o(z,Vu),o(z,ma),p(En,ma,null),o(ma,Iu),o(ma,Bd),o(z,Wu),o(z,io),p(Nn,io,null),o(io,Xu),o(io,qd),o(io,Fu),p(pa,io,null),o(z,Ju),o(z,_a),p(zn,_a,null),o(_a,Pu),o(_a,Ed),o(z,Hu),o(z,lo),p(Yn,lo,null),o(lo,ju),o(lo,Nd),o(lo,Zu),p(ua,lo,null),b(e,Lc,x),p(Qn,e,x),b(e,bc,x),b(e,S,x),p(On,S,null),o(S,Gu),o(S,zd),o(S,Bu),o(S,co),p(Kn,co,null),o(co,qu),o(co,Yd),o(co,Eu),p(ha,co,null),o(S,Nu),o(S,fo),p(es,fo,null),o(fo,zu),o(fo,Qd),o(fo,Yu),p(ga,fo,null),o(S,Qu),o(S,mo),p(os,mo,null),o(mo,Ou),o(mo,Od),o(mo,Ku),p(xa,mo,null),o(S,eh),o(S,La),p(ts,La,null),o(La,oh),o(La,Kd),o(S,th),o(S,ve),p(as,ve,null),o(ve,ah),o(ve,el),o(ve,rh),p(ba,ve,null),o(ve,nh),p(wa,ve,null),o(S,sh),o(S,po),p(rs,po,null),o(po,ih),o(po,ol),o(po,dh),p(va,po,null),o(S,lh),o(S,$a),p(ns,$a,null),o($a,ch),o($a,tl),o(S,fh),o(S,_o),p(ss,_o,null),o(_o,mh),o(_o,al),o(_o,ph),p(ya,_o,null),o(S,_h),o(S,$e),p(is,$e,null),o($e,uh),o($e,rl),o($e,hh),o($e,nl),o($e,gh),p(Ma,$e,null),o(S,xh),o(S,uo),p(ds,uo,null),o(uo,Lh),o(uo,sl),o(uo,bh),p(Ta,uo,null),o(S,wh),o(S,ho),p(ls,ho,null),o(ho,vh),o(ho,il),o(ho,$h),p(Da,ho,null),o(S,yh),o(S,Ca),p(cs,Ca,null),o(Ca,Mh),o(Ca,dl),b(e,wc,x),p(fs,e,x),b(e,vc,x),b(e,Wl,x),$c=!0},p(e,[x]){const R={};x&2&&(R.$$scope={dirty:x,ctx:e}),Vo.$set(R);const go={};x&2&&(go.$$scope={dirty:x,ctx:e}),Io.$set(go);const xo={};x&2&&(xo.$$scope={dirty:x,ctx:e}),Wo.$set(xo);const Lo={};x&2&&(Lo.$$scope={dirty:x,ctx:e}),Xo.$set(Lo);const ms={};x&2&&(ms.$$scope={dirty:x,ctx:e}),Jo.$set(ms);const Me={};x&2&&(Me.$$scope={dirty:x,ctx:e}),Po.$set(Me);const bo={};x&2&&(bo.$$scope={dirty:x,ctx:e}),Ho.$set(bo);const ps={};x&2&&(ps.$$scope={dirty:x,ctx:e}),Zo.$set(ps);const wo={};x&2&&(wo.$$scope={dirty:x,ctx:e}),Go.$set(wo);const Te={};x&2&&(Te.$$scope={dirty:x,ctx:e}),Bo.$set(Te);const vo={};x&2&&(vo.$$scope={dirty:x,ctx:e}),qo.$set(vo);const $o={};x&2&&($o.$$scope={dirty:x,ctx:e}),Yo.$set($o);const _s={};x&2&&(_s.$$scope={dirty:x,ctx:e}),et.$set(_s);const Q={};x&2&&(Q.$$scope={dirty:x,ctx:e}),rt.$set(Q);const us={};x&2&&(us.$$scope={dirty:x,ctx:e}),st.$set(us);const hs={};x&2&&(hs.$$scope={dirty:x,ctx:e}),lt.$set(hs);const ne={};x&2&&(ne.$$scope={dirty:x,ctx:e}),ft.$set(ne);const yo={};x&2&&(yo.$$scope={dirty:x,ctx:e}),mt.$set(yo);const gs={};x&2&&(gs.$$scope={dirty:x,ctx:e}),ut.$set(gs);const O={};x&2&&(O.$$scope={dirty:x,ctx:e}),gt.$set(O);const xs={};x&2&&(xs.$$scope={dirty:x,ctx:e}),bt.$set(xs);const Ls={};x&2&&(Ls.$$scope={dirty:x,ctx:e}),vt.$set(Ls);const se={};x&2&&(se.$$scope={dirty:x,ctx:e}),Mt.$set(se);const Mo={};x&2&&(Mo.$$scope={dirty:x,ctx:e}),Dt.$set(Mo);const bs={};x&2&&(bs.$$scope={dirty:x,ctx:e}),kt.$set(bs);const W={};x&2&&(W.$$scope={dirty:x,ctx:e}),At.$set(W);const ws={};x&2&&(ws.$$scope={dirty:x,ctx:e}),It.$set(ws);const vs={};x&2&&(vs.$$scope={dirty:x,ctx:e}),Xt.$set(vs);const xe={};x&2&&(xe.$$scope={dirty:x,ctx:e}),Pt.$set(xe);const To={};x&2&&(To.$$scope={dirty:x,ctx:e}),jt.$set(To);const $s={};x&2&&($s.$$scope={dirty:x,ctx:e}),Bt.$set($s);const Do={};x&2&&(Do.$$scope={dirty:x,ctx:e}),Et.$set(Do);const I={};x&2&&(I.$$scope={dirty:x,ctx:e}),Yt.$set(I);const ys={};x&2&&(ys.$$scope={dirty:x,ctx:e}),Ot.$set(ys);const Ms={};x&2&&(Ms.$$scope={dirty:x,ctx:e}),oa.$set(Ms);const Le={};x&2&&(Le.$$scope={dirty:x,ctx:e}),aa.$set(Le);const Co={};x&2&&(Co.$$scope={dirty:x,ctx:e}),sa.$set(Co);const Ts={};x&2&&(Ts.$$scope={dirty:x,ctx:e}),da.$set(Ts);const So={};x&2&&(So.$$scope={dirty:x,ctx:e}),pa.$set(So);const ko={};x&2&&(ko.$$scope={dirty:x,ctx:e}),ua.$set(ko);const K={};x&2&&(K.$$scope={dirty:x,ctx:e}),ha.$set(K);const Ds={};x&2&&(Ds.$$scope={dirty:x,ctx:e}),ga.$set(Ds);const Cs={};x&2&&(Cs.$$scope={dirty:x,ctx:e}),xa.$set(Cs);const Ro={};x&2&&(Ro.$$scope={dirty:x,ctx:e}),ba.$set(Ro);const Ss={};x&2&&(Ss.$$scope={dirty:x,ctx:e}),wa.$set(Ss);const Ao={};x&2&&(Ao.$$scope={dirty:x,ctx:e}),va.$set(Ao);const ee={};x&2&&(ee.$$scope={dirty:x,ctx:e}),ya.$set(ee);const ks={};x&2&&(ks.$$scope={dirty:x,ctx:e}),Ma.$set(ks);const Rs={};x&2&&(Rs.$$scope={dirty:x,ctx:e}),Ta.$set(Rs);const Uo={};x&2&&(Uo.$$scope={dirty:x,ctx:e}),Da.$set(Uo)},i(e){$c||(_(w.$$.fragment,e),_(Vo.$$.fragment,e),_(Aa.$$.fragment,e),_(Ua.$$.fragment,e),_(Va.$$.fragment,e),_(Io.$$.fragment,e),_(Ia.$$.fragment,e),_(Wo.$$.fragment,e),_(Wa.$$.fragment,e),_(Xo.$$.fragment,e),_(Xa.$$.fragment,e),_(Fa.$$.fragment,e),_(Jo.$$.fragment,e),_(Po.$$.fragment,e),_(Ja.$$.fragment,e),_(Ho.$$.fragment,e),_(Pa.$$.fragment,e),_(Ha.$$.fragment,e),_(Zo.$$.fragment,e),_(ja.$$.fragment,e),_(Go.$$.fragment,e),_(Za.$$.fragment,e),_(Bo.$$.fragment,e),_(Ga.$$.fragment,e),_(qo.$$.fragment,e),_(Ba.$$.fragment,e),_(qa.$$.fragment,e),_(Ea.$$.fragment,e),_(Na.$$.fragment,e),_(za.$$.fragment,e),_(Ya.$$.fragment,e),_(Qa.$$.fragment,e),_(Yo.$$.fragment,e),_(Oa.$$.fragment,e),_(Ka.$$.fragment,e),_(er.$$.fragment,e),_(or.$$.fragment,e),_(tr.$$.fragment,e),_(ar.$$.fragment,e),_(rr.$$.fragment,e),_(et.$$.fragment,e),_(nr.$$.fragment,e),_(sr.$$.fragment,e),_(ir.$$.fragment,e),_(dr.$$.fragment,e),_(lr.$$.fragment,e),_(cr.$$.fragment,e),_(fr.$$.fragment,e),_(rt.$$.fragment,e),_(mr.$$.fragment,e),_(pr.$$.fragment,e),_(st.$$.fragment,e),_(_r.$$.fragment,e),_(ur.$$.fragment,e),_(hr.$$.fragment,e),_(gr.$$.fragment,e),_(xr.$$.fragment,e),_(Lr.$$.fragment,e),_(lt.$$.fragment,e),_(br.$$.fragment,e),_(wr.$$.fragment,e),_(ft.$$.fragment,e),_(vr.$$.fragment,e),_(mt.$$.fragment,e),_($r.$$.fragment,e),_(yr.$$.fragment,e),_(Mr.$$.fragment,e),_(Tr.$$.fragment,e),_(Dr.$$.fragment,e),_(ut.$$.fragment,e),_(Cr.$$.fragment,e),_(Sr.$$.fragment,e),_(gt.$$.fragment,e),_(kr.$$.fragment,e),_(Rr.$$.fragment,e),_(Ar.$$.fragment,e),_(Ur.$$.fragment,e),_(Vr.$$.fragment,e),_(bt.$$.fragment,e),_(Ir.$$.fragment,e),_(Wr.$$.fragment,e),_(vt.$$.fragment,e),_(Xr.$$.fragment,e),_(Fr.$$.fragment,e),_(Jr.$$.fragment,e),_(Pr.$$.fragment,e),_(Hr.$$.fragment,e),_(Mt.$$.fragment,e),_(jr.$$.fragment,e),_(Zr.$$.fragment,e),_(Dt.$$.fragment,e),_(Gr.$$.fragment,e),_(Br.$$.fragment,e),_(qr.$$.fragment,e),_(Er.$$.fragment,e),_(Nr.$$.fragment,e),_(kt.$$.fragment,e),_(zr.$$.fragment,e),_(Yr.$$.fragment,e),_(At.$$.fragment,e),_(Qr.$$.fragment,e),_(Or.$$.fragment,e),_(Kr.$$.fragment,e),_(en.$$.fragment,e),_(on.$$.fragment,e),_(It.$$.fragment,e),_(tn.$$.fragment,e),_(an.$$.fragment,e),_(Xt.$$.fragment,e),_(rn.$$.fragment,e),_(nn.$$.fragment,e),_(sn.$$.fragment,e),_(dn.$$.fragment,e),_(ln.$$.fragment,e),_(Pt.$$.fragment,e),_(cn.$$.fragment,e),_(fn.$$.fragment,e),_(jt.$$.fragment,e),_(mn.$$.fragment,e),_(pn.$$.fragment,e),_(_n.$$.fragment,e),_(un.$$.fragment,e),_(hn.$$.fragment,e),_(Bt.$$.fragment,e),_(gn.$$.fragment,e),_(xn.$$.fragment,e),_(Et.$$.fragment,e),_(Ln.$$.fragment,e),_(bn.$$.fragment,e),_(wn.$$.fragment,e),_(vn.$$.fragment,e),_($n.$$.fragment,e),_(Yt.$$.fragment,e),_(yn.$$.fragment,e),_(Mn.$$.fragment,e),_(Ot.$$.fragment,e),_(Tn.$$.fragment,e),_(Dn.$$.fragment,e),_(Cn.$$.fragment,e),_(Sn.$$.fragment,e),_(kn.$$.fragment,e),_(oa.$$.fragment,e),_(Rn.$$.fragment,e),_(An.$$.fragment,e),_(aa.$$.fragment,e),_(Un.$$.fragment,e),_(Vn.$$.fragment,e),_(In.$$.fragment,e),_(Wn.$$.fragment,e),_(Xn.$$.fragment,e),_(sa.$$.fragment,e),_(Fn.$$.fragment,e),_(Jn.$$.fragment,e),_(da.$$.fragment,e),_(Pn.$$.fragment,e),_(Hn.$$.fragment,e),_(jn.$$.fragment,e),_(Zn.$$.fragment,e),_(Gn.$$.fragment,e),_(Bn.$$.fragment,e),_(qn.$$.fragment,e),_(En.$$.fragment,e),_(Nn.$$.fragment,e),_(pa.$$.fragment,e),_(zn.$$.fragment,e),_(Yn.$$.fragment,e),_(ua.$$.fragment,e),_(Qn.$$.fragment,e),_(On.$$.fragment,e),_(Kn.$$.fragment,e),_(ha.$$.fragment,e),_(es.$$.fragment,e),_(ga.$$.fragment,e),_(os.$$.fragment,e),_(xa.$$.fragment,e),_(ts.$$.fragment,e),_(as.$$.fragment,e),_(ba.$$.fragment,e),_(wa.$$.fragment,e),_(rs.$$.fragment,e),_(va.$$.fragment,e),_(ns.$$.fragment,e),_(ss.$$.fragment,e),_(ya.$$.fragment,e),_(is.$$.fragment,e),_(Ma.$$.fragment,e),_(ds.$$.fragment,e),_(Ta.$$.fragment,e),_(ls.$$.fragment,e),_(Da.$$.fragment,e),_(cs.$$.fragment,e),_(fs.$$.fragment,e),$c=!0)},o(e){u(w.$$.fragment,e),u(Vo.$$.fragment,e),u(Aa.$$.fragment,e),u(Ua.$$.fragment,e),u(Va.$$.fragment,e),u(Io.$$.fragment,e),u(Ia.$$.fragment,e),u(Wo.$$.fragment,e),u(Wa.$$.fragment,e),u(Xo.$$.fragment,e),u(Xa.$$.fragment,e),u(Fa.$$.fragment,e),u(Jo.$$.fragment,e),u(Po.$$.fragment,e),u(Ja.$$.fragment,e),u(Ho.$$.fragment,e),u(Pa.$$.fragment,e),u(Ha.$$.fragment,e),u(Zo.$$.fragment,e),u(ja.$$.fragment,e),u(Go.$$.fragment,e),u(Za.$$.fragment,e),u(Bo.$$.fragment,e),u(Ga.$$.fragment,e),u(qo.$$.fragment,e),u(Ba.$$.fragment,e),u(qa.$$.fragment,e),u(Ea.$$.fragment,e),u(Na.$$.fragment,e),u(za.$$.fragment,e),u(Ya.$$.fragment,e),u(Qa.$$.fragment,e),u(Yo.$$.fragment,e),u(Oa.$$.fragment,e),u(Ka.$$.fragment,e),u(er.$$.fragment,e),u(or.$$.fragment,e),u(tr.$$.fragment,e),u(ar.$$.fragment,e),u(rr.$$.fragment,e),u(et.$$.fragment,e),u(nr.$$.fragment,e),u(sr.$$.fragment,e),u(ir.$$.fragment,e),u(dr.$$.fragment,e),u(lr.$$.fragment,e),u(cr.$$.fragment,e),u(fr.$$.fragment,e),u(rt.$$.fragment,e),u(mr.$$.fragment,e),u(pr.$$.fragment,e),u(st.$$.fragment,e),u(_r.$$.fragment,e),u(ur.$$.fragment,e),u(hr.$$.fragment,e),u(gr.$$.fragment,e),u(xr.$$.fragment,e),u(Lr.$$.fragment,e),u(lt.$$.fragment,e),u(br.$$.fragment,e),u(wr.$$.fragment,e),u(ft.$$.fragment,e),u(vr.$$.fragment,e),u(mt.$$.fragment,e),u($r.$$.fragment,e),u(yr.$$.fragment,e),u(Mr.$$.fragment,e),u(Tr.$$.fragment,e),u(Dr.$$.fragment,e),u(ut.$$.fragment,e),u(Cr.$$.fragment,e),u(Sr.$$.fragment,e),u(gt.$$.fragment,e),u(kr.$$.fragment,e),u(Rr.$$.fragment,e),u(Ar.$$.fragment,e),u(Ur.$$.fragment,e),u(Vr.$$.fragment,e),u(bt.$$.fragment,e),u(Ir.$$.fragment,e),u(Wr.$$.fragment,e),u(vt.$$.fragment,e),u(Xr.$$.fragment,e),u(Fr.$$.fragment,e),u(Jr.$$.fragment,e),u(Pr.$$.fragment,e),u(Hr.$$.fragment,e),u(Mt.$$.fragment,e),u(jr.$$.fragment,e),u(Zr.$$.fragment,e),u(Dt.$$.fragment,e),u(Gr.$$.fragment,e),u(Br.$$.fragment,e),u(qr.$$.fragment,e),u(Er.$$.fragment,e),u(Nr.$$.fragment,e),u(kt.$$.fragment,e),u(zr.$$.fragment,e),u(Yr.$$.fragment,e),u(At.$$.fragment,e),u(Qr.$$.fragment,e),u(Or.$$.fragment,e),u(Kr.$$.fragment,e),u(en.$$.fragment,e),u(on.$$.fragment,e),u(It.$$.fragment,e),u(tn.$$.fragment,e),u(an.$$.fragment,e),u(Xt.$$.fragment,e),u(rn.$$.fragment,e),u(nn.$$.fragment,e),u(sn.$$.fragment,e),u(dn.$$.fragment,e),u(ln.$$.fragment,e),u(Pt.$$.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(Bt.$$.fragment,e),u(gn.$$.fragment,e),u(xn.$$.fragment,e),u(Et.$$.fragment,e),u(Ln.$$.fragment,e),u(bn.$$.fragment,e),u(wn.$$.fragment,e),u(vn.$$.fragment,e),u($n.$$.fragment,e),u(Yt.$$.fragment,e),u(yn.$$.fragment,e),u(Mn.$$.fragment,e),u(Ot.$$.fragment,e),u(Tn.$$.fragment,e),u(Dn.$$.fragment,e),u(Cn.$$.fragment,e),u(Sn.$$.fragment,e),u(kn.$$.fragment,e),u(oa.$$.fragment,e),u(Rn.$$.fragment,e),u(An.$$.fragment,e),u(aa.$$.fragment,e),u(Un.$$.fragment,e),u(Vn.$$.fragment,e),u(In.$$.fragment,e),u(Wn.$$.fragment,e),u(Xn.$$.fragment,e),u(sa.$$.fragment,e),u(Fn.$$.fragment,e),u(Jn.$$.fragment,e),u(da.$$.fragment,e),u(Pn.$$.fragment,e),u(Hn.$$.fragment,e),u(jn.$$.fragment,e),u(Zn.$$.fragment,e),u(Gn.$$.fragment,e),u(Bn.$$.fragment,e),u(qn.$$.fragment,e),u(En.$$.fragment,e),u(Nn.$$.fragment,e),u(pa.$$.fragment,e),u(zn.$$.fragment,e),u(Yn.$$.fragment,e),u(ua.$$.fragment,e),u(Qn.$$.fragment,e),u(On.$$.fragment,e),u(Kn.$$.fragment,e),u(ha.$$.fragment,e),u(es.$$.fragment,e),u(ga.$$.fragment,e),u(os.$$.fragment,e),u(xa.$$.fragment,e),u(ts.$$.fragment,e),u(as.$$.fragment,e),u(ba.$$.fragment,e),u(wa.$$.fragment,e),u(rs.$$.fragment,e),u(va.$$.fragment,e),u(ns.$$.fragment,e),u(ss.$$.fragment,e),u(ya.$$.fragment,e),u(is.$$.fragment,e),u(Ma.$$.fragment,e),u(ds.$$.fragment,e),u(Ta.$$.fragment,e),u(ls.$$.fragment,e),u(Da.$$.fragment,e),u(cs.$$.fragment,e),u(fs.$$.fragment,e),$c=!1},d(e){e&&(l(L),l(c),l(d),l(a),l(v),l(Xl),l(Ra),l(Fl),l(Jl),l(Pl),l(C),l(Hl),l(jl),l(X),l(Zl),l(Gl),l(F),l(Bl),l(ql),l(V),l(El),l(Nl),l(U),l(zl),l(Yl),l(J),l(Ql),l(Ol),l(P),l(Kl),l(ec),l(H),l(oc),l(tc),l(j),l(ac),l(rc),l(Z),l(nc),l(sc),l(G),l(ic),l(dc),l(B),l(lc),l(cc),l(q),l(fc),l(mc),l(E),l(pc),l(_c),l(N),l(uc),l(hc),l(ye),l(gc),l(xc),l(z),l(Lc),l(bc),l(S),l(wc),l(vc),l(Wl)),l(t),h(w,e),h(Vo,e),h(Aa,e),h(Ua),h(Va),h(Io),h(Ia),h(Wo),h(Wa),h(Xo),h(Xa),h(Fa),h(Jo),h(Po),h(Ja),h(Ho),h(Pa),h(Ha),h(Zo),h(ja),h(Go),h(Za),h(Bo),h(Ga),h(qo),h(Ba),h(qa,e),h(Ea),h(Na),h(za),h(Ya),h(Qa),h(Yo),h(Oa),h(Ka,e),h(er),h(or),h(tr),h(ar),h(rr),h(et),h(nr),h(sr,e),h(ir),h(dr),h(lr),h(cr),h(fr),h(rt),h(mr),h(pr),h(st),h(_r,e),h(ur),h(hr),h(gr),h(xr),h(Lr),h(lt),h(br),h(wr),h(ft),h(vr),h(mt),h($r,e),h(yr),h(Mr),h(Tr),h(Dr),h(ut),h(Cr),h(Sr),h(gt),h(kr,e),h(Rr),h(Ar),h(Ur),h(Vr),h(bt),h(Ir),h(Wr),h(vt),h(Xr,e),h(Fr),h(Jr),h(Pr),h(Hr),h(Mt),h(jr),h(Zr),h(Dt),h(Gr,e),h(Br),h(qr),h(Er),h(Nr),h(kt),h(zr),h(Yr),h(At),h(Qr,e),h(Or),h(Kr),h(en),h(on),h(It),h(tn),h(an),h(Xt),h(rn,e),h(nn),h(sn),h(dn),h(ln),h(Pt),h(cn),h(fn),h(jt),h(mn,e),h(pn),h(_n),h(un),h(hn),h(Bt),h(gn),h(xn),h(Et),h(Ln,e),h(bn),h(wn),h(vn),h($n),h(Yt),h(yn),h(Mn),h(Ot),h(Tn,e),h(Dn),h(Cn),h(Sn),h(kn),h(oa),h(Rn),h(An),h(aa),h(Un,e),h(Vn),h(In),h(Wn),h(Xn),h(sa),h(Fn),h(Jn),h(da),h(Pn,e),h(Hn),h(jn),h(Zn),h(Gn,e),h(Bn),h(qn),h(En),h(Nn),h(pa),h(zn),h(Yn),h(ua),h(Qn,e),h(On),h(Kn),h(ha),h(es),h(ga),h(os),h(xa),h(ts),h(as),h(ba),h(wa),h(rs),h(va),h(ns),h(ss),h(ya),h(is),h(Ma),h(ds),h(Ta),h(ls),h(Da),h(cs),h(fs,e)}}}const db='{"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":"SkyReelsV2LoraLoaderMixin","local":"diffusers.loaders.SkyReelsV2LoraLoaderMixin","sections":[],"depth":2},{"title":"AmusedLoraLoaderMixin","local":"diffusers.loaders.AmusedLoraLoaderMixin","sections":[],"depth":2},{"title":"HiDreamImageLoraLoaderMixin","local":"diffusers.loaders.HiDreamImageLoraLoaderMixin","sections":[],"depth":2},{"title":"LoraBaseMixin","local":"diffusers.loaders.lora_base.LoraBaseMixin","sections":[],"depth":2}],"depth":1}';function lb(T){return sL(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class gb extends iL{constructor(t){super(),dL(this,t,lb,ib,nL,{})}}export{gb as component};
