Buckets:
| import{s as Qh,o as Oh,n as D}from"../chunks/scheduler.8c3d61f6.js";import{S as Kh,i as eg,g as n,s as a,r as p,A as og,h as s,f as d,c as r,j as v,u as m,x as f,k as w,y as o,a as x,v as _,d as u,t as h,w as g}from"../chunks/index.da70eac4.js";import{T as A}from"../chunks/Tip.1d9b8c37.js";import{D as $}from"../chunks/Docstring.a1b937ef.js";import{C as xo}from"../chunks/CodeBlock.a9c4becf.js";import{E as Lo}from"../chunks/ExampleCodeBlock.8d0174c9.js";import{H as Z,E as tg}from"../chunks/getInferenceSnippets.d00e08ac.js";function ag(T){let t,b='To learn more about how to load LoRA weights, see the <a href="../../using-diffusers/loading_adapters#lora">LoRA</a> loading guide.';return{c(){t=n("p"),t.innerHTML=b},l(l){t=s(l,"P",{"data-svelte-h":!0}),f(t)!=="svelte-1fw6lx1"&&(t.innerHTML=b)},m(l,c){x(l,t,c)},p:D,d(l){l&&d(t)}}}function rg(T){let t,b="Example:",l,c,M;return c=new xo({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">"stabilityai/stable-diffusion-xl-base-1.0"</span>, torch_dtype=torch.float16 | |
| ).to(<span class="hljs-string">"cuda"</span>) | |
| pipeline.load_lora_weights( | |
| <span class="hljs-string">"jbilcke-hf/sdxl-cinematic-1"</span>, weight_name=<span class="hljs-string">"pytorch_lora_weights.safetensors"</span>, adapter_names=<span class="hljs-string">"cinematic"</span> | |
| ) | |
| pipeline.delete_adapters(<span class="hljs-string">"cinematic"</span>)`,wrap:!1}}),{c(){t=n("p"),t.textContent=b,l=a(),p(c.$$.fragment)},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-11lpom8"&&(t.textContent=b),l=r(i),m(c.$$.fragment,i)},m(i,y){x(i,t,y),x(i,l,y),_(c,i,y),M=!0},p:D,i(i){M||(u(c.$$.fragment,i),M=!0)},o(i){h(c.$$.fragment,i),M=!1},d(i){i&&(d(t),d(l)),g(c,i)}}}function ng(T){let t,b="Example:",l,c,M;return c=new xo({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">"stabilityai/stable-diffusion-xl-base-1.0"</span>, torch_dtype=torch.float16 | |
| ).to(<span class="hljs-string">"cuda"</span>) | |
| pipeline.load_lora_weights( | |
| <span class="hljs-string">"jbilcke-hf/sdxl-cinematic-1"</span>, weight_name=<span class="hljs-string">"pytorch_lora_weights.safetensors"</span>, adapter_name=<span class="hljs-string">"cinematic"</span> | |
| ) | |
| pipeline.disable_lora()`,wrap:!1}}),{c(){t=n("p"),t.textContent=b,l=a(),p(c.$$.fragment)},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-11lpom8"&&(t.textContent=b),l=r(i),m(c.$$.fragment,i)},m(i,y){x(i,t,y),x(i,l,y),_(c,i,y),M=!0},p:D,i(i){M||(u(c.$$.fragment,i),M=!0)},o(i){h(c.$$.fragment,i),M=!1},d(i){i&&(d(t),d(l)),g(c,i)}}}function sg(T){let t,b="Example:",l,c,M;return c=new xo({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">"stabilityai/stable-diffusion-xl-base-1.0"</span>, torch_dtype=torch.float16 | |
| ).to(<span class="hljs-string">"cuda"</span>) | |
| pipeline.load_lora_weights( | |
| <span class="hljs-string">"jbilcke-hf/sdxl-cinematic-1"</span>, weight_name=<span class="hljs-string">"pytorch_lora_weights.safetensors"</span>, adapter_name=<span class="hljs-string">"cinematic"</span> | |
| ) | |
| pipeline.enable_lora()`,wrap:!1}}),{c(){t=n("p"),t.textContent=b,l=a(),p(c.$$.fragment)},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-11lpom8"&&(t.textContent=b),l=r(i),m(c.$$.fragment,i)},m(i,y){x(i,t,y),x(i,l,y),_(c,i,y),M=!0},p:D,i(i){M||(u(c.$$.fragment,i),M=!0)},o(i){h(c.$$.fragment,i),M=!1},d(i){i&&(d(t),d(l)),g(c,i)}}}function ig(T){let t,b="This is an experimental API.";return{c(){t=n("p"),t.textContent=b},l(l){t=s(l,"P",{"data-svelte-h":!0}),f(t)!=="svelte-8w79b9"&&(t.textContent=b)},m(l,c){x(l,t,c)},p:D,d(l){l&&d(t)}}}function dg(T){let t,b="Example:",l,c,M;return c=new xo({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMERpZmZ1c2lvblBpcGVsaW5lJTBBaW1wb3J0JTIwdG9yY2glMEElMEFwaXBlbGluZSUyMCUzRCUyMERpZmZ1c2lvblBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJzdGFiaWxpdHlhaSUyRnN0YWJsZS1kaWZmdXNpb24teGwtYmFzZS0xLjAlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYlMEEpLnRvKCUyMmN1ZGElMjIpJTBBcGlwZWxpbmUubG9hZF9sb3JhX3dlaWdodHMoJTIybmVyaWpzJTJGcGl4ZWwtYXJ0LXhsJTIyJTJDJTIwd2VpZ2h0X25hbWUlM0QlMjJwaXhlbC1hcnQteGwuc2FmZXRlbnNvcnMlMjIlMkMlMjBhZGFwdGVyX25hbWUlM0QlMjJwaXhlbCUyMiklMEFwaXBlbGluZS5mdXNlX2xvcmEobG9yYV9zY2FsZSUzRDAuNyk=",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> DiffusionPipeline | |
| <span class="hljs-keyword">import</span> torch | |
| pipeline = DiffusionPipeline.from_pretrained( | |
| <span class="hljs-string">"stabilityai/stable-diffusion-xl-base-1.0"</span>, torch_dtype=torch.float16 | |
| ).to(<span class="hljs-string">"cuda"</span>) | |
| pipeline.load_lora_weights(<span class="hljs-string">"nerijs/pixel-art-xl"</span>, weight_name=<span class="hljs-string">"pixel-art-xl.safetensors"</span>, adapter_name=<span class="hljs-string">"pixel"</span>) | |
| pipeline.fuse_lora(lora_scale=<span class="hljs-number">0.7</span>)`,wrap:!1}}),{c(){t=n("p"),t.textContent=b,l=a(),p(c.$$.fragment)},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-11lpom8"&&(t.textContent=b),l=r(i),m(c.$$.fragment,i)},m(i,y){x(i,t,y),x(i,l,y),_(c,i,y),M=!0},p:D,i(i){M||(u(c.$$.fragment,i),M=!0)},o(i){h(c.$$.fragment,i),M=!1},d(i){i&&(d(t),d(l)),g(c,i)}}}function lg(T){let t,b="Example:",l,c,M;return c=new xo({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMERpZmZ1c2lvblBpcGVsaW5lJTBBJTBBcGlwZWxpbmUlMjAlM0QlMjBEaWZmdXNpb25QaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIyc3RhYmlsaXR5YWklMkZzdGFibGUtZGlmZnVzaW9uLXhsLWJhc2UtMS4wJTIyJTJDJTBBKS50byglMjJjdWRhJTIyKSUwQXBpcGVsaW5lLmxvYWRfbG9yYV93ZWlnaHRzKCUyMkNpcm9OMjAyMiUyRnRveS1mYWNlJTIyJTJDJTIwd2VpZ2h0X25hbWUlM0QlMjJ0b3lfZmFjZV9zZHhsLnNhZmV0ZW5zb3JzJTIyJTJDJTIwYWRhcHRlcl9uYW1lJTNEJTIydG95JTIyKSUwQXBpcGVsaW5lLmdldF9hY3RpdmVfYWRhcHRlcnMoKQ==",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> DiffusionPipeline | |
| pipeline = DiffusionPipeline.from_pretrained( | |
| <span class="hljs-string">"stabilityai/stable-diffusion-xl-base-1.0"</span>, | |
| ).to(<span class="hljs-string">"cuda"</span>) | |
| pipeline.load_lora_weights(<span class="hljs-string">"CiroN2022/toy-face"</span>, weight_name=<span class="hljs-string">"toy_face_sdxl.safetensors"</span>, adapter_name=<span class="hljs-string">"toy"</span>) | |
| pipeline.get_active_adapters()`,wrap:!1}}),{c(){t=n("p"),t.textContent=b,l=a(),p(c.$$.fragment)},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-11lpom8"&&(t.textContent=b),l=r(i),m(c.$$.fragment,i)},m(i,y){x(i,t,y),x(i,l,y),_(c,i,y),M=!0},p:D,i(i){M||(u(c.$$.fragment,i),M=!0)},o(i){h(c.$$.fragment,i),M=!1},d(i){i&&(d(t),d(l)),g(c,i)}}}function cg(T){let t,b="Example:",l,c,M;return c=new xo({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">"stabilityai/stable-diffusion-xl-base-1.0"</span>, torch_dtype=torch.float16 | |
| ).to(<span class="hljs-string">"cuda"</span>) | |
| pipeline.load_lora_weights( | |
| <span class="hljs-string">"jbilcke-hf/sdxl-cinematic-1"</span>, weight_name=<span class="hljs-string">"pytorch_lora_weights.safetensors"</span>, adapter_name=<span class="hljs-string">"cinematic"</span> | |
| ) | |
| pipeline.load_lora_weights(<span class="hljs-string">"nerijs/pixel-art-xl"</span>, weight_name=<span class="hljs-string">"pixel-art-xl.safetensors"</span>, adapter_name=<span class="hljs-string">"pixel"</span>) | |
| pipeline.set_adapters([<span class="hljs-string">"cinematic"</span>, <span class="hljs-string">"pixel"</span>], adapter_weights=[<span class="hljs-number">0.5</span>, <span class="hljs-number">0.5</span>])`,wrap:!1}}),{c(){t=n("p"),t.textContent=b,l=a(),p(c.$$.fragment)},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-11lpom8"&&(t.textContent=b),l=r(i),m(c.$$.fragment,i)},m(i,y){x(i,t,y),x(i,l,y),_(c,i,y),M=!0},p:D,i(i){M||(u(c.$$.fragment,i),M=!0)},o(i){h(c.$$.fragment,i),M=!1},d(i){i&&(d(t),d(l)),g(c,i)}}}function fg(T){let t,b;return t=new xo({props:{code:"cGlwZS5sb2FkX2xvcmFfd2VpZ2h0cyhwYXRoXzElMkMlMjBhZGFwdGVyX25hbWUlM0QlMjJhZGFwdGVyLTElMjIpJTBBcGlwZS5sb2FkX2xvcmFfd2VpZ2h0cyhwYXRoXzIlMkMlMjBhZGFwdGVyX25hbWUlM0QlMjJhZGFwdGVyLTIlMjIpJTBBcGlwZS5zZXRfYWRhcHRlcnMoJTIyYWRhcHRlci0xJTIyKSUwQWltYWdlXzElMjAlM0QlMjBwaXBlKCoqa3dhcmdzKSUwQSUyMyUyMHN3aXRjaCUyMHRvJTIwYWRhcHRlci0yJTJDJTIwb2ZmbG9hZCUyMGFkYXB0ZXItMSUwQXBpcGVsaW5lLnNldF9sb3JhX2RldmljZShhZGFwdGVyX25hbWVzJTNEJTVCJTIyYWRhcHRlci0xJTIyJTVEJTJDJTIwZGV2aWNlJTNEJTIyY3B1JTIyKSUwQXBpcGVsaW5lLnNldF9sb3JhX2RldmljZShhZGFwdGVyX25hbWVzJTNEJTVCJTIyYWRhcHRlci0yJTIyJTVEJTJDJTIwZGV2aWNlJTNEJTIyY3VkYSUzQTAlMjIpJTBBcGlwZS5zZXRfYWRhcHRlcnMoJTIyYWRhcHRlci0yJTIyKSUwQWltYWdlXzIlMjAlM0QlMjBwaXBlKCoqa3dhcmdzKSUwQSUyMyUyMHN3aXRjaCUyMGJhY2slMjB0byUyMGFkYXB0ZXItMSUyQyUyMG9mZmxvYWQlMjBhZGFwdGVyLTIlMEFwaXBlbGluZS5zZXRfbG9yYV9kZXZpY2UoYWRhcHRlcl9uYW1lcyUzRCU1QiUyMmFkYXB0ZXItMiUyMiU1RCUyQyUyMGRldmljZSUzRCUyMmNwdSUyMiklMEFwaXBlbGluZS5zZXRfbG9yYV9kZXZpY2UoYWRhcHRlcl9uYW1lcyUzRCU1QiUyMmFkYXB0ZXItMSUyMiU1RCUyQyUyMGRldmljZSUzRCUyMmN1ZGElM0EwJTIyKSUwQXBpcGUuc2V0X2FkYXB0ZXJzKCUyMmFkYXB0ZXItMSUyMiklMEEuLi4=",highlighted:`<span class="hljs-meta">>>> </span>pipe.load_lora_weights(path_1, adapter_name=<span class="hljs-string">"adapter-1"</span>) | |
| <span class="hljs-meta">>>> </span>pipe.load_lora_weights(path_2, adapter_name=<span class="hljs-string">"adapter-2"</span>) | |
| <span class="hljs-meta">>>> </span>pipe.set_adapters(<span class="hljs-string">"adapter-1"</span>) | |
| <span class="hljs-meta">>>> </span>image_1 = pipe(**kwargs) | |
| <span class="hljs-meta">>>> </span><span class="hljs-comment"># switch to adapter-2, offload adapter-1</span> | |
| <span class="hljs-meta">>>> </span>pipeline.set_lora_device(adapter_names=[<span class="hljs-string">"adapter-1"</span>], device=<span class="hljs-string">"cpu"</span>) | |
| <span class="hljs-meta">>>> </span>pipeline.set_lora_device(adapter_names=[<span class="hljs-string">"adapter-2"</span>], device=<span class="hljs-string">"cuda:0"</span>) | |
| <span class="hljs-meta">>>> </span>pipe.set_adapters(<span class="hljs-string">"adapter-2"</span>) | |
| <span class="hljs-meta">>>> </span>image_2 = pipe(**kwargs) | |
| <span class="hljs-meta">>>> </span><span class="hljs-comment"># switch back to adapter-1, offload adapter-2</span> | |
| <span class="hljs-meta">>>> </span>pipeline.set_lora_device(adapter_names=[<span class="hljs-string">"adapter-2"</span>], device=<span class="hljs-string">"cpu"</span>) | |
| <span class="hljs-meta">>>> </span>pipeline.set_lora_device(adapter_names=[<span class="hljs-string">"adapter-1"</span>], device=<span class="hljs-string">"cuda:0"</span>) | |
| <span class="hljs-meta">>>> </span>pipe.set_adapters(<span class="hljs-string">"adapter-1"</span>) | |
| <span class="hljs-meta">>>> </span>...`,wrap:!1}}),{c(){p(t.$$.fragment)},l(l){m(t.$$.fragment,l)},m(l,c){_(t,l,c),b=!0},p:D,i(l){b||(u(t.$$.fragment,l),b=!0)},o(l){h(t.$$.fragment,l),b=!1},d(l){g(t,l)}}}function pg(T){let t,b="This is an experimental API.";return{c(){t=n("p"),t.textContent=b},l(l){t=s(l,"P",{"data-svelte-h":!0}),f(t)!=="svelte-8w79b9"&&(t.textContent=b)},m(l,c){x(l,t,c)},p:D,d(l){l&&d(t)}}}function mg(T){let t,b="Examples:",l,c,M;return c=new xo({props:{code:"JTIzJTIwQXNzdW1pbmclMjAlNjBwaXBlbGluZSU2MCUyMGlzJTIwYWxyZWFkeSUyMGxvYWRlZCUyMHdpdGglMjB0aGUlMjBMb1JBJTIwcGFyYW1ldGVycy4lMEFwaXBlbGluZS51bmxvYWRfbG9yYV93ZWlnaHRzKCklMEEuLi4=",highlighted:'<span class="hljs-meta">>>> </span><span class="hljs-comment"># Assuming `pipeline` is already loaded with the LoRA parameters.</span>\n<span class="hljs-meta">>>> </span>pipeline.unload_lora_weights()\n<span class="hljs-meta">>>> </span>...',wrap:!1}}),{c(){t=n("p"),t.textContent=b,l=a(),p(c.$$.fragment)},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-kvfsh7"&&(t.textContent=b),l=r(i),m(c.$$.fragment,i)},m(i,y){x(i,t,y),x(i,l,y),_(c,i,y),M=!0},p:D,i(i){M||(u(c.$$.fragment,i),M=!0)},o(i){h(c.$$.fragment,i),M=!1},d(i){i&&(d(t),d(l)),g(c,i)}}}function _g(T){let t,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",l,c,M="This function is experimental and might change in the future.";return{c(){t=n("p"),t.textContent=b,l=a(),c=n("p"),c.textContent=M},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-15l1sdn"&&(t.textContent=b),l=r(i),c=s(i,"P",{"data-svelte-h":!0}),f(c)!=="svelte-3fufvn"&&(c.textContent=M)},m(i,y){x(i,t,y),x(i,l,y),x(i,c,y)},p:D,d(i){i&&(d(t),d(l),d(c))}}}function ug(T){let t,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",l,c,M="This function is experimental and might change in the future.";return{c(){t=n("p"),t.textContent=b,l=a(),c=n("p"),c.textContent=M},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-15l1sdn"&&(t.textContent=b),l=r(i),c=s(i,"P",{"data-svelte-h":!0}),f(c)!=="svelte-3fufvn"&&(c.textContent=M)},m(i,y){x(i,t,y),x(i,l,y),x(i,c,y)},p:D,d(i){i&&(d(t),d(l),d(c))}}}function hg(T){let t,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",l,c,M="This function is experimental and might change in the future.";return{c(){t=n("p"),t.textContent=b,l=a(),c=n("p"),c.textContent=M},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-15l1sdn"&&(t.textContent=b),l=r(i),c=s(i,"P",{"data-svelte-h":!0}),f(c)!=="svelte-3fufvn"&&(c.textContent=M)},m(i,y){x(i,t,y),x(i,l,y),x(i,c,y)},p:D,d(i){i&&(d(t),d(l),d(c))}}}function gg(T){let t,b="This is an experimental API.";return{c(){t=n("p"),t.textContent=b},l(l){t=s(l,"P",{"data-svelte-h":!0}),f(t)!=="svelte-8w79b9"&&(t.textContent=b)},m(l,c){x(l,t,c)},p:D,d(l){l&&d(t)}}}function Lg(T){let t,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",l,c,M="This function is experimental and might change in the future.";return{c(){t=n("p"),t.textContent=b,l=a(),c=n("p"),c.textContent=M},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-15l1sdn"&&(t.textContent=b),l=r(i),c=s(i,"P",{"data-svelte-h":!0}),f(c)!=="svelte-3fufvn"&&(c.textContent=M)},m(i,y){x(i,t,y),x(i,l,y),x(i,c,y)},p:D,d(i){i&&(d(t),d(l),d(c))}}}function xg(T){let t,b="This is an experimental API.";return{c(){t=n("p"),t.textContent=b},l(l){t=s(l,"P",{"data-svelte-h":!0}),f(t)!=="svelte-8w79b9"&&(t.textContent=b)},m(l,c){x(l,t,c)},p:D,d(l){l&&d(t)}}}function bg(T){let t,b="Examples:",l,c,M;return c=new xo({props:{code:"JTIzJTIwQXNzdW1pbmclMjAlNjBwaXBlbGluZSU2MCUyMGlzJTIwYWxyZWFkeSUyMGxvYWRlZCUyMHdpdGglMjB0aGUlMjBMb1JBJTIwcGFyYW1ldGVycy4lMEFwaXBlbGluZS51bmxvYWRfbG9yYV93ZWlnaHRzKCklMEEuLi4=",highlighted:'<span class="hljs-meta">>>> </span><span class="hljs-comment"># Assuming `pipeline` is already loaded with the LoRA parameters.</span>\n<span class="hljs-meta">>>> </span>pipeline.unload_lora_weights()\n<span class="hljs-meta">>>> </span>...',wrap:!1}}),{c(){t=n("p"),t.textContent=b,l=a(),p(c.$$.fragment)},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-kvfsh7"&&(t.textContent=b),l=r(i),m(c.$$.fragment,i)},m(i,y){x(i,t,y),x(i,l,y),_(c,i,y),M=!0},p:D,i(i){M||(u(c.$$.fragment,i),M=!0)},o(i){h(c.$$.fragment,i),M=!1},d(i){i&&(d(t),d(l)),g(c,i)}}}function vg(T){let t,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",l,c,M="This function is experimental and might change in the future.";return{c(){t=n("p"),t.textContent=b,l=a(),c=n("p"),c.textContent=M},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-15l1sdn"&&(t.textContent=b),l=r(i),c=s(i,"P",{"data-svelte-h":!0}),f(c)!=="svelte-3fufvn"&&(c.textContent=M)},m(i,y){x(i,t,y),x(i,l,y),x(i,c,y)},p:D,d(i){i&&(d(t),d(l),d(c))}}}function wg(T){let t,b="This is an experimental API.";return{c(){t=n("p"),t.textContent=b},l(l){t=s(l,"P",{"data-svelte-h":!0}),f(t)!=="svelte-8w79b9"&&(t.textContent=b)},m(l,c){x(l,t,c)},p:D,d(l){l&&d(t)}}}function $g(T){let t,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",l,c,M="This function is experimental and might change in the future.";return{c(){t=n("p"),t.textContent=b,l=a(),c=n("p"),c.textContent=M},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-15l1sdn"&&(t.textContent=b),l=r(i),c=s(i,"P",{"data-svelte-h":!0}),f(c)!=="svelte-3fufvn"&&(c.textContent=M)},m(i,y){x(i,t,y),x(i,l,y),x(i,c,y)},p:D,d(i){i&&(d(t),d(l),d(c))}}}function yg(T){let t,b="This is an experimental API.";return{c(){t=n("p"),t.textContent=b},l(l){t=s(l,"P",{"data-svelte-h":!0}),f(t)!=="svelte-8w79b9"&&(t.textContent=b)},m(l,c){x(l,t,c)},p:D,d(l){l&&d(t)}}}function Mg(T){let t,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",l,c,M="This function is experimental and might change in the future.";return{c(){t=n("p"),t.textContent=b,l=a(),c=n("p"),c.textContent=M},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-15l1sdn"&&(t.textContent=b),l=r(i),c=s(i,"P",{"data-svelte-h":!0}),f(c)!=="svelte-3fufvn"&&(c.textContent=M)},m(i,y){x(i,t,y),x(i,l,y),x(i,c,y)},p:D,d(i){i&&(d(t),d(l),d(c))}}}function Tg(T){let t,b="This is an experimental API.";return{c(){t=n("p"),t.textContent=b},l(l){t=s(l,"P",{"data-svelte-h":!0}),f(t)!=="svelte-8w79b9"&&(t.textContent=b)},m(l,c){x(l,t,c)},p:D,d(l){l&&d(t)}}}function Dg(T){let t,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",l,c,M="This function is experimental and might change in the future.";return{c(){t=n("p"),t.textContent=b,l=a(),c=n("p"),c.textContent=M},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-15l1sdn"&&(t.textContent=b),l=r(i),c=s(i,"P",{"data-svelte-h":!0}),f(c)!=="svelte-3fufvn"&&(c.textContent=M)},m(i,y){x(i,t,y),x(i,l,y),x(i,c,y)},p:D,d(i){i&&(d(t),d(l),d(c))}}}function Cg(T){let t,b="This is an experimental API.";return{c(){t=n("p"),t.textContent=b},l(l){t=s(l,"P",{"data-svelte-h":!0}),f(t)!=="svelte-8w79b9"&&(t.textContent=b)},m(l,c){x(l,t,c)},p:D,d(l){l&&d(t)}}}function Sg(T){let t,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",l,c,M="This function is experimental and might change in the future.";return{c(){t=n("p"),t.textContent=b,l=a(),c=n("p"),c.textContent=M},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-15l1sdn"&&(t.textContent=b),l=r(i),c=s(i,"P",{"data-svelte-h":!0}),f(c)!=="svelte-3fufvn"&&(c.textContent=M)},m(i,y){x(i,t,y),x(i,l,y),x(i,c,y)},p:D,d(i){i&&(d(t),d(l),d(c))}}}function Ag(T){let t,b="This is an experimental API.";return{c(){t=n("p"),t.textContent=b},l(l){t=s(l,"P",{"data-svelte-h":!0}),f(t)!=="svelte-8w79b9"&&(t.textContent=b)},m(l,c){x(l,t,c)},p:D,d(l){l&&d(t)}}}function kg(T){let t,b="We support loading original format HunyuanVideo LoRA checkpoints.",l,c,M="This function is experimental and might change in the future.";return{c(){t=n("p"),t.textContent=b,l=a(),c=n("p"),c.textContent=M},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-gyrs6h"&&(t.textContent=b),l=r(i),c=s(i,"P",{"data-svelte-h":!0}),f(c)!=="svelte-3fufvn"&&(c.textContent=M)},m(i,y){x(i,t,y),x(i,l,y),x(i,c,y)},p:D,d(i){i&&(d(t),d(l),d(c))}}}function Rg(T){let t,b="This is an experimental API.";return{c(){t=n("p"),t.textContent=b},l(l){t=s(l,"P",{"data-svelte-h":!0}),f(t)!=="svelte-8w79b9"&&(t.textContent=b)},m(l,c){x(l,t,c)},p:D,d(l){l&&d(t)}}}function Ig(T){let t,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",l,c,M="This function is experimental and might change in the future.";return{c(){t=n("p"),t.textContent=b,l=a(),c=n("p"),c.textContent=M},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-15l1sdn"&&(t.textContent=b),l=r(i),c=s(i,"P",{"data-svelte-h":!0}),f(c)!=="svelte-3fufvn"&&(c.textContent=M)},m(i,y){x(i,t,y),x(i,l,y),x(i,c,y)},p:D,d(i){i&&(d(t),d(l),d(c))}}}function Vg(T){let t,b="This is an experimental API.";return{c(){t=n("p"),t.textContent=b},l(l){t=s(l,"P",{"data-svelte-h":!0}),f(t)!=="svelte-8w79b9"&&(t.textContent=b)},m(l,c){x(l,t,c)},p:D,d(l){l&&d(t)}}}function Wg(T){let t,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",l,c,M="This function is experimental and might change in the future.";return{c(){t=n("p"),t.textContent=b,l=a(),c=n("p"),c.textContent=M},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-15l1sdn"&&(t.textContent=b),l=r(i),c=s(i,"P",{"data-svelte-h":!0}),f(c)!=="svelte-3fufvn"&&(c.textContent=M)},m(i,y){x(i,t,y),x(i,l,y),x(i,c,y)},p:D,d(i){i&&(d(t),d(l),d(c))}}}function Pg(T){let t,b="This is an experimental API.";return{c(){t=n("p"),t.textContent=b},l(l){t=s(l,"P",{"data-svelte-h":!0}),f(t)!=="svelte-8w79b9"&&(t.textContent=b)},m(l,c){x(l,t,c)},p:D,d(l){l&&d(t)}}}function Ug(T){let t,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",l,c,M="This function is experimental and might change in the future.";return{c(){t=n("p"),t.textContent=b,l=a(),c=n("p"),c.textContent=M},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-15l1sdn"&&(t.textContent=b),l=r(i),c=s(i,"P",{"data-svelte-h":!0}),f(c)!=="svelte-3fufvn"&&(c.textContent=M)},m(i,y){x(i,t,y),x(i,l,y),x(i,c,y)},p:D,d(i){i&&(d(t),d(l),d(c))}}}function Hg(T){let t,b="This is an experimental API.";return{c(){t=n("p"),t.textContent=b},l(l){t=s(l,"P",{"data-svelte-h":!0}),f(t)!=="svelte-8w79b9"&&(t.textContent=b)},m(l,c){x(l,t,c)},p:D,d(l){l&&d(t)}}}function Fg(T){let t,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",l,c,M="This function is experimental and might change in the future.";return{c(){t=n("p"),t.textContent=b,l=a(),c=n("p"),c.textContent=M},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-15l1sdn"&&(t.textContent=b),l=r(i),c=s(i,"P",{"data-svelte-h":!0}),f(c)!=="svelte-3fufvn"&&(c.textContent=M)},m(i,y){x(i,t,y),x(i,l,y),x(i,c,y)},p:D,d(i){i&&(d(t),d(l),d(c))}}}function Xg(T){let t,b="This is an experimental API.";return{c(){t=n("p"),t.textContent=b},l(l){t=s(l,"P",{"data-svelte-h":!0}),f(t)!=="svelte-8w79b9"&&(t.textContent=b)},m(l,c){x(l,t,c)},p:D,d(l){l&&d(t)}}}function Eg(T){let t,b="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",l,c,M="This function is experimental and might change in the future.";return{c(){t=n("p"),t.textContent=b,l=a(),c=n("p"),c.textContent=M},l(i){t=s(i,"P",{"data-svelte-h":!0}),f(t)!=="svelte-15l1sdn"&&(t.textContent=b),l=r(i),c=s(i,"P",{"data-svelte-h":!0}),f(c)!=="svelte-3fufvn"&&(c.textContent=M)},m(i,y){x(i,t,y),x(i,l,y),x(i,c,y)},p:D,d(i){i&&(d(t),d(l),d(c))}}}function Ng(T){let t,b="This is an experimental API.";return{c(){t=n("p"),t.textContent=b},l(l){t=s(l,"P",{"data-svelte-h":!0}),f(t)!=="svelte-8w79b9"&&(t.textContent=b)},m(l,c){x(l,t,c)},p:D,d(l){l&&d(t)}}}function zg(T){let t,b,l,c,M,i,y,R_='LoRA is a fast and lightweight training method that inserts and trains a significantly smaller number of parameters instead of all the model parameters. This produces a smaller file (~100 MBs) and makes it easier to quickly train a model to learn a new concept. LoRA weights are typically loaded into the denoiser, text encoder or both. The denoiser usually corresponds to a UNet (<a href="/docs/diffusers/pr_11686/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>, for example) or a Transformer (<a href="/docs/diffusers/pr_11686/en/api/models/sd3_transformer2d#diffusers.SD3Transformer2DModel">SD3Transformer2DModel</a>, for example). There are several classes for loading LoRA weights:',Md,ta,I_='<li><code>StableDiffusionLoraLoaderMixin</code> provides functions for loading and unloading, fusing and unfusing, enabling and disabling, and more functions for managing LoRA weights. This class can be used with any model.</li> <li><code>StableDiffusionXLLoraLoaderMixin</code> is a <a href="../../api/pipelines/stable_diffusion/stable_diffusion_xl">Stable Diffusion (SDXL)</a> version of the <code>StableDiffusionLoraLoaderMixin</code> class for loading and saving LoRA weights. It can only be used with the SDXL model.</li> <li><code>SD3LoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/blog/sd3" rel="nofollow">Stable Diffusion 3</a>.</li> <li><code>FluxLoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/flux" rel="nofollow">Flux</a>.</li> <li><code>CogVideoXLoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/cogvideox" rel="nofollow">CogVideoX</a>.</li> <li><code>Mochi1LoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/mochi" rel="nofollow">Mochi</a>.</li> <li><code>AuraFlowLoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/fal/AuraFlow" rel="nofollow">AuraFlow</a>.</li> <li><code>LTXVideoLoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/ltx_video" rel="nofollow">LTX-Video</a>.</li> <li><code>SanaLoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/sana" rel="nofollow">Sana</a>.</li> <li><code>HunyuanVideoLoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/hunyuan_video" rel="nofollow">HunyuanVideo</a>.</li> <li><code>Lumina2LoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/lumina2" rel="nofollow">Lumina2</a>.</li> <li><code>WanLoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/wan" rel="nofollow">Wan</a>.</li> <li><code>CogView4LoraLoaderMixin</code> provides similar functions for <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/cogview4" rel="nofollow">CogView4</a>.</li> <li><code>AmusedLoraLoaderMixin</code> is for the <a href="/docs/diffusers/pr_11686/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>',Td,bo,Dd,aa,Cd,C,ra,Jl,Hn,V_="Utility class for handling LoRAs.",jl,ve,na,Gl,Fn,W_="Delete an adapter’s LoRA layers from the pipeline.",Zl,vo,Bl,we,sa,Yl,Xn,P_="Disables the active LoRA layers of the pipeline.",Ql,wo,Ol,$e,ia,Kl,En,U_="Enables the active LoRA layers of the pipeline.",ec,$o,oc,yo,da,tc,Nn,H_=`Hotswap adapters without triggering recompilation of a model or if the ranks of the loaded adapters are | |
| different.`,ac,he,la,rc,zn,F_="Fuses the LoRA parameters into the original parameters of the corresponding blocks.",nc,Mo,sc,To,ic,ye,ca,dc,qn,X_="Gets the list of the current active adapters.",lc,Do,cc,Co,fa,fc,Jn,E_="Gets the current list of all available adapters in the pipeline.",pc,Me,pa,mc,jn,N_="Set the currently active adapters for use in the pipeline.",_c,So,uc,ge,ma,hc,Gn,z_=`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.`,gc,Zn,q_=`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.`,Lc,Ao,xc,Te,_a,bc,Bn,J_=`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>.`,vc,ko,wc,De,ua,$c,Yn,j_="Unloads the LoRA parameters.",yc,Ro,Mc,Io,ha,Tc,Qn,G_="Writes the state dict of the LoRA layers (optionally with metadata) to disk.",Sd,ga,Ad,W,La,Dc,On,Z_=`Load LoRA layers into Stable Diffusion <a href="/docs/diffusers/pr_11686/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>.`,Cc,Vo,xa,Sc,Kn,B_="This will load the LoRA layers specified in <code>state_dict</code> into <code>text_encoder</code>",Ac,Wo,ba,kc,es,Y_="This will load the LoRA layers specified in <code>state_dict</code> into <code>unet</code>.",Rc,Q,va,Ic,os,Q_=`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>.`,Vc,ts,O_="All kwargs are forwarded to <code>self.lora_state_dict</code>.",Wc,as,K_=`See <a href="/docs/diffusers/pr_11686/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details on how the state dict is | |
| loaded.`,Pc,rs,eu=`See <a href="/docs/diffusers/pr_11686/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>.`,Uc,ns,ou=`See <a href="/docs/diffusers/pr_11686/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>.`,Hc,Ce,wa,Fc,ss,tu="Return state dict for lora weights and the network alphas.",Xc,Po,Ec,Uo,$a,Nc,is,au="Save the LoRA parameters corresponding to the UNet and text encoder.",kd,ya,Rd,P,Ma,zc,ds,ru=`Load LoRA layers into Stable Diffusion XL <a href="/docs/diffusers/pr_11686/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>.`,qc,Ho,Ta,Jc,ls,nu="This will load the LoRA layers specified in <code>state_dict</code> into <code>text_encoder</code>",jc,Fo,Da,Gc,cs,su="This will load the LoRA layers specified in <code>state_dict</code> into <code>unet</code>.",Zc,O,Ca,Bc,fs,iu=`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>.`,Yc,ps,du="All kwargs are forwarded to <code>self.lora_state_dict</code>.",Qc,ms,lu=`See <a href="/docs/diffusers/pr_11686/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details on how the state dict is | |
| loaded.`,Oc,_s,cu=`See <a href="/docs/diffusers/pr_11686/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>.`,Kc,us,fu=`See <a href="/docs/diffusers/pr_11686/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>.`,ef,Se,Sa,of,hs,pu="Return state dict for lora weights and the network alphas.",tf,Xo,af,Eo,Aa,rf,gs,mu="Save the LoRA parameters corresponding to the UNet and text encoder.",Id,ka,Vd,R,Ra,nf,Ls,_u=`Load LoRA layers into <a href="/docs/diffusers/pr_11686/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>.`,sf,xs,uu='Specific to <a href="/docs/diffusers/pr_11686/en/api/pipelines/stable_diffusion/stable_diffusion_3#diffusers.StableDiffusion3Pipeline">StableDiffusion3Pipeline</a>.',df,No,Ia,lf,bs,hu="This will load the LoRA layers specified in <code>state_dict</code> into <code>text_encoder</code>",cf,zo,Va,ff,vs,gu="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",pf,oe,Wa,mf,ws,Lu=`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>.`,_f,$s,xu="All kwargs are forwarded to <code>self.lora_state_dict</code>.",uf,ys,bu=`See <a href="/docs/diffusers/pr_11686/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details on how the state dict is | |
| loaded.`,hf,Ms,vu=`See <code>~loaders.StableDiffusionLoraLoaderMixin.load_lora_into_transformer</code> for more details on how the state | |
| dict is loaded into <code>self.transformer</code>.`,gf,Ae,Pa,Lf,Ts,wu="Return state dict for lora weights and the network alphas.",xf,qo,bf,Jo,Ua,vf,Ds,$u="Save the LoRA parameters corresponding to the UNet and text encoder.",wf,ke,Ha,$f,Cs,yu=`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>.`,yf,jo,Wd,Fa,Pd,k,Xa,Mf,Ss,Mu=`Load LoRA layers into <a href="/docs/diffusers/pr_11686/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>.`,Tf,As,Tu='Specific to <a href="/docs/diffusers/pr_11686/en/api/pipelines/stable_diffusion/stable_diffusion_3#diffusers.StableDiffusion3Pipeline">StableDiffusion3Pipeline</a>.',Df,Go,Ea,Cf,ks,Du="This will load the LoRA layers specified in <code>state_dict</code> into <code>text_encoder</code>",Sf,Zo,Na,Af,Rs,Cu="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",kf,te,za,Rf,Is,Su=`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>.`,If,Vs,Au="All kwargs are forwarded to <code>self.lora_state_dict</code>.",Vf,Ws,ku=`See <a href="/docs/diffusers/pr_11686/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details on how the state dict is | |
| loaded.`,Wf,Ps,Ru=`See <code>~loaders.StableDiffusionLoraLoaderMixin.load_lora_into_transformer</code> for more details on how the state | |
| dict is loaded into <code>self.transformer</code>.`,Pf,Re,qa,Uf,Us,Iu="Return state dict for lora weights and the network alphas.",Hf,Bo,Ff,Yo,Ja,Xf,Hs,Vu="Save the LoRA parameters corresponding to the UNet and text encoder.",Ef,Ie,ja,Nf,Fs,Wu=`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>.`,zf,Qo,qf,Ve,Ga,Jf,Xs,Pu="Unloads the LoRA parameters.",jf,Oo,Ud,Za,Hd,U,Ba,Gf,Es,Uu='Load LoRA layers into <a href="/docs/diffusers/pr_11686/en/api/models/cogvideox_transformer3d#diffusers.CogVideoXTransformer3DModel">CogVideoXTransformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_11686/en/api/pipelines/cogvideox#diffusers.CogVideoXPipeline">CogVideoXPipeline</a>.',Zf,Ko,Ya,Bf,Ns,Hu="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",Yf,et,Qa,Qf,zs,Fu=`Load LoRA weights specified in <code>pretrained_model_name_or_path_or_dict</code> into <code>self.transformer</code> and | |
| <code>self.text_encoder</code>. All kwargs are forwarded to <code>self.lora_state_dict</code>. See | |
| <a href="/docs/diffusers/pr_11686/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>.`,Of,We,Oa,Kf,qs,Xu="Return state dict for lora weights and the network alphas.",ep,ot,op,tt,Ka,tp,Js,Eu="Save the LoRA parameters corresponding to the transformer.",ap,Pe,er,rp,js,Nu=`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>.`,np,at,Fd,or,Xd,H,tr,sp,Gs,zu='Load LoRA layers into <a href="/docs/diffusers/pr_11686/en/api/models/mochi_transformer3d#diffusers.MochiTransformer3DModel">MochiTransformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_11686/en/api/pipelines/mochi#diffusers.MochiPipeline">MochiPipeline</a>.',ip,rt,ar,dp,Zs,qu="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",lp,nt,rr,cp,Bs,Ju=`Load LoRA weights specified in <code>pretrained_model_name_or_path_or_dict</code> into <code>self.transformer</code> and | |
| <code>self.text_encoder</code>. All kwargs are forwarded to <code>self.lora_state_dict</code>. See | |
| <a href="/docs/diffusers/pr_11686/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>.`,fp,Ue,nr,pp,Ys,ju="Return state dict for lora weights and the network alphas.",mp,st,_p,it,sr,up,Qs,Gu="Save the LoRA parameters corresponding to the transformer.",hp,He,ir,gp,Os,Zu=`Reverses the effect of | |
| <a href="https://huggingface.co/docs/diffusers/main/en/api/loaders#diffusers.loaders.LoraBaseMixin.fuse_lora" rel="nofollow"><code>pipe.fuse_lora()</code></a>.`,Lp,dt,Ed,dr,Nd,F,lr,xp,Ks,Bu='Load LoRA layers into <a href="/docs/diffusers/pr_11686/en/api/models/aura_flow_transformer2d#diffusers.AuraFlowTransformer2DModel">AuraFlowTransformer2DModel</a> Specific to <a href="/docs/diffusers/pr_11686/en/api/pipelines/aura_flow#diffusers.AuraFlowPipeline">AuraFlowPipeline</a>.',bp,lt,cr,vp,ei,Yu="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",wp,ct,fr,$p,oi,Qu=`Load LoRA weights specified in <code>pretrained_model_name_or_path_or_dict</code> into <code>self.transformer</code> and | |
| <code>self.text_encoder</code>. All kwargs are forwarded to <code>self.lora_state_dict</code>. See | |
| <a href="/docs/diffusers/pr_11686/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>.`,yp,Fe,pr,Mp,ti,Ou="Return state dict for lora weights and the network alphas.",Tp,ft,Dp,pt,mr,Cp,ai,Ku="Save the LoRA parameters corresponding to the transformer.",Sp,Xe,_r,Ap,ri,eh=`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,mt,zd,ur,qd,X,hr,Rp,ni,oh='Load LoRA layers into <a href="/docs/diffusers/pr_11686/en/api/models/ltx_video_transformer3d#diffusers.LTXVideoTransformer3DModel">LTXVideoTransformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_11686/en/api/pipelines/ltx_video#diffusers.LTXPipeline">LTXPipeline</a>.',Ip,_t,gr,Vp,si,th="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",Wp,ut,Lr,Pp,ii,ah=`Load LoRA weights specified in <code>pretrained_model_name_or_path_or_dict</code> into <code>self.transformer</code> and | |
| <code>self.text_encoder</code>. All kwargs are forwarded to <code>self.lora_state_dict</code>. See | |
| <a href="/docs/diffusers/pr_11686/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>.`,Up,Ee,xr,Hp,di,rh="Return state dict for lora weights and the network alphas.",Fp,ht,Xp,gt,br,Ep,li,nh="Save the LoRA parameters corresponding to the transformer.",Np,Ne,vr,zp,ci,sh=`Reverses the effect of | |
| <a href="https://huggingface.co/docs/diffusers/main/en/api/loaders#diffusers.loaders.LoraBaseMixin.fuse_lora" rel="nofollow"><code>pipe.fuse_lora()</code></a>.`,qp,Lt,Jd,wr,jd,E,$r,Jp,fi,ih='Load LoRA layers into <a href="/docs/diffusers/pr_11686/en/api/models/sana_transformer2d#diffusers.SanaTransformer2DModel">SanaTransformer2DModel</a>. Specific to <a href="/docs/diffusers/pr_11686/en/api/pipelines/sana#diffusers.SanaPipeline">SanaPipeline</a>.',jp,xt,yr,Gp,pi,dh="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",Zp,bt,Mr,Bp,mi,lh=`Load LoRA weights specified in <code>pretrained_model_name_or_path_or_dict</code> into <code>self.transformer</code> and | |
| <code>self.text_encoder</code>. All kwargs are forwarded to <code>self.lora_state_dict</code>. See | |
| <a href="/docs/diffusers/pr_11686/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>.`,Yp,ze,Tr,Qp,_i,ch="Return state dict for lora weights and the network alphas.",Op,vt,Kp,wt,Dr,em,ui,fh="Save the LoRA parameters corresponding to the transformer.",om,qe,Cr,tm,hi,ph=`Reverses the effect of | |
| <a href="https://huggingface.co/docs/diffusers/main/en/api/loaders#diffusers.loaders.LoraBaseMixin.fuse_lora" rel="nofollow"><code>pipe.fuse_lora()</code></a>.`,am,$t,Gd,Sr,Zd,N,Ar,rm,gi,mh='Load LoRA layers into <a href="/docs/diffusers/pr_11686/en/api/models/hunyuan_video_transformer_3d#diffusers.HunyuanVideoTransformer3DModel">HunyuanVideoTransformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_11686/en/api/pipelines/hunyuan_video#diffusers.HunyuanVideoPipeline">HunyuanVideoPipeline</a>.',nm,yt,kr,sm,Li,_h="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",im,Mt,Rr,dm,xi,uh=`Load LoRA weights specified in <code>pretrained_model_name_or_path_or_dict</code> into <code>self.transformer</code> and | |
| <code>self.text_encoder</code>. All kwargs are forwarded to <code>self.lora_state_dict</code>. See | |
| <a href="/docs/diffusers/pr_11686/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>.`,lm,Je,Ir,cm,bi,hh="Return state dict for lora weights and the network alphas.",fm,Tt,pm,Dt,Vr,mm,vi,gh="Save the LoRA parameters corresponding to the transformer.",_m,je,Wr,um,wi,Lh=`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>.`,hm,Ct,Bd,Pr,Yd,z,Ur,gm,$i,xh='Load LoRA layers into <a href="/docs/diffusers/pr_11686/en/api/models/lumina2_transformer2d#diffusers.Lumina2Transformer2DModel">Lumina2Transformer2DModel</a>. Specific to <code>Lumina2Text2ImgPipeline</code>.',Lm,St,Hr,xm,yi,bh="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",bm,At,Fr,vm,Mi,vh=`Load LoRA weights specified in <code>pretrained_model_name_or_path_or_dict</code> into <code>self.transformer</code> and | |
| <code>self.text_encoder</code>. All kwargs are forwarded to <code>self.lora_state_dict</code>. See | |
| <a href="/docs/diffusers/pr_11686/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>.`,wm,Ge,Xr,$m,Ti,wh="Return state dict for lora weights and the network alphas.",ym,kt,Mm,Rt,Er,Tm,Di,$h="Save the LoRA parameters corresponding to the transformer.",Dm,Ze,Nr,Cm,Ci,yh=`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>.`,Sm,It,Qd,zr,Od,q,qr,Am,Si,Mh='Load LoRA layers into <a href="/docs/diffusers/pr_11686/en/api/models/wan_transformer_3d#diffusers.WanTransformer3DModel">WanTransformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_11686/en/api/pipelines/cogview4#diffusers.CogView4Pipeline">CogView4Pipeline</a>.',km,Vt,Jr,Rm,Ai,Th="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",Im,Wt,jr,Vm,ki,Dh=`Load LoRA weights specified in <code>pretrained_model_name_or_path_or_dict</code> into <code>self.transformer</code> and | |
| <code>self.text_encoder</code>. All kwargs are forwarded to <code>self.lora_state_dict</code>. See | |
| <a href="/docs/diffusers/pr_11686/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>.`,Wm,Be,Gr,Pm,Ri,Ch="Return state dict for lora weights and the network alphas.",Um,Pt,Hm,Ut,Zr,Fm,Ii,Sh="Save the LoRA parameters corresponding to the transformer.",Xm,Ye,Br,Em,Vi,Ah=`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>.`,Nm,Ht,Kd,Yr,el,J,Qr,zm,Wi,kh='Load LoRA layers into <a href="/docs/diffusers/pr_11686/en/api/models/wan_transformer_3d#diffusers.WanTransformer3DModel">WanTransformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_11686/en/api/pipelines/wan#diffusers.WanPipeline">WanPipeline</a> and <code>[WanImageToVideoPipeline</code>].',qm,Ft,Or,Jm,Pi,Rh="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",jm,Xt,Kr,Gm,Ui,Ih=`Load LoRA weights specified in <code>pretrained_model_name_or_path_or_dict</code> into <code>self.transformer</code> and | |
| <code>self.text_encoder</code>. All kwargs are forwarded to <code>self.lora_state_dict</code>. See | |
| <a href="/docs/diffusers/pr_11686/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>.`,Zm,Qe,en,Bm,Hi,Vh="Return state dict for lora weights and the network alphas.",Ym,Et,Qm,Nt,on,Om,Fi,Wh="Save the LoRA parameters corresponding to the transformer.",Km,Oe,tn,e_,Xi,Ph=`Reverses the effect of | |
| <a href="https://huggingface.co/docs/diffusers/main/en/api/loaders#diffusers.loaders.LoraBaseMixin.fuse_lora" rel="nofollow"><code>pipe.fuse_lora()</code></a>.`,o_,zt,ol,an,tl,Le,rn,t_,qt,nn,a_,Ei,Uh="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",r_,Jt,sn,n_,Ni,Hh="Save the LoRA parameters corresponding to the UNet and text encoder.",al,dn,rl,j,ln,s_,zi,Fh='Load LoRA layers into <a href="/docs/diffusers/pr_11686/en/api/models/hidream_image_transformer#diffusers.HiDreamImageTransformer2DModel">HiDreamImageTransformer2DModel</a>. Specific to <a href="/docs/diffusers/pr_11686/en/api/pipelines/hidream#diffusers.HiDreamImagePipeline">HiDreamImagePipeline</a>.',i_,jt,cn,d_,qi,Xh="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",l_,Gt,fn,c_,Ji,Eh=`Load LoRA weights specified in <code>pretrained_model_name_or_path_or_dict</code> into <code>self.transformer</code> and | |
| <code>self.text_encoder</code>. All kwargs are forwarded to <code>self.lora_state_dict</code>. See | |
| <a href="/docs/diffusers/pr_11686/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>.`,f_,Ke,pn,p_,ji,Nh="Return state dict for lora weights and the network alphas.",m_,Zt,__,Bt,mn,u_,Gi,zh="Save the LoRA parameters corresponding to the transformer.",h_,eo,_n,g_,Zi,qh=`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>.`,L_,Yt,nl,un,sl,G,hn,x_,Bi,Jh='Load LoRA layers into <a href="/docs/diffusers/pr_11686/en/api/models/wan_transformer_3d#diffusers.WanTransformer3DModel">WanTransformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_11686/en/api/pipelines/wan#diffusers.WanPipeline">WanPipeline</a> and <code>[WanImageToVideoPipeline</code>].',b_,Qt,gn,v_,Yi,jh="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",w_,Ot,Ln,$_,Qi,Gh=`Load LoRA weights specified in <code>pretrained_model_name_or_path_or_dict</code> into <code>self.transformer</code> and | |
| <code>self.text_encoder</code>. All kwargs are forwarded to <code>self.lora_state_dict</code>. See | |
| <a href="/docs/diffusers/pr_11686/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>.`,y_,oo,xn,M_,Oi,Zh="Return state dict for lora weights and the network alphas.",T_,Kt,D_,ea,bn,C_,Ki,Bh="Save the LoRA parameters corresponding to the transformer.",S_,to,vn,A_,ed,Yh=`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>.`,k_,oa,il,wn,dl,yd,ll;return M=new Z({props:{title:"LoRA",local:"lora",headingTag:"h1"}}),bo=new A({props:{$$slots:{default:[ag]},$$scope:{ctx:T}}}),aa=new Z({props:{title:"LoraBaseMixin",local:"diffusers.loaders.lora_base.LoraBaseMixin",headingTag:"h2"}}),ra=new $({props:{name:"class diffusers.loaders.lora_base.LoraBaseMixin",anchor:"diffusers.loaders.lora_base.LoraBaseMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_base.py#L478"}}),na=new $({props:{name:"delete_adapters",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.delete_adapters",parameters:[{name:"adapter_names",val:": typing.Union[typing.List[str], str]"}],parametersDescription:[{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.delete_adapters.adapter_names",description:`<strong>adapter_names</strong> (<code>Union[List[str], str]</code>) — | |
| The names of the adapters to delete.`,name:"adapter_names"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_base.py#L842"}}),vo=new Lo({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.delete_adapters.example",$$slots:{default:[rg]},$$scope:{ctx:T}}}),sa=new $({props:{name:"disable_lora",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.disable_lora",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_base.py#L782"}}),wo=new Lo({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.disable_lora.example",$$slots:{default:[ng]},$$scope:{ctx:T}}}),ia=new $({props:{name:"enable_lora",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.enable_lora",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_base.py#L812"}}),$o=new Lo({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.enable_lora.example",$$slots:{default:[sg]},$$scope:{ctx:T}}}),da=new $({props:{name:"enable_lora_hotswap",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.enable_lora_hotswap",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.enable_lora_hotswap.target_rank",description:`<strong>target_rank</strong> (<code>int</code>) — | |
| 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>"error"</code>) — | |
| How to handle a model that is already compiled. The check can return the following messages:<ul> | |
| <li>“error” (default): raise an error</li> | |
| <li>“warn”: issue a warning</li> | |
| <li>“ignore”: do nothing</li> | |
| </ul>`,name:"check_compiled"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_base.py#L989"}}),la=new $({props:{name:"fuse_lora",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.fuse_lora",parameters:[{name:"components",val:": typing.List[str] = []"},{name:"lora_scale",val:": float = 1.0"},{name:"safe_fusing",val:": bool = False"},{name:"adapter_names",val:": typing.Optional[typing.List[str]] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.fuse_lora.components",description:"<strong>components</strong> — (<code>List[str]</code>): List of LoRA-injectable components to fuse the LoRAs into.",name:"components"},{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.fuse_lora.lora_scale",description:`<strong>lora_scale</strong> (<code>float</code>, defaults to 1.0) — | |
| Controls how much to influence the outputs with the LoRA parameters.`,name:"lora_scale"},{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.fuse_lora.safe_fusing",description:`<strong>safe_fusing</strong> (<code>bool</code>, defaults to <code>False</code>) — | |
| Whether to check fused weights for NaN values before fusing and if values are NaN not fusing them.`,name:"safe_fusing"},{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.fuse_lora.adapter_names",description:`<strong>adapter_names</strong> (<code>List[str]</code>, <em>optional</em>) — | |
| Adapter names to be used for fusing. If nothing is passed, all active adapters will be fused.`,name:"adapter_names"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_base.py#L536"}}),Mo=new A({props:{warning:!0,$$slots:{default:[ig]},$$scope:{ctx:T}}}),To=new Lo({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.fuse_lora.example",$$slots:{default:[dg]},$$scope:{ctx:T}}}),ca=new $({props:{name:"get_active_adapters",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.get_active_adapters",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_base.py#L880"}}),Do=new Lo({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.get_active_adapters.example",$$slots:{default:[lg]},$$scope:{ctx:T}}}),fa=new $({props:{name:"get_list_adapters",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.get_list_adapters",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_base.py#L913"}}),pa=new $({props:{name:"set_adapters",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_adapters",parameters:[{name:"adapter_names",val:": typing.Union[typing.List[str], str]"},{name:"adapter_weights",val:": typing.Union[float, typing.Dict, typing.List[float], typing.List[typing.Dict], NoneType] = None"}],parametersDescription:[{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_adapters.adapter_names",description:`<strong>adapter_names</strong> (<code>List[str]</code> or <code>str</code>) — | |
| 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>) — | |
| The adapter(s) weights to use with the UNet. If <code>None</code>, the weights are set to <code>1.0</code> for all the | |
| adapters.`,name:"adapter_weights"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_base.py#L683"}}),So=new Lo({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_adapters.example",$$slots:{default:[cg]},$$scope:{ctx:T}}}),ma=new $({props:{name:"set_lora_device",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_lora_device",parameters:[{name:"adapter_names",val:": typing.List[str]"},{name:"device",val:": typing.Union[torch.device, str, int]"}],parametersDescription:[{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_lora_device.adapter_names",description:`<strong>adapter_names</strong> (<code>List[str]</code>) — | |
| List of adapters to send device to.`,name:"adapter_names"},{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_lora_device.device",description:`<strong>device</strong> (<code>Union[torch.device, str, int]</code>) — | |
| Device to send the adapters to. Can be either a torch device, a str or an integer.`,name:"device"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_base.py#L935"}}),Ao=new Lo({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.set_lora_device.example",$$slots:{default:[fg]},$$scope:{ctx:T}}}),_a=new $({props:{name:"unfuse_lora",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.unfuse_lora",parameters:[{name:"components",val:": typing.List[str] = []"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>List[str]</code>) — List of LoRA-injectable components to unfuse LoRA from.",name:"components"},{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.unfuse_lora.unfuse_unet",description:"<strong>unfuse_unet</strong> (<code>bool</code>, defaults to <code>True</code>) — Whether to unfuse the UNet LoRA parameters.",name:"unfuse_unet"},{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.unfuse_lora.unfuse_text_encoder",description:`<strong>unfuse_text_encoder</strong> (<code>bool</code>, defaults to <code>True</code>) — | |
| Whether to unfuse the text encoder LoRA parameters. If the text encoder wasn’t monkey-patched with the | |
| LoRA parameters then it won’t have any effect.`,name:"unfuse_text_encoder"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_base.py#L626"}}),ko=new A({props:{warning:!0,$$slots:{default:[pg]},$$scope:{ctx:T}}}),ua=new $({props:{name:"unload_lora_weights",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.unload_lora_weights",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_base.py#L513"}}),Ro=new Lo({props:{anchor:"diffusers.loaders.lora_base.LoraBaseMixin.unload_lora_weights.example",$$slots:{default:[mg]},$$scope:{ctx:T}}}),ha=new $({props:{name:"write_lora_layers",anchor:"diffusers.loaders.lora_base.LoraBaseMixin.write_lora_layers",parameters:[{name:"state_dict",val:": typing.Dict[str, torch.Tensor]"},{name:"save_directory",val:": str"},{name:"is_main_process",val:": bool"},{name:"weight_name",val:": str"},{name:"save_function",val:": typing.Callable"},{name:"safe_serialization",val:": bool"},{name:"lora_adapter_metadata",val:": typing.Optional[dict] = None"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_base.py#L1012"}}),ga=new Z({props:{title:"StableDiffusionLoraLoaderMixin",local:"diffusers.loaders.StableDiffusionLoraLoaderMixin",headingTag:"h2"}}),La=new $({props:{name:"class diffusers.loaders.StableDiffusionLoraLoaderMixin",anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L127"}}),xa=new $({props:{name:"load_lora_into_text_encoder",anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_text_encoder",parameters:[{name:"state_dict",val:""},{name:"network_alphas",val:""},{name:"text_encoder",val:""},{name:"prefix",val:" = None"},{name:"lora_scale",val:" = 1.0"},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_text_encoder.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) — | |
| A standard state dict containing the lora layer parameters. The key should be prefixed with an | |
| additional <code>text_encoder</code> to distinguish between unet lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_text_encoder.network_alphas",description:`<strong>network_alphas</strong> (<code>Dict[str, float]</code>) — | |
| The value of the network alpha used for stable learning and preventing underflow. This value has the | |
| same meaning as the <code>--network_alpha</code> option in the kohya-ss trainer script. Refer to <a href="https://github.com/darkstorm2150/sd-scripts/blob/main/docs/train_network_README-en.md#execute-learning" rel="nofollow">this | |
| link</a>.`,name:"network_alphas"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_text_encoder.text_encoder",description:`<strong>text_encoder</strong> (<code>CLIPTextModel</code>) — | |
| The text encoder model to load the LoRA layers into.`,name:"text_encoder"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_text_encoder.prefix",description:`<strong>prefix</strong> (<code>str</code>) — | |
| Expected prefix of the <code>text_encoder</code> in the <code>state_dict</code>.`,name:"prefix"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_text_encoder.lora_scale",description:`<strong>lora_scale</strong> (<code>float</code>) — | |
| How much to scale the output of the lora linear layer before it is added with the output of the regular | |
| lora layer.`,name:"lora_scale"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_text_encoder.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) — | |
| Adapter name to be used for referencing the loaded adapter model. If not specified, it will use | |
| <code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_text_encoder.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) — | |
| Speed up model loading by only loading the pretrained LoRA weights and not initializing the random | |
| weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_text_encoder.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won’t be derived | |
| from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L415"}}),ba=new $({props:{name:"load_lora_into_unet",anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet",parameters:[{name:"state_dict",val:""},{name:"network_alphas",val:""},{name:"unet",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) — | |
| A standard state dict containing the lora layer parameters. The keys can either be indexed directly | |
| into the unet or prefixed with an additional <code>unet</code> which can be used to distinguish between text | |
| encoder lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet.network_alphas",description:`<strong>network_alphas</strong> (<code>Dict[str, float]</code>) — | |
| The value of the network alpha used for stable learning and preventing underflow. This value has the | |
| same meaning as the <code>--network_alpha</code> option in the kohya-ss trainer script. Refer to <a href="https://github.com/darkstorm2150/sd-scripts/blob/main/docs/train_network_README-en.md#execute-learning" rel="nofollow">this | |
| link</a>.`,name:"network_alphas"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet.unet",description:`<strong>unet</strong> (<code>UNet2DConditionModel</code>) — | |
| The UNet model to load the LoRA layers into.`,name:"unet"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) — | |
| Adapter name to be used for referencing the loaded adapter model. If not specified, it will use | |
| <code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) — | |
| Speed up model loading only loading the pretrained LoRA weights and not initializing the random | |
| weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_into_unet.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won’t be derived | |
| from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L354"}}),va=new $({props:{name:"load_lora_weights",anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"adapter_name",val:": typing.Optional[str] = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) — | |
| See <a href="/docs/diffusers/pr_11686/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"pretrained_model_name_or_path_or_dict"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) — | |
| Adapter name to be used for referencing the loaded adapter model. If not specified, it will use | |
| <code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) — | |
| Speed up model loading by only loading the pretrained LoRA weights and not initializing the random | |
| weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.load_lora_weights.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) — | |
| Defaults to <code>False</code>. Whether to substitute an existing (LoRA) adapter with the newly loaded adapter | |
| in-place. This means that, instead of loading an additional adapter, this will take the existing | |
| adapter weights and replace them with the weights of the new adapter. This can be faster and more | |
| memory efficient. However, the main advantage of hotswapping is that when the model is compiled with | |
| torch.compile, loading the new adapter does not require recompilation of the model. When using | |
| hotswapping, the passed <code>adapter_name</code> should be the name of an already loaded adapter.</p> | |
| <p>If the new adapter and the old adapter have different ranks and/or LoRA alphas (i.e. scaling), you need | |
| to call an additional method before loading the adapter:`,name:"hotswap"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L137"}}),wa=new $({props:{name:"lora_state_dict",anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) — | |
| Can be either:</p> | |
| <ul> | |
| <li>A string, the <em>model id</em> (for example <code>google/ddpm-celebahq-256</code>) of a pretrained model hosted on | |
| the Hub.</li> | |
| <li>A path to a <em>directory</em> (for example <code>./my_model_directory</code>) containing the model weights saved | |
| with <a href="/docs/diffusers/pr_11686/en/api/models/overview#diffusers.ModelMixin.save_pretrained">ModelMixin.save_pretrained()</a>.</li> | |
| <li>A <a href="https://pytorch.org/tutorials/beginner/saving_loading_models.html#what-is-a-state-dict" rel="nofollow">torch state | |
| dict</a>.</li> | |
| </ul>`,name:"pretrained_model_name_or_path_or_dict"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) — | |
| Path to a directory where a downloaded pretrained model configuration is cached if the standard cache | |
| is not used.`,name:"cache_dir"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether or not to force the (re-)download of the model weights and configuration files, overriding the | |
| cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) — | |
| A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model | |
| won’t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) — | |
| The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from | |
| <code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>"main"</code>) — | |
| The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier | |
| allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>""</code>) — | |
| The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict.weight_name",description:`<strong>weight_name</strong> (<code>str</code>, <em>optional</em>, defaults to None) — | |
| Name of the serialized state dict file.`,name:"weight_name"},{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) — | |
| When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.`,name:"return_lora_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L238"}}),Po=new A({props:{warning:!0,$$slots:{default:[_g]},$$scope:{ctx:T}}}),$a=new $({props:{name:"save_lora_weights",anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"unet_lora_layers",val:": typing.Dict[str, typing.Union[torch.nn.modules.module.Module, torch.Tensor]] = None"},{name:"text_encoder_lora_layers",val:": typing.Dict[str, torch.nn.modules.module.Module] = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"unet_lora_adapter_metadata",val:" = None"},{name:"text_encoder_lora_adapter_metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) — | |
| Directory to save LoRA parameters to. Will be created if it doesn’t exist.`,name:"save_directory"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights.unet_lora_layers",description:`<strong>unet_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) — | |
| State dict of the LoRA layers corresponding to the <code>unet</code>.`,name:"unet_lora_layers"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights.text_encoder_lora_layers",description:`<strong>text_encoder_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) — | |
| State dict of the LoRA layers corresponding to the <code>text_encoder</code>. Must explicitly pass the text | |
| encoder LoRA state dict because it comes from 🤗 Transformers.`,name:"text_encoder_lora_layers"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| Whether the process calling this is the main process or not. Useful during distributed training and you | |
| need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on the main | |
| process to avoid race conditions.`,name:"is_main_process"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) — | |
| The function to use to save the state dictionary. Useful during distributed training when you need to | |
| replace <code>torch.save</code> with another method. Can be configured with the environment variable | |
| <code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"},{anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin.save_lora_weights.unet_lora_adapter_metadata",description:`<strong>unet_lora_adapter_metadata</strong> — | |
| 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> — | |
| LoRA adapter metadata associated with the text encoder to be serialized with the state dict.`,name:"text_encoder_lora_adapter_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L473"}}),ya=new Z({props:{title:"StableDiffusionXLLoraLoaderMixin",local:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin",headingTag:"h2"}}),Ma=new $({props:{name:"class diffusers.loaders.StableDiffusionXLLoraLoaderMixin",anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L611"}}),Ta=new $({props:{name:"load_lora_into_text_encoder",anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_text_encoder",parameters:[{name:"state_dict",val:""},{name:"network_alphas",val:""},{name:"text_encoder",val:""},{name:"prefix",val:" = None"},{name:"lora_scale",val:" = 1.0"},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_text_encoder.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) — | |
| A standard state dict containing the lora layer parameters. The key should be prefixed with an | |
| additional <code>text_encoder</code> to distinguish between unet lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_text_encoder.network_alphas",description:`<strong>network_alphas</strong> (<code>Dict[str, float]</code>) — | |
| The value of the network alpha used for stable learning and preventing underflow. This value has the | |
| same meaning as the <code>--network_alpha</code> option in the kohya-ss trainer script. Refer to <a href="https://github.com/darkstorm2150/sd-scripts/blob/main/docs/train_network_README-en.md#execute-learning" rel="nofollow">this | |
| link</a>.`,name:"network_alphas"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_text_encoder.text_encoder",description:`<strong>text_encoder</strong> (<code>CLIPTextModel</code>) — | |
| The text encoder model to load the LoRA layers into.`,name:"text_encoder"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_text_encoder.prefix",description:`<strong>prefix</strong> (<code>str</code>) — | |
| Expected prefix of the <code>text_encoder</code> in the <code>state_dict</code>.`,name:"prefix"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_text_encoder.lora_scale",description:`<strong>lora_scale</strong> (<code>float</code>) — | |
| How much to scale the output of the lora linear layer before it is added with the output of the regular | |
| lora layer.`,name:"lora_scale"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_text_encoder.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) — | |
| Adapter name to be used for referencing the loaded adapter model. If not specified, it will use | |
| <code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_text_encoder.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) — | |
| Speed up model loading by only loading the pretrained LoRA weights and not initializing the random | |
| weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_text_encoder.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won’t be derived | |
| from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L901"}}),Da=new $({props:{name:"load_lora_into_unet",anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_unet",parameters:[{name:"state_dict",val:""},{name:"network_alphas",val:""},{name:"unet",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_unet.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) — | |
| A standard state dict containing the lora layer parameters. The keys can either be indexed directly | |
| into the unet or prefixed with an additional <code>unet</code> which can be used to distinguish between text | |
| encoder lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_unet.network_alphas",description:`<strong>network_alphas</strong> (<code>Dict[str, float]</code>) — | |
| The value of the network alpha used for stable learning and preventing underflow. This value has the | |
| same meaning as the <code>--network_alpha</code> option in the kohya-ss trainer script. Refer to <a href="https://github.com/darkstorm2150/sd-scripts/blob/main/docs/train_network_README-en.md#execute-learning" rel="nofollow">this | |
| link</a>.`,name:"network_alphas"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_unet.unet",description:`<strong>unet</strong> (<code>UNet2DConditionModel</code>) — | |
| The UNet model to load the LoRA layers into.`,name:"unet"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_unet.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) — | |
| Adapter name to be used for referencing the loaded adapter model. If not specified, it will use | |
| <code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_unet.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) — | |
| Speed up model loading only loading the pretrained LoRA weights and not initializing the random | |
| weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_into_unet.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won’t be derived | |
| from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L839"}}),Ca=new $({props:{name:"load_lora_weights",anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_weights",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"adapter_name",val:": typing.Optional[str] = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_weights.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) — | |
| See <a href="/docs/diffusers/pr_11686/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"pretrained_model_name_or_path_or_dict"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_weights.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) — | |
| Adapter name to be used for referencing the loaded adapter model. If not specified, it will use | |
| <code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_weights.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) — | |
| Speed up model loading by only loading the pretrained LoRA weights and not initializing the random | |
| weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.load_lora_weights.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| See <a href="/docs/diffusers/pr_11686/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L622"}}),Sa=new $({props:{name:"lora_state_dict",anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.lora_state_dict",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.lora_state_dict.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) — | |
| Can be either:</p> | |
| <ul> | |
| <li>A string, the <em>model id</em> (for example <code>google/ddpm-celebahq-256</code>) of a pretrained model hosted on | |
| the Hub.</li> | |
| <li>A path to a <em>directory</em> (for example <code>./my_model_directory</code>) containing the model weights saved | |
| with <a href="/docs/diffusers/pr_11686/en/api/models/overview#diffusers.ModelMixin.save_pretrained">ModelMixin.save_pretrained()</a>.</li> | |
| <li>A <a href="https://pytorch.org/tutorials/beginner/saving_loading_models.html#what-is-a-state-dict" rel="nofollow">torch state | |
| dict</a>.</li> | |
| </ul>`,name:"pretrained_model_name_or_path_or_dict"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.lora_state_dict.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) — | |
| Path to a directory where a downloaded pretrained model configuration is cached if the standard cache | |
| is not used.`,name:"cache_dir"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.lora_state_dict.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether or not to force the (re-)download of the model weights and configuration files, overriding the | |
| cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.lora_state_dict.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) — | |
| A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model | |
| won’t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) — | |
| The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from | |
| <code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>"main"</code>) — | |
| The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier | |
| allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>""</code>) — | |
| The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.lora_state_dict.weight_name",description:`<strong>weight_name</strong> (<code>str</code>, <em>optional</em>, defaults to None) — | |
| Name of the serialized state dict file.`,name:"weight_name"},{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) — | |
| When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.`,name:"return_lora_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L722"}}),Xo=new A({props:{warning:!0,$$slots:{default:[ug]},$$scope:{ctx:T}}}),Aa=new $({props:{name:"save_lora_weights",anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.save_lora_weights",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"unet_lora_layers",val:": typing.Dict[str, typing.Union[torch.nn.modules.module.Module, torch.Tensor]] = None"},{name:"text_encoder_lora_layers",val:": typing.Dict[str, typing.Union[torch.nn.modules.module.Module, torch.Tensor]] = None"},{name:"text_encoder_2_lora_layers",val:": typing.Dict[str, typing.Union[torch.nn.modules.module.Module, torch.Tensor]] = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"unet_lora_adapter_metadata",val:" = None"},{name:"text_encoder_lora_adapter_metadata",val:" = None"},{name:"text_encoder_2_lora_adapter_metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) — | |
| Directory to save LoRA parameters to. Will be created if it doesn’t exist.`,name:"save_directory"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.save_lora_weights.unet_lora_layers",description:`<strong>unet_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) — | |
| State dict of the LoRA layers corresponding to the <code>unet</code>.`,name:"unet_lora_layers"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.save_lora_weights.text_encoder_lora_layers",description:`<strong>text_encoder_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) — | |
| State dict of the LoRA layers corresponding to the <code>text_encoder</code>. Must explicitly pass the text | |
| encoder LoRA state dict because it comes from 🤗 Transformers.`,name:"text_encoder_lora_layers"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.save_lora_weights.text_encoder_2_lora_layers",description:`<strong>text_encoder_2_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) — | |
| State dict of the LoRA layers corresponding to the <code>text_encoder_2</code>. Must explicitly pass the text | |
| encoder LoRA state dict because it comes from 🤗 Transformers.`,name:"text_encoder_2_lora_layers"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.save_lora_weights.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| Whether the process calling this is the main process or not. Useful during distributed training and you | |
| need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on the main | |
| process to avoid race conditions.`,name:"is_main_process"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.save_lora_weights.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) — | |
| The function to use to save the state dictionary. Useful during distributed training when you need to | |
| replace <code>torch.save</code> with another method. Can be configured with the environment variable | |
| <code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.save_lora_weights.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"},{anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin.save_lora_weights.unet_lora_adapter_metadata",description:`<strong>unet_lora_adapter_metadata</strong> — | |
| 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> — | |
| 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> — | |
| LoRA adapter metadata associated with the second text encoder to be serialized with the state dict.`,name:"text_encoder_2_lora_adapter_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L960"}}),ka=new Z({props:{title:"SD3LoraLoaderMixin",local:"diffusers.loaders.SD3LoraLoaderMixin",headingTag:"h2"}}),Ra=new $({props:{name:"class diffusers.loaders.SD3LoraLoaderMixin",anchor:"diffusers.loaders.SD3LoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L1114"}}),Ia=new $({props:{name:"load_lora_into_text_encoder",anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_text_encoder",parameters:[{name:"state_dict",val:""},{name:"network_alphas",val:""},{name:"text_encoder",val:""},{name:"prefix",val:" = None"},{name:"lora_scale",val:" = 1.0"},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_text_encoder.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) — | |
| A standard state dict containing the lora layer parameters. The key should be prefixed with an | |
| additional <code>text_encoder</code> to distinguish between unet lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_text_encoder.network_alphas",description:`<strong>network_alphas</strong> (<code>Dict[str, float]</code>) — | |
| The value of the network alpha used for stable learning and preventing underflow. This value has the | |
| same meaning as the <code>--network_alpha</code> option in the kohya-ss trainer script. Refer to <a href="https://github.com/darkstorm2150/sd-scripts/blob/main/docs/train_network_README-en.md#execute-learning" rel="nofollow">this | |
| link</a>.`,name:"network_alphas"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_text_encoder.text_encoder",description:`<strong>text_encoder</strong> (<code>CLIPTextModel</code>) — | |
| The text encoder model to load the LoRA layers into.`,name:"text_encoder"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_text_encoder.prefix",description:`<strong>prefix</strong> (<code>str</code>) — | |
| Expected prefix of the <code>text_encoder</code> in the <code>state_dict</code>.`,name:"prefix"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_text_encoder.lora_scale",description:`<strong>lora_scale</strong> (<code>float</code>) — | |
| How much to scale the output of the lora linear layer before it is added with the output of the regular | |
| lora layer.`,name:"lora_scale"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_text_encoder.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) — | |
| Adapter name to be used for referencing the loaded adapter model. If not specified, it will use | |
| <code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_text_encoder.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) — | |
| Speed up model loading by only loading the pretrained LoRA weights and not initializing the random | |
| weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_text_encoder.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won’t be derived | |
| from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L1363"}}),Va=new $({props:{name:"load_lora_into_transformer",anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_transformer",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) — | |
| A standard state dict containing the lora layer parameters. The keys can either be indexed directly | |
| into the unet or prefixed with an additional <code>unet</code> which can be used to distinguish between text | |
| encoder lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_transformer.transformer",description:`<strong>transformer</strong> (<code>SD3Transformer2DModel</code>) — | |
| The Transformer model to load the LoRA layers into.`,name:"transformer"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_transformer.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) — | |
| Adapter name to be used for referencing the loaded adapter model. If not specified, it will use | |
| <code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_transformer.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) — | |
| Speed up model loading by only loading the pretrained LoRA weights and not initializing the random | |
| weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_into_transformer.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won’t be derived | |
| from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L1313"}}),Wa=new $({props:{name:"load_lora_weights",anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_weights",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"adapter_name",val:" = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_weights.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) — | |
| See <a href="/docs/diffusers/pr_11686/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"pretrained_model_name_or_path_or_dict"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_weights.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) — | |
| Adapter name to be used for referencing the loaded adapter model. If not specified, it will use | |
| <code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_weights.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) — | |
| Speed up model loading by only loading the pretrained LoRA weights and not initializing the random | |
| weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.load_lora_weights.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| See <a href="/docs/diffusers/pr_11686/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L1225"}}),Pa=new $({props:{name:"lora_state_dict",anchor:"diffusers.loaders.SD3LoraLoaderMixin.lora_state_dict",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.SD3LoraLoaderMixin.lora_state_dict.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) — | |
| Can be either:</p> | |
| <ul> | |
| <li>A string, the <em>model id</em> (for example <code>google/ddpm-celebahq-256</code>) of a pretrained model hosted on | |
| the Hub.</li> | |
| <li>A path to a <em>directory</em> (for example <code>./my_model_directory</code>) containing the model weights saved | |
| with <a href="/docs/diffusers/pr_11686/en/api/models/overview#diffusers.ModelMixin.save_pretrained">ModelMixin.save_pretrained()</a>.</li> | |
| <li>A <a href="https://pytorch.org/tutorials/beginner/saving_loading_models.html#what-is-a-state-dict" rel="nofollow">torch state | |
| dict</a>.</li> | |
| </ul>`,name:"pretrained_model_name_or_path_or_dict"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.lora_state_dict.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) — | |
| Path to a directory where a downloaded pretrained model configuration is cached if the standard cache | |
| is not used.`,name:"cache_dir"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.lora_state_dict.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether or not to force the (re-)download of the model weights and configuration files, overriding the | |
| cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.lora_state_dict.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) — | |
| A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model | |
| won’t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) — | |
| The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from | |
| <code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>"main"</code>) — | |
| The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier | |
| allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>""</code>) — | |
| The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{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) — | |
| When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.`,name:"return_lora_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L1127"}}),qo=new A({props:{warning:!0,$$slots:{default:[hg]},$$scope:{ctx:T}}}),Ua=new $({props:{name:"save_lora_weights",anchor:"diffusers.loaders.SD3LoraLoaderMixin.save_lora_weights",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"transformer_lora_layers",val:": typing.Dict[str, typing.Union[torch.nn.modules.module.Module, torch.Tensor]] = None"},{name:"text_encoder_lora_layers",val:": typing.Dict[str, typing.Union[torch.nn.modules.module.Module, torch.Tensor]] = None"},{name:"text_encoder_2_lora_layers",val:": typing.Dict[str, typing.Union[torch.nn.modules.module.Module, torch.Tensor]] = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:" = None"},{name:"text_encoder_lora_adapter_metadata",val:" = None"},{name:"text_encoder_2_lora_adapter_metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.SD3LoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) — | |
| Directory to save LoRA parameters to. Will be created if it doesn’t exist.`,name:"save_directory"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.save_lora_weights.transformer_lora_layers",description:`<strong>transformer_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) — | |
| State dict of the LoRA layers corresponding to the <code>transformer</code>.`,name:"transformer_lora_layers"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.save_lora_weights.text_encoder_lora_layers",description:`<strong>text_encoder_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) — | |
| State dict of the LoRA layers corresponding to the <code>text_encoder</code>. Must explicitly pass the text | |
| encoder LoRA state dict because it comes from 🤗 Transformers.`,name:"text_encoder_lora_layers"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.save_lora_weights.text_encoder_2_lora_layers",description:`<strong>text_encoder_2_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) — | |
| State dict of the LoRA layers corresponding to the <code>text_encoder_2</code>. Must explicitly pass the text | |
| encoder LoRA state dict because it comes from 🤗 Transformers.`,name:"text_encoder_2_lora_layers"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.save_lora_weights.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| Whether the process calling this is the main process or not. Useful during distributed training and you | |
| need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on the main | |
| process to avoid race conditions.`,name:"is_main_process"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.save_lora_weights.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) — | |
| The function to use to save the state dictionary. Useful during distributed training when you need to | |
| replace <code>torch.save</code> with another method. Can be configured with the environment variable | |
| <code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.save_lora_weights.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"},{anchor:"diffusers.loaders.SD3LoraLoaderMixin.save_lora_weights.transformer_lora_adapter_metadata",description:`<strong>transformer_lora_adapter_metadata</strong> — | |
| 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> — | |
| 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> — | |
| LoRA adapter metadata associated with the second text encoder to be serialized with the state dict.`,name:"text_encoder_2_lora_adapter_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L1422"}}),Ha=new $({props:{name:"unfuse_lora",anchor:"diffusers.loaders.SD3LoraLoaderMixin.unfuse_lora",parameters:[{name:"components",val:": typing.List[str] = ['transformer', 'text_encoder', 'text_encoder_2']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.SD3LoraLoaderMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>List[str]</code>) — 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>) — 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>) — | |
| Whether to unfuse the text encoder LoRA parameters. If the text encoder wasn’t monkey-patched with the | |
| LoRA parameters then it won’t have any effect.`,name:"unfuse_text_encoder"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L1560"}}),jo=new A({props:{warning:!0,$$slots:{default:[gg]},$$scope:{ctx:T}}}),Fa=new Z({props:{title:"FluxLoraLoaderMixin",local:"diffusers.loaders.FluxLoraLoaderMixin",headingTag:"h2"}}),Xa=new $({props:{name:"class diffusers.loaders.FluxLoraLoaderMixin",anchor:"diffusers.loaders.FluxLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L1923"}}),Ea=new $({props:{name:"load_lora_into_text_encoder",anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_text_encoder",parameters:[{name:"state_dict",val:""},{name:"network_alphas",val:""},{name:"text_encoder",val:""},{name:"prefix",val:" = None"},{name:"lora_scale",val:" = 1.0"},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_text_encoder.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) — | |
| A standard state dict containing the lora layer parameters. The key should be prefixed with an | |
| additional <code>text_encoder</code> to distinguish between unet lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_text_encoder.network_alphas",description:`<strong>network_alphas</strong> (<code>Dict[str, float]</code>) — | |
| The value of the network alpha used for stable learning and preventing underflow. This value has the | |
| same meaning as the <code>--network_alpha</code> option in the kohya-ss trainer script. Refer to <a href="https://github.com/darkstorm2150/sd-scripts/blob/main/docs/train_network_README-en.md#execute-learning" rel="nofollow">this | |
| link</a>.`,name:"network_alphas"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_text_encoder.text_encoder",description:`<strong>text_encoder</strong> (<code>CLIPTextModel</code>) — | |
| The text encoder model to load the LoRA layers into.`,name:"text_encoder"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_text_encoder.prefix",description:`<strong>prefix</strong> (<code>str</code>) — | |
| Expected prefix of the <code>text_encoder</code> in the <code>state_dict</code>.`,name:"prefix"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_text_encoder.lora_scale",description:`<strong>lora_scale</strong> (<code>float</code>) — | |
| How much to scale the output of the lora linear layer before it is added with the output of the regular | |
| lora layer.`,name:"lora_scale"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_text_encoder.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) — | |
| Adapter name to be used for referencing the loaded adapter model. If not specified, it will use | |
| <code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_text_encoder.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) — | |
| Speed up model loading by only loading the pretrained LoRA weights and not initializing the random | |
| weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_text_encoder.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won’t be derived | |
| from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L2338"}}),Na=new $({props:{name:"load_lora_into_transformer",anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_transformer",parameters:[{name:"state_dict",val:""},{name:"network_alphas",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"metadata",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"}],parametersDescription:[{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) — | |
| A standard state dict containing the lora layer parameters. The keys can either be indexed directly | |
| into the unet or prefixed with an additional <code>unet</code> which can be used to distinguish between text | |
| encoder lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_transformer.network_alphas",description:`<strong>network_alphas</strong> (<code>Dict[str, float]</code>) — | |
| The value of the network alpha used for stable learning and preventing underflow. This value has the | |
| same meaning as the <code>--network_alpha</code> option in the kohya-ss trainer script. Refer to <a href="https://github.com/darkstorm2150/sd-scripts/blob/main/docs/train_network_README-en.md#execute-learning" rel="nofollow">this | |
| link</a>.`,name:"network_alphas"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_transformer.transformer",description:`<strong>transformer</strong> (<code>FluxTransformer2DModel</code>) — | |
| The Transformer model to load the LoRA layers into.`,name:"transformer"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_transformer.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) — | |
| Adapter name to be used for referencing the loaded adapter model. If not specified, it will use | |
| <code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_transformer.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) — | |
| Speed up model loading by only loading the pretrained LoRA weights and not initializing the random | |
| weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_into_transformer.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won’t be derived | |
| from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L2229"}}),za=new $({props:{name:"load_lora_weights",anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_weights",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"adapter_name",val:": typing.Optional[str] = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_weights.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| Adapter name to be used for referencing the loaded adapter model. If not specified, it will use | |
| <code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_weights.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) — | |
| \`Speed up model loading by only loading the pretrained LoRA weights and not initializing the random | |
| weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.load_lora_weights.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| See <a href="/docs/diffusers/pr_11686/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L2104"}}),qa=new $({props:{name:"lora_state_dict",anchor:"diffusers.loaders.FluxLoraLoaderMixin.lora_state_dict",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"return_alphas",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.FluxLoraLoaderMixin.lora_state_dict.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) — | |
| Can be either:</p> | |
| <ul> | |
| <li>A string, the <em>model id</em> (for example <code>google/ddpm-celebahq-256</code>) of a pretrained model hosted on | |
| the Hub.</li> | |
| <li>A path to a <em>directory</em> (for example <code>./my_model_directory</code>) containing the model weights saved | |
| with <a href="/docs/diffusers/pr_11686/en/api/models/overview#diffusers.ModelMixin.save_pretrained">ModelMixin.save_pretrained()</a>.</li> | |
| <li>A <a href="https://pytorch.org/tutorials/beginner/saving_loading_models.html#what-is-a-state-dict" rel="nofollow">torch state | |
| dict</a>.</li> | |
| </ul>`,name:"pretrained_model_name_or_path_or_dict"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.lora_state_dict.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) — | |
| Path to a directory where a downloaded pretrained model configuration is cached if the standard cache | |
| is not used.`,name:"cache_dir"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.lora_state_dict.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether or not to force the (re-)download of the model weights and configuration files, overriding the | |
| cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.lora_state_dict.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) — | |
| A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model | |
| won’t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) — | |
| The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from | |
| <code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>"main"</code>) — | |
| The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier | |
| allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>""</code>) — | |
| The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{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) — | |
| When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.`,name:"return_lora_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L1936"}}),Bo=new A({props:{warning:!0,$$slots:{default:[Lg]},$$scope:{ctx:T}}}),Ja=new $({props:{name:"save_lora_weights",anchor:"diffusers.loaders.FluxLoraLoaderMixin.save_lora_weights",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"transformer_lora_layers",val:": typing.Dict[str, typing.Union[torch.nn.modules.module.Module, torch.Tensor]] = None"},{name:"text_encoder_lora_layers",val:": typing.Dict[str, torch.nn.modules.module.Module] = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:" = None"},{name:"text_encoder_lora_adapter_metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.FluxLoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) — | |
| Directory to save LoRA parameters to. Will be created if it doesn’t exist.`,name:"save_directory"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.save_lora_weights.transformer_lora_layers",description:`<strong>transformer_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) — | |
| State dict of the LoRA layers corresponding to the <code>transformer</code>.`,name:"transformer_lora_layers"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.save_lora_weights.text_encoder_lora_layers",description:`<strong>text_encoder_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) — | |
| State dict of the LoRA layers corresponding to the <code>text_encoder</code>. Must explicitly pass the text | |
| encoder LoRA state dict because it comes from 🤗 Transformers.`,name:"text_encoder_lora_layers"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.save_lora_weights.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| Whether the process calling this is the main process or not. Useful during distributed training and you | |
| need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on the main | |
| process to avoid race conditions.`,name:"is_main_process"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.save_lora_weights.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) — | |
| The function to use to save the state dictionary. Useful during distributed training when you need to | |
| replace <code>torch.save</code> with another method. Can be configured with the environment variable | |
| <code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.save_lora_weights.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"},{anchor:"diffusers.loaders.FluxLoraLoaderMixin.save_lora_weights.transformer_lora_adapter_metadata",description:`<strong>transformer_lora_adapter_metadata</strong> — | |
| 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> — | |
| LoRA adapter metadata associated with the text encoder to be serialized with the state dict.`,name:"text_encoder_lora_adapter_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L2397"}}),ja=new $({props:{name:"unfuse_lora",anchor:"diffusers.loaders.FluxLoraLoaderMixin.unfuse_lora",parameters:[{name:"components",val:": typing.List[str] = ['transformer', 'text_encoder']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.FluxLoraLoaderMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>List[str]</code>) — List of LoRA-injectable components to unfuse LoRA from.",name:"components"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L2530"}}),Qo=new A({props:{warning:!0,$$slots:{default:[xg]},$$scope:{ctx:T}}}),Ga=new $({props:{name:"unload_lora_weights",anchor:"diffusers.loaders.FluxLoraLoaderMixin.unload_lora_weights",parameters:[{name:"reset_to_overwritten_params",val:" = False"}],parametersDescription:[{anchor:"diffusers.loaders.FluxLoraLoaderMixin.unload_lora_weights.reset_to_overwritten_params",description:`<strong>reset_to_overwritten_params</strong> (<code>bool</code>, defaults to <code>False</code>) — Whether to reset the LoRA-loaded modules | |
| to their original params. Refer to the <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/flux" rel="nofollow">Flux | |
| documentation</a> to learn more.`,name:"reset_to_overwritten_params"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L2551"}}),Oo=new Lo({props:{anchor:"diffusers.loaders.FluxLoraLoaderMixin.unload_lora_weights.example",$$slots:{default:[bg]},$$scope:{ctx:T}}}),Za=new Z({props:{title:"CogVideoXLoraLoaderMixin",local:"diffusers.loaders.CogVideoXLoraLoaderMixin",headingTag:"h2"}}),Ba=new $({props:{name:"class diffusers.loaders.CogVideoXLoraLoaderMixin",anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L3006"}}),Ya=new $({props:{name:"load_lora_into_transformer",anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.load_lora_into_transformer",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) — | |
| A standard state dict containing the lora layer parameters. The keys can either be indexed directly | |
| into the unet or prefixed with an additional <code>unet</code> which can be used to distinguish between text | |
| encoder lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.load_lora_into_transformer.transformer",description:`<strong>transformer</strong> (<code>CogVideoXTransformer3DModel</code>) — | |
| The Transformer model to load the LoRA layers into.`,name:"transformer"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.load_lora_into_transformer.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) — | |
| Adapter name to be used for referencing the loaded adapter model. If not specified, it will use | |
| <code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.load_lora_into_transformer.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) — | |
| Speed up model loading by only loading the pretrained LoRA weights and not initializing the random | |
| weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.load_lora_into_transformer.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won’t be derived | |
| from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L3172"}}),Qa=new $({props:{name:"load_lora_weights",anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.load_lora_weights",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"adapter_name",val:": typing.Optional[str] = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.load_lora_weights.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) — | |
| See <a href="/docs/diffusers/pr_11686/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"pretrained_model_name_or_path_or_dict"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.load_lora_weights.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) — | |
| Adapter name to be used for referencing the loaded adapter model. If not specified, it will use | |
| <code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.load_lora_weights.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) — | |
| Speed up model loading by only loading the pretrained LoRA weights and not initializing the random | |
| weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.load_lora_weights.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| See <a href="/docs/diffusers/pr_11686/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L3113"}}),Oa=new $({props:{name:"lora_state_dict",anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.lora_state_dict",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.lora_state_dict.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) — | |
| Can be either:</p> | |
| <ul> | |
| <li>A string, the <em>model id</em> (for example <code>google/ddpm-celebahq-256</code>) of a pretrained model hosted on | |
| the Hub.</li> | |
| <li>A path to a <em>directory</em> (for example <code>./my_model_directory</code>) containing the model weights saved | |
| with <a href="/docs/diffusers/pr_11686/en/api/models/overview#diffusers.ModelMixin.save_pretrained">ModelMixin.save_pretrained()</a>.</li> | |
| <li>A <a href="https://pytorch.org/tutorials/beginner/saving_loading_models.html#what-is-a-state-dict" rel="nofollow">torch state | |
| dict</a>.</li> | |
| </ul>`,name:"pretrained_model_name_or_path_or_dict"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.lora_state_dict.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) — | |
| Path to a directory where a downloaded pretrained model configuration is cached if the standard cache | |
| is not used.`,name:"cache_dir"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.lora_state_dict.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether or not to force the (re-)download of the model weights and configuration files, overriding the | |
| cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.lora_state_dict.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) — | |
| A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model | |
| won’t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) — | |
| The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from | |
| <code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>"main"</code>) — | |
| The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier | |
| allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>""</code>) — | |
| The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{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) — | |
| When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.`,name:"return_lora_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L3014"}}),ot=new A({props:{warning:!0,$$slots:{default:[vg]},$$scope:{ctx:T}}}),Ka=new $({props:{name:"save_lora_weights",anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.save_lora_weights",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"transformer_lora_layers",val:": typing.Dict[str, typing.Union[torch.nn.modules.module.Module, torch.Tensor]] = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": typing.Optional[dict] = None"}],parametersDescription:[{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) — | |
| Directory to save LoRA parameters to. Will be created if it doesn’t exist.`,name:"save_directory"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.save_lora_weights.transformer_lora_layers",description:`<strong>transformer_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) — | |
| State dict of the LoRA layers corresponding to the <code>transformer</code>.`,name:"transformer_lora_layers"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.save_lora_weights.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| Whether the process calling this is the main process or not. Useful during distributed training and you | |
| need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on the main | |
| process to avoid race conditions.`,name:"is_main_process"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.save_lora_weights.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) — | |
| The function to use to save the state dictionary. Useful during distributed training when you need to | |
| replace <code>torch.save</code> with another method. Can be configured with the environment variable | |
| <code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.save_lora_weights.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.save_lora_weights.transformer_lora_adapter_metadata",description:`<strong>transformer_lora_adapter_metadata</strong> — | |
| LoRA adapter metadata associated with the transformer to be serialized with the state dict.`,name:"transformer_lora_adapter_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L3223"}}),er=new $({props:{name:"unfuse_lora",anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.unfuse_lora",parameters:[{name:"components",val:": typing.List[str] = ['transformer']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>List[str]</code>) — List of LoRA-injectable components to unfuse LoRA from.",name:"components"},{anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin.unfuse_lora.unfuse_transformer",description:"<strong>unfuse_transformer</strong> (<code>bool</code>, defaults to <code>True</code>) — Whether to unfuse the UNet LoRA parameters.",name:"unfuse_transformer"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L3327"}}),at=new A({props:{warning:!0,$$slots:{default:[wg]},$$scope:{ctx:T}}}),or=new Z({props:{title:"Mochi1LoraLoaderMixin",local:"diffusers.loaders.Mochi1LoraLoaderMixin",headingTag:"h2"}}),tr=new $({props:{name:"class diffusers.loaders.Mochi1LoraLoaderMixin",anchor:"diffusers.loaders.Mochi1LoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L3345"}}),ar=new $({props:{name:"load_lora_into_transformer",anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.load_lora_into_transformer",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) — | |
| A standard state dict containing the lora layer parameters. The keys can either be indexed directly | |
| into the unet or prefixed with an additional <code>unet</code> which can be used to distinguish between text | |
| encoder lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.load_lora_into_transformer.transformer",description:`<strong>transformer</strong> (<code>MochiTransformer3DModel</code>) — | |
| The Transformer model to load the LoRA layers into.`,name:"transformer"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.load_lora_into_transformer.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) — | |
| Adapter name to be used for referencing the loaded adapter model. If not specified, it will use | |
| <code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.load_lora_into_transformer.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) — | |
| Speed up model loading by only loading the pretrained LoRA weights and not initializing the random | |
| weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.load_lora_into_transformer.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won’t be derived | |
| from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L3512"}}),rr=new $({props:{name:"load_lora_weights",anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.load_lora_weights",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"adapter_name",val:": typing.Optional[str] = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.load_lora_weights.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) — | |
| See <a href="/docs/diffusers/pr_11686/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"pretrained_model_name_or_path_or_dict"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.load_lora_weights.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) — | |
| Adapter name to be used for referencing the loaded adapter model. If not specified, it will use | |
| <code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.load_lora_weights.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) — | |
| Speed up model loading by only loading the pretrained LoRA weights and not initializing the random | |
| weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.load_lora_weights.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| See <a href="/docs/diffusers/pr_11686/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L3453"}}),nr=new $({props:{name:"lora_state_dict",anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.lora_state_dict",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.lora_state_dict.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) — | |
| Can be either:</p> | |
| <ul> | |
| <li>A string, the <em>model id</em> (for example <code>google/ddpm-celebahq-256</code>) of a pretrained model hosted on | |
| the Hub.</li> | |
| <li>A path to a <em>directory</em> (for example <code>./my_model_directory</code>) containing the model weights saved | |
| with <a href="/docs/diffusers/pr_11686/en/api/models/overview#diffusers.ModelMixin.save_pretrained">ModelMixin.save_pretrained()</a>.</li> | |
| <li>A <a href="https://pytorch.org/tutorials/beginner/saving_loading_models.html#what-is-a-state-dict" rel="nofollow">torch state | |
| dict</a>.</li> | |
| </ul>`,name:"pretrained_model_name_or_path_or_dict"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.lora_state_dict.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) — | |
| Path to a directory where a downloaded pretrained model configuration is cached if the standard cache | |
| is not used.`,name:"cache_dir"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.lora_state_dict.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether or not to force the (re-)download of the model weights and configuration files, overriding the | |
| cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.lora_state_dict.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) — | |
| A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model | |
| won’t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) — | |
| The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from | |
| <code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>"main"</code>) — | |
| The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier | |
| allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>""</code>) — | |
| The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{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) — | |
| When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.`,name:"return_lora_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L3353"}}),st=new A({props:{warning:!0,$$slots:{default:[$g]},$$scope:{ctx:T}}}),sr=new $({props:{name:"save_lora_weights",anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.save_lora_weights",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"transformer_lora_layers",val:": typing.Dict[str, typing.Union[torch.nn.modules.module.Module, torch.Tensor]] = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": typing.Optional[dict] = None"}],parametersDescription:[{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) — | |
| Directory to save LoRA parameters to. Will be created if it doesn’t exist.`,name:"save_directory"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.save_lora_weights.transformer_lora_layers",description:`<strong>transformer_lora_layers</strong> (<code>Dict[str, torch.nn.Module]</code> or <code>Dict[str, torch.Tensor]</code>) — | |
| State dict of the LoRA layers corresponding to the <code>transformer</code>.`,name:"transformer_lora_layers"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.save_lora_weights.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| Whether the process calling this is the main process or not. Useful during distributed training and you | |
| need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on the main | |
| process to avoid race conditions.`,name:"is_main_process"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.save_lora_weights.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) — | |
| The function to use to save the state dictionary. Useful during distributed training when you need to | |
| replace <code>torch.save</code> with another method. Can be configured with the environment variable | |
| <code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.save_lora_weights.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.save_lora_weights.transformer_lora_adapter_metadata",description:`<strong>transformer_lora_adapter_metadata</strong> — | |
| LoRA adapter metadata associated with the transformer to be serialized with the state dict.`,name:"transformer_lora_adapter_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L3563"}}),ir=new $({props:{name:"unfuse_lora",anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.unfuse_lora",parameters:[{name:"components",val:": typing.List[str] = ['transformer']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>List[str]</code>) — List of LoRA-injectable components to unfuse LoRA from.",name:"components"},{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.unfuse_lora.unfuse_transformer",description:"<strong>unfuse_transformer</strong> (<code>bool</code>, defaults to <code>True</code>) — Whether to unfuse the UNet LoRA parameters.",name:"unfuse_transformer"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L3669"}}),dt=new A({props:{warning:!0,$$slots:{default:[yg]},$$scope:{ctx:T}}}),dr=new Z({props:{title:"AuraFlowLoraLoaderMixin",local:"diffusers.loaders.AuraFlowLoraLoaderMixin",headingTag:"h2"}}),lr=new $({props:{name:"class diffusers.loaders.AuraFlowLoraLoaderMixin",anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L1581"}}),cr=new $({props:{name:"load_lora_into_transformer",anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.load_lora_into_transformer",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won’t be derived | |
| from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L1748"}}),fr=new $({props:{name:"load_lora_weights",anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.load_lora_weights",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"adapter_name",val:": typing.Optional[str] = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.load_lora_weights.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| 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>) — | |
| 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>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| See <a href="/docs/diffusers/pr_11686/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L1689"}}),pr=new $({props:{name:"lora_state_dict",anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.lora_state_dict",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.lora_state_dict.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) — | |
| Can be either:</p> | |
| <ul> | |
| <li>A string, the <em>model id</em> (for example <code>google/ddpm-celebahq-256</code>) of a pretrained model hosted on | |
| the Hub.</li> | |
| <li>A path to a <em>directory</em> (for example <code>./my_model_directory</code>) containing the model weights saved | |
| with <a href="/docs/diffusers/pr_11686/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>) — | |
| 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>) — | |
| 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>) — | |
| A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model | |
| won’t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) — | |
| The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from | |
| <code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>"main"</code>) — | |
| The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier | |
| allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>""</code>) — | |
| The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.lora_state_dict.return_lora_metadata",description:`<strong>return_lora_metadata</strong> (<code>bool</code>, <em>optional</em>, defaults to False) — | |
| When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.`,name:"return_lora_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L1589"}}),ft=new A({props:{warning:!0,$$slots:{default:[Mg]},$$scope:{ctx:T}}}),mr=new $({props:{name:"save_lora_weights",anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.save_lora_weights",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"transformer_lora_layers",val:": typing.Dict[str, typing.Union[torch.nn.modules.module.Module, torch.Tensor]] = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": typing.Optional[dict] = None"}],parametersDescription:[{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) — | |
| Directory to save LoRA parameters to. Will be created if it doesn’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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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> — | |
| LoRA adapter metadata associated with the transformer to be serialized with the state dict.`,name:"transformer_lora_adapter_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L1799"}}),_r=new $({props:{name:"unfuse_lora",anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.unfuse_lora",parameters:[{name:"components",val:": typing.List[str] = ['transformer', 'text_encoder']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>List[str]</code>) — 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>) — Whether to unfuse the UNet LoRA parameters.",name:"unfuse_transformer"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L1905"}}),mt=new A({props:{warning:!0,$$slots:{default:[Tg]},$$scope:{ctx:T}}}),ur=new Z({props:{title:"LTXVideoLoraLoaderMixin",local:"diffusers.loaders.LTXVideoLoraLoaderMixin",headingTag:"h2"}}),hr=new $({props:{name:"class diffusers.loaders.LTXVideoLoraLoaderMixin",anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L3687"}}),gr=new $({props:{name:"load_lora_into_transformer",anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.load_lora_into_transformer",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won’t be derived | |
| from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L3856"}}),Lr=new $({props:{name:"load_lora_weights",anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.load_lora_weights",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"adapter_name",val:": typing.Optional[str] = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.load_lora_weights.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| 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>) — | |
| 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>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| See <a href="/docs/diffusers/pr_11686/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L3797"}}),xr=new $({props:{name:"lora_state_dict",anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.lora_state_dict",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.lora_state_dict.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) — | |
| Can be either:</p> | |
| <ul> | |
| <li>A string, the <em>model id</em> (for example <code>google/ddpm-celebahq-256</code>) of a pretrained model hosted on | |
| the Hub.</li> | |
| <li>A path to a <em>directory</em> (for example <code>./my_model_directory</code>) containing the model weights saved | |
| with <a href="/docs/diffusers/pr_11686/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>) — | |
| 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>) — | |
| 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>) — | |
| A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model | |
| won’t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) — | |
| The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from | |
| <code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>"main"</code>) — | |
| The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier | |
| allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>""</code>) — | |
| The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.lora_state_dict.return_lora_metadata",description:`<strong>return_lora_metadata</strong> (<code>bool</code>, <em>optional</em>, defaults to False) — | |
| When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.`,name:"return_lora_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L3695"}}),ht=new A({props:{warning:!0,$$slots:{default:[Dg]},$$scope:{ctx:T}}}),br=new $({props:{name:"save_lora_weights",anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.save_lora_weights",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"transformer_lora_layers",val:": typing.Dict[str, typing.Union[torch.nn.modules.module.Module, torch.Tensor]] = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": typing.Optional[dict] = None"}],parametersDescription:[{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) — | |
| Directory to save LoRA parameters to. Will be created if it doesn’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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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> — | |
| LoRA adapter metadata associated with the transformer to be serialized with the state dict.`,name:"transformer_lora_adapter_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L3907"}}),vr=new $({props:{name:"unfuse_lora",anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.unfuse_lora",parameters:[{name:"components",val:": typing.List[str] = ['transformer']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>List[str]</code>) — 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>) — Whether to unfuse the UNet LoRA parameters.",name:"unfuse_transformer"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L4013"}}),Lt=new A({props:{warning:!0,$$slots:{default:[Cg]},$$scope:{ctx:T}}}),wr=new Z({props:{title:"SanaLoraLoaderMixin",local:"diffusers.loaders.SanaLoraLoaderMixin",headingTag:"h2"}}),$r=new $({props:{name:"class diffusers.loaders.SanaLoraLoaderMixin",anchor:"diffusers.loaders.SanaLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L4031"}}),yr=new $({props:{name:"load_lora_into_transformer",anchor:"diffusers.loaders.SanaLoraLoaderMixin.load_lora_into_transformer",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.SanaLoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won’t be derived | |
| from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L4198"}}),Mr=new $({props:{name:"load_lora_weights",anchor:"diffusers.loaders.SanaLoraLoaderMixin.load_lora_weights",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"adapter_name",val:": typing.Optional[str] = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.SanaLoraLoaderMixin.load_lora_weights.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| 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>) — | |
| 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>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| See <a href="/docs/diffusers/pr_11686/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L4139"}}),Tr=new $({props:{name:"lora_state_dict",anchor:"diffusers.loaders.SanaLoraLoaderMixin.lora_state_dict",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.SanaLoraLoaderMixin.lora_state_dict.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) — | |
| Can be either:</p> | |
| <ul> | |
| <li>A string, the <em>model id</em> (for example <code>google/ddpm-celebahq-256</code>) of a pretrained model hosted on | |
| the Hub.</li> | |
| <li>A path to a <em>directory</em> (for example <code>./my_model_directory</code>) containing the model weights saved | |
| with <a href="/docs/diffusers/pr_11686/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>) — | |
| 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>) — | |
| 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>) — | |
| A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.SanaLoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model | |
| won’t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.SanaLoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) — | |
| The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from | |
| <code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.SanaLoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>"main"</code>) — | |
| The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier | |
| allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.SanaLoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>""</code>) — | |
| The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.loaders.SanaLoraLoaderMixin.lora_state_dict.return_lora_metadata",description:`<strong>return_lora_metadata</strong> (<code>bool</code>, <em>optional</em>, defaults to False) — | |
| When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.`,name:"return_lora_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L4039"}}),vt=new A({props:{warning:!0,$$slots:{default:[Sg]},$$scope:{ctx:T}}}),Dr=new $({props:{name:"save_lora_weights",anchor:"diffusers.loaders.SanaLoraLoaderMixin.save_lora_weights",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"transformer_lora_layers",val:": typing.Dict[str, typing.Union[torch.nn.modules.module.Module, torch.Tensor]] = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": typing.Optional[dict] = None"}],parametersDescription:[{anchor:"diffusers.loaders.SanaLoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) — | |
| Directory to save LoRA parameters to. Will be created if it doesn’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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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> — | |
| LoRA adapter metadata associated with the transformer to be serialized with the state dict.`,name:"transformer_lora_adapter_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L4249"}}),Cr=new $({props:{name:"unfuse_lora",anchor:"diffusers.loaders.SanaLoraLoaderMixin.unfuse_lora",parameters:[{name:"components",val:": typing.List[str] = ['transformer']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.SanaLoraLoaderMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>List[str]</code>) — 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>) — Whether to unfuse the UNet LoRA parameters.",name:"unfuse_transformer"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L4355"}}),$t=new A({props:{warning:!0,$$slots:{default:[Ag]},$$scope:{ctx:T}}}),Sr=new Z({props:{title:"HunyuanVideoLoraLoaderMixin",local:"diffusers.loaders.HunyuanVideoLoraLoaderMixin",headingTag:"h2"}}),Ar=new $({props:{name:"class diffusers.loaders.HunyuanVideoLoraLoaderMixin",anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L4373"}}),kr=new $({props:{name:"load_lora_into_transformer",anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.load_lora_into_transformer",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won’t be derived | |
| from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L4542"}}),Rr=new $({props:{name:"load_lora_weights",anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.load_lora_weights",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"adapter_name",val:": typing.Optional[str] = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.load_lora_weights.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| 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>) — | |
| 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>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| See <a href="/docs/diffusers/pr_11686/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L4483"}}),Ir=new $({props:{name:"lora_state_dict",anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.lora_state_dict",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.lora_state_dict.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) — | |
| Can be either:</p> | |
| <ul> | |
| <li>A string, the <em>model id</em> (for example <code>google/ddpm-celebahq-256</code>) of a pretrained model hosted on | |
| the Hub.</li> | |
| <li>A path to a <em>directory</em> (for example <code>./my_model_directory</code>) containing the model weights saved | |
| with <a href="/docs/diffusers/pr_11686/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>) — | |
| 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>) — | |
| 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>) — | |
| A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model | |
| won’t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) — | |
| The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from | |
| <code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>"main"</code>) — | |
| The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier | |
| allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>""</code>) — | |
| The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.lora_state_dict.return_lora_metadata",description:`<strong>return_lora_metadata</strong> (<code>bool</code>, <em>optional</em>, defaults to False) — | |
| When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.`,name:"return_lora_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L4381"}}),Tt=new A({props:{warning:!0,$$slots:{default:[kg]},$$scope:{ctx:T}}}),Vr=new $({props:{name:"save_lora_weights",anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.save_lora_weights",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"transformer_lora_layers",val:": typing.Dict[str, typing.Union[torch.nn.modules.module.Module, torch.Tensor]] = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": typing.Optional[dict] = None"}],parametersDescription:[{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) — | |
| Directory to save LoRA parameters to. Will be created if it doesn’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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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> — | |
| LoRA adapter metadata associated with the transformer to be serialized with the state dict.`,name:"transformer_lora_adapter_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L4593"}}),Wr=new $({props:{name:"unfuse_lora",anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.unfuse_lora",parameters:[{name:"components",val:": typing.List[str] = ['transformer']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>List[str]</code>) — 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>) — Whether to unfuse the UNet LoRA parameters.",name:"unfuse_transformer"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L4699"}}),Ct=new A({props:{warning:!0,$$slots:{default:[Rg]},$$scope:{ctx:T}}}),Pr=new Z({props:{title:"Lumina2LoraLoaderMixin",local:"diffusers.loaders.Lumina2LoraLoaderMixin",headingTag:"h2"}}),Ur=new $({props:{name:"class diffusers.loaders.Lumina2LoraLoaderMixin",anchor:"diffusers.loaders.Lumina2LoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L4717"}}),Hr=new $({props:{name:"load_lora_into_transformer",anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.load_lora_into_transformer",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won’t be derived | |
| from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L4887"}}),Fr=new $({props:{name:"load_lora_weights",anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.load_lora_weights",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"adapter_name",val:": typing.Optional[str] = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.load_lora_weights.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| 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>) — | |
| 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>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| See <a href="/docs/diffusers/pr_11686/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L4828"}}),Xr=new $({props:{name:"lora_state_dict",anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.lora_state_dict",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.lora_state_dict.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) — | |
| Can be either:</p> | |
| <ul> | |
| <li>A string, the <em>model id</em> (for example <code>google/ddpm-celebahq-256</code>) of a pretrained model hosted on | |
| the Hub.</li> | |
| <li>A path to a <em>directory</em> (for example <code>./my_model_directory</code>) containing the model weights saved | |
| with <a href="/docs/diffusers/pr_11686/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>) — | |
| 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>) — | |
| 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>) — | |
| A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model | |
| won’t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) — | |
| The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from | |
| <code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>"main"</code>) — | |
| The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier | |
| allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>""</code>) — | |
| The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.lora_state_dict.return_lora_metadata",description:`<strong>return_lora_metadata</strong> (<code>bool</code>, <em>optional</em>, defaults to False) — | |
| When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.`,name:"return_lora_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L4725"}}),kt=new A({props:{warning:!0,$$slots:{default:[Ig]},$$scope:{ctx:T}}}),Er=new $({props:{name:"save_lora_weights",anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.save_lora_weights",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"transformer_lora_layers",val:": typing.Dict[str, typing.Union[torch.nn.modules.module.Module, torch.Tensor]] = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": typing.Optional[dict] = None"}],parametersDescription:[{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) — | |
| Directory to save LoRA parameters to. Will be created if it doesn’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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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> — | |
| LoRA adapter metadata associated with the transformer to be serialized with the state dict.`,name:"transformer_lora_adapter_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L4938"}}),Nr=new $({props:{name:"unfuse_lora",anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.unfuse_lora",parameters:[{name:"components",val:": typing.List[str] = ['transformer']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.Lumina2LoraLoaderMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>List[str]</code>) — 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>) — Whether to unfuse the UNet LoRA parameters.",name:"unfuse_transformer"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L5044"}}),It=new A({props:{warning:!0,$$slots:{default:[Vg]},$$scope:{ctx:T}}}),zr=new Z({props:{title:"CogView4LoraLoaderMixin",local:"diffusers.loaders.CogView4LoraLoaderMixin",headingTag:"h2"}}),qr=new $({props:{name:"class diffusers.loaders.CogView4LoraLoaderMixin",anchor:"diffusers.loaders.CogView4LoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L5457"}}),Jr=new $({props:{name:"load_lora_into_transformer",anchor:"diffusers.loaders.CogView4LoraLoaderMixin.load_lora_into_transformer",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won’t be derived | |
| from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L5624"}}),jr=new $({props:{name:"load_lora_weights",anchor:"diffusers.loaders.CogView4LoraLoaderMixin.load_lora_weights",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"adapter_name",val:": typing.Optional[str] = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.load_lora_weights.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| 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>) — | |
| 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>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| See <a href="/docs/diffusers/pr_11686/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L5565"}}),Gr=new $({props:{name:"lora_state_dict",anchor:"diffusers.loaders.CogView4LoraLoaderMixin.lora_state_dict",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.lora_state_dict.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) — | |
| Can be either:</p> | |
| <ul> | |
| <li>A string, the <em>model id</em> (for example <code>google/ddpm-celebahq-256</code>) of a pretrained model hosted on | |
| the Hub.</li> | |
| <li>A path to a <em>directory</em> (for example <code>./my_model_directory</code>) containing the model weights saved | |
| with <a href="/docs/diffusers/pr_11686/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>) — | |
| 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>) — | |
| 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>) — | |
| A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model | |
| won’t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) — | |
| The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from | |
| <code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>"main"</code>) — | |
| The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier | |
| allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>""</code>) — | |
| The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.lora_state_dict.return_lora_metadata",description:`<strong>return_lora_metadata</strong> (<code>bool</code>, <em>optional</em>, defaults to False) — | |
| When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.`,name:"return_lora_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L5465"}}),Pt=new A({props:{warning:!0,$$slots:{default:[Wg]},$$scope:{ctx:T}}}),Zr=new $({props:{name:"save_lora_weights",anchor:"diffusers.loaders.CogView4LoraLoaderMixin.save_lora_weights",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"transformer_lora_layers",val:": typing.Dict[str, typing.Union[torch.nn.modules.module.Module, torch.Tensor]] = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": typing.Optional[dict] = None"}],parametersDescription:[{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) — | |
| Directory to save LoRA parameters to. Will be created if it doesn’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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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> — | |
| LoRA adapter metadata associated with the transformer to be serialized with the state dict.`,name:"transformer_lora_adapter_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L5675"}}),Br=new $({props:{name:"unfuse_lora",anchor:"diffusers.loaders.CogView4LoraLoaderMixin.unfuse_lora",parameters:[{name:"components",val:": typing.List[str] = ['transformer']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.CogView4LoraLoaderMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>List[str]</code>) — 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>) — Whether to unfuse the UNet LoRA parameters.",name:"unfuse_transformer"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L5781"}}),Ht=new A({props:{warning:!0,$$slots:{default:[Pg]},$$scope:{ctx:T}}}),Yr=new Z({props:{title:"WanLoraLoaderMixin",local:"diffusers.loaders.WanLoraLoaderMixin",headingTag:"h2"}}),Qr=new $({props:{name:"class diffusers.loaders.WanLoraLoaderMixin",anchor:"diffusers.loaders.WanLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L5062"}}),Or=new $({props:{name:"load_lora_into_transformer",anchor:"diffusers.loaders.WanLoraLoaderMixin.load_lora_into_transformer",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.WanLoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won’t be derived | |
| from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L5282"}}),Kr=new $({props:{name:"load_lora_weights",anchor:"diffusers.loaders.WanLoraLoaderMixin.load_lora_weights",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"adapter_name",val:": typing.Optional[str] = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.WanLoraLoaderMixin.load_lora_weights.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| 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>) — | |
| 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>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| See <a href="/docs/diffusers/pr_11686/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L5219"}}),en=new $({props:{name:"lora_state_dict",anchor:"diffusers.loaders.WanLoraLoaderMixin.lora_state_dict",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.WanLoraLoaderMixin.lora_state_dict.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) — | |
| Can be either:</p> | |
| <ul> | |
| <li>A string, the <em>model id</em> (for example <code>google/ddpm-celebahq-256</code>) of a pretrained model hosted on | |
| the Hub.</li> | |
| <li>A path to a <em>directory</em> (for example <code>./my_model_directory</code>) containing the model weights saved | |
| with <a href="/docs/diffusers/pr_11686/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>) — | |
| 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>) — | |
| 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>) — | |
| A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model | |
| won’t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) — | |
| The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from | |
| <code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>"main"</code>) — | |
| The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier | |
| allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>""</code>) — | |
| The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.lora_state_dict.return_lora_metadata",description:`<strong>return_lora_metadata</strong> (<code>bool</code>, <em>optional</em>, defaults to False) — | |
| When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.`,name:"return_lora_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L5070"}}),Et=new A({props:{warning:!0,$$slots:{default:[Ug]},$$scope:{ctx:T}}}),on=new $({props:{name:"save_lora_weights",anchor:"diffusers.loaders.WanLoraLoaderMixin.save_lora_weights",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"transformer_lora_layers",val:": typing.Dict[str, typing.Union[torch.nn.modules.module.Module, torch.Tensor]] = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": typing.Optional[dict] = None"}],parametersDescription:[{anchor:"diffusers.loaders.WanLoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) — | |
| Directory to save LoRA parameters to. Will be created if it doesn’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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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> — | |
| LoRA adapter metadata associated with the transformer to be serialized with the state dict.`,name:"transformer_lora_adapter_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L5333"}}),tn=new $({props:{name:"unfuse_lora",anchor:"diffusers.loaders.WanLoraLoaderMixin.unfuse_lora",parameters:[{name:"components",val:": typing.List[str] = ['transformer']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.WanLoraLoaderMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>List[str]</code>) — 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>) — Whether to unfuse the UNet LoRA parameters.",name:"unfuse_transformer"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L5439"}}),zt=new A({props:{warning:!0,$$slots:{default:[Hg]},$$scope:{ctx:T}}}),an=new Z({props:{title:"AmusedLoraLoaderMixin",local:"diffusers.loaders.AmusedLoraLoaderMixin",headingTag:"h2"}}),rn=new $({props:{name:"class diffusers.loaders.AmusedLoraLoaderMixin",anchor:"diffusers.loaders.AmusedLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L2831"}}),nn=new $({props:{name:"load_lora_into_transformer",anchor:"diffusers.loaders.AmusedLoraLoaderMixin.load_lora_into_transformer",parameters:[{name:"state_dict",val:""},{name:"network_alphas",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"metadata",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"}],parametersDescription:[{anchor:"diffusers.loaders.AmusedLoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) — | |
| A standard state dict containing the lora layer parameters. The keys can either be indexed directly | |
| into the unet or prefixed with an additional <code>unet</code> which can be used to distinguish between text | |
| encoder lora layers.`,name:"state_dict"},{anchor:"diffusers.loaders.AmusedLoraLoaderMixin.load_lora_into_transformer.network_alphas",description:`<strong>network_alphas</strong> (<code>Dict[str, float]</code>) — | |
| The value of the network alpha used for stable learning and preventing underflow. This value has the | |
| same meaning as the <code>--network_alpha</code> option in the kohya-ss trainer script. Refer to <a href="https://github.com/darkstorm2150/sd-scripts/blob/main/docs/train_network_README-en.md#execute-learning" rel="nofollow">this | |
| link</a>.`,name:"network_alphas"},{anchor:"diffusers.loaders.AmusedLoraLoaderMixin.load_lora_into_transformer.transformer",description:`<strong>transformer</strong> (<code>UVit2DModel</code>) — | |
| The Transformer model to load the LoRA layers into.`,name:"transformer"},{anchor:"diffusers.loaders.AmusedLoraLoaderMixin.load_lora_into_transformer.adapter_name",description:`<strong>adapter_name</strong> (<code>str</code>, <em>optional</em>) — | |
| Adapter name to be used for referencing the loaded adapter model. If not specified, it will use | |
| <code>default_{i}</code> where i is the total number of adapters being loaded.`,name:"adapter_name"},{anchor:"diffusers.loaders.AmusedLoraLoaderMixin.load_lora_into_transformer.low_cpu_mem_usage",description:`<strong>low_cpu_mem_usage</strong> (<code>bool</code>, <em>optional</em>) — | |
| Speed up model loading by only loading the pretrained LoRA weights and not initializing the random | |
| weights.`,name:"low_cpu_mem_usage"},{anchor:"diffusers.loaders.AmusedLoraLoaderMixin.load_lora_into_transformer.hotswap",description:`<strong>hotswap</strong> (<code>bool</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won’t be derived | |
| from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L2836"}}),sn=new $({props:{name:"save_lora_weights",anchor:"diffusers.loaders.AmusedLoraLoaderMixin.save_lora_weights",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"text_encoder_lora_layers",val:": typing.Dict[str, torch.nn.modules.module.Module] = None"},{name:"transformer_lora_layers",val:": typing.Dict[str, torch.nn.modules.module.Module] = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"}],parametersDescription:[{anchor:"diffusers.loaders.AmusedLoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) — | |
| Directory to save LoRA parameters to. Will be created if it doesn’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>) — | |
| 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>) — | |
| State dict of the LoRA layers corresponding to the <code>text_encoder</code>. Must explicitly pass the text | |
| encoder LoRA state dict because it comes from 🤗 Transformers.`,name:"text_encoder_lora_layers"},{anchor:"diffusers.loaders.AmusedLoraLoaderMixin.save_lora_weights.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| Whether the process calling this is the main process or not. Useful during distributed training and you | |
| need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on the main | |
| process to avoid race conditions.`,name:"is_main_process"},{anchor:"diffusers.loaders.AmusedLoraLoaderMixin.save_lora_weights.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) — | |
| The function to use to save the state dictionary. Useful during distributed training when you need to | |
| replace <code>torch.save</code> with another method. Can be configured with the environment variable | |
| <code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"},{anchor:"diffusers.loaders.AmusedLoraLoaderMixin.save_lora_weights.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) — | |
| Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L2951"}}),dn=new Z({props:{title:"HiDreamImageLoraLoaderMixin",local:"diffusers.loaders.HiDreamImageLoraLoaderMixin",headingTag:"h2"}}),ln=new $({props:{name:"class diffusers.loaders.HiDreamImageLoraLoaderMixin",anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L5799"}}),cn=new $({props:{name:"load_lora_into_transformer",anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.load_lora_into_transformer",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won’t be derived | |
| from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L5968"}}),fn=new $({props:{name:"load_lora_weights",anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.load_lora_weights",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"adapter_name",val:": typing.Optional[str] = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.load_lora_weights.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| 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>) — | |
| 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>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| See <a href="/docs/diffusers/pr_11686/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L5909"}}),pn=new $({props:{name:"lora_state_dict",anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.lora_state_dict",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.lora_state_dict.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) — | |
| Can be either:</p> | |
| <ul> | |
| <li>A string, the <em>model id</em> (for example <code>google/ddpm-celebahq-256</code>) of a pretrained model hosted on | |
| the Hub.</li> | |
| <li>A path to a <em>directory</em> (for example <code>./my_model_directory</code>) containing the model weights saved | |
| with <a href="/docs/diffusers/pr_11686/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>) — | |
| 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>) — | |
| 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>) — | |
| A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model | |
| won’t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) — | |
| The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from | |
| <code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>"main"</code>) — | |
| The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier | |
| allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>""</code>) — | |
| The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.lora_state_dict.return_lora_metadata",description:`<strong>return_lora_metadata</strong> (<code>bool</code>, <em>optional</em>, defaults to False) — | |
| When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.`,name:"return_lora_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L5807"}}),Zt=new A({props:{warning:!0,$$slots:{default:[Fg]},$$scope:{ctx:T}}}),mn=new $({props:{name:"save_lora_weights",anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.save_lora_weights",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"transformer_lora_layers",val:": typing.Dict[str, typing.Union[torch.nn.modules.module.Module, torch.Tensor]] = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": typing.Optional[dict] = None"}],parametersDescription:[{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) — | |
| Directory to save LoRA parameters to. Will be created if it doesn’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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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> — | |
| LoRA adapter metadata associated with the transformer to be serialized with the state dict.`,name:"transformer_lora_adapter_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L6019"}}),_n=new $({props:{name:"unfuse_lora",anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.unfuse_lora",parameters:[{name:"components",val:": typing.List[str] = ['transformer']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>List[str]</code>) — 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>) — Whether to unfuse the UNet LoRA parameters.",name:"unfuse_transformer"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L6125"}}),Yt=new A({props:{warning:!0,$$slots:{default:[Xg]},$$scope:{ctx:T}}}),un=new Z({props:{title:"WanLoraLoaderMixin",local:"diffusers.loaders.WanLoraLoaderMixin",headingTag:"h2"}}),hn=new $({props:{name:"class diffusers.loaders.WanLoraLoaderMixin",anchor:"diffusers.loaders.WanLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L5062"}}),gn=new $({props:{name:"load_lora_into_transformer",anchor:"diffusers.loaders.WanLoraLoaderMixin.load_lora_into_transformer",parameters:[{name:"state_dict",val:""},{name:"transformer",val:""},{name:"adapter_name",val:" = None"},{name:"_pipeline",val:" = None"},{name:"low_cpu_mem_usage",val:" = False"},{name:"hotswap",val:": bool = False"},{name:"metadata",val:" = None"}],parametersDescription:[{anchor:"diffusers.loaders.WanLoraLoaderMixin.load_lora_into_transformer.state_dict",description:`<strong>state_dict</strong> (<code>dict</code>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| Optional LoRA adapter metadata. When supplied, the <code>LoraConfig</code> arguments of <code>peft</code> won’t be derived | |
| from the state dict.`,name:"metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L5282"}}),Ln=new $({props:{name:"load_lora_weights",anchor:"diffusers.loaders.WanLoraLoaderMixin.load_lora_weights",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"adapter_name",val:": typing.Optional[str] = None"},{name:"hotswap",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.WanLoraLoaderMixin.load_lora_weights.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| 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>) — | |
| 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>) — | |
| See <a href="/docs/diffusers/pr_11686/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>) — | |
| See <a href="/docs/diffusers/pr_11686/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L5219"}}),xn=new $({props:{name:"lora_state_dict",anchor:"diffusers.loaders.WanLoraLoaderMixin.lora_state_dict",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.WanLoraLoaderMixin.lora_state_dict.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) — | |
| Can be either:</p> | |
| <ul> | |
| <li>A string, the <em>model id</em> (for example <code>google/ddpm-celebahq-256</code>) of a pretrained model hosted on | |
| the Hub.</li> | |
| <li>A path to a <em>directory</em> (for example <code>./my_model_directory</code>) containing the model weights saved | |
| with <a href="/docs/diffusers/pr_11686/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>) — | |
| 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>) — | |
| 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>) — | |
| A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.lora_state_dict.local_files_only",description:`<strong>local_files_only</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) — | |
| Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model | |
| won’t be downloaded from the Hub.`,name:"local_files_only"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.lora_state_dict.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) — | |
| The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from | |
| <code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.lora_state_dict.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>"main"</code>) — | |
| The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier | |
| allowed by Git.`,name:"revision"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.lora_state_dict.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>""</code>) — | |
| The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.loaders.WanLoraLoaderMixin.lora_state_dict.return_lora_metadata",description:`<strong>return_lora_metadata</strong> (<code>bool</code>, <em>optional</em>, defaults to False) — | |
| When enabled, additionally return the LoRA adapter metadata, typically found in the state dict.`,name:"return_lora_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L5070"}}),Kt=new A({props:{warning:!0,$$slots:{default:[Eg]},$$scope:{ctx:T}}}),bn=new $({props:{name:"save_lora_weights",anchor:"diffusers.loaders.WanLoraLoaderMixin.save_lora_weights",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"transformer_lora_layers",val:": typing.Dict[str, typing.Union[torch.nn.modules.module.Module, torch.Tensor]] = None"},{name:"is_main_process",val:": bool = True"},{name:"weight_name",val:": str = None"},{name:"save_function",val:": typing.Callable = None"},{name:"safe_serialization",val:": bool = True"},{name:"transformer_lora_adapter_metadata",val:": typing.Optional[dict] = None"}],parametersDescription:[{anchor:"diffusers.loaders.WanLoraLoaderMixin.save_lora_weights.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) — | |
| Directory to save LoRA parameters to. Will be created if it doesn’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>) — | |
| 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>) — | |
| 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>) — | |
| 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>) — | |
| 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> — | |
| LoRA adapter metadata associated with the transformer to be serialized with the state dict.`,name:"transformer_lora_adapter_metadata"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L5333"}}),vn=new $({props:{name:"unfuse_lora",anchor:"diffusers.loaders.WanLoraLoaderMixin.unfuse_lora",parameters:[{name:"components",val:": typing.List[str] = ['transformer']"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.WanLoraLoaderMixin.unfuse_lora.components",description:"<strong>components</strong> (<code>List[str]</code>) — 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>) — Whether to unfuse the UNet LoRA parameters.",name:"unfuse_transformer"}],source:"https://github.com/huggingface/diffusers/blob/vr_11686/src/diffusers/loaders/lora_pipeline.py#L5439"}}),oa=new A({props:{warning:!0,$$slots:{default:[Ng]},$$scope:{ctx:T}}}),wn=new tg({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/loaders/lora.md"}}),{c(){t=n("meta"),b=a(),l=n("p"),c=a(),p(M.$$.fragment),i=a(),y=n("p"),y.innerHTML=R_,Md=a(),ta=n("ul"),ta.innerHTML=I_,Td=a(),p(bo.$$.fragment),Dd=a(),p(aa.$$.fragment),Cd=a(),C=n("div"),p(ra.$$.fragment),Jl=a(),Hn=n("p"),Hn.textContent=V_,jl=a(),ve=n("div"),p(na.$$.fragment),Gl=a(),Fn=n("p"),Fn.textContent=W_,Zl=a(),p(vo.$$.fragment),Bl=a(),we=n("div"),p(sa.$$.fragment),Yl=a(),Xn=n("p"),Xn.textContent=P_,Ql=a(),p(wo.$$.fragment),Ol=a(),$e=n("div"),p(ia.$$.fragment),Kl=a(),En=n("p"),En.textContent=U_,ec=a(),p($o.$$.fragment),oc=a(),yo=n("div"),p(da.$$.fragment),tc=a(),Nn=n("p"),Nn.textContent=H_,ac=a(),he=n("div"),p(la.$$.fragment),rc=a(),zn=n("p"),zn.textContent=F_,nc=a(),p(Mo.$$.fragment),sc=a(),p(To.$$.fragment),ic=a(),ye=n("div"),p(ca.$$.fragment),dc=a(),qn=n("p"),qn.textContent=X_,lc=a(),p(Do.$$.fragment),cc=a(),Co=n("div"),p(fa.$$.fragment),fc=a(),Jn=n("p"),Jn.textContent=E_,pc=a(),Me=n("div"),p(pa.$$.fragment),mc=a(),jn=n("p"),jn.textContent=N_,_c=a(),p(So.$$.fragment),uc=a(),ge=n("div"),p(ma.$$.fragment),hc=a(),Gn=n("p"),Gn.innerHTML=z_,gc=a(),Zn=n("p"),Zn.textContent=q_,Lc=a(),p(Ao.$$.fragment),xc=a(),Te=n("div"),p(_a.$$.fragment),bc=a(),Bn=n("p"),Bn.innerHTML=J_,vc=a(),p(ko.$$.fragment),wc=a(),De=n("div"),p(ua.$$.fragment),$c=a(),Yn=n("p"),Yn.textContent=j_,yc=a(),p(Ro.$$.fragment),Mc=a(),Io=n("div"),p(ha.$$.fragment),Tc=a(),Qn=n("p"),Qn.textContent=G_,Sd=a(),p(ga.$$.fragment),Ad=a(),W=n("div"),p(La.$$.fragment),Dc=a(),On=n("p"),On.innerHTML=Z_,Cc=a(),Vo=n("div"),p(xa.$$.fragment),Sc=a(),Kn=n("p"),Kn.innerHTML=B_,Ac=a(),Wo=n("div"),p(ba.$$.fragment),kc=a(),es=n("p"),es.innerHTML=Y_,Rc=a(),Q=n("div"),p(va.$$.fragment),Ic=a(),os=n("p"),os.innerHTML=Q_,Vc=a(),ts=n("p"),ts.innerHTML=O_,Wc=a(),as=n("p"),as.innerHTML=K_,Pc=a(),rs=n("p"),rs.innerHTML=eu,Uc=a(),ns=n("p"),ns.innerHTML=ou,Hc=a(),Ce=n("div"),p(wa.$$.fragment),Fc=a(),ss=n("p"),ss.textContent=tu,Xc=a(),p(Po.$$.fragment),Ec=a(),Uo=n("div"),p($a.$$.fragment),Nc=a(),is=n("p"),is.textContent=au,kd=a(),p(ya.$$.fragment),Rd=a(),P=n("div"),p(Ma.$$.fragment),zc=a(),ds=n("p"),ds.innerHTML=ru,qc=a(),Ho=n("div"),p(Ta.$$.fragment),Jc=a(),ls=n("p"),ls.innerHTML=nu,jc=a(),Fo=n("div"),p(Da.$$.fragment),Gc=a(),cs=n("p"),cs.innerHTML=su,Zc=a(),O=n("div"),p(Ca.$$.fragment),Bc=a(),fs=n("p"),fs.innerHTML=iu,Yc=a(),ps=n("p"),ps.innerHTML=du,Qc=a(),ms=n("p"),ms.innerHTML=lu,Oc=a(),_s=n("p"),_s.innerHTML=cu,Kc=a(),us=n("p"),us.innerHTML=fu,ef=a(),Se=n("div"),p(Sa.$$.fragment),of=a(),hs=n("p"),hs.textContent=pu,tf=a(),p(Xo.$$.fragment),af=a(),Eo=n("div"),p(Aa.$$.fragment),rf=a(),gs=n("p"),gs.textContent=mu,Id=a(),p(ka.$$.fragment),Vd=a(),R=n("div"),p(Ra.$$.fragment),nf=a(),Ls=n("p"),Ls.innerHTML=_u,sf=a(),xs=n("p"),xs.innerHTML=uu,df=a(),No=n("div"),p(Ia.$$.fragment),lf=a(),bs=n("p"),bs.innerHTML=hu,cf=a(),zo=n("div"),p(Va.$$.fragment),ff=a(),vs=n("p"),vs.innerHTML=gu,pf=a(),oe=n("div"),p(Wa.$$.fragment),mf=a(),ws=n("p"),ws.innerHTML=Lu,_f=a(),$s=n("p"),$s.innerHTML=xu,uf=a(),ys=n("p"),ys.innerHTML=bu,hf=a(),Ms=n("p"),Ms.innerHTML=vu,gf=a(),Ae=n("div"),p(Pa.$$.fragment),Lf=a(),Ts=n("p"),Ts.textContent=wu,xf=a(),p(qo.$$.fragment),bf=a(),Jo=n("div"),p(Ua.$$.fragment),vf=a(),Ds=n("p"),Ds.textContent=$u,wf=a(),ke=n("div"),p(Ha.$$.fragment),$f=a(),Cs=n("p"),Cs.innerHTML=yu,yf=a(),p(jo.$$.fragment),Wd=a(),p(Fa.$$.fragment),Pd=a(),k=n("div"),p(Xa.$$.fragment),Mf=a(),Ss=n("p"),Ss.innerHTML=Mu,Tf=a(),As=n("p"),As.innerHTML=Tu,Df=a(),Go=n("div"),p(Ea.$$.fragment),Cf=a(),ks=n("p"),ks.innerHTML=Du,Sf=a(),Zo=n("div"),p(Na.$$.fragment),Af=a(),Rs=n("p"),Rs.innerHTML=Cu,kf=a(),te=n("div"),p(za.$$.fragment),Rf=a(),Is=n("p"),Is.innerHTML=Su,If=a(),Vs=n("p"),Vs.innerHTML=Au,Vf=a(),Ws=n("p"),Ws.innerHTML=ku,Wf=a(),Ps=n("p"),Ps.innerHTML=Ru,Pf=a(),Re=n("div"),p(qa.$$.fragment),Uf=a(),Us=n("p"),Us.textContent=Iu,Hf=a(),p(Bo.$$.fragment),Ff=a(),Yo=n("div"),p(Ja.$$.fragment),Xf=a(),Hs=n("p"),Hs.textContent=Vu,Ef=a(),Ie=n("div"),p(ja.$$.fragment),Nf=a(),Fs=n("p"),Fs.innerHTML=Wu,zf=a(),p(Qo.$$.fragment),qf=a(),Ve=n("div"),p(Ga.$$.fragment),Jf=a(),Xs=n("p"),Xs.textContent=Pu,jf=a(),p(Oo.$$.fragment),Ud=a(),p(Za.$$.fragment),Hd=a(),U=n("div"),p(Ba.$$.fragment),Gf=a(),Es=n("p"),Es.innerHTML=Uu,Zf=a(),Ko=n("div"),p(Ya.$$.fragment),Bf=a(),Ns=n("p"),Ns.innerHTML=Hu,Yf=a(),et=n("div"),p(Qa.$$.fragment),Qf=a(),zs=n("p"),zs.innerHTML=Fu,Of=a(),We=n("div"),p(Oa.$$.fragment),Kf=a(),qs=n("p"),qs.textContent=Xu,ep=a(),p(ot.$$.fragment),op=a(),tt=n("div"),p(Ka.$$.fragment),tp=a(),Js=n("p"),Js.textContent=Eu,ap=a(),Pe=n("div"),p(er.$$.fragment),rp=a(),js=n("p"),js.innerHTML=Nu,np=a(),p(at.$$.fragment),Fd=a(),p(or.$$.fragment),Xd=a(),H=n("div"),p(tr.$$.fragment),sp=a(),Gs=n("p"),Gs.innerHTML=zu,ip=a(),rt=n("div"),p(ar.$$.fragment),dp=a(),Zs=n("p"),Zs.innerHTML=qu,lp=a(),nt=n("div"),p(rr.$$.fragment),cp=a(),Bs=n("p"),Bs.innerHTML=Ju,fp=a(),Ue=n("div"),p(nr.$$.fragment),pp=a(),Ys=n("p"),Ys.textContent=ju,mp=a(),p(st.$$.fragment),_p=a(),it=n("div"),p(sr.$$.fragment),up=a(),Qs=n("p"),Qs.textContent=Gu,hp=a(),He=n("div"),p(ir.$$.fragment),gp=a(),Os=n("p"),Os.innerHTML=Zu,Lp=a(),p(dt.$$.fragment),Ed=a(),p(dr.$$.fragment),Nd=a(),F=n("div"),p(lr.$$.fragment),xp=a(),Ks=n("p"),Ks.innerHTML=Bu,bp=a(),lt=n("div"),p(cr.$$.fragment),vp=a(),ei=n("p"),ei.innerHTML=Yu,wp=a(),ct=n("div"),p(fr.$$.fragment),$p=a(),oi=n("p"),oi.innerHTML=Qu,yp=a(),Fe=n("div"),p(pr.$$.fragment),Mp=a(),ti=n("p"),ti.textContent=Ou,Tp=a(),p(ft.$$.fragment),Dp=a(),pt=n("div"),p(mr.$$.fragment),Cp=a(),ai=n("p"),ai.textContent=Ku,Sp=a(),Xe=n("div"),p(_r.$$.fragment),Ap=a(),ri=n("p"),ri.innerHTML=eh,kp=a(),p(mt.$$.fragment),zd=a(),p(ur.$$.fragment),qd=a(),X=n("div"),p(hr.$$.fragment),Rp=a(),ni=n("p"),ni.innerHTML=oh,Ip=a(),_t=n("div"),p(gr.$$.fragment),Vp=a(),si=n("p"),si.innerHTML=th,Wp=a(),ut=n("div"),p(Lr.$$.fragment),Pp=a(),ii=n("p"),ii.innerHTML=ah,Up=a(),Ee=n("div"),p(xr.$$.fragment),Hp=a(),di=n("p"),di.textContent=rh,Fp=a(),p(ht.$$.fragment),Xp=a(),gt=n("div"),p(br.$$.fragment),Ep=a(),li=n("p"),li.textContent=nh,Np=a(),Ne=n("div"),p(vr.$$.fragment),zp=a(),ci=n("p"),ci.innerHTML=sh,qp=a(),p(Lt.$$.fragment),Jd=a(),p(wr.$$.fragment),jd=a(),E=n("div"),p($r.$$.fragment),Jp=a(),fi=n("p"),fi.innerHTML=ih,jp=a(),xt=n("div"),p(yr.$$.fragment),Gp=a(),pi=n("p"),pi.innerHTML=dh,Zp=a(),bt=n("div"),p(Mr.$$.fragment),Bp=a(),mi=n("p"),mi.innerHTML=lh,Yp=a(),ze=n("div"),p(Tr.$$.fragment),Qp=a(),_i=n("p"),_i.textContent=ch,Op=a(),p(vt.$$.fragment),Kp=a(),wt=n("div"),p(Dr.$$.fragment),em=a(),ui=n("p"),ui.textContent=fh,om=a(),qe=n("div"),p(Cr.$$.fragment),tm=a(),hi=n("p"),hi.innerHTML=ph,am=a(),p($t.$$.fragment),Gd=a(),p(Sr.$$.fragment),Zd=a(),N=n("div"),p(Ar.$$.fragment),rm=a(),gi=n("p"),gi.innerHTML=mh,nm=a(),yt=n("div"),p(kr.$$.fragment),sm=a(),Li=n("p"),Li.innerHTML=_h,im=a(),Mt=n("div"),p(Rr.$$.fragment),dm=a(),xi=n("p"),xi.innerHTML=uh,lm=a(),Je=n("div"),p(Ir.$$.fragment),cm=a(),bi=n("p"),bi.textContent=hh,fm=a(),p(Tt.$$.fragment),pm=a(),Dt=n("div"),p(Vr.$$.fragment),mm=a(),vi=n("p"),vi.textContent=gh,_m=a(),je=n("div"),p(Wr.$$.fragment),um=a(),wi=n("p"),wi.innerHTML=Lh,hm=a(),p(Ct.$$.fragment),Bd=a(),p(Pr.$$.fragment),Yd=a(),z=n("div"),p(Ur.$$.fragment),gm=a(),$i=n("p"),$i.innerHTML=xh,Lm=a(),St=n("div"),p(Hr.$$.fragment),xm=a(),yi=n("p"),yi.innerHTML=bh,bm=a(),At=n("div"),p(Fr.$$.fragment),vm=a(),Mi=n("p"),Mi.innerHTML=vh,wm=a(),Ge=n("div"),p(Xr.$$.fragment),$m=a(),Ti=n("p"),Ti.textContent=wh,ym=a(),p(kt.$$.fragment),Mm=a(),Rt=n("div"),p(Er.$$.fragment),Tm=a(),Di=n("p"),Di.textContent=$h,Dm=a(),Ze=n("div"),p(Nr.$$.fragment),Cm=a(),Ci=n("p"),Ci.innerHTML=yh,Sm=a(),p(It.$$.fragment),Qd=a(),p(zr.$$.fragment),Od=a(),q=n("div"),p(qr.$$.fragment),Am=a(),Si=n("p"),Si.innerHTML=Mh,km=a(),Vt=n("div"),p(Jr.$$.fragment),Rm=a(),Ai=n("p"),Ai.innerHTML=Th,Im=a(),Wt=n("div"),p(jr.$$.fragment),Vm=a(),ki=n("p"),ki.innerHTML=Dh,Wm=a(),Be=n("div"),p(Gr.$$.fragment),Pm=a(),Ri=n("p"),Ri.textContent=Ch,Um=a(),p(Pt.$$.fragment),Hm=a(),Ut=n("div"),p(Zr.$$.fragment),Fm=a(),Ii=n("p"),Ii.textContent=Sh,Xm=a(),Ye=n("div"),p(Br.$$.fragment),Em=a(),Vi=n("p"),Vi.innerHTML=Ah,Nm=a(),p(Ht.$$.fragment),Kd=a(),p(Yr.$$.fragment),el=a(),J=n("div"),p(Qr.$$.fragment),zm=a(),Wi=n("p"),Wi.innerHTML=kh,qm=a(),Ft=n("div"),p(Or.$$.fragment),Jm=a(),Pi=n("p"),Pi.innerHTML=Rh,jm=a(),Xt=n("div"),p(Kr.$$.fragment),Gm=a(),Ui=n("p"),Ui.innerHTML=Ih,Zm=a(),Qe=n("div"),p(en.$$.fragment),Bm=a(),Hi=n("p"),Hi.textContent=Vh,Ym=a(),p(Et.$$.fragment),Qm=a(),Nt=n("div"),p(on.$$.fragment),Om=a(),Fi=n("p"),Fi.textContent=Wh,Km=a(),Oe=n("div"),p(tn.$$.fragment),e_=a(),Xi=n("p"),Xi.innerHTML=Ph,o_=a(),p(zt.$$.fragment),ol=a(),p(an.$$.fragment),tl=a(),Le=n("div"),p(rn.$$.fragment),t_=a(),qt=n("div"),p(nn.$$.fragment),a_=a(),Ei=n("p"),Ei.innerHTML=Uh,r_=a(),Jt=n("div"),p(sn.$$.fragment),n_=a(),Ni=n("p"),Ni.textContent=Hh,al=a(),p(dn.$$.fragment),rl=a(),j=n("div"),p(ln.$$.fragment),s_=a(),zi=n("p"),zi.innerHTML=Fh,i_=a(),jt=n("div"),p(cn.$$.fragment),d_=a(),qi=n("p"),qi.innerHTML=Xh,l_=a(),Gt=n("div"),p(fn.$$.fragment),c_=a(),Ji=n("p"),Ji.innerHTML=Eh,f_=a(),Ke=n("div"),p(pn.$$.fragment),p_=a(),ji=n("p"),ji.textContent=Nh,m_=a(),p(Zt.$$.fragment),__=a(),Bt=n("div"),p(mn.$$.fragment),u_=a(),Gi=n("p"),Gi.textContent=zh,h_=a(),eo=n("div"),p(_n.$$.fragment),g_=a(),Zi=n("p"),Zi.innerHTML=qh,L_=a(),p(Yt.$$.fragment),nl=a(),p(un.$$.fragment),sl=a(),G=n("div"),p(hn.$$.fragment),x_=a(),Bi=n("p"),Bi.innerHTML=Jh,b_=a(),Qt=n("div"),p(gn.$$.fragment),v_=a(),Yi=n("p"),Yi.innerHTML=jh,w_=a(),Ot=n("div"),p(Ln.$$.fragment),$_=a(),Qi=n("p"),Qi.innerHTML=Gh,y_=a(),oo=n("div"),p(xn.$$.fragment),M_=a(),Oi=n("p"),Oi.textContent=Zh,T_=a(),p(Kt.$$.fragment),D_=a(),ea=n("div"),p(bn.$$.fragment),C_=a(),Ki=n("p"),Ki.textContent=Bh,S_=a(),to=n("div"),p(vn.$$.fragment),A_=a(),ed=n("p"),ed.innerHTML=Yh,k_=a(),p(oa.$$.fragment),il=a(),p(wn.$$.fragment),dl=a(),yd=n("p"),this.h()},l(e){const L=og("svelte-u9bgzb",document.head);t=s(L,"META",{name:!0,content:!0}),L.forEach(d),b=r(e),l=s(e,"P",{}),v(l).forEach(d),c=r(e),m(M.$$.fragment,e),i=r(e),y=s(e,"P",{"data-svelte-h":!0}),f(y)!=="svelte-17fbygt"&&(y.innerHTML=R_),Md=r(e),ta=s(e,"UL",{"data-svelte-h":!0}),f(ta)!=="svelte-n1w85r"&&(ta.innerHTML=I_),Td=r(e),m(bo.$$.fragment,e),Dd=r(e),m(aa.$$.fragment,e),Cd=r(e),C=s(e,"DIV",{class:!0});var S=v(C);m(ra.$$.fragment,S),Jl=r(S),Hn=s(S,"P",{"data-svelte-h":!0}),f(Hn)!=="svelte-1q4bbx"&&(Hn.textContent=V_),jl=r(S),ve=s(S,"DIV",{class:!0});var ao=v(ve);m(na.$$.fragment,ao),Gl=r(ao),Fn=s(ao,"P",{"data-svelte-h":!0}),f(Fn)!=="svelte-197ly1e"&&(Fn.textContent=W_),Zl=r(ao),m(vo.$$.fragment,ao),ao.forEach(d),Bl=r(S),we=s(S,"DIV",{class:!0});var ro=v(we);m(sa.$$.fragment,ro),Yl=r(ro),Xn=s(ro,"P",{"data-svelte-h":!0}),f(Xn)!=="svelte-1k7sb6g"&&(Xn.textContent=P_),Ql=r(ro),m(wo.$$.fragment,ro),ro.forEach(d),Ol=r(S),$e=s(S,"DIV",{class:!0});var no=v($e);m(ia.$$.fragment,no),Kl=r(no),En=s(no,"P",{"data-svelte-h":!0}),f(En)!=="svelte-1270mz9"&&(En.textContent=U_),ec=r(no),m($o.$$.fragment,no),no.forEach(d),oc=r(S),yo=s(S,"DIV",{class:!0});var $n=v(yo);m(da.$$.fragment,$n),tc=r($n),Nn=s($n,"P",{"data-svelte-h":!0}),f(Nn)!=="svelte-aqzrjr"&&(Nn.textContent=H_),$n.forEach(d),ac=r(S),he=s(S,"DIV",{class:!0});var xe=v(he);m(la.$$.fragment,xe),rc=r(xe),zn=s(xe,"P",{"data-svelte-h":!0}),f(zn)!=="svelte-1nr2dy0"&&(zn.textContent=F_),nc=r(xe),m(Mo.$$.fragment,xe),sc=r(xe),m(To.$$.fragment,xe),xe.forEach(d),ic=r(S),ye=s(S,"DIV",{class:!0});var so=v(ye);m(ca.$$.fragment,so),dc=r(so),qn=s(so,"P",{"data-svelte-h":!0}),f(qn)!=="svelte-h0os0v"&&(qn.textContent=X_),lc=r(so),m(Do.$$.fragment,so),so.forEach(d),cc=r(S),Co=s(S,"DIV",{class:!0});var yn=v(Co);m(fa.$$.fragment,yn),fc=r(yn),Jn=s(yn,"P",{"data-svelte-h":!0}),f(Jn)!=="svelte-1825k9e"&&(Jn.textContent=E_),yn.forEach(d),pc=r(S),Me=s(S,"DIV",{class:!0});var io=v(Me);m(pa.$$.fragment,io),mc=r(io),jn=s(io,"P",{"data-svelte-h":!0}),f(jn)!=="svelte-1nht1gz"&&(jn.textContent=N_),_c=r(io),m(So.$$.fragment,io),io.forEach(d),uc=r(S),ge=s(S,"DIV",{class:!0});var be=v(ge);m(ma.$$.fragment,be),hc=r(be),Gn=s(be,"P",{"data-svelte-h":!0}),f(Gn)!=="svelte-rvubqa"&&(Gn.innerHTML=z_),gc=r(be),Zn=s(be,"P",{"data-svelte-h":!0}),f(Zn)!=="svelte-x8llv0"&&(Zn.textContent=q_),Lc=r(be),m(Ao.$$.fragment,be),be.forEach(d),xc=r(S),Te=s(S,"DIV",{class:!0});var lo=v(Te);m(_a.$$.fragment,lo),bc=r(lo),Bn=s(lo,"P",{"data-svelte-h":!0}),f(Bn)!=="svelte-ioswce"&&(Bn.innerHTML=J_),vc=r(lo),m(ko.$$.fragment,lo),lo.forEach(d),wc=r(S),De=s(S,"DIV",{class:!0});var co=v(De);m(ua.$$.fragment,co),$c=r(co),Yn=s(co,"P",{"data-svelte-h":!0}),f(Yn)!=="svelte-119cgd9"&&(Yn.textContent=j_),yc=r(co),m(Ro.$$.fragment,co),co.forEach(d),Mc=r(S),Io=s(S,"DIV",{class:!0});var Mn=v(Io);m(ha.$$.fragment,Mn),Tc=r(Mn),Qn=s(Mn,"P",{"data-svelte-h":!0}),f(Qn)!=="svelte-1rtya5j"&&(Qn.textContent=G_),Mn.forEach(d),S.forEach(d),Sd=r(e),m(ga.$$.fragment,e),Ad=r(e),W=s(e,"DIV",{class:!0});var B=v(W);m(La.$$.fragment,B),Dc=r(B),On=s(B,"P",{"data-svelte-h":!0}),f(On)!=="svelte-yufujr"&&(On.innerHTML=Z_),Cc=r(B),Vo=s(B,"DIV",{class:!0});var Tn=v(Vo);m(xa.$$.fragment,Tn),Sc=r(Tn),Kn=s(Tn,"P",{"data-svelte-h":!0}),f(Kn)!=="svelte-1062ci4"&&(Kn.innerHTML=B_),Tn.forEach(d),Ac=r(B),Wo=s(B,"DIV",{class:!0});var Dn=v(Wo);m(ba.$$.fragment,Dn),kc=r(Dn),es=s(Dn,"P",{"data-svelte-h":!0}),f(es)!=="svelte-u3q4so"&&(es.innerHTML=Y_),Dn.forEach(d),Rc=r(B),Q=s(B,"DIV",{class:!0});var K=v(Q);m(va.$$.fragment,K),Ic=r(K),os=s(K,"P",{"data-svelte-h":!0}),f(os)!=="svelte-vs7s0z"&&(os.innerHTML=Q_),Vc=r(K),ts=s(K,"P",{"data-svelte-h":!0}),f(ts)!=="svelte-15b960v"&&(ts.innerHTML=O_),Wc=r(K),as=s(K,"P",{"data-svelte-h":!0}),f(as)!=="svelte-1kzekhw"&&(as.innerHTML=K_),Pc=r(K),rs=s(K,"P",{"data-svelte-h":!0}),f(rs)!=="svelte-7cbc23"&&(rs.innerHTML=eu),Uc=r(K),ns=s(K,"P",{"data-svelte-h":!0}),f(ns)!=="svelte-1rb1ttl"&&(ns.innerHTML=ou),K.forEach(d),Hc=r(B),Ce=s(B,"DIV",{class:!0});var fo=v(Ce);m(wa.$$.fragment,fo),Fc=r(fo),ss=s(fo,"P",{"data-svelte-h":!0}),f(ss)!=="svelte-flusvq"&&(ss.textContent=tu),Xc=r(fo),m(Po.$$.fragment,fo),fo.forEach(d),Ec=r(B),Uo=s(B,"DIV",{class:!0});var Cn=v(Uo);m($a.$$.fragment,Cn),Nc=r(Cn),is=s(Cn,"P",{"data-svelte-h":!0}),f(is)!=="svelte-1ufq5ot"&&(is.textContent=au),Cn.forEach(d),B.forEach(d),kd=r(e),m(ya.$$.fragment,e),Rd=r(e),P=s(e,"DIV",{class:!0});var Y=v(P);m(Ma.$$.fragment,Y),zc=r(Y),ds=s(Y,"P",{"data-svelte-h":!0}),f(ds)!=="svelte-16fakpw"&&(ds.innerHTML=ru),qc=r(Y),Ho=s(Y,"DIV",{class:!0});var Sn=v(Ho);m(Ta.$$.fragment,Sn),Jc=r(Sn),ls=s(Sn,"P",{"data-svelte-h":!0}),f(ls)!=="svelte-1062ci4"&&(ls.innerHTML=nu),Sn.forEach(d),jc=r(Y),Fo=s(Y,"DIV",{class:!0});var An=v(Fo);m(Da.$$.fragment,An),Gc=r(An),cs=s(An,"P",{"data-svelte-h":!0}),f(cs)!=="svelte-u3q4so"&&(cs.innerHTML=su),An.forEach(d),Zc=r(Y),O=s(Y,"DIV",{class:!0});var ee=v(O);m(Ca.$$.fragment,ee),Bc=r(ee),fs=s(ee,"P",{"data-svelte-h":!0}),f(fs)!=="svelte-vs7s0z"&&(fs.innerHTML=iu),Yc=r(ee),ps=s(ee,"P",{"data-svelte-h":!0}),f(ps)!=="svelte-15b960v"&&(ps.innerHTML=du),Qc=r(ee),ms=s(ee,"P",{"data-svelte-h":!0}),f(ms)!=="svelte-1kzekhw"&&(ms.innerHTML=lu),Oc=r(ee),_s=s(ee,"P",{"data-svelte-h":!0}),f(_s)!=="svelte-7cbc23"&&(_s.innerHTML=cu),Kc=r(ee),us=s(ee,"P",{"data-svelte-h":!0}),f(us)!=="svelte-1rb1ttl"&&(us.innerHTML=fu),ee.forEach(d),ef=r(Y),Se=s(Y,"DIV",{class:!0});var po=v(Se);m(Sa.$$.fragment,po),of=r(po),hs=s(po,"P",{"data-svelte-h":!0}),f(hs)!=="svelte-flusvq"&&(hs.textContent=pu),tf=r(po),m(Xo.$$.fragment,po),po.forEach(d),af=r(Y),Eo=s(Y,"DIV",{class:!0});var kn=v(Eo);m(Aa.$$.fragment,kn),rf=r(kn),gs=s(kn,"P",{"data-svelte-h":!0}),f(gs)!=="svelte-1ufq5ot"&&(gs.textContent=mu),kn.forEach(d),Y.forEach(d),Id=r(e),m(ka.$$.fragment,e),Vd=r(e),R=s(e,"DIV",{class:!0});var V=v(R);m(Ra.$$.fragment,V),nf=r(V),Ls=s(V,"P",{"data-svelte-h":!0}),f(Ls)!=="svelte-psxwqt"&&(Ls.innerHTML=_u),sf=r(V),xs=s(V,"P",{"data-svelte-h":!0}),f(xs)!=="svelte-mlhaif"&&(xs.innerHTML=uu),df=r(V),No=s(V,"DIV",{class:!0});var Rn=v(No);m(Ia.$$.fragment,Rn),lf=r(Rn),bs=s(Rn,"P",{"data-svelte-h":!0}),f(bs)!=="svelte-1062ci4"&&(bs.innerHTML=hu),Rn.forEach(d),cf=r(V),zo=s(V,"DIV",{class:!0});var In=v(zo);m(Va.$$.fragment,In),ff=r(In),vs=s(In,"P",{"data-svelte-h":!0}),f(vs)!=="svelte-1lgbsz7"&&(vs.innerHTML=gu),In.forEach(d),pf=r(V),oe=s(V,"DIV",{class:!0});var _e=v(oe);m(Wa.$$.fragment,_e),mf=r(_e),ws=s(_e,"P",{"data-svelte-h":!0}),f(ws)!=="svelte-vs7s0z"&&(ws.innerHTML=Lu),_f=r(_e),$s=s(_e,"P",{"data-svelte-h":!0}),f($s)!=="svelte-15b960v"&&($s.innerHTML=xu),uf=r(_e),ys=s(_e,"P",{"data-svelte-h":!0}),f(ys)!=="svelte-1kzekhw"&&(ys.innerHTML=bu),hf=r(_e),Ms=s(_e,"P",{"data-svelte-h":!0}),f(Ms)!=="svelte-1ukghd4"&&(Ms.innerHTML=vu),_e.forEach(d),gf=r(V),Ae=s(V,"DIV",{class:!0});var mo=v(Ae);m(Pa.$$.fragment,mo),Lf=r(mo),Ts=s(mo,"P",{"data-svelte-h":!0}),f(Ts)!=="svelte-flusvq"&&(Ts.textContent=wu),xf=r(mo),m(qo.$$.fragment,mo),mo.forEach(d),bf=r(V),Jo=s(V,"DIV",{class:!0});var Vn=v(Jo);m(Ua.$$.fragment,Vn),vf=r(Vn),Ds=s(Vn,"P",{"data-svelte-h":!0}),f(Ds)!=="svelte-1ufq5ot"&&(Ds.textContent=$u),Vn.forEach(d),wf=r(V),ke=s(V,"DIV",{class:!0});var _o=v(ke);m(Ha.$$.fragment,_o),$f=r(_o),Cs=s(_o,"P",{"data-svelte-h":!0}),f(Cs)!=="svelte-ioswce"&&(Cs.innerHTML=yu),yf=r(_o),m(jo.$$.fragment,_o),_o.forEach(d),V.forEach(d),Wd=r(e),m(Fa.$$.fragment,e),Pd=r(e),k=s(e,"DIV",{class:!0});var I=v(k);m(Xa.$$.fragment,I),Mf=r(I),Ss=s(I,"P",{"data-svelte-h":!0}),f(Ss)!=="svelte-8edvyk"&&(Ss.innerHTML=Mu),Tf=r(I),As=s(I,"P",{"data-svelte-h":!0}),f(As)!=="svelte-mlhaif"&&(As.innerHTML=Tu),Df=r(I),Go=s(I,"DIV",{class:!0});var Wn=v(Go);m(Ea.$$.fragment,Wn),Cf=r(Wn),ks=s(Wn,"P",{"data-svelte-h":!0}),f(ks)!=="svelte-1062ci4"&&(ks.innerHTML=Du),Wn.forEach(d),Sf=r(I),Zo=s(I,"DIV",{class:!0});var Pn=v(Zo);m(Na.$$.fragment,Pn),Af=r(Pn),Rs=s(Pn,"P",{"data-svelte-h":!0}),f(Rs)!=="svelte-1lgbsz7"&&(Rs.innerHTML=Cu),Pn.forEach(d),kf=r(I),te=s(I,"DIV",{class:!0});var ue=v(te);m(za.$$.fragment,ue),Rf=r(ue),Is=s(ue,"P",{"data-svelte-h":!0}),f(Is)!=="svelte-178gcly"&&(Is.innerHTML=Su),If=r(ue),Vs=s(ue,"P",{"data-svelte-h":!0}),f(Vs)!=="svelte-15b960v"&&(Vs.innerHTML=Au),Vf=r(ue),Ws=s(ue,"P",{"data-svelte-h":!0}),f(Ws)!=="svelte-1kzekhw"&&(Ws.innerHTML=ku),Wf=r(ue),Ps=s(ue,"P",{"data-svelte-h":!0}),f(Ps)!=="svelte-1ukghd4"&&(Ps.innerHTML=Ru),ue.forEach(d),Pf=r(I),Re=s(I,"DIV",{class:!0});var uo=v(Re);m(qa.$$.fragment,uo),Uf=r(uo),Us=s(uo,"P",{"data-svelte-h":!0}),f(Us)!=="svelte-flusvq"&&(Us.textContent=Iu),Hf=r(uo),m(Bo.$$.fragment,uo),uo.forEach(d),Ff=r(I),Yo=s(I,"DIV",{class:!0});var Un=v(Yo);m(Ja.$$.fragment,Un),Xf=r(Un),Hs=s(Un,"P",{"data-svelte-h":!0}),f(Hs)!=="svelte-1ufq5ot"&&(Hs.textContent=Vu),Un.forEach(d),Ef=r(I),Ie=s(I,"DIV",{class:!0});var ho=v(Ie);m(ja.$$.fragment,ho),Nf=r(ho),Fs=s(ho,"P",{"data-svelte-h":!0}),f(Fs)!=="svelte-ioswce"&&(Fs.innerHTML=Wu),zf=r(ho),m(Qo.$$.fragment,ho),ho.forEach(d),qf=r(I),Ve=s(I,"DIV",{class:!0});var go=v(Ve);m(Ga.$$.fragment,go),Jf=r(go),Xs=s(go,"P",{"data-svelte-h":!0}),f(Xs)!=="svelte-119cgd9"&&(Xs.textContent=Pu),jf=r(go),m(Oo.$$.fragment,go),go.forEach(d),I.forEach(d),Ud=r(e),m(Za.$$.fragment,e),Hd=r(e),U=s(e,"DIV",{class:!0});var ae=v(U);m(Ba.$$.fragment,ae),Gf=r(ae),Es=s(ae,"P",{"data-svelte-h":!0}),f(Es)!=="svelte-eewgcb"&&(Es.innerHTML=Uu),Zf=r(ae),Ko=s(ae,"DIV",{class:!0});var cl=v(Ko);m(Ya.$$.fragment,cl),Bf=r(cl),Ns=s(cl,"P",{"data-svelte-h":!0}),f(Ns)!=="svelte-1lgbsz7"&&(Ns.innerHTML=Hu),cl.forEach(d),Yf=r(ae),et=s(ae,"DIV",{class:!0});var fl=v(et);m(Qa.$$.fragment,fl),Qf=r(fl),zs=s(fl,"P",{"data-svelte-h":!0}),f(zs)!=="svelte-6dsibd"&&(zs.innerHTML=Fu),fl.forEach(d),Of=r(ae),We=s(ae,"DIV",{class:!0});var od=v(We);m(Oa.$$.fragment,od),Kf=r(od),qs=s(od,"P",{"data-svelte-h":!0}),f(qs)!=="svelte-flusvq"&&(qs.textContent=Xu),ep=r(od),m(ot.$$.fragment,od),od.forEach(d),op=r(ae),tt=s(ae,"DIV",{class:!0});var pl=v(tt);m(Ka.$$.fragment,pl),tp=r(pl),Js=s(pl,"P",{"data-svelte-h":!0}),f(Js)!=="svelte-1gl6t2c"&&(Js.textContent=Eu),pl.forEach(d),ap=r(ae),Pe=s(ae,"DIV",{class:!0});var td=v(Pe);m(er.$$.fragment,td),rp=r(td),js=s(td,"P",{"data-svelte-h":!0}),f(js)!=="svelte-ioswce"&&(js.innerHTML=Nu),np=r(td),m(at.$$.fragment,td),td.forEach(d),ae.forEach(d),Fd=r(e),m(or.$$.fragment,e),Xd=r(e),H=s(e,"DIV",{class:!0});var re=v(H);m(tr.$$.fragment,re),sp=r(re),Gs=s(re,"P",{"data-svelte-h":!0}),f(Gs)!=="svelte-e8pzmr"&&(Gs.innerHTML=zu),ip=r(re),rt=s(re,"DIV",{class:!0});var ml=v(rt);m(ar.$$.fragment,ml),dp=r(ml),Zs=s(ml,"P",{"data-svelte-h":!0}),f(Zs)!=="svelte-1lgbsz7"&&(Zs.innerHTML=qu),ml.forEach(d),lp=r(re),nt=s(re,"DIV",{class:!0});var _l=v(nt);m(rr.$$.fragment,_l),cp=r(_l),Bs=s(_l,"P",{"data-svelte-h":!0}),f(Bs)!=="svelte-6dsibd"&&(Bs.innerHTML=Ju),_l.forEach(d),fp=r(re),Ue=s(re,"DIV",{class:!0});var ad=v(Ue);m(nr.$$.fragment,ad),pp=r(ad),Ys=s(ad,"P",{"data-svelte-h":!0}),f(Ys)!=="svelte-flusvq"&&(Ys.textContent=ju),mp=r(ad),m(st.$$.fragment,ad),ad.forEach(d),_p=r(re),it=s(re,"DIV",{class:!0});var ul=v(it);m(sr.$$.fragment,ul),up=r(ul),Qs=s(ul,"P",{"data-svelte-h":!0}),f(Qs)!=="svelte-1gl6t2c"&&(Qs.textContent=Gu),ul.forEach(d),hp=r(re),He=s(re,"DIV",{class:!0});var rd=v(He);m(ir.$$.fragment,rd),gp=r(rd),Os=s(rd,"P",{"data-svelte-h":!0}),f(Os)!=="svelte-ioswce"&&(Os.innerHTML=Zu),Lp=r(rd),m(dt.$$.fragment,rd),rd.forEach(d),re.forEach(d),Ed=r(e),m(dr.$$.fragment,e),Nd=r(e),F=s(e,"DIV",{class:!0});var ne=v(F);m(lr.$$.fragment,ne),xp=r(ne),Ks=s(ne,"P",{"data-svelte-h":!0}),f(Ks)!=="svelte-1adktic"&&(Ks.innerHTML=Bu),bp=r(ne),lt=s(ne,"DIV",{class:!0});var hl=v(lt);m(cr.$$.fragment,hl),vp=r(hl),ei=s(hl,"P",{"data-svelte-h":!0}),f(ei)!=="svelte-1lgbsz7"&&(ei.innerHTML=Yu),hl.forEach(d),wp=r(ne),ct=s(ne,"DIV",{class:!0});var gl=v(ct);m(fr.$$.fragment,gl),$p=r(gl),oi=s(gl,"P",{"data-svelte-h":!0}),f(oi)!=="svelte-6dsibd"&&(oi.innerHTML=Qu),gl.forEach(d),yp=r(ne),Fe=s(ne,"DIV",{class:!0});var nd=v(Fe);m(pr.$$.fragment,nd),Mp=r(nd),ti=s(nd,"P",{"data-svelte-h":!0}),f(ti)!=="svelte-flusvq"&&(ti.textContent=Ou),Tp=r(nd),m(ft.$$.fragment,nd),nd.forEach(d),Dp=r(ne),pt=s(ne,"DIV",{class:!0});var Ll=v(pt);m(mr.$$.fragment,Ll),Cp=r(Ll),ai=s(Ll,"P",{"data-svelte-h":!0}),f(ai)!=="svelte-1gl6t2c"&&(ai.textContent=Ku),Ll.forEach(d),Sp=r(ne),Xe=s(ne,"DIV",{class:!0});var sd=v(Xe);m(_r.$$.fragment,sd),Ap=r(sd),ri=s(sd,"P",{"data-svelte-h":!0}),f(ri)!=="svelte-ioswce"&&(ri.innerHTML=eh),kp=r(sd),m(mt.$$.fragment,sd),sd.forEach(d),ne.forEach(d),zd=r(e),m(ur.$$.fragment,e),qd=r(e),X=s(e,"DIV",{class:!0});var se=v(X);m(hr.$$.fragment,se),Rp=r(se),ni=s(se,"P",{"data-svelte-h":!0}),f(ni)!=="svelte-grqv0f"&&(ni.innerHTML=oh),Ip=r(se),_t=s(se,"DIV",{class:!0});var xl=v(_t);m(gr.$$.fragment,xl),Vp=r(xl),si=s(xl,"P",{"data-svelte-h":!0}),f(si)!=="svelte-1lgbsz7"&&(si.innerHTML=th),xl.forEach(d),Wp=r(se),ut=s(se,"DIV",{class:!0});var bl=v(ut);m(Lr.$$.fragment,bl),Pp=r(bl),ii=s(bl,"P",{"data-svelte-h":!0}),f(ii)!=="svelte-6dsibd"&&(ii.innerHTML=ah),bl.forEach(d),Up=r(se),Ee=s(se,"DIV",{class:!0});var id=v(Ee);m(xr.$$.fragment,id),Hp=r(id),di=s(id,"P",{"data-svelte-h":!0}),f(di)!=="svelte-flusvq"&&(di.textContent=rh),Fp=r(id),m(ht.$$.fragment,id),id.forEach(d),Xp=r(se),gt=s(se,"DIV",{class:!0});var vl=v(gt);m(br.$$.fragment,vl),Ep=r(vl),li=s(vl,"P",{"data-svelte-h":!0}),f(li)!=="svelte-1gl6t2c"&&(li.textContent=nh),vl.forEach(d),Np=r(se),Ne=s(se,"DIV",{class:!0});var dd=v(Ne);m(vr.$$.fragment,dd),zp=r(dd),ci=s(dd,"P",{"data-svelte-h":!0}),f(ci)!=="svelte-ioswce"&&(ci.innerHTML=sh),qp=r(dd),m(Lt.$$.fragment,dd),dd.forEach(d),se.forEach(d),Jd=r(e),m(wr.$$.fragment,e),jd=r(e),E=s(e,"DIV",{class:!0});var ie=v(E);m($r.$$.fragment,ie),Jp=r(ie),fi=s(ie,"P",{"data-svelte-h":!0}),f(fi)!=="svelte-184yx3w"&&(fi.innerHTML=ih),jp=r(ie),xt=s(ie,"DIV",{class:!0});var wl=v(xt);m(yr.$$.fragment,wl),Gp=r(wl),pi=s(wl,"P",{"data-svelte-h":!0}),f(pi)!=="svelte-1lgbsz7"&&(pi.innerHTML=dh),wl.forEach(d),Zp=r(ie),bt=s(ie,"DIV",{class:!0});var $l=v(bt);m(Mr.$$.fragment,$l),Bp=r($l),mi=s($l,"P",{"data-svelte-h":!0}),f(mi)!=="svelte-6dsibd"&&(mi.innerHTML=lh),$l.forEach(d),Yp=r(ie),ze=s(ie,"DIV",{class:!0});var ld=v(ze);m(Tr.$$.fragment,ld),Qp=r(ld),_i=s(ld,"P",{"data-svelte-h":!0}),f(_i)!=="svelte-flusvq"&&(_i.textContent=ch),Op=r(ld),m(vt.$$.fragment,ld),ld.forEach(d),Kp=r(ie),wt=s(ie,"DIV",{class:!0});var yl=v(wt);m(Dr.$$.fragment,yl),em=r(yl),ui=s(yl,"P",{"data-svelte-h":!0}),f(ui)!=="svelte-1gl6t2c"&&(ui.textContent=fh),yl.forEach(d),om=r(ie),qe=s(ie,"DIV",{class:!0});var cd=v(qe);m(Cr.$$.fragment,cd),tm=r(cd),hi=s(cd,"P",{"data-svelte-h":!0}),f(hi)!=="svelte-ioswce"&&(hi.innerHTML=ph),am=r(cd),m($t.$$.fragment,cd),cd.forEach(d),ie.forEach(d),Gd=r(e),m(Sr.$$.fragment,e),Zd=r(e),N=s(e,"DIV",{class:!0});var de=v(N);m(Ar.$$.fragment,de),rm=r(de),gi=s(de,"P",{"data-svelte-h":!0}),f(gi)!=="svelte-ctcvrc"&&(gi.innerHTML=mh),nm=r(de),yt=s(de,"DIV",{class:!0});var Ml=v(yt);m(kr.$$.fragment,Ml),sm=r(Ml),Li=s(Ml,"P",{"data-svelte-h":!0}),f(Li)!=="svelte-1lgbsz7"&&(Li.innerHTML=_h),Ml.forEach(d),im=r(de),Mt=s(de,"DIV",{class:!0});var Tl=v(Mt);m(Rr.$$.fragment,Tl),dm=r(Tl),xi=s(Tl,"P",{"data-svelte-h":!0}),f(xi)!=="svelte-6dsibd"&&(xi.innerHTML=uh),Tl.forEach(d),lm=r(de),Je=s(de,"DIV",{class:!0});var fd=v(Je);m(Ir.$$.fragment,fd),cm=r(fd),bi=s(fd,"P",{"data-svelte-h":!0}),f(bi)!=="svelte-flusvq"&&(bi.textContent=hh),fm=r(fd),m(Tt.$$.fragment,fd),fd.forEach(d),pm=r(de),Dt=s(de,"DIV",{class:!0});var Dl=v(Dt);m(Vr.$$.fragment,Dl),mm=r(Dl),vi=s(Dl,"P",{"data-svelte-h":!0}),f(vi)!=="svelte-1gl6t2c"&&(vi.textContent=gh),Dl.forEach(d),_m=r(de),je=s(de,"DIV",{class:!0});var pd=v(je);m(Wr.$$.fragment,pd),um=r(pd),wi=s(pd,"P",{"data-svelte-h":!0}),f(wi)!=="svelte-ioswce"&&(wi.innerHTML=Lh),hm=r(pd),m(Ct.$$.fragment,pd),pd.forEach(d),de.forEach(d),Bd=r(e),m(Pr.$$.fragment,e),Yd=r(e),z=s(e,"DIV",{class:!0});var le=v(z);m(Ur.$$.fragment,le),gm=r(le),$i=s(le,"P",{"data-svelte-h":!0}),f($i)!=="svelte-al32yy"&&($i.innerHTML=xh),Lm=r(le),St=s(le,"DIV",{class:!0});var Cl=v(St);m(Hr.$$.fragment,Cl),xm=r(Cl),yi=s(Cl,"P",{"data-svelte-h":!0}),f(yi)!=="svelte-1lgbsz7"&&(yi.innerHTML=bh),Cl.forEach(d),bm=r(le),At=s(le,"DIV",{class:!0});var Sl=v(At);m(Fr.$$.fragment,Sl),vm=r(Sl),Mi=s(Sl,"P",{"data-svelte-h":!0}),f(Mi)!=="svelte-6dsibd"&&(Mi.innerHTML=vh),Sl.forEach(d),wm=r(le),Ge=s(le,"DIV",{class:!0});var md=v(Ge);m(Xr.$$.fragment,md),$m=r(md),Ti=s(md,"P",{"data-svelte-h":!0}),f(Ti)!=="svelte-flusvq"&&(Ti.textContent=wh),ym=r(md),m(kt.$$.fragment,md),md.forEach(d),Mm=r(le),Rt=s(le,"DIV",{class:!0});var Al=v(Rt);m(Er.$$.fragment,Al),Tm=r(Al),Di=s(Al,"P",{"data-svelte-h":!0}),f(Di)!=="svelte-1gl6t2c"&&(Di.textContent=$h),Al.forEach(d),Dm=r(le),Ze=s(le,"DIV",{class:!0});var _d=v(Ze);m(Nr.$$.fragment,_d),Cm=r(_d),Ci=s(_d,"P",{"data-svelte-h":!0}),f(Ci)!=="svelte-ioswce"&&(Ci.innerHTML=yh),Sm=r(_d),m(It.$$.fragment,_d),_d.forEach(d),le.forEach(d),Qd=r(e),m(zr.$$.fragment,e),Od=r(e),q=s(e,"DIV",{class:!0});var ce=v(q);m(qr.$$.fragment,ce),Am=r(ce),Si=s(ce,"P",{"data-svelte-h":!0}),f(Si)!=="svelte-ckxwq"&&(Si.innerHTML=Mh),km=r(ce),Vt=s(ce,"DIV",{class:!0});var kl=v(Vt);m(Jr.$$.fragment,kl),Rm=r(kl),Ai=s(kl,"P",{"data-svelte-h":!0}),f(Ai)!=="svelte-1lgbsz7"&&(Ai.innerHTML=Th),kl.forEach(d),Im=r(ce),Wt=s(ce,"DIV",{class:!0});var Rl=v(Wt);m(jr.$$.fragment,Rl),Vm=r(Rl),ki=s(Rl,"P",{"data-svelte-h":!0}),f(ki)!=="svelte-6dsibd"&&(ki.innerHTML=Dh),Rl.forEach(d),Wm=r(ce),Be=s(ce,"DIV",{class:!0});var ud=v(Be);m(Gr.$$.fragment,ud),Pm=r(ud),Ri=s(ud,"P",{"data-svelte-h":!0}),f(Ri)!=="svelte-flusvq"&&(Ri.textContent=Ch),Um=r(ud),m(Pt.$$.fragment,ud),ud.forEach(d),Hm=r(ce),Ut=s(ce,"DIV",{class:!0});var Il=v(Ut);m(Zr.$$.fragment,Il),Fm=r(Il),Ii=s(Il,"P",{"data-svelte-h":!0}),f(Ii)!=="svelte-1gl6t2c"&&(Ii.textContent=Sh),Il.forEach(d),Xm=r(ce),Ye=s(ce,"DIV",{class:!0});var hd=v(Ye);m(Br.$$.fragment,hd),Em=r(hd),Vi=s(hd,"P",{"data-svelte-h":!0}),f(Vi)!=="svelte-ioswce"&&(Vi.innerHTML=Ah),Nm=r(hd),m(Ht.$$.fragment,hd),hd.forEach(d),ce.forEach(d),Kd=r(e),m(Yr.$$.fragment,e),el=r(e),J=s(e,"DIV",{class:!0});var fe=v(J);m(Qr.$$.fragment,fe),zm=r(fe),Wi=s(fe,"P",{"data-svelte-h":!0}),f(Wi)!=="svelte-13v61cx"&&(Wi.innerHTML=kh),qm=r(fe),Ft=s(fe,"DIV",{class:!0});var Vl=v(Ft);m(Or.$$.fragment,Vl),Jm=r(Vl),Pi=s(Vl,"P",{"data-svelte-h":!0}),f(Pi)!=="svelte-1lgbsz7"&&(Pi.innerHTML=Rh),Vl.forEach(d),jm=r(fe),Xt=s(fe,"DIV",{class:!0});var Wl=v(Xt);m(Kr.$$.fragment,Wl),Gm=r(Wl),Ui=s(Wl,"P",{"data-svelte-h":!0}),f(Ui)!=="svelte-6dsibd"&&(Ui.innerHTML=Ih),Wl.forEach(d),Zm=r(fe),Qe=s(fe,"DIV",{class:!0});var gd=v(Qe);m(en.$$.fragment,gd),Bm=r(gd),Hi=s(gd,"P",{"data-svelte-h":!0}),f(Hi)!=="svelte-flusvq"&&(Hi.textContent=Vh),Ym=r(gd),m(Et.$$.fragment,gd),gd.forEach(d),Qm=r(fe),Nt=s(fe,"DIV",{class:!0});var Pl=v(Nt);m(on.$$.fragment,Pl),Om=r(Pl),Fi=s(Pl,"P",{"data-svelte-h":!0}),f(Fi)!=="svelte-1gl6t2c"&&(Fi.textContent=Wh),Pl.forEach(d),Km=r(fe),Oe=s(fe,"DIV",{class:!0});var Ld=v(Oe);m(tn.$$.fragment,Ld),e_=r(Ld),Xi=s(Ld,"P",{"data-svelte-h":!0}),f(Xi)!=="svelte-ioswce"&&(Xi.innerHTML=Ph),o_=r(Ld),m(zt.$$.fragment,Ld),Ld.forEach(d),fe.forEach(d),ol=r(e),m(an.$$.fragment,e),tl=r(e),Le=s(e,"DIV",{class:!0});var xd=v(Le);m(rn.$$.fragment,xd),t_=r(xd),qt=s(xd,"DIV",{class:!0});var Ul=v(qt);m(nn.$$.fragment,Ul),a_=r(Ul),Ei=s(Ul,"P",{"data-svelte-h":!0}),f(Ei)!=="svelte-1lgbsz7"&&(Ei.innerHTML=Uh),Ul.forEach(d),r_=r(xd),Jt=s(xd,"DIV",{class:!0});var Hl=v(Jt);m(sn.$$.fragment,Hl),n_=r(Hl),Ni=s(Hl,"P",{"data-svelte-h":!0}),f(Ni)!=="svelte-1ufq5ot"&&(Ni.textContent=Hh),Hl.forEach(d),xd.forEach(d),al=r(e),m(dn.$$.fragment,e),rl=r(e),j=s(e,"DIV",{class:!0});var pe=v(j);m(ln.$$.fragment,pe),s_=r(pe),zi=s(pe,"P",{"data-svelte-h":!0}),f(zi)!=="svelte-122v1aa"&&(zi.innerHTML=Fh),i_=r(pe),jt=s(pe,"DIV",{class:!0});var Fl=v(jt);m(cn.$$.fragment,Fl),d_=r(Fl),qi=s(Fl,"P",{"data-svelte-h":!0}),f(qi)!=="svelte-1lgbsz7"&&(qi.innerHTML=Xh),Fl.forEach(d),l_=r(pe),Gt=s(pe,"DIV",{class:!0});var Xl=v(Gt);m(fn.$$.fragment,Xl),c_=r(Xl),Ji=s(Xl,"P",{"data-svelte-h":!0}),f(Ji)!=="svelte-6dsibd"&&(Ji.innerHTML=Eh),Xl.forEach(d),f_=r(pe),Ke=s(pe,"DIV",{class:!0});var bd=v(Ke);m(pn.$$.fragment,bd),p_=r(bd),ji=s(bd,"P",{"data-svelte-h":!0}),f(ji)!=="svelte-flusvq"&&(ji.textContent=Nh),m_=r(bd),m(Zt.$$.fragment,bd),bd.forEach(d),__=r(pe),Bt=s(pe,"DIV",{class:!0});var El=v(Bt);m(mn.$$.fragment,El),u_=r(El),Gi=s(El,"P",{"data-svelte-h":!0}),f(Gi)!=="svelte-1gl6t2c"&&(Gi.textContent=zh),El.forEach(d),h_=r(pe),eo=s(pe,"DIV",{class:!0});var vd=v(eo);m(_n.$$.fragment,vd),g_=r(vd),Zi=s(vd,"P",{"data-svelte-h":!0}),f(Zi)!=="svelte-ioswce"&&(Zi.innerHTML=qh),L_=r(vd),m(Yt.$$.fragment,vd),vd.forEach(d),pe.forEach(d),nl=r(e),m(un.$$.fragment,e),sl=r(e),G=s(e,"DIV",{class:!0});var me=v(G);m(hn.$$.fragment,me),x_=r(me),Bi=s(me,"P",{"data-svelte-h":!0}),f(Bi)!=="svelte-13v61cx"&&(Bi.innerHTML=Jh),b_=r(me),Qt=s(me,"DIV",{class:!0});var Nl=v(Qt);m(gn.$$.fragment,Nl),v_=r(Nl),Yi=s(Nl,"P",{"data-svelte-h":!0}),f(Yi)!=="svelte-1lgbsz7"&&(Yi.innerHTML=jh),Nl.forEach(d),w_=r(me),Ot=s(me,"DIV",{class:!0});var zl=v(Ot);m(Ln.$$.fragment,zl),$_=r(zl),Qi=s(zl,"P",{"data-svelte-h":!0}),f(Qi)!=="svelte-6dsibd"&&(Qi.innerHTML=Gh),zl.forEach(d),y_=r(me),oo=s(me,"DIV",{class:!0});var wd=v(oo);m(xn.$$.fragment,wd),M_=r(wd),Oi=s(wd,"P",{"data-svelte-h":!0}),f(Oi)!=="svelte-flusvq"&&(Oi.textContent=Zh),T_=r(wd),m(Kt.$$.fragment,wd),wd.forEach(d),D_=r(me),ea=s(me,"DIV",{class:!0});var ql=v(ea);m(bn.$$.fragment,ql),C_=r(ql),Ki=s(ql,"P",{"data-svelte-h":!0}),f(Ki)!=="svelte-1gl6t2c"&&(Ki.textContent=Bh),ql.forEach(d),S_=r(me),to=s(me,"DIV",{class:!0});var $d=v(to);m(vn.$$.fragment,$d),A_=r($d),ed=s($d,"P",{"data-svelte-h":!0}),f(ed)!=="svelte-ioswce"&&(ed.innerHTML=Yh),k_=r($d),m(oa.$$.fragment,$d),$d.forEach(d),me.forEach(d),il=r(e),m(wn.$$.fragment,e),dl=r(e),yd=s(e,"P",{}),v(yd).forEach(d),this.h()},h(){w(t,"name","hf:doc:metadata"),w(t,"content",qg),w(ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(we,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w($e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(yo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(he,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Co,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(De,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Io,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Vo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Wo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Uo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ho,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Fo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Eo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(No,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(zo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Jo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Go,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Zo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Yo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ko,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(et,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(We,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(tt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(rt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(nt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(it,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(He,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(lt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ct,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(pt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(_t,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ut,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(gt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(xt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(bt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ze,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(wt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(qe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(yt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Mt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Dt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(St,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(At,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Rt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ze,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Vt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Wt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ut,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ft,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Xt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Qe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Nt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(qt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Jt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(jt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Gt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Bt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(eo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Qt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(Ot,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(oo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(ea,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(to,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),w(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,L){o(document.head,t),x(e,b,L),x(e,l,L),x(e,c,L),_(M,e,L),x(e,i,L),x(e,y,L),x(e,Md,L),x(e,ta,L),x(e,Td,L),_(bo,e,L),x(e,Dd,L),_(aa,e,L),x(e,Cd,L),x(e,C,L),_(ra,C,null),o(C,Jl),o(C,Hn),o(C,jl),o(C,ve),_(na,ve,null),o(ve,Gl),o(ve,Fn),o(ve,Zl),_(vo,ve,null),o(C,Bl),o(C,we),_(sa,we,null),o(we,Yl),o(we,Xn),o(we,Ql),_(wo,we,null),o(C,Ol),o(C,$e),_(ia,$e,null),o($e,Kl),o($e,En),o($e,ec),_($o,$e,null),o(C,oc),o(C,yo),_(da,yo,null),o(yo,tc),o(yo,Nn),o(C,ac),o(C,he),_(la,he,null),o(he,rc),o(he,zn),o(he,nc),_(Mo,he,null),o(he,sc),_(To,he,null),o(C,ic),o(C,ye),_(ca,ye,null),o(ye,dc),o(ye,qn),o(ye,lc),_(Do,ye,null),o(C,cc),o(C,Co),_(fa,Co,null),o(Co,fc),o(Co,Jn),o(C,pc),o(C,Me),_(pa,Me,null),o(Me,mc),o(Me,jn),o(Me,_c),_(So,Me,null),o(C,uc),o(C,ge),_(ma,ge,null),o(ge,hc),o(ge,Gn),o(ge,gc),o(ge,Zn),o(ge,Lc),_(Ao,ge,null),o(C,xc),o(C,Te),_(_a,Te,null),o(Te,bc),o(Te,Bn),o(Te,vc),_(ko,Te,null),o(C,wc),o(C,De),_(ua,De,null),o(De,$c),o(De,Yn),o(De,yc),_(Ro,De,null),o(C,Mc),o(C,Io),_(ha,Io,null),o(Io,Tc),o(Io,Qn),x(e,Sd,L),_(ga,e,L),x(e,Ad,L),x(e,W,L),_(La,W,null),o(W,Dc),o(W,On),o(W,Cc),o(W,Vo),_(xa,Vo,null),o(Vo,Sc),o(Vo,Kn),o(W,Ac),o(W,Wo),_(ba,Wo,null),o(Wo,kc),o(Wo,es),o(W,Rc),o(W,Q),_(va,Q,null),o(Q,Ic),o(Q,os),o(Q,Vc),o(Q,ts),o(Q,Wc),o(Q,as),o(Q,Pc),o(Q,rs),o(Q,Uc),o(Q,ns),o(W,Hc),o(W,Ce),_(wa,Ce,null),o(Ce,Fc),o(Ce,ss),o(Ce,Xc),_(Po,Ce,null),o(W,Ec),o(W,Uo),_($a,Uo,null),o(Uo,Nc),o(Uo,is),x(e,kd,L),_(ya,e,L),x(e,Rd,L),x(e,P,L),_(Ma,P,null),o(P,zc),o(P,ds),o(P,qc),o(P,Ho),_(Ta,Ho,null),o(Ho,Jc),o(Ho,ls),o(P,jc),o(P,Fo),_(Da,Fo,null),o(Fo,Gc),o(Fo,cs),o(P,Zc),o(P,O),_(Ca,O,null),o(O,Bc),o(O,fs),o(O,Yc),o(O,ps),o(O,Qc),o(O,ms),o(O,Oc),o(O,_s),o(O,Kc),o(O,us),o(P,ef),o(P,Se),_(Sa,Se,null),o(Se,of),o(Se,hs),o(Se,tf),_(Xo,Se,null),o(P,af),o(P,Eo),_(Aa,Eo,null),o(Eo,rf),o(Eo,gs),x(e,Id,L),_(ka,e,L),x(e,Vd,L),x(e,R,L),_(Ra,R,null),o(R,nf),o(R,Ls),o(R,sf),o(R,xs),o(R,df),o(R,No),_(Ia,No,null),o(No,lf),o(No,bs),o(R,cf),o(R,zo),_(Va,zo,null),o(zo,ff),o(zo,vs),o(R,pf),o(R,oe),_(Wa,oe,null),o(oe,mf),o(oe,ws),o(oe,_f),o(oe,$s),o(oe,uf),o(oe,ys),o(oe,hf),o(oe,Ms),o(R,gf),o(R,Ae),_(Pa,Ae,null),o(Ae,Lf),o(Ae,Ts),o(Ae,xf),_(qo,Ae,null),o(R,bf),o(R,Jo),_(Ua,Jo,null),o(Jo,vf),o(Jo,Ds),o(R,wf),o(R,ke),_(Ha,ke,null),o(ke,$f),o(ke,Cs),o(ke,yf),_(jo,ke,null),x(e,Wd,L),_(Fa,e,L),x(e,Pd,L),x(e,k,L),_(Xa,k,null),o(k,Mf),o(k,Ss),o(k,Tf),o(k,As),o(k,Df),o(k,Go),_(Ea,Go,null),o(Go,Cf),o(Go,ks),o(k,Sf),o(k,Zo),_(Na,Zo,null),o(Zo,Af),o(Zo,Rs),o(k,kf),o(k,te),_(za,te,null),o(te,Rf),o(te,Is),o(te,If),o(te,Vs),o(te,Vf),o(te,Ws),o(te,Wf),o(te,Ps),o(k,Pf),o(k,Re),_(qa,Re,null),o(Re,Uf),o(Re,Us),o(Re,Hf),_(Bo,Re,null),o(k,Ff),o(k,Yo),_(Ja,Yo,null),o(Yo,Xf),o(Yo,Hs),o(k,Ef),o(k,Ie),_(ja,Ie,null),o(Ie,Nf),o(Ie,Fs),o(Ie,zf),_(Qo,Ie,null),o(k,qf),o(k,Ve),_(Ga,Ve,null),o(Ve,Jf),o(Ve,Xs),o(Ve,jf),_(Oo,Ve,null),x(e,Ud,L),_(Za,e,L),x(e,Hd,L),x(e,U,L),_(Ba,U,null),o(U,Gf),o(U,Es),o(U,Zf),o(U,Ko),_(Ya,Ko,null),o(Ko,Bf),o(Ko,Ns),o(U,Yf),o(U,et),_(Qa,et,null),o(et,Qf),o(et,zs),o(U,Of),o(U,We),_(Oa,We,null),o(We,Kf),o(We,qs),o(We,ep),_(ot,We,null),o(U,op),o(U,tt),_(Ka,tt,null),o(tt,tp),o(tt,Js),o(U,ap),o(U,Pe),_(er,Pe,null),o(Pe,rp),o(Pe,js),o(Pe,np),_(at,Pe,null),x(e,Fd,L),_(or,e,L),x(e,Xd,L),x(e,H,L),_(tr,H,null),o(H,sp),o(H,Gs),o(H,ip),o(H,rt),_(ar,rt,null),o(rt,dp),o(rt,Zs),o(H,lp),o(H,nt),_(rr,nt,null),o(nt,cp),o(nt,Bs),o(H,fp),o(H,Ue),_(nr,Ue,null),o(Ue,pp),o(Ue,Ys),o(Ue,mp),_(st,Ue,null),o(H,_p),o(H,it),_(sr,it,null),o(it,up),o(it,Qs),o(H,hp),o(H,He),_(ir,He,null),o(He,gp),o(He,Os),o(He,Lp),_(dt,He,null),x(e,Ed,L),_(dr,e,L),x(e,Nd,L),x(e,F,L),_(lr,F,null),o(F,xp),o(F,Ks),o(F,bp),o(F,lt),_(cr,lt,null),o(lt,vp),o(lt,ei),o(F,wp),o(F,ct),_(fr,ct,null),o(ct,$p),o(ct,oi),o(F,yp),o(F,Fe),_(pr,Fe,null),o(Fe,Mp),o(Fe,ti),o(Fe,Tp),_(ft,Fe,null),o(F,Dp),o(F,pt),_(mr,pt,null),o(pt,Cp),o(pt,ai),o(F,Sp),o(F,Xe),_(_r,Xe,null),o(Xe,Ap),o(Xe,ri),o(Xe,kp),_(mt,Xe,null),x(e,zd,L),_(ur,e,L),x(e,qd,L),x(e,X,L),_(hr,X,null),o(X,Rp),o(X,ni),o(X,Ip),o(X,_t),_(gr,_t,null),o(_t,Vp),o(_t,si),o(X,Wp),o(X,ut),_(Lr,ut,null),o(ut,Pp),o(ut,ii),o(X,Up),o(X,Ee),_(xr,Ee,null),o(Ee,Hp),o(Ee,di),o(Ee,Fp),_(ht,Ee,null),o(X,Xp),o(X,gt),_(br,gt,null),o(gt,Ep),o(gt,li),o(X,Np),o(X,Ne),_(vr,Ne,null),o(Ne,zp),o(Ne,ci),o(Ne,qp),_(Lt,Ne,null),x(e,Jd,L),_(wr,e,L),x(e,jd,L),x(e,E,L),_($r,E,null),o(E,Jp),o(E,fi),o(E,jp),o(E,xt),_(yr,xt,null),o(xt,Gp),o(xt,pi),o(E,Zp),o(E,bt),_(Mr,bt,null),o(bt,Bp),o(bt,mi),o(E,Yp),o(E,ze),_(Tr,ze,null),o(ze,Qp),o(ze,_i),o(ze,Op),_(vt,ze,null),o(E,Kp),o(E,wt),_(Dr,wt,null),o(wt,em),o(wt,ui),o(E,om),o(E,qe),_(Cr,qe,null),o(qe,tm),o(qe,hi),o(qe,am),_($t,qe,null),x(e,Gd,L),_(Sr,e,L),x(e,Zd,L),x(e,N,L),_(Ar,N,null),o(N,rm),o(N,gi),o(N,nm),o(N,yt),_(kr,yt,null),o(yt,sm),o(yt,Li),o(N,im),o(N,Mt),_(Rr,Mt,null),o(Mt,dm),o(Mt,xi),o(N,lm),o(N,Je),_(Ir,Je,null),o(Je,cm),o(Je,bi),o(Je,fm),_(Tt,Je,null),o(N,pm),o(N,Dt),_(Vr,Dt,null),o(Dt,mm),o(Dt,vi),o(N,_m),o(N,je),_(Wr,je,null),o(je,um),o(je,wi),o(je,hm),_(Ct,je,null),x(e,Bd,L),_(Pr,e,L),x(e,Yd,L),x(e,z,L),_(Ur,z,null),o(z,gm),o(z,$i),o(z,Lm),o(z,St),_(Hr,St,null),o(St,xm),o(St,yi),o(z,bm),o(z,At),_(Fr,At,null),o(At,vm),o(At,Mi),o(z,wm),o(z,Ge),_(Xr,Ge,null),o(Ge,$m),o(Ge,Ti),o(Ge,ym),_(kt,Ge,null),o(z,Mm),o(z,Rt),_(Er,Rt,null),o(Rt,Tm),o(Rt,Di),o(z,Dm),o(z,Ze),_(Nr,Ze,null),o(Ze,Cm),o(Ze,Ci),o(Ze,Sm),_(It,Ze,null),x(e,Qd,L),_(zr,e,L),x(e,Od,L),x(e,q,L),_(qr,q,null),o(q,Am),o(q,Si),o(q,km),o(q,Vt),_(Jr,Vt,null),o(Vt,Rm),o(Vt,Ai),o(q,Im),o(q,Wt),_(jr,Wt,null),o(Wt,Vm),o(Wt,ki),o(q,Wm),o(q,Be),_(Gr,Be,null),o(Be,Pm),o(Be,Ri),o(Be,Um),_(Pt,Be,null),o(q,Hm),o(q,Ut),_(Zr,Ut,null),o(Ut,Fm),o(Ut,Ii),o(q,Xm),o(q,Ye),_(Br,Ye,null),o(Ye,Em),o(Ye,Vi),o(Ye,Nm),_(Ht,Ye,null),x(e,Kd,L),_(Yr,e,L),x(e,el,L),x(e,J,L),_(Qr,J,null),o(J,zm),o(J,Wi),o(J,qm),o(J,Ft),_(Or,Ft,null),o(Ft,Jm),o(Ft,Pi),o(J,jm),o(J,Xt),_(Kr,Xt,null),o(Xt,Gm),o(Xt,Ui),o(J,Zm),o(J,Qe),_(en,Qe,null),o(Qe,Bm),o(Qe,Hi),o(Qe,Ym),_(Et,Qe,null),o(J,Qm),o(J,Nt),_(on,Nt,null),o(Nt,Om),o(Nt,Fi),o(J,Km),o(J,Oe),_(tn,Oe,null),o(Oe,e_),o(Oe,Xi),o(Oe,o_),_(zt,Oe,null),x(e,ol,L),_(an,e,L),x(e,tl,L),x(e,Le,L),_(rn,Le,null),o(Le,t_),o(Le,qt),_(nn,qt,null),o(qt,a_),o(qt,Ei),o(Le,r_),o(Le,Jt),_(sn,Jt,null),o(Jt,n_),o(Jt,Ni),x(e,al,L),_(dn,e,L),x(e,rl,L),x(e,j,L),_(ln,j,null),o(j,s_),o(j,zi),o(j,i_),o(j,jt),_(cn,jt,null),o(jt,d_),o(jt,qi),o(j,l_),o(j,Gt),_(fn,Gt,null),o(Gt,c_),o(Gt,Ji),o(j,f_),o(j,Ke),_(pn,Ke,null),o(Ke,p_),o(Ke,ji),o(Ke,m_),_(Zt,Ke,null),o(j,__),o(j,Bt),_(mn,Bt,null),o(Bt,u_),o(Bt,Gi),o(j,h_),o(j,eo),_(_n,eo,null),o(eo,g_),o(eo,Zi),o(eo,L_),_(Yt,eo,null),x(e,nl,L),_(un,e,L),x(e,sl,L),x(e,G,L),_(hn,G,null),o(G,x_),o(G,Bi),o(G,b_),o(G,Qt),_(gn,Qt,null),o(Qt,v_),o(Qt,Yi),o(G,w_),o(G,Ot),_(Ln,Ot,null),o(Ot,$_),o(Ot,Qi),o(G,y_),o(G,oo),_(xn,oo,null),o(oo,M_),o(oo,Oi),o(oo,T_),_(Kt,oo,null),o(G,D_),o(G,ea),_(bn,ea,null),o(ea,C_),o(ea,Ki),o(G,S_),o(G,to),_(vn,to,null),o(to,A_),o(to,ed),o(to,k_),_(oa,to,null),x(e,il,L),_(wn,e,L),x(e,dl,L),x(e,yd,L),ll=!0},p(e,[L]){const S={};L&2&&(S.$$scope={dirty:L,ctx:e}),bo.$set(S);const ao={};L&2&&(ao.$$scope={dirty:L,ctx:e}),vo.$set(ao);const ro={};L&2&&(ro.$$scope={dirty:L,ctx:e}),wo.$set(ro);const no={};L&2&&(no.$$scope={dirty:L,ctx:e}),$o.$set(no);const $n={};L&2&&($n.$$scope={dirty:L,ctx:e}),Mo.$set($n);const xe={};L&2&&(xe.$$scope={dirty:L,ctx:e}),To.$set(xe);const so={};L&2&&(so.$$scope={dirty:L,ctx:e}),Do.$set(so);const yn={};L&2&&(yn.$$scope={dirty:L,ctx:e}),So.$set(yn);const io={};L&2&&(io.$$scope={dirty:L,ctx:e}),Ao.$set(io);const be={};L&2&&(be.$$scope={dirty:L,ctx:e}),ko.$set(be);const lo={};L&2&&(lo.$$scope={dirty:L,ctx:e}),Ro.$set(lo);const co={};L&2&&(co.$$scope={dirty:L,ctx:e}),Po.$set(co);const Mn={};L&2&&(Mn.$$scope={dirty:L,ctx:e}),Xo.$set(Mn);const B={};L&2&&(B.$$scope={dirty:L,ctx:e}),qo.$set(B);const Tn={};L&2&&(Tn.$$scope={dirty:L,ctx:e}),jo.$set(Tn);const Dn={};L&2&&(Dn.$$scope={dirty:L,ctx:e}),Bo.$set(Dn);const K={};L&2&&(K.$$scope={dirty:L,ctx:e}),Qo.$set(K);const fo={};L&2&&(fo.$$scope={dirty:L,ctx:e}),Oo.$set(fo);const Cn={};L&2&&(Cn.$$scope={dirty:L,ctx:e}),ot.$set(Cn);const Y={};L&2&&(Y.$$scope={dirty:L,ctx:e}),at.$set(Y);const Sn={};L&2&&(Sn.$$scope={dirty:L,ctx:e}),st.$set(Sn);const An={};L&2&&(An.$$scope={dirty:L,ctx:e}),dt.$set(An);const ee={};L&2&&(ee.$$scope={dirty:L,ctx:e}),ft.$set(ee);const po={};L&2&&(po.$$scope={dirty:L,ctx:e}),mt.$set(po);const kn={};L&2&&(kn.$$scope={dirty:L,ctx:e}),ht.$set(kn);const V={};L&2&&(V.$$scope={dirty:L,ctx:e}),Lt.$set(V);const Rn={};L&2&&(Rn.$$scope={dirty:L,ctx:e}),vt.$set(Rn);const In={};L&2&&(In.$$scope={dirty:L,ctx:e}),$t.$set(In);const _e={};L&2&&(_e.$$scope={dirty:L,ctx:e}),Tt.$set(_e);const mo={};L&2&&(mo.$$scope={dirty:L,ctx:e}),Ct.$set(mo);const Vn={};L&2&&(Vn.$$scope={dirty:L,ctx:e}),kt.$set(Vn);const _o={};L&2&&(_o.$$scope={dirty:L,ctx:e}),It.$set(_o);const I={};L&2&&(I.$$scope={dirty:L,ctx:e}),Pt.$set(I);const Wn={};L&2&&(Wn.$$scope={dirty:L,ctx:e}),Ht.$set(Wn);const Pn={};L&2&&(Pn.$$scope={dirty:L,ctx:e}),Et.$set(Pn);const ue={};L&2&&(ue.$$scope={dirty:L,ctx:e}),zt.$set(ue);const uo={};L&2&&(uo.$$scope={dirty:L,ctx:e}),Zt.$set(uo);const Un={};L&2&&(Un.$$scope={dirty:L,ctx:e}),Yt.$set(Un);const ho={};L&2&&(ho.$$scope={dirty:L,ctx:e}),Kt.$set(ho);const go={};L&2&&(go.$$scope={dirty:L,ctx:e}),oa.$set(go)},i(e){ll||(u(M.$$.fragment,e),u(bo.$$.fragment,e),u(aa.$$.fragment,e),u(ra.$$.fragment,e),u(na.$$.fragment,e),u(vo.$$.fragment,e),u(sa.$$.fragment,e),u(wo.$$.fragment,e),u(ia.$$.fragment,e),u($o.$$.fragment,e),u(da.$$.fragment,e),u(la.$$.fragment,e),u(Mo.$$.fragment,e),u(To.$$.fragment,e),u(ca.$$.fragment,e),u(Do.$$.fragment,e),u(fa.$$.fragment,e),u(pa.$$.fragment,e),u(So.$$.fragment,e),u(ma.$$.fragment,e),u(Ao.$$.fragment,e),u(_a.$$.fragment,e),u(ko.$$.fragment,e),u(ua.$$.fragment,e),u(Ro.$$.fragment,e),u(ha.$$.fragment,e),u(ga.$$.fragment,e),u(La.$$.fragment,e),u(xa.$$.fragment,e),u(ba.$$.fragment,e),u(va.$$.fragment,e),u(wa.$$.fragment,e),u(Po.$$.fragment,e),u($a.$$.fragment,e),u(ya.$$.fragment,e),u(Ma.$$.fragment,e),u(Ta.$$.fragment,e),u(Da.$$.fragment,e),u(Ca.$$.fragment,e),u(Sa.$$.fragment,e),u(Xo.$$.fragment,e),u(Aa.$$.fragment,e),u(ka.$$.fragment,e),u(Ra.$$.fragment,e),u(Ia.$$.fragment,e),u(Va.$$.fragment,e),u(Wa.$$.fragment,e),u(Pa.$$.fragment,e),u(qo.$$.fragment,e),u(Ua.$$.fragment,e),u(Ha.$$.fragment,e),u(jo.$$.fragment,e),u(Fa.$$.fragment,e),u(Xa.$$.fragment,e),u(Ea.$$.fragment,e),u(Na.$$.fragment,e),u(za.$$.fragment,e),u(qa.$$.fragment,e),u(Bo.$$.fragment,e),u(Ja.$$.fragment,e),u(ja.$$.fragment,e),u(Qo.$$.fragment,e),u(Ga.$$.fragment,e),u(Oo.$$.fragment,e),u(Za.$$.fragment,e),u(Ba.$$.fragment,e),u(Ya.$$.fragment,e),u(Qa.$$.fragment,e),u(Oa.$$.fragment,e),u(ot.$$.fragment,e),u(Ka.$$.fragment,e),u(er.$$.fragment,e),u(at.$$.fragment,e),u(or.$$.fragment,e),u(tr.$$.fragment,e),u(ar.$$.fragment,e),u(rr.$$.fragment,e),u(nr.$$.fragment,e),u(st.$$.fragment,e),u(sr.$$.fragment,e),u(ir.$$.fragment,e),u(dt.$$.fragment,e),u(dr.$$.fragment,e),u(lr.$$.fragment,e),u(cr.$$.fragment,e),u(fr.$$.fragment,e),u(pr.$$.fragment,e),u(ft.$$.fragment,e),u(mr.$$.fragment,e),u(_r.$$.fragment,e),u(mt.$$.fragment,e),u(ur.$$.fragment,e),u(hr.$$.fragment,e),u(gr.$$.fragment,e),u(Lr.$$.fragment,e),u(xr.$$.fragment,e),u(ht.$$.fragment,e),u(br.$$.fragment,e),u(vr.$$.fragment,e),u(Lt.$$.fragment,e),u(wr.$$.fragment,e),u($r.$$.fragment,e),u(yr.$$.fragment,e),u(Mr.$$.fragment,e),u(Tr.$$.fragment,e),u(vt.$$.fragment,e),u(Dr.$$.fragment,e),u(Cr.$$.fragment,e),u($t.$$.fragment,e),u(Sr.$$.fragment,e),u(Ar.$$.fragment,e),u(kr.$$.fragment,e),u(Rr.$$.fragment,e),u(Ir.$$.fragment,e),u(Tt.$$.fragment,e),u(Vr.$$.fragment,e),u(Wr.$$.fragment,e),u(Ct.$$.fragment,e),u(Pr.$$.fragment,e),u(Ur.$$.fragment,e),u(Hr.$$.fragment,e),u(Fr.$$.fragment,e),u(Xr.$$.fragment,e),u(kt.$$.fragment,e),u(Er.$$.fragment,e),u(Nr.$$.fragment,e),u(It.$$.fragment,e),u(zr.$$.fragment,e),u(qr.$$.fragment,e),u(Jr.$$.fragment,e),u(jr.$$.fragment,e),u(Gr.$$.fragment,e),u(Pt.$$.fragment,e),u(Zr.$$.fragment,e),u(Br.$$.fragment,e),u(Ht.$$.fragment,e),u(Yr.$$.fragment,e),u(Qr.$$.fragment,e),u(Or.$$.fragment,e),u(Kr.$$.fragment,e),u(en.$$.fragment,e),u(Et.$$.fragment,e),u(on.$$.fragment,e),u(tn.$$.fragment,e),u(zt.$$.fragment,e),u(an.$$.fragment,e),u(rn.$$.fragment,e),u(nn.$$.fragment,e),u(sn.$$.fragment,e),u(dn.$$.fragment,e),u(ln.$$.fragment,e),u(cn.$$.fragment,e),u(fn.$$.fragment,e),u(pn.$$.fragment,e),u(Zt.$$.fragment,e),u(mn.$$.fragment,e),u(_n.$$.fragment,e),u(Yt.$$.fragment,e),u(un.$$.fragment,e),u(hn.$$.fragment,e),u(gn.$$.fragment,e),u(Ln.$$.fragment,e),u(xn.$$.fragment,e),u(Kt.$$.fragment,e),u(bn.$$.fragment,e),u(vn.$$.fragment,e),u(oa.$$.fragment,e),u(wn.$$.fragment,e),ll=!0)},o(e){h(M.$$.fragment,e),h(bo.$$.fragment,e),h(aa.$$.fragment,e),h(ra.$$.fragment,e),h(na.$$.fragment,e),h(vo.$$.fragment,e),h(sa.$$.fragment,e),h(wo.$$.fragment,e),h(ia.$$.fragment,e),h($o.$$.fragment,e),h(da.$$.fragment,e),h(la.$$.fragment,e),h(Mo.$$.fragment,e),h(To.$$.fragment,e),h(ca.$$.fragment,e),h(Do.$$.fragment,e),h(fa.$$.fragment,e),h(pa.$$.fragment,e),h(So.$$.fragment,e),h(ma.$$.fragment,e),h(Ao.$$.fragment,e),h(_a.$$.fragment,e),h(ko.$$.fragment,e),h(ua.$$.fragment,e),h(Ro.$$.fragment,e),h(ha.$$.fragment,e),h(ga.$$.fragment,e),h(La.$$.fragment,e),h(xa.$$.fragment,e),h(ba.$$.fragment,e),h(va.$$.fragment,e),h(wa.$$.fragment,e),h(Po.$$.fragment,e),h($a.$$.fragment,e),h(ya.$$.fragment,e),h(Ma.$$.fragment,e),h(Ta.$$.fragment,e),h(Da.$$.fragment,e),h(Ca.$$.fragment,e),h(Sa.$$.fragment,e),h(Xo.$$.fragment,e),h(Aa.$$.fragment,e),h(ka.$$.fragment,e),h(Ra.$$.fragment,e),h(Ia.$$.fragment,e),h(Va.$$.fragment,e),h(Wa.$$.fragment,e),h(Pa.$$.fragment,e),h(qo.$$.fragment,e),h(Ua.$$.fragment,e),h(Ha.$$.fragment,e),h(jo.$$.fragment,e),h(Fa.$$.fragment,e),h(Xa.$$.fragment,e),h(Ea.$$.fragment,e),h(Na.$$.fragment,e),h(za.$$.fragment,e),h(qa.$$.fragment,e),h(Bo.$$.fragment,e),h(Ja.$$.fragment,e),h(ja.$$.fragment,e),h(Qo.$$.fragment,e),h(Ga.$$.fragment,e),h(Oo.$$.fragment,e),h(Za.$$.fragment,e),h(Ba.$$.fragment,e),h(Ya.$$.fragment,e),h(Qa.$$.fragment,e),h(Oa.$$.fragment,e),h(ot.$$.fragment,e),h(Ka.$$.fragment,e),h(er.$$.fragment,e),h(at.$$.fragment,e),h(or.$$.fragment,e),h(tr.$$.fragment,e),h(ar.$$.fragment,e),h(rr.$$.fragment,e),h(nr.$$.fragment,e),h(st.$$.fragment,e),h(sr.$$.fragment,e),h(ir.$$.fragment,e),h(dt.$$.fragment,e),h(dr.$$.fragment,e),h(lr.$$.fragment,e),h(cr.$$.fragment,e),h(fr.$$.fragment,e),h(pr.$$.fragment,e),h(ft.$$.fragment,e),h(mr.$$.fragment,e),h(_r.$$.fragment,e),h(mt.$$.fragment,e),h(ur.$$.fragment,e),h(hr.$$.fragment,e),h(gr.$$.fragment,e),h(Lr.$$.fragment,e),h(xr.$$.fragment,e),h(ht.$$.fragment,e),h(br.$$.fragment,e),h(vr.$$.fragment,e),h(Lt.$$.fragment,e),h(wr.$$.fragment,e),h($r.$$.fragment,e),h(yr.$$.fragment,e),h(Mr.$$.fragment,e),h(Tr.$$.fragment,e),h(vt.$$.fragment,e),h(Dr.$$.fragment,e),h(Cr.$$.fragment,e),h($t.$$.fragment,e),h(Sr.$$.fragment,e),h(Ar.$$.fragment,e),h(kr.$$.fragment,e),h(Rr.$$.fragment,e),h(Ir.$$.fragment,e),h(Tt.$$.fragment,e),h(Vr.$$.fragment,e),h(Wr.$$.fragment,e),h(Ct.$$.fragment,e),h(Pr.$$.fragment,e),h(Ur.$$.fragment,e),h(Hr.$$.fragment,e),h(Fr.$$.fragment,e),h(Xr.$$.fragment,e),h(kt.$$.fragment,e),h(Er.$$.fragment,e),h(Nr.$$.fragment,e),h(It.$$.fragment,e),h(zr.$$.fragment,e),h(qr.$$.fragment,e),h(Jr.$$.fragment,e),h(jr.$$.fragment,e),h(Gr.$$.fragment,e),h(Pt.$$.fragment,e),h(Zr.$$.fragment,e),h(Br.$$.fragment,e),h(Ht.$$.fragment,e),h(Yr.$$.fragment,e),h(Qr.$$.fragment,e),h(Or.$$.fragment,e),h(Kr.$$.fragment,e),h(en.$$.fragment,e),h(Et.$$.fragment,e),h(on.$$.fragment,e),h(tn.$$.fragment,e),h(zt.$$.fragment,e),h(an.$$.fragment,e),h(rn.$$.fragment,e),h(nn.$$.fragment,e),h(sn.$$.fragment,e),h(dn.$$.fragment,e),h(ln.$$.fragment,e),h(cn.$$.fragment,e),h(fn.$$.fragment,e),h(pn.$$.fragment,e),h(Zt.$$.fragment,e),h(mn.$$.fragment,e),h(_n.$$.fragment,e),h(Yt.$$.fragment,e),h(un.$$.fragment,e),h(hn.$$.fragment,e),h(gn.$$.fragment,e),h(Ln.$$.fragment,e),h(xn.$$.fragment,e),h(Kt.$$.fragment,e),h(bn.$$.fragment,e),h(vn.$$.fragment,e),h(oa.$$.fragment,e),h(wn.$$.fragment,e),ll=!1},d(e){e&&(d(b),d(l),d(c),d(i),d(y),d(Md),d(ta),d(Td),d(Dd),d(Cd),d(C),d(Sd),d(Ad),d(W),d(kd),d(Rd),d(P),d(Id),d(Vd),d(R),d(Wd),d(Pd),d(k),d(Ud),d(Hd),d(U),d(Fd),d(Xd),d(H),d(Ed),d(Nd),d(F),d(zd),d(qd),d(X),d(Jd),d(jd),d(E),d(Gd),d(Zd),d(N),d(Bd),d(Yd),d(z),d(Qd),d(Od),d(q),d(Kd),d(el),d(J),d(ol),d(tl),d(Le),d(al),d(rl),d(j),d(nl),d(sl),d(G),d(il),d(dl),d(yd)),d(t),g(M,e),g(bo,e),g(aa,e),g(ra),g(na),g(vo),g(sa),g(wo),g(ia),g($o),g(da),g(la),g(Mo),g(To),g(ca),g(Do),g(fa),g(pa),g(So),g(ma),g(Ao),g(_a),g(ko),g(ua),g(Ro),g(ha),g(ga,e),g(La),g(xa),g(ba),g(va),g(wa),g(Po),g($a),g(ya,e),g(Ma),g(Ta),g(Da),g(Ca),g(Sa),g(Xo),g(Aa),g(ka,e),g(Ra),g(Ia),g(Va),g(Wa),g(Pa),g(qo),g(Ua),g(Ha),g(jo),g(Fa,e),g(Xa),g(Ea),g(Na),g(za),g(qa),g(Bo),g(Ja),g(ja),g(Qo),g(Ga),g(Oo),g(Za,e),g(Ba),g(Ya),g(Qa),g(Oa),g(ot),g(Ka),g(er),g(at),g(or,e),g(tr),g(ar),g(rr),g(nr),g(st),g(sr),g(ir),g(dt),g(dr,e),g(lr),g(cr),g(fr),g(pr),g(ft),g(mr),g(_r),g(mt),g(ur,e),g(hr),g(gr),g(Lr),g(xr),g(ht),g(br),g(vr),g(Lt),g(wr,e),g($r),g(yr),g(Mr),g(Tr),g(vt),g(Dr),g(Cr),g($t),g(Sr,e),g(Ar),g(kr),g(Rr),g(Ir),g(Tt),g(Vr),g(Wr),g(Ct),g(Pr,e),g(Ur),g(Hr),g(Fr),g(Xr),g(kt),g(Er),g(Nr),g(It),g(zr,e),g(qr),g(Jr),g(jr),g(Gr),g(Pt),g(Zr),g(Br),g(Ht),g(Yr,e),g(Qr),g(Or),g(Kr),g(en),g(Et),g(on),g(tn),g(zt),g(an,e),g(rn),g(nn),g(sn),g(dn,e),g(ln),g(cn),g(fn),g(pn),g(Zt),g(mn),g(_n),g(Yt),g(un,e),g(hn),g(gn),g(Ln),g(xn),g(Kt),g(bn),g(vn),g(oa),g(wn,e)}}}const qg='{"title":"LoRA","local":"lora","sections":[{"title":"LoraBaseMixin","local":"diffusers.loaders.lora_base.LoraBaseMixin","sections":[],"depth":2},{"title":"StableDiffusionLoraLoaderMixin","local":"diffusers.loaders.StableDiffusionLoraLoaderMixin","sections":[],"depth":2},{"title":"StableDiffusionXLLoraLoaderMixin","local":"diffusers.loaders.StableDiffusionXLLoraLoaderMixin","sections":[],"depth":2},{"title":"SD3LoraLoaderMixin","local":"diffusers.loaders.SD3LoraLoaderMixin","sections":[],"depth":2},{"title":"FluxLoraLoaderMixin","local":"diffusers.loaders.FluxLoraLoaderMixin","sections":[],"depth":2},{"title":"CogVideoXLoraLoaderMixin","local":"diffusers.loaders.CogVideoXLoraLoaderMixin","sections":[],"depth":2},{"title":"Mochi1LoraLoaderMixin","local":"diffusers.loaders.Mochi1LoraLoaderMixin","sections":[],"depth":2},{"title":"AuraFlowLoraLoaderMixin","local":"diffusers.loaders.AuraFlowLoraLoaderMixin","sections":[],"depth":2},{"title":"LTXVideoLoraLoaderMixin","local":"diffusers.loaders.LTXVideoLoraLoaderMixin","sections":[],"depth":2},{"title":"SanaLoraLoaderMixin","local":"diffusers.loaders.SanaLoraLoaderMixin","sections":[],"depth":2},{"title":"HunyuanVideoLoraLoaderMixin","local":"diffusers.loaders.HunyuanVideoLoraLoaderMixin","sections":[],"depth":2},{"title":"Lumina2LoraLoaderMixin","local":"diffusers.loaders.Lumina2LoraLoaderMixin","sections":[],"depth":2},{"title":"CogView4LoraLoaderMixin","local":"diffusers.loaders.CogView4LoraLoaderMixin","sections":[],"depth":2},{"title":"WanLoraLoaderMixin","local":"diffusers.loaders.WanLoraLoaderMixin","sections":[],"depth":2},{"title":"AmusedLoraLoaderMixin","local":"diffusers.loaders.AmusedLoraLoaderMixin","sections":[],"depth":2},{"title":"HiDreamImageLoraLoaderMixin","local":"diffusers.loaders.HiDreamImageLoraLoaderMixin","sections":[],"depth":2},{"title":"WanLoraLoaderMixin","local":"diffusers.loaders.WanLoraLoaderMixin","sections":[],"depth":2}],"depth":1}';function Jg(T){return Oh(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Kg extends Kh{constructor(t){super(),eg(this,t,Jg,zg,Qh,{})}}export{Kg as component}; | |
Xet Storage Details
- Size:
- 353 kB
- Xet hash:
- f55591a2b2b455b14c4069ec542b869ded523af7e08d3f72ecd5de2d72c1e483
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.