Buckets:
| import{s as lu,o as cu,n as D}from"../chunks/scheduler.8c3d61f6.js";import{S as fu,i as pu,g as n,s as t,r as p,A as mu,h as s,f as i,c as r,j as v,u as m,x as f,k as b,y as o,a as x,v as h,d as _,t as u,w as g}from"../chunks/index.da70eac4.js";import{T as C}from"../chunks/Tip.1d9b8c37.js";import{D as $}from"../chunks/Docstring.fa488882.js";import{C as bl}from"../chunks/CodeBlock.a9c4becf.js";import{E as vl}from"../chunks/ExampleCodeBlock.ec9feb8f.js";import{H as J,E as hu}from"../chunks/index.dfbaf638.js";function _u(M){let a,w='To learn more about how to load LoRA weights, see the <a href="../../using-diffusers/loading_adapters#lora">LoRA</a> loading guide.';return{c(){a=n("p"),a.innerHTML=w},l(l){a=s(l,"P",{"data-svelte-h":!0}),f(a)!=="svelte-1fw6lx1"&&(a.innerHTML=w)},m(l,c){x(l,a,c)},p:D,d(l){l&&i(a)}}}function uu(M){let a,w="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",l,c,T="This function is experimental and might change in the future.";return{c(){a=n("p"),a.textContent=w,l=t(),c=n("p"),c.textContent=T},l(d){a=s(d,"P",{"data-svelte-h":!0}),f(a)!=="svelte-15l1sdn"&&(a.textContent=w),l=r(d),c=s(d,"P",{"data-svelte-h":!0}),f(c)!=="svelte-3fufvn"&&(c.textContent=T)},m(d,y){x(d,a,y),x(d,l,y),x(d,c,y)},p:D,d(d){d&&(i(a),i(l),i(c))}}}function gu(M){let a,w="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",l,c,T="This function is experimental and might change in the future.";return{c(){a=n("p"),a.textContent=w,l=t(),c=n("p"),c.textContent=T},l(d){a=s(d,"P",{"data-svelte-h":!0}),f(a)!=="svelte-15l1sdn"&&(a.textContent=w),l=r(d),c=s(d,"P",{"data-svelte-h":!0}),f(c)!=="svelte-3fufvn"&&(c.textContent=T)},m(d,y){x(d,a,y),x(d,l,y),x(d,c,y)},p:D,d(d){d&&(i(a),i(l),i(c))}}}function Lu(M){let a,w="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",l,c,T="This function is experimental and might change in the future.";return{c(){a=n("p"),a.textContent=w,l=t(),c=n("p"),c.textContent=T},l(d){a=s(d,"P",{"data-svelte-h":!0}),f(a)!=="svelte-15l1sdn"&&(a.textContent=w),l=r(d),c=s(d,"P",{"data-svelte-h":!0}),f(c)!=="svelte-3fufvn"&&(c.textContent=T)},m(d,y){x(d,a,y),x(d,l,y),x(d,c,y)},p:D,d(d){d&&(i(a),i(l),i(c))}}}function xu(M){let a,w="This is an experimental API.";return{c(){a=n("p"),a.textContent=w},l(l){a=s(l,"P",{"data-svelte-h":!0}),f(a)!=="svelte-8w79b9"&&(a.textContent=w)},m(l,c){x(l,a,c)},p:D,d(l){l&&i(a)}}}function wu(M){let a,w="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",l,c,T="This function is experimental and might change in the future.";return{c(){a=n("p"),a.textContent=w,l=t(),c=n("p"),c.textContent=T},l(d){a=s(d,"P",{"data-svelte-h":!0}),f(a)!=="svelte-15l1sdn"&&(a.textContent=w),l=r(d),c=s(d,"P",{"data-svelte-h":!0}),f(c)!=="svelte-3fufvn"&&(c.textContent=T)},m(d,y){x(d,a,y),x(d,l,y),x(d,c,y)},p:D,d(d){d&&(i(a),i(l),i(c))}}}function vu(M){let a,w="This is an experimental API.";return{c(){a=n("p"),a.textContent=w},l(l){a=s(l,"P",{"data-svelte-h":!0}),f(a)!=="svelte-8w79b9"&&(a.textContent=w)},m(l,c){x(l,a,c)},p:D,d(l){l&&i(a)}}}function bu(M){let a,w="Examples:",l,c,T;return c=new bl({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(){a=n("p"),a.textContent=w,l=t(),p(c.$$.fragment)},l(d){a=s(d,"P",{"data-svelte-h":!0}),f(a)!=="svelte-kvfsh7"&&(a.textContent=w),l=r(d),m(c.$$.fragment,d)},m(d,y){x(d,a,y),x(d,l,y),h(c,d,y),T=!0},p:D,i(d){T||(_(c.$$.fragment,d),T=!0)},o(d){u(c.$$.fragment,d),T=!1},d(d){d&&(i(a),i(l)),g(c,d)}}}function $u(M){let a,w="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",l,c,T="This function is experimental and might change in the future.";return{c(){a=n("p"),a.textContent=w,l=t(),c=n("p"),c.textContent=T},l(d){a=s(d,"P",{"data-svelte-h":!0}),f(a)!=="svelte-15l1sdn"&&(a.textContent=w),l=r(d),c=s(d,"P",{"data-svelte-h":!0}),f(c)!=="svelte-3fufvn"&&(c.textContent=T)},m(d,y){x(d,a,y),x(d,l,y),x(d,c,y)},p:D,d(d){d&&(i(a),i(l),i(c))}}}function yu(M){let a,w="This is an experimental API.";return{c(){a=n("p"),a.textContent=w},l(l){a=s(l,"P",{"data-svelte-h":!0}),f(a)!=="svelte-8w79b9"&&(a.textContent=w)},m(l,c){x(l,a,c)},p:D,d(l){l&&i(a)}}}function Mu(M){let a,w="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",l,c,T="This function is experimental and might change in the future.";return{c(){a=n("p"),a.textContent=w,l=t(),c=n("p"),c.textContent=T},l(d){a=s(d,"P",{"data-svelte-h":!0}),f(a)!=="svelte-15l1sdn"&&(a.textContent=w),l=r(d),c=s(d,"P",{"data-svelte-h":!0}),f(c)!=="svelte-3fufvn"&&(c.textContent=T)},m(d,y){x(d,a,y),x(d,l,y),x(d,c,y)},p:D,d(d){d&&(i(a),i(l),i(c))}}}function Tu(M){let a,w="This is an experimental API.";return{c(){a=n("p"),a.textContent=w},l(l){a=s(l,"P",{"data-svelte-h":!0}),f(a)!=="svelte-8w79b9"&&(a.textContent=w)},m(l,c){x(l,a,c)},p:D,d(l){l&&i(a)}}}function Du(M){let a,w="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",l,c,T="This function is experimental and might change in the future.";return{c(){a=n("p"),a.textContent=w,l=t(),c=n("p"),c.textContent=T},l(d){a=s(d,"P",{"data-svelte-h":!0}),f(a)!=="svelte-15l1sdn"&&(a.textContent=w),l=r(d),c=s(d,"P",{"data-svelte-h":!0}),f(c)!=="svelte-3fufvn"&&(c.textContent=T)},m(d,y){x(d,a,y),x(d,l,y),x(d,c,y)},p:D,d(d){d&&(i(a),i(l),i(c))}}}function Cu(M){let a,w="This is an experimental API.";return{c(){a=n("p"),a.textContent=w},l(l){a=s(l,"P",{"data-svelte-h":!0}),f(a)!=="svelte-8w79b9"&&(a.textContent=w)},m(l,c){x(l,a,c)},p:D,d(l){l&&i(a)}}}function Au(M){let a,w="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",l,c,T="This function is experimental and might change in the future.";return{c(){a=n("p"),a.textContent=w,l=t(),c=n("p"),c.textContent=T},l(d){a=s(d,"P",{"data-svelte-h":!0}),f(a)!=="svelte-15l1sdn"&&(a.textContent=w),l=r(d),c=s(d,"P",{"data-svelte-h":!0}),f(c)!=="svelte-3fufvn"&&(c.textContent=T)},m(d,y){x(d,a,y),x(d,l,y),x(d,c,y)},p:D,d(d){d&&(i(a),i(l),i(c))}}}function ku(M){let a,w="This is an experimental API.";return{c(){a=n("p"),a.textContent=w},l(l){a=s(l,"P",{"data-svelte-h":!0}),f(a)!=="svelte-8w79b9"&&(a.textContent=w)},m(l,c){x(l,a,c)},p:D,d(l){l&&i(a)}}}function Su(M){let a,w="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",l,c,T="This function is experimental and might change in the future.";return{c(){a=n("p"),a.textContent=w,l=t(),c=n("p"),c.textContent=T},l(d){a=s(d,"P",{"data-svelte-h":!0}),f(a)!=="svelte-15l1sdn"&&(a.textContent=w),l=r(d),c=s(d,"P",{"data-svelte-h":!0}),f(c)!=="svelte-3fufvn"&&(c.textContent=T)},m(d,y){x(d,a,y),x(d,l,y),x(d,c,y)},p:D,d(d){d&&(i(a),i(l),i(c))}}}function Ru(M){let a,w="This is an experimental API.";return{c(){a=n("p"),a.textContent=w},l(l){a=s(l,"P",{"data-svelte-h":!0}),f(a)!=="svelte-8w79b9"&&(a.textContent=w)},m(l,c){x(l,a,c)},p:D,d(l){l&&i(a)}}}function Pu(M){let a,w="We support loading original format HunyuanVideo LoRA checkpoints.",l,c,T="This function is experimental and might change in the future.";return{c(){a=n("p"),a.textContent=w,l=t(),c=n("p"),c.textContent=T},l(d){a=s(d,"P",{"data-svelte-h":!0}),f(a)!=="svelte-gyrs6h"&&(a.textContent=w),l=r(d),c=s(d,"P",{"data-svelte-h":!0}),f(c)!=="svelte-3fufvn"&&(c.textContent=T)},m(d,y){x(d,a,y),x(d,l,y),x(d,c,y)},p:D,d(d){d&&(i(a),i(l),i(c))}}}function Vu(M){let a,w="This is an experimental API.";return{c(){a=n("p"),a.textContent=w},l(l){a=s(l,"P",{"data-svelte-h":!0}),f(a)!=="svelte-8w79b9"&&(a.textContent=w)},m(l,c){x(l,a,c)},p:D,d(l){l&&i(a)}}}function Hu(M){let a,w="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",l,c,T="This function is experimental and might change in the future.";return{c(){a=n("p"),a.textContent=w,l=t(),c=n("p"),c.textContent=T},l(d){a=s(d,"P",{"data-svelte-h":!0}),f(a)!=="svelte-15l1sdn"&&(a.textContent=w),l=r(d),c=s(d,"P",{"data-svelte-h":!0}),f(c)!=="svelte-3fufvn"&&(c.textContent=T)},m(d,y){x(d,a,y),x(d,l,y),x(d,c,y)},p:D,d(d){d&&(i(a),i(l),i(c))}}}function Iu(M){let a,w="This is an experimental API.";return{c(){a=n("p"),a.textContent=w},l(l){a=s(l,"P",{"data-svelte-h":!0}),f(a)!=="svelte-8w79b9"&&(a.textContent=w)},m(l,c){x(l,a,c)},p:D,d(l){l&&i(a)}}}function Wu(M){let a,w="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",l,c,T="This function is experimental and might change in the future.";return{c(){a=n("p"),a.textContent=w,l=t(),c=n("p"),c.textContent=T},l(d){a=s(d,"P",{"data-svelte-h":!0}),f(a)!=="svelte-15l1sdn"&&(a.textContent=w),l=r(d),c=s(d,"P",{"data-svelte-h":!0}),f(c)!=="svelte-3fufvn"&&(c.textContent=T)},m(d,y){x(d,a,y),x(d,l,y),x(d,c,y)},p:D,d(d){d&&(i(a),i(l),i(c))}}}function Fu(M){let a,w="This is an experimental API.";return{c(){a=n("p"),a.textContent=w},l(l){a=s(l,"P",{"data-svelte-h":!0}),f(a)!=="svelte-8w79b9"&&(a.textContent=w)},m(l,c){x(l,a,c)},p:D,d(l){l&&i(a)}}}function Uu(M){let a,w="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",l,c,T="This function is experimental and might change in the future.";return{c(){a=n("p"),a.textContent=w,l=t(),c=n("p"),c.textContent=T},l(d){a=s(d,"P",{"data-svelte-h":!0}),f(a)!=="svelte-15l1sdn"&&(a.textContent=w),l=r(d),c=s(d,"P",{"data-svelte-h":!0}),f(c)!=="svelte-3fufvn"&&(c.textContent=T)},m(d,y){x(d,a,y),x(d,l,y),x(d,c,y)},p:D,d(d){d&&(i(a),i(l),i(c))}}}function Eu(M){let a,w="This is an experimental API.";return{c(){a=n("p"),a.textContent=w},l(l){a=s(l,"P",{"data-svelte-h":!0}),f(a)!=="svelte-8w79b9"&&(a.textContent=w)},m(l,c){x(l,a,c)},p:D,d(l){l&&i(a)}}}function qu(M){let a,w="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",l,c,T="This function is experimental and might change in the future.";return{c(){a=n("p"),a.textContent=w,l=t(),c=n("p"),c.textContent=T},l(d){a=s(d,"P",{"data-svelte-h":!0}),f(a)!=="svelte-15l1sdn"&&(a.textContent=w),l=r(d),c=s(d,"P",{"data-svelte-h":!0}),f(c)!=="svelte-3fufvn"&&(c.textContent=T)},m(d,y){x(d,a,y),x(d,l,y),x(d,c,y)},p:D,d(d){d&&(i(a),i(l),i(c))}}}function Nu(M){let a,w="This is an experimental API.";return{c(){a=n("p"),a.textContent=w},l(l){a=s(l,"P",{"data-svelte-h":!0}),f(a)!=="svelte-8w79b9"&&(a.textContent=w)},m(l,c){x(l,a,c)},p:D,d(l){l&&i(a)}}}function Xu(M){let a,w="We support loading A1111 formatted LoRA checkpoints in a limited capacity.",l,c,T="This function is experimental and might change in the future.";return{c(){a=n("p"),a.textContent=w,l=t(),c=n("p"),c.textContent=T},l(d){a=s(d,"P",{"data-svelte-h":!0}),f(a)!=="svelte-15l1sdn"&&(a.textContent=w),l=r(d),c=s(d,"P",{"data-svelte-h":!0}),f(c)!=="svelte-3fufvn"&&(c.textContent=T)},m(d,y){x(d,a,y),x(d,l,y),x(d,c,y)},p:D,d(d){d&&(i(a),i(l),i(c))}}}function zu(M){let a,w="This is an experimental API.";return{c(){a=n("p"),a.textContent=w},l(l){a=s(l,"P",{"data-svelte-h":!0}),f(a)!=="svelte-8w79b9"&&(a.textContent=w)},m(l,c){x(l,a,c)},p:D,d(l){l&&i(a)}}}function Bu(M){let a,w="This is an experimental API.";return{c(){a=n("p"),a.textContent=w},l(l){a=s(l,"P",{"data-svelte-h":!0}),f(a)!=="svelte-8w79b9"&&(a.textContent=w)},m(l,c){x(l,a,c)},p:D,d(l){l&&i(a)}}}function ju(M){let a,w="Example:",l,c,T;return c=new bl({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(){a=n("p"),a.textContent=w,l=t(),p(c.$$.fragment)},l(d){a=s(d,"P",{"data-svelte-h":!0}),f(a)!=="svelte-11lpom8"&&(a.textContent=w),l=r(d),m(c.$$.fragment,d)},m(d,y){x(d,a,y),x(d,l,y),h(c,d,y),T=!0},p:D,i(d){T||(_(c.$$.fragment,d),T=!0)},o(d){u(c.$$.fragment,d),T=!1},d(d){d&&(i(a),i(l)),g(c,d)}}}function Gu(M){let a,w="Example:",l,c,T;return c=new bl({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(){a=n("p"),a.textContent=w,l=t(),p(c.$$.fragment)},l(d){a=s(d,"P",{"data-svelte-h":!0}),f(a)!=="svelte-11lpom8"&&(a.textContent=w),l=r(d),m(c.$$.fragment,d)},m(d,y){x(d,a,y),x(d,l,y),h(c,d,y),T=!0},p:D,i(d){T||(_(c.$$.fragment,d),T=!0)},o(d){u(c.$$.fragment,d),T=!1},d(d){d&&(i(a),i(l)),g(c,d)}}}function Ju(M){let a,w="This is an experimental API.";return{c(){a=n("p"),a.textContent=w},l(l){a=s(l,"P",{"data-svelte-h":!0}),f(a)!=="svelte-8w79b9"&&(a.textContent=w)},m(l,c){x(l,a,c)},p:D,d(l){l&&i(a)}}}function Zu(M){let a,w="Examples:",l,c,T;return c=new bl({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(){a=n("p"),a.textContent=w,l=t(),p(c.$$.fragment)},l(d){a=s(d,"P",{"data-svelte-h":!0}),f(a)!=="svelte-kvfsh7"&&(a.textContent=w),l=r(d),m(c.$$.fragment,d)},m(d,y){x(d,a,y),x(d,l,y),h(c,d,y),T=!0},p:D,i(d){T||(_(c.$$.fragment,d),T=!0)},o(d){u(c.$$.fragment,d),T=!1},d(d){d&&(i(a),i(l)),g(c,d)}}}function Yu(M){let a,w,l,c,T,d,y,Jm='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_11335/en/api/models/unet2d-cond#diffusers.UNet2DConditionModel">UNet2DConditionModel</a>, for example) or a Transformer (<a href="/docs/diffusers/pr_11335/en/api/models/sd3_transformer2d#diffusers.SD3Transformer2DModel">SD3Transformer2DModel</a>, for example). There are several classes for loading LoRA weights:',od,Wt,Zm='<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_11335/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,so,rd,Ft,ad,H,Ut,$l,Ln,Ym=`Load LoRA layers into Stable Diffusion <a href="/docs/diffusers/pr_11335/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>.`,yl,io,Et,Ml,xn,Om="This will load the LoRA layers specified in <code>state_dict</code> into <code>text_encoder</code>",Tl,lo,qt,Dl,wn,Qm="This will load the LoRA layers specified in <code>state_dict</code> into <code>unet</code>.",Cl,K,Nt,Al,vn,Km=`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>.`,kl,bn,eh="All kwargs are forwarded to <code>self.lora_state_dict</code>.",Sl,$n,oh=`See <a href="/docs/diffusers/pr_11335/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details on how the state dict is | |
| loaded.`,Rl,yn,th=`See <a href="/docs/diffusers/pr_11335/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>.`,Pl,Mn,rh=`See <a href="/docs/diffusers/pr_11335/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>.`,Vl,ge,Xt,Hl,Tn,ah="Return state dict for lora weights and the network alphas.",Il,co,Wl,fo,zt,Fl,Dn,nh="Save the LoRA parameters corresponding to the UNet and text encoder.",nd,Bt,sd,I,jt,Ul,Cn,sh=`Load LoRA layers into Stable Diffusion XL <a href="/docs/diffusers/pr_11335/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>.`,El,po,Gt,ql,An,ih="This will load the LoRA layers specified in <code>state_dict</code> into <code>text_encoder</code>",Nl,mo,Jt,Xl,kn,dh="This will load the LoRA layers specified in <code>state_dict</code> into <code>unet</code>.",zl,ee,Zt,Bl,Sn,lh=`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>.`,jl,Rn,ch="All kwargs are forwarded to <code>self.lora_state_dict</code>.",Gl,Pn,fh=`See <a href="/docs/diffusers/pr_11335/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details on how the state dict is | |
| loaded.`,Jl,Vn,ph=`See <a href="/docs/diffusers/pr_11335/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>.`,Zl,Hn,mh=`See <a href="/docs/diffusers/pr_11335/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>.`,Yl,Le,Yt,Ol,In,hh="Return state dict for lora weights and the network alphas.",Ql,ho,Kl,_o,Ot,ec,Wn,_h="Save the LoRA parameters corresponding to the UNet and text encoder.",id,Qt,dd,S,Kt,oc,Fn,uh=`Load LoRA layers into <a href="/docs/diffusers/pr_11335/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>.`,tc,Un,gh='Specific to <a href="/docs/diffusers/pr_11335/en/api/pipelines/stable_diffusion/stable_diffusion_3#diffusers.StableDiffusion3Pipeline">StableDiffusion3Pipeline</a>.',rc,uo,er,ac,En,Lh="This will load the LoRA layers specified in <code>state_dict</code> into <code>text_encoder</code>",nc,go,or,sc,qn,xh="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",ic,re,tr,dc,Nn,wh=`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>.`,lc,Xn,vh="All kwargs are forwarded to <code>self.lora_state_dict</code>.",cc,zn,bh=`See <a href="/docs/diffusers/pr_11335/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details on how the state dict is | |
| loaded.`,fc,Bn,$h=`See <code>~loaders.StableDiffusionLoraLoaderMixin.load_lora_into_transformer</code> for more details on how the state | |
| dict is loaded into <code>self.transformer</code>.`,pc,xe,rr,mc,jn,yh="Return state dict for lora weights and the network alphas.",hc,Lo,_c,xo,ar,uc,Gn,Mh="Save the LoRA parameters corresponding to the UNet and text encoder.",gc,we,nr,Lc,Jn,Th=`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>.`,xc,wo,ld,sr,cd,A,ir,wc,Zn,Dh=`Load LoRA layers into <a href="/docs/diffusers/pr_11335/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>.`,vc,Yn,Ch='Specific to <a href="/docs/diffusers/pr_11335/en/api/pipelines/stable_diffusion/stable_diffusion_3#diffusers.StableDiffusion3Pipeline">StableDiffusion3Pipeline</a>.',bc,vo,dr,$c,On,Ah="This will load the LoRA layers specified in <code>state_dict</code> into <code>text_encoder</code>",yc,bo,lr,Mc,Qn,kh="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",Tc,ae,cr,Dc,Kn,Sh=`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>.`,Cc,es,Rh="All kwargs are forwarded to <code>self.lora_state_dict</code>.",Ac,os,Ph=`See <a href="/docs/diffusers/pr_11335/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details on how the state dict is | |
| loaded.`,kc,ts,Vh=`See <code>~loaders.StableDiffusionLoraLoaderMixin.load_lora_into_transformer</code> for more details on how the state | |
| dict is loaded into <code>self.transformer</code>.`,Sc,ve,fr,Rc,rs,Hh="Return state dict for lora weights and the network alphas.",Pc,$o,Vc,yo,pr,Hc,as,Ih="Save the LoRA parameters corresponding to the UNet and text encoder.",Ic,be,mr,Wc,ns,Wh=`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>.`,Fc,Mo,Uc,$e,hr,Ec,ss,Fh="Unloads the LoRA parameters.",qc,To,fd,_r,pd,W,ur,Nc,is,Uh='Load LoRA layers into <a href="/docs/diffusers/pr_11335/en/api/models/cogvideox_transformer3d#diffusers.CogVideoXTransformer3DModel">CogVideoXTransformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_11335/en/api/pipelines/cogvideox#diffusers.CogVideoXPipeline">CogVideoXPipeline</a>.',Xc,Do,gr,zc,ds,Eh="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",Bc,Co,Lr,jc,ls,qh=`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_11335/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>.`,Gc,ye,xr,Jc,cs,Nh="Return state dict for lora weights and the network alphas.",Zc,Ao,Yc,ko,wr,Oc,fs,Xh="Save the LoRA parameters corresponding to the UNet and text encoder.",Qc,Me,vr,Kc,ps,zh=`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>.`,ef,So,md,br,hd,F,$r,of,ms,Bh='Load LoRA layers into <a href="/docs/diffusers/pr_11335/en/api/models/mochi_transformer3d#diffusers.MochiTransformer3DModel">MochiTransformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_11335/en/api/pipelines/mochi#diffusers.MochiPipeline">MochiPipeline</a>.',tf,Ro,yr,rf,hs,jh="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",af,Po,Mr,nf,_s,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_11335/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>.`,sf,Te,Tr,df,us,Jh="Return state dict for lora weights and the network alphas.",lf,Vo,cf,Ho,Dr,ff,gs,Zh="Save the LoRA parameters corresponding to the UNet and text encoder.",pf,De,Cr,mf,Ls,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>.`,hf,Io,_d,Ar,ud,U,kr,_f,xs,Oh='Load LoRA layers into <a href="/docs/diffusers/pr_11335/en/api/models/aura_flow_transformer2d#diffusers.AuraFlowTransformer2DModel">AuraFlowTransformer2DModel</a> Specific to <a href="/docs/diffusers/pr_11335/en/api/pipelines/aura_flow#diffusers.AuraFlowPipeline">AuraFlowPipeline</a>.',uf,Wo,Sr,gf,ws,Qh="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",Lf,Fo,Rr,xf,vs,Kh=`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_11335/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>.`,wf,Ce,Pr,vf,bs,e_="Return state dict for lora weights and the network alphas.",bf,Uo,$f,Eo,Vr,yf,$s,o_="Save the LoRA parameters corresponding to the UNet and text encoder.",Mf,Ae,Hr,Tf,ys,t_=`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>.`,Df,qo,gd,Ir,Ld,E,Wr,Cf,Ms,r_='Load LoRA layers into <a href="/docs/diffusers/pr_11335/en/api/models/ltx_video_transformer3d#diffusers.LTXVideoTransformer3DModel">LTXVideoTransformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_11335/en/api/pipelines/ltx_video#diffusers.LTXPipeline">LTXPipeline</a>.',Af,No,Fr,kf,Ts,a_="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",Sf,Xo,Ur,Rf,Ds,n_=`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_11335/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>.`,Pf,ke,Er,Vf,Cs,s_="Return state dict for lora weights and the network alphas.",Hf,zo,If,Bo,qr,Wf,As,i_="Save the LoRA parameters corresponding to the UNet and text encoder.",Ff,Se,Nr,Uf,ks,d_=`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>.`,Ef,jo,xd,Xr,wd,q,zr,qf,Ss,l_='Load LoRA layers into <a href="/docs/diffusers/pr_11335/en/api/models/sana_transformer2d#diffusers.SanaTransformer2DModel">SanaTransformer2DModel</a>. Specific to <a href="/docs/diffusers/pr_11335/en/api/pipelines/sana#diffusers.SanaPipeline">SanaPipeline</a>.',Nf,Go,Br,Xf,Rs,c_="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",zf,Jo,jr,Bf,Ps,f_=`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_11335/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>.`,jf,Re,Gr,Gf,Vs,p_="Return state dict for lora weights and the network alphas.",Jf,Zo,Zf,Yo,Jr,Yf,Hs,m_="Save the LoRA parameters corresponding to the UNet and text encoder.",Of,Pe,Zr,Qf,Is,h_=`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>.`,Kf,Oo,vd,Yr,bd,N,Or,ep,Ws,__='Load LoRA layers into <a href="/docs/diffusers/pr_11335/en/api/models/hunyuan_video_transformer_3d#diffusers.HunyuanVideoTransformer3DModel">HunyuanVideoTransformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_11335/en/api/pipelines/hunyuan_video#diffusers.HunyuanVideoPipeline">HunyuanVideoPipeline</a>.',op,Qo,Qr,tp,Fs,u_="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",rp,Ko,Kr,ap,Us,g_=`Load LoRA weights specified in <code>pretrained_model_name_or_path_or_dict</code> into <code>self.transformer</code> and | |
| <code>self.text_encoder</code>. All kwargs are forwarded to <code>self.lora_state_dict</code>. See | |
| <a href="/docs/diffusers/pr_11335/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details on how the state dict is loaded. | |
| See <code>~loaders.StableDiffusionLoraLoaderMixin.load_lora_into_transformer</code> for more details on how the state | |
| dict is loaded into <code>self.transformer</code>.`,np,Ve,ea,sp,Es,L_="Return state dict for lora weights and the network alphas.",ip,et,dp,ot,oa,lp,qs,x_="Save the LoRA parameters corresponding to the UNet and text encoder.",cp,He,ta,fp,Ns,w_=`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>.`,pp,tt,$d,ra,yd,X,aa,mp,Xs,v_='Load LoRA layers into <a href="/docs/diffusers/pr_11335/en/api/models/lumina2_transformer2d#diffusers.Lumina2Transformer2DModel">Lumina2Transformer2DModel</a>. Specific to <code>Lumina2Text2ImgPipeline</code>.',hp,rt,na,_p,zs,b_="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",up,at,sa,gp,Bs,$_=`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_11335/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details on how the state dict is loaded. | |
| See <code>~loaders.StableDiffusionLoraLoaderMixin.load_lora_into_transformer</code> for more details on how the state | |
| dict is loaded into <code>self.transformer</code>.`,Lp,Ie,ia,xp,js,y_="Return state dict for lora weights and the network alphas.",wp,nt,vp,st,da,bp,Gs,M_="Save the LoRA parameters corresponding to the UNet and text encoder.",$p,We,la,yp,Js,T_=`Reverses the effect of | |
| <a href="https://huggingface.co/docs/diffusers/main/en/api/loaders#diffusers.loaders.LoraBaseMixin.fuse_lora" rel="nofollow"><code>pipe.fuse_lora()</code></a>.`,Mp,it,Md,ca,Td,z,fa,Tp,Zs,D_='Load LoRA layers into <a href="/docs/diffusers/pr_11335/en/api/models/wan_transformer_3d#diffusers.WanTransformer3DModel">WanTransformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_11335/en/api/pipelines/wan#diffusers.WanPipeline">WanPipeline</a> and <code>[WanImageToVideoPipeline</code>].',Dp,dt,pa,Cp,Ys,C_="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",Ap,lt,ma,kp,Os,A_=`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_11335/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>.`,Sp,Fe,ha,Rp,Qs,k_="Return state dict for lora weights and the network alphas.",Pp,ct,Vp,ft,_a,Hp,Ks,S_="Save the LoRA parameters corresponding to the UNet and text encoder.",Ip,Ue,ua,Wp,ei,R_=`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>.`,Fp,pt,Dd,ga,Cd,B,La,Up,oi,P_='Load LoRA layers into <a href="/docs/diffusers/pr_11335/en/api/models/wan_transformer_3d#diffusers.WanTransformer3DModel">WanTransformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_11335/en/api/pipelines/cogview4#diffusers.CogView4Pipeline">CogView4Pipeline</a>.',Ep,mt,xa,qp,ti,V_="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",Np,ht,wa,Xp,ri,H_=`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_11335/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a> for more details on how the state dict is loaded. | |
| See <code>~loaders.StableDiffusionLoraLoaderMixin.load_lora_into_transformer</code> for more details on how the state | |
| dict is loaded into <code>self.transformer</code>.`,zp,Ee,va,Bp,ai,I_="Return state dict for lora weights and the network alphas.",jp,_t,Gp,ut,ba,Jp,ni,W_="Save the LoRA parameters corresponding to the UNet and text encoder.",Zp,qe,$a,Yp,si,F_=`Reverses the effect of | |
| <a href="https://huggingface.co/docs/diffusers/main/en/api/loaders#diffusers.loaders.LoraBaseMixin.fuse_lora" rel="nofollow"><code>pipe.fuse_lora()</code></a>.`,Op,gt,Ad,ya,kd,j,Ma,Qp,ii,U_='Load LoRA layers into <a href="/docs/diffusers/pr_11335/en/api/models/wan_transformer_3d#diffusers.WanTransformer3DModel">WanTransformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_11335/en/api/pipelines/cogview4#diffusers.CogView4Pipeline">CogView4Pipeline</a>.',Kp,Lt,Ta,em,di,E_="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",om,xt,Da,tm,li,q_=`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_11335/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>.`,rm,Ne,Ca,am,ci,N_="Return state dict for lora weights and the network alphas.",nm,wt,sm,vt,Aa,im,fi,X_="Save the LoRA parameters corresponding to the UNet and text encoder.",dm,Xe,ka,lm,pi,z_=`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>.`,cm,bt,Sd,Sa,Rd,G,Ra,fm,mi,B_='Load LoRA layers into <a href="/docs/diffusers/pr_11335/en/api/models/wan_transformer_3d#diffusers.WanTransformer3DModel">WanTransformer3DModel</a>. Specific to <a href="/docs/diffusers/pr_11335/en/api/pipelines/wan#diffusers.WanPipeline">WanPipeline</a> and <code>[WanImageToVideoPipeline</code>].',pm,$t,Pa,mm,hi,j_="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",hm,yt,Va,_m,_i,G_=`Load LoRA weights specified in <code>pretrained_model_name_or_path_or_dict</code> into <code>self.transformer</code> and | |
| <code>self.text_encoder</code>. All kwargs are forwarded to <code>self.lora_state_dict</code>. See | |
| <a href="/docs/diffusers/pr_11335/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>.`,um,ze,Ha,gm,ui,J_="Return state dict for lora weights and the network alphas.",Lm,Mt,xm,Tt,Ia,wm,gi,Z_="Save the LoRA parameters corresponding to the UNet and text encoder.",vm,Be,Wa,bm,Li,Y_=`Reverses the effect of | |
| <a href="https://huggingface.co/docs/diffusers/main/en/api/loaders#diffusers.loaders.LoraBaseMixin.fuse_lora" rel="nofollow"><code>pipe.fuse_lora()</code></a>.`,$m,Dt,Pd,Fa,Vd,Ye,Ua,ym,Ct,Ea,Mm,xi,O_="This will load the LoRA layers specified in <code>state_dict</code> into <code>transformer</code>.",Hd,qa,Id,Na,Xa,Wd,za,Fd,k,Ba,Tm,wi,Q_="Utility class for handling LoRAs.",Dm,vi,ja,Cm,je,Ga,Am,bi,K_="Enables the possibility to hotswap LoRA adapters.",km,$i,eu=`Calling this method is only required when hotswapping adapters and if the model is compiled or if the ranks of | |
| the loaded adapters differ.`,Sm,ue,Ja,Rm,yi,ou="Fuses the LoRA parameters into the original parameters of the corresponding blocks.",Pm,At,Vm,kt,Hm,Ge,Za,Im,Mi,tu="Gets the list of the current active adapters.",Wm,St,Fm,Rt,Ya,Um,Ti,ru="Gets the current list of all available adapters in the pipeline.",Em,Pt,Oa,qm,Di,au=`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.`,Nm,Je,Qa,Xm,Ci,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>.`,zm,Vt,Bm,Ze,Ka,jm,Ai,su="Unloads the LoRA parameters.",Gm,Ht,Ud,en,Ed,ed,qd;return T=new J({props:{title:"LoRA",local:"lora",headingTag:"h1"}}),so=new C({props:{$$slots:{default:[_u]},$$scope:{ctx:M}}}),Ft=new J({props:{title:"StableDiffusionLoraLoaderMixin",local:"diffusers.loaders.StableDiffusionLoraLoaderMixin",headingTag:"h2"}}),Ut=new $({props:{name:"class diffusers.loaders.StableDiffusionLoraLoaderMixin",anchor:"diffusers.loaders.StableDiffusionLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L117"}}),Et=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"}],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>) | |
| 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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L417"}}),qt=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"}],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>) | |
| 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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L340"}}),Nt=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:" = 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_11335/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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L127"}}),Xt=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_11335/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"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L225"}}),co=new C({props:{warning:!0,$$slots:{default:[uu]},$$scope:{ctx:M}}}),zt=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"}],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"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L491"}}),Bt=new J({props:{title:"StableDiffusionXLLoraLoaderMixin",local:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin",headingTag:"h2"}}),jt=new $({props:{name:"class diffusers.loaders.StableDiffusionXLLoraLoaderMixin",anchor:"diffusers.loaders.StableDiffusionXLLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L613"}}),Gt=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"}],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>) | |
| 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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L908"}}),Jt=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"}],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>) | |
| 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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L830"}}),Zt=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:"**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_11335/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.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_11335/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L624"}}),Yt=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_11335/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"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L714"}}),ho=new C({props:{warning:!0,$$slots:{default:[gu]},$$scope:{ctx:M}}}),Ot=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"}],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"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L983"}}),Qt=new J({props:{title:"SD3LoraLoaderMixin",local:"diffusers.loaders.SD3LoraLoaderMixin",headingTag:"h2"}}),Kt=new $({props:{name:"class diffusers.loaders.SD3LoraLoaderMixin",anchor:"diffusers.loaders.SD3LoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L1113"}}),er=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"}],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>) | |
| 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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L1388"}}),or=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"}],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>) | |
| 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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L1328"}}),tr=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_11335/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>) | |
| 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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L1223"}}),rr=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_11335/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"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L1126"}}),Lo=new C({props:{warning:!0,$$slots:{default:[Lu]},$$scope:{ctx:M}}}),ar=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"}],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"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L1463"}}),nr=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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L1575"}}),wo=new C({props:{warning:!0,$$slots:{default:[xu]},$$scope:{ctx:M}}}),sr=new J({props:{title:"FluxLoraLoaderMixin",local:"diffusers.loaders.FluxLoraLoaderMixin",headingTag:"h2"}}),ir=new $({props:{name:"class diffusers.loaders.FluxLoraLoaderMixin",anchor:"diffusers.loaders.FluxLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L1929"}}),dr=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"}],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>) | |
| 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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L2341"}}),lr=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:"_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>) | |
| 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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L2216"}}),cr=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:" = 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_11335/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.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_11335/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"},{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>) | |
| 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. 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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L2076"}}),fr=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_11335/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"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L1942"}}),$o=new C({props:{warning:!0,$$slots:{default:[wu]},$$scope:{ctx:M}}}),pr=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"}],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"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L2416"}}),mr=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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L2531"}}),Mo=new C({props:{warning:!0,$$slots:{default:[vu]},$$scope:{ctx:M}}}),hr=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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L2552"}}),To=new vl({props:{anchor:"diffusers.loaders.FluxLoraLoaderMixin.unload_lora_weights.example",$$slots:{default:[bu]},$$scope:{ctx:M}}}),_r=new J({props:{title:"CogVideoXLoraLoaderMixin",local:"diffusers.loaders.CogVideoXLoraLoaderMixin",headingTag:"h2"}}),ur=new $({props:{name:"class diffusers.loaders.CogVideoXLoraLoaderMixin",anchor:"diffusers.loaders.CogVideoXLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L3031"}}),gr=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"}],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>) | |
| 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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L3187"}}),Lr=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:" = None"},{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_11335/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.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_11335/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L3137"}}),xr=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_11335/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"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L3039"}}),Ao=new C({props:{warning:!0,$$slots:{default:[$u]},$$scope:{ctx:M}}}),wr=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"}],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"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L3248"}}),vr=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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L3343"}}),So=new C({props:{warning:!0,$$slots:{default:[yu]},$$scope:{ctx:M}}}),br=new J({props:{title:"Mochi1LoraLoaderMixin",local:"diffusers.loaders.Mochi1LoraLoaderMixin",headingTag:"h2"}}),$r=new $({props:{name:"class diffusers.loaders.Mochi1LoraLoaderMixin",anchor:"diffusers.loaders.Mochi1LoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L3361"}}),yr=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"}],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>) | |
| 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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L3518"}}),Mr=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:" = None"},{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_11335/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.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_11335/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L3468"}}),Tr=new $({props:{name:"lora_state_dict",anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.lora_state_dict",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.Mochi1LoraLoaderMixin.lora_state_dict.pretrained_model_name_or_path_or_dict",description:`<strong>pretrained_model_name_or_path_or_dict</strong> (<code>str</code> or <code>os.PathLike</code> or <code>dict</code>) — | |
| 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_11335/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"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L3369"}}),Vo=new C({props:{warning:!0,$$slots:{default:[Mu]},$$scope:{ctx:M}}}),Dr=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"}],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"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L3579"}}),Cr=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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L3676"}}),Io=new C({props:{warning:!0,$$slots:{default:[Tu]},$$scope:{ctx:M}}}),Ar=new J({props:{title:"AuraFlowLoraLoaderMixin",local:"diffusers.loaders.AuraFlowLoraLoaderMixin",headingTag:"h2"}}),kr=new $({props:{name:"class diffusers.loaders.AuraFlowLoraLoaderMixin",anchor:"diffusers.loaders.AuraFlowLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L1596"}}),Sr=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"}],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>) | |
| 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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L1753"}}),Rr=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:" = None"},{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_11335/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.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_11335/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L1703"}}),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_11335/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"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L1604"}}),Uo=new C({props:{warning:!0,$$slots:{default:[Du]},$$scope:{ctx:M}}}),Vr=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"}],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"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L1814"}}),Hr=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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L1911"}}),qo=new C({props:{warning:!0,$$slots:{default:[Cu]},$$scope:{ctx:M}}}),Ir=new J({props:{title:"LTXVideoLoraLoaderMixin",local:"diffusers.loaders.LTXVideoLoraLoaderMixin",headingTag:"h2"}}),Wr=new $({props:{name:"class diffusers.loaders.LTXVideoLoraLoaderMixin",anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L3694"}}),Fr=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"}],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>) | |
| 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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L3851"}}),Ur=new $({props:{name:"load_lora_weights",anchor:"diffusers.loaders.LTXVideoLoraLoaderMixin.load_lora_weights",parameters:[{name:"pretrained_model_name_or_path_or_dict",val:": typing.Union[str, typing.Dict[str, torch.Tensor]]"},{name:"adapter_name",val:" = None"},{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_11335/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.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_11335/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L3801"}}),Er=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_11335/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"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L3702"}}),zo=new C({props:{warning:!0,$$slots:{default:[Au]},$$scope:{ctx:M}}}),qr=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"}],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"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L3912"}}),Nr=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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L4009"}}),jo=new C({props:{warning:!0,$$slots:{default:[ku]},$$scope:{ctx:M}}}),Xr=new J({props:{title:"SanaLoraLoaderMixin",local:"diffusers.loaders.SanaLoraLoaderMixin",headingTag:"h2"}}),zr=new $({props:{name:"class diffusers.loaders.SanaLoraLoaderMixin",anchor:"diffusers.loaders.SanaLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L4027"}}),Br=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"}],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>) | |
| 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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L4184"}}),jr=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:" = None"},{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_11335/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.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_11335/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L4134"}}),Gr=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_11335/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"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L4035"}}),Zo=new C({props:{warning:!0,$$slots:{default:[Su]},$$scope:{ctx:M}}}),Jr=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"}],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"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L4245"}}),Zr=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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L4342"}}),Oo=new C({props:{warning:!0,$$slots:{default:[Ru]},$$scope:{ctx:M}}}),Yr=new J({props:{title:"HunyuanVideoLoraLoaderMixin",local:"diffusers.loaders.HunyuanVideoLoraLoaderMixin",headingTag:"h2"}}),Or=new $({props:{name:"class diffusers.loaders.HunyuanVideoLoraLoaderMixin",anchor:"diffusers.loaders.HunyuanVideoLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L4360"}}),Qr=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"}],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>) | |
| 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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L4520"}}),Kr=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:" = None"},{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_11335/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.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_11335/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L4470"}}),ea=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_11335/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"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L4368"}}),et=new C({props:{warning:!0,$$slots:{default:[Pu]},$$scope:{ctx:M}}}),oa=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"}],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"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L4581"}}),ta=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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L4678"}}),tt=new C({props:{warning:!0,$$slots:{default:[Vu]},$$scope:{ctx:M}}}),ra=new J({props:{title:"Lumina2LoraLoaderMixin",local:"diffusers.loaders.Lumina2LoraLoaderMixin",headingTag:"h2"}}),aa=new $({props:{name:"class diffusers.loaders.Lumina2LoraLoaderMixin",anchor:"diffusers.loaders.Lumina2LoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L4696"}}),na=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"}],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>) | |
| 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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L4857"}}),sa=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:" = None"},{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_11335/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.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_11335/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L4807"}}),ia=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_11335/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"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L4704"}}),nt=new C({props:{warning:!0,$$slots:{default:[Hu]},$$scope:{ctx:M}}}),da=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"}],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"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L4918"}}),la=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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L5015"}}),it=new C({props:{warning:!0,$$slots:{default:[Iu]},$$scope:{ctx:M}}}),ca=new J({props:{title:"WanLoraLoaderMixin",local:"diffusers.loaders.WanLoraLoaderMixin",headingTag:"h2"}}),fa=new $({props:{name:"class diffusers.loaders.WanLoraLoaderMixin",anchor:"diffusers.loaders.WanLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L5033"}}),pa=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"}],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>) | |
| 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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L5223"}}),ma=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:" = None"},{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_11335/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.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_11335/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L5169"}}),ha=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_11335/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"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L5041"}}),ct=new C({props:{warning:!0,$$slots:{default:[Wu]},$$scope:{ctx:M}}}),_a=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"}],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"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L5284"}}),ua=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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L5381"}}),pt=new C({props:{warning:!0,$$slots:{default:[Fu]},$$scope:{ctx:M}}}),ga=new J({props:{title:"CogView4LoraLoaderMixin",local:"diffusers.loaders.CogView4LoraLoaderMixin",headingTag:"h2"}}),La=new $({props:{name:"class diffusers.loaders.CogView4LoraLoaderMixin",anchor:"diffusers.loaders.CogView4LoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L5399"}}),xa=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"}],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>) | |
| 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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L5556"}}),wa=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:" = None"},{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_11335/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.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_11335/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L5506"}}),va=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_11335/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"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L5407"}}),_t=new C({props:{warning:!0,$$slots:{default:[Uu]},$$scope:{ctx:M}}}),ba=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"}],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"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L5617"}}),$a=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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L5714"}}),gt=new C({props:{warning:!0,$$slots:{default:[Eu]},$$scope:{ctx:M}}}),ya=new J({props:{title:"CogView4LoraLoaderMixin",local:"diffusers.loaders.CogView4LoraLoaderMixin",headingTag:"h2"}}),Ma=new $({props:{name:"class diffusers.loaders.CogView4LoraLoaderMixin",anchor:"diffusers.loaders.CogView4LoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L5399"}}),Ta=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"}],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>) | |
| 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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L5556"}}),Da=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:" = None"},{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_11335/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.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_11335/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L5506"}}),Ca=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_11335/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"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L5407"}}),wt=new C({props:{warning:!0,$$slots:{default:[qu]},$$scope:{ctx:M}}}),Aa=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"}],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"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L5617"}}),ka=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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L5714"}}),bt=new C({props:{warning:!0,$$slots:{default:[Nu]},$$scope:{ctx:M}}}),Sa=new J({props:{title:"WanLoraLoaderMixin",local:"diffusers.loaders.WanLoraLoaderMixin",headingTag:"h2"}}),Ra=new $({props:{name:"class diffusers.loaders.WanLoraLoaderMixin",anchor:"diffusers.loaders.WanLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L5033"}}),Pa=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"}],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>) | |
| 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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L5223"}}),Va=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:" = None"},{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_11335/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.kwargs",description:`<strong>kwargs</strong> (<code>dict</code>, <em>optional</em>) — | |
| See <a href="/docs/diffusers/pr_11335/en/api/loaders/lora#diffusers.loaders.StableDiffusionLoraLoaderMixin.lora_state_dict">lora_state_dict()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L5169"}}),Ha=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_11335/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"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L5041"}}),Mt=new C({props:{warning:!0,$$slots:{default:[Xu]},$$scope:{ctx:M}}}),Ia=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"}],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"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L5284"}}),Wa=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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L5381"}}),Dt=new C({props:{warning:!0,$$slots:{default:[zu]},$$scope:{ctx:M}}}),Fa=new J({props:{title:"AmusedLoraLoaderMixin",local:"diffusers.loaders.AmusedLoraLoaderMixin",headingTag:"h2"}}),Ua=new $({props:{name:"class diffusers.loaders.AmusedLoraLoaderMixin",anchor:"diffusers.loaders.AmusedLoraLoaderMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_pipeline.py#L2824"}}),Ea=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:"_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>) | |
| 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_11335/src/diffusers/loaders/lora/lora_pipeline.py#L2829"}}),qa=new J({props:{title:"HiDreamImageLoraLoaderMixin",local:"diffusers.loaders.HiDreamImageLoraLoaderMixin",headingTag:"h2"}}),Xa=new $({props:{name:"class diffusers.loaders.HiDreamImageLoraLoaderMixin",anchor:"diffusers.loaders.HiDreamImageLoraLoaderMixin",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora_pipeline.py#L137"}}),za=new J({props:{title:"LoraBaseMixin",local:"diffusers.loaders.LoraBaseMixin",headingTag:"h2"}}),Ba=new $({props:{name:"class diffusers.loaders.LoraBaseMixin",anchor:"diffusers.loaders.LoraBaseMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_base.py#L464"}}),ja=new $({props:{name:"delete_adapters",anchor:"diffusers.loaders.LoraBaseMixin.delete_adapters",parameters:[{name:"adapter_names",val:": typing.Union[typing.List[str], str]"}],parametersDescription:[{anchor:"diffusers.loaders.LoraBaseMixin.delete_adapters.Deletes",description:`<strong>Deletes</strong> the LoRA layers of <code>adapter_name</code> for the unet and text-encoder(s). — | |
| adapter_names (<code>Union[List[str], str]</code>): | |
| The names of the adapter to delete. Can be a single string or a list of strings`,name:"Deletes"}],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_base.py#L765"}}),Ga=new $({props:{name:"enable_lora_hotswap",anchor:"diffusers.loaders.LoraBaseMixin.enable_lora_hotswap",parameters:[{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.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.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 the case when the model is already compiled, which should generally be avoided. The | |
| options are:<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_11335/src/diffusers/loaders/lora/lora_base.py#L917"}}),Ja=new $({props:{name:"fuse_lora",anchor:"diffusers.loaders.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.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.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.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.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_11335/src/diffusers/loaders/lora/lora_base.py#L531"}}),At=new C({props:{warning:!0,$$slots:{default:[Bu]},$$scope:{ctx:M}}}),kt=new vl({props:{anchor:"diffusers.loaders.LoraBaseMixin.fuse_lora.example",$$slots:{default:[ju]},$$scope:{ctx:M}}}),Za=new $({props:{name:"get_active_adapters",anchor:"diffusers.loaders.LoraBaseMixin.get_active_adapters",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_base.py#L787"}}),St=new vl({props:{anchor:"diffusers.loaders.LoraBaseMixin.get_active_adapters.example",$$slots:{default:[Gu]},$$scope:{ctx:M}}}),Ya=new $({props:{name:"get_list_adapters",anchor:"diffusers.loaders.LoraBaseMixin.get_list_adapters",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_base.py#L820"}}),Oa=new $({props:{name:"set_lora_device",anchor:"diffusers.loaders.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.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.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_11335/src/diffusers/loaders/lora/lora_base.py#L842"}}),Qa=new $({props:{name:"unfuse_lora",anchor:"diffusers.loaders.LoraBaseMixin.unfuse_lora",parameters:[{name:"components",val:": typing.List[str] = []"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.loaders.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.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.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_11335/src/diffusers/loaders/lora/lora_base.py#L612"}}),Vt=new C({props:{warning:!0,$$slots:{default:[Ju]},$$scope:{ctx:M}}}),Ka=new $({props:{name:"unload_lora_weights",anchor:"diffusers.loaders.LoraBaseMixin.unload_lora_weights",parameters:[],source:"https://github.com/huggingface/diffusers/blob/vr_11335/src/diffusers/loaders/lora/lora_base.py#L508"}}),Ht=new vl({props:{anchor:"diffusers.loaders.LoraBaseMixin.unload_lora_weights.example",$$slots:{default:[Zu]},$$scope:{ctx:M}}}),en=new hu({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/loaders/lora.md"}}),{c(){a=n("meta"),w=t(),l=n("p"),c=t(),p(T.$$.fragment),d=t(),y=n("p"),y.innerHTML=Jm,od=t(),Wt=n("ul"),Wt.innerHTML=Zm,td=t(),p(so.$$.fragment),rd=t(),p(Ft.$$.fragment),ad=t(),H=n("div"),p(Ut.$$.fragment),$l=t(),Ln=n("p"),Ln.innerHTML=Ym,yl=t(),io=n("div"),p(Et.$$.fragment),Ml=t(),xn=n("p"),xn.innerHTML=Om,Tl=t(),lo=n("div"),p(qt.$$.fragment),Dl=t(),wn=n("p"),wn.innerHTML=Qm,Cl=t(),K=n("div"),p(Nt.$$.fragment),Al=t(),vn=n("p"),vn.innerHTML=Km,kl=t(),bn=n("p"),bn.innerHTML=eh,Sl=t(),$n=n("p"),$n.innerHTML=oh,Rl=t(),yn=n("p"),yn.innerHTML=th,Pl=t(),Mn=n("p"),Mn.innerHTML=rh,Vl=t(),ge=n("div"),p(Xt.$$.fragment),Hl=t(),Tn=n("p"),Tn.textContent=ah,Il=t(),p(co.$$.fragment),Wl=t(),fo=n("div"),p(zt.$$.fragment),Fl=t(),Dn=n("p"),Dn.textContent=nh,nd=t(),p(Bt.$$.fragment),sd=t(),I=n("div"),p(jt.$$.fragment),Ul=t(),Cn=n("p"),Cn.innerHTML=sh,El=t(),po=n("div"),p(Gt.$$.fragment),ql=t(),An=n("p"),An.innerHTML=ih,Nl=t(),mo=n("div"),p(Jt.$$.fragment),Xl=t(),kn=n("p"),kn.innerHTML=dh,zl=t(),ee=n("div"),p(Zt.$$.fragment),Bl=t(),Sn=n("p"),Sn.innerHTML=lh,jl=t(),Rn=n("p"),Rn.innerHTML=ch,Gl=t(),Pn=n("p"),Pn.innerHTML=fh,Jl=t(),Vn=n("p"),Vn.innerHTML=ph,Zl=t(),Hn=n("p"),Hn.innerHTML=mh,Yl=t(),Le=n("div"),p(Yt.$$.fragment),Ol=t(),In=n("p"),In.textContent=hh,Ql=t(),p(ho.$$.fragment),Kl=t(),_o=n("div"),p(Ot.$$.fragment),ec=t(),Wn=n("p"),Wn.textContent=_h,id=t(),p(Qt.$$.fragment),dd=t(),S=n("div"),p(Kt.$$.fragment),oc=t(),Fn=n("p"),Fn.innerHTML=uh,tc=t(),Un=n("p"),Un.innerHTML=gh,rc=t(),uo=n("div"),p(er.$$.fragment),ac=t(),En=n("p"),En.innerHTML=Lh,nc=t(),go=n("div"),p(or.$$.fragment),sc=t(),qn=n("p"),qn.innerHTML=xh,ic=t(),re=n("div"),p(tr.$$.fragment),dc=t(),Nn=n("p"),Nn.innerHTML=wh,lc=t(),Xn=n("p"),Xn.innerHTML=vh,cc=t(),zn=n("p"),zn.innerHTML=bh,fc=t(),Bn=n("p"),Bn.innerHTML=$h,pc=t(),xe=n("div"),p(rr.$$.fragment),mc=t(),jn=n("p"),jn.textContent=yh,hc=t(),p(Lo.$$.fragment),_c=t(),xo=n("div"),p(ar.$$.fragment),uc=t(),Gn=n("p"),Gn.textContent=Mh,gc=t(),we=n("div"),p(nr.$$.fragment),Lc=t(),Jn=n("p"),Jn.innerHTML=Th,xc=t(),p(wo.$$.fragment),ld=t(),p(sr.$$.fragment),cd=t(),A=n("div"),p(ir.$$.fragment),wc=t(),Zn=n("p"),Zn.innerHTML=Dh,vc=t(),Yn=n("p"),Yn.innerHTML=Ch,bc=t(),vo=n("div"),p(dr.$$.fragment),$c=t(),On=n("p"),On.innerHTML=Ah,yc=t(),bo=n("div"),p(lr.$$.fragment),Mc=t(),Qn=n("p"),Qn.innerHTML=kh,Tc=t(),ae=n("div"),p(cr.$$.fragment),Dc=t(),Kn=n("p"),Kn.innerHTML=Sh,Cc=t(),es=n("p"),es.innerHTML=Rh,Ac=t(),os=n("p"),os.innerHTML=Ph,kc=t(),ts=n("p"),ts.innerHTML=Vh,Sc=t(),ve=n("div"),p(fr.$$.fragment),Rc=t(),rs=n("p"),rs.textContent=Hh,Pc=t(),p($o.$$.fragment),Vc=t(),yo=n("div"),p(pr.$$.fragment),Hc=t(),as=n("p"),as.textContent=Ih,Ic=t(),be=n("div"),p(mr.$$.fragment),Wc=t(),ns=n("p"),ns.innerHTML=Wh,Fc=t(),p(Mo.$$.fragment),Uc=t(),$e=n("div"),p(hr.$$.fragment),Ec=t(),ss=n("p"),ss.textContent=Fh,qc=t(),p(To.$$.fragment),fd=t(),p(_r.$$.fragment),pd=t(),W=n("div"),p(ur.$$.fragment),Nc=t(),is=n("p"),is.innerHTML=Uh,Xc=t(),Do=n("div"),p(gr.$$.fragment),zc=t(),ds=n("p"),ds.innerHTML=Eh,Bc=t(),Co=n("div"),p(Lr.$$.fragment),jc=t(),ls=n("p"),ls.innerHTML=qh,Gc=t(),ye=n("div"),p(xr.$$.fragment),Jc=t(),cs=n("p"),cs.textContent=Nh,Zc=t(),p(Ao.$$.fragment),Yc=t(),ko=n("div"),p(wr.$$.fragment),Oc=t(),fs=n("p"),fs.textContent=Xh,Qc=t(),Me=n("div"),p(vr.$$.fragment),Kc=t(),ps=n("p"),ps.innerHTML=zh,ef=t(),p(So.$$.fragment),md=t(),p(br.$$.fragment),hd=t(),F=n("div"),p($r.$$.fragment),of=t(),ms=n("p"),ms.innerHTML=Bh,tf=t(),Ro=n("div"),p(yr.$$.fragment),rf=t(),hs=n("p"),hs.innerHTML=jh,af=t(),Po=n("div"),p(Mr.$$.fragment),nf=t(),_s=n("p"),_s.innerHTML=Gh,sf=t(),Te=n("div"),p(Tr.$$.fragment),df=t(),us=n("p"),us.textContent=Jh,lf=t(),p(Vo.$$.fragment),cf=t(),Ho=n("div"),p(Dr.$$.fragment),ff=t(),gs=n("p"),gs.textContent=Zh,pf=t(),De=n("div"),p(Cr.$$.fragment),mf=t(),Ls=n("p"),Ls.innerHTML=Yh,hf=t(),p(Io.$$.fragment),_d=t(),p(Ar.$$.fragment),ud=t(),U=n("div"),p(kr.$$.fragment),_f=t(),xs=n("p"),xs.innerHTML=Oh,uf=t(),Wo=n("div"),p(Sr.$$.fragment),gf=t(),ws=n("p"),ws.innerHTML=Qh,Lf=t(),Fo=n("div"),p(Rr.$$.fragment),xf=t(),vs=n("p"),vs.innerHTML=Kh,wf=t(),Ce=n("div"),p(Pr.$$.fragment),vf=t(),bs=n("p"),bs.textContent=e_,bf=t(),p(Uo.$$.fragment),$f=t(),Eo=n("div"),p(Vr.$$.fragment),yf=t(),$s=n("p"),$s.textContent=o_,Mf=t(),Ae=n("div"),p(Hr.$$.fragment),Tf=t(),ys=n("p"),ys.innerHTML=t_,Df=t(),p(qo.$$.fragment),gd=t(),p(Ir.$$.fragment),Ld=t(),E=n("div"),p(Wr.$$.fragment),Cf=t(),Ms=n("p"),Ms.innerHTML=r_,Af=t(),No=n("div"),p(Fr.$$.fragment),kf=t(),Ts=n("p"),Ts.innerHTML=a_,Sf=t(),Xo=n("div"),p(Ur.$$.fragment),Rf=t(),Ds=n("p"),Ds.innerHTML=n_,Pf=t(),ke=n("div"),p(Er.$$.fragment),Vf=t(),Cs=n("p"),Cs.textContent=s_,Hf=t(),p(zo.$$.fragment),If=t(),Bo=n("div"),p(qr.$$.fragment),Wf=t(),As=n("p"),As.textContent=i_,Ff=t(),Se=n("div"),p(Nr.$$.fragment),Uf=t(),ks=n("p"),ks.innerHTML=d_,Ef=t(),p(jo.$$.fragment),xd=t(),p(Xr.$$.fragment),wd=t(),q=n("div"),p(zr.$$.fragment),qf=t(),Ss=n("p"),Ss.innerHTML=l_,Nf=t(),Go=n("div"),p(Br.$$.fragment),Xf=t(),Rs=n("p"),Rs.innerHTML=c_,zf=t(),Jo=n("div"),p(jr.$$.fragment),Bf=t(),Ps=n("p"),Ps.innerHTML=f_,jf=t(),Re=n("div"),p(Gr.$$.fragment),Gf=t(),Vs=n("p"),Vs.textContent=p_,Jf=t(),p(Zo.$$.fragment),Zf=t(),Yo=n("div"),p(Jr.$$.fragment),Yf=t(),Hs=n("p"),Hs.textContent=m_,Of=t(),Pe=n("div"),p(Zr.$$.fragment),Qf=t(),Is=n("p"),Is.innerHTML=h_,Kf=t(),p(Oo.$$.fragment),vd=t(),p(Yr.$$.fragment),bd=t(),N=n("div"),p(Or.$$.fragment),ep=t(),Ws=n("p"),Ws.innerHTML=__,op=t(),Qo=n("div"),p(Qr.$$.fragment),tp=t(),Fs=n("p"),Fs.innerHTML=u_,rp=t(),Ko=n("div"),p(Kr.$$.fragment),ap=t(),Us=n("p"),Us.innerHTML=g_,np=t(),Ve=n("div"),p(ea.$$.fragment),sp=t(),Es=n("p"),Es.textContent=L_,ip=t(),p(et.$$.fragment),dp=t(),ot=n("div"),p(oa.$$.fragment),lp=t(),qs=n("p"),qs.textContent=x_,cp=t(),He=n("div"),p(ta.$$.fragment),fp=t(),Ns=n("p"),Ns.innerHTML=w_,pp=t(),p(tt.$$.fragment),$d=t(),p(ra.$$.fragment),yd=t(),X=n("div"),p(aa.$$.fragment),mp=t(),Xs=n("p"),Xs.innerHTML=v_,hp=t(),rt=n("div"),p(na.$$.fragment),_p=t(),zs=n("p"),zs.innerHTML=b_,up=t(),at=n("div"),p(sa.$$.fragment),gp=t(),Bs=n("p"),Bs.innerHTML=$_,Lp=t(),Ie=n("div"),p(ia.$$.fragment),xp=t(),js=n("p"),js.textContent=y_,wp=t(),p(nt.$$.fragment),vp=t(),st=n("div"),p(da.$$.fragment),bp=t(),Gs=n("p"),Gs.textContent=M_,$p=t(),We=n("div"),p(la.$$.fragment),yp=t(),Js=n("p"),Js.innerHTML=T_,Mp=t(),p(it.$$.fragment),Md=t(),p(ca.$$.fragment),Td=t(),z=n("div"),p(fa.$$.fragment),Tp=t(),Zs=n("p"),Zs.innerHTML=D_,Dp=t(),dt=n("div"),p(pa.$$.fragment),Cp=t(),Ys=n("p"),Ys.innerHTML=C_,Ap=t(),lt=n("div"),p(ma.$$.fragment),kp=t(),Os=n("p"),Os.innerHTML=A_,Sp=t(),Fe=n("div"),p(ha.$$.fragment),Rp=t(),Qs=n("p"),Qs.textContent=k_,Pp=t(),p(ct.$$.fragment),Vp=t(),ft=n("div"),p(_a.$$.fragment),Hp=t(),Ks=n("p"),Ks.textContent=S_,Ip=t(),Ue=n("div"),p(ua.$$.fragment),Wp=t(),ei=n("p"),ei.innerHTML=R_,Fp=t(),p(pt.$$.fragment),Dd=t(),p(ga.$$.fragment),Cd=t(),B=n("div"),p(La.$$.fragment),Up=t(),oi=n("p"),oi.innerHTML=P_,Ep=t(),mt=n("div"),p(xa.$$.fragment),qp=t(),ti=n("p"),ti.innerHTML=V_,Np=t(),ht=n("div"),p(wa.$$.fragment),Xp=t(),ri=n("p"),ri.innerHTML=H_,zp=t(),Ee=n("div"),p(va.$$.fragment),Bp=t(),ai=n("p"),ai.textContent=I_,jp=t(),p(_t.$$.fragment),Gp=t(),ut=n("div"),p(ba.$$.fragment),Jp=t(),ni=n("p"),ni.textContent=W_,Zp=t(),qe=n("div"),p($a.$$.fragment),Yp=t(),si=n("p"),si.innerHTML=F_,Op=t(),p(gt.$$.fragment),Ad=t(),p(ya.$$.fragment),kd=t(),j=n("div"),p(Ma.$$.fragment),Qp=t(),ii=n("p"),ii.innerHTML=U_,Kp=t(),Lt=n("div"),p(Ta.$$.fragment),em=t(),di=n("p"),di.innerHTML=E_,om=t(),xt=n("div"),p(Da.$$.fragment),tm=t(),li=n("p"),li.innerHTML=q_,rm=t(),Ne=n("div"),p(Ca.$$.fragment),am=t(),ci=n("p"),ci.textContent=N_,nm=t(),p(wt.$$.fragment),sm=t(),vt=n("div"),p(Aa.$$.fragment),im=t(),fi=n("p"),fi.textContent=X_,dm=t(),Xe=n("div"),p(ka.$$.fragment),lm=t(),pi=n("p"),pi.innerHTML=z_,cm=t(),p(bt.$$.fragment),Sd=t(),p(Sa.$$.fragment),Rd=t(),G=n("div"),p(Ra.$$.fragment),fm=t(),mi=n("p"),mi.innerHTML=B_,pm=t(),$t=n("div"),p(Pa.$$.fragment),mm=t(),hi=n("p"),hi.innerHTML=j_,hm=t(),yt=n("div"),p(Va.$$.fragment),_m=t(),_i=n("p"),_i.innerHTML=G_,um=t(),ze=n("div"),p(Ha.$$.fragment),gm=t(),ui=n("p"),ui.textContent=J_,Lm=t(),p(Mt.$$.fragment),xm=t(),Tt=n("div"),p(Ia.$$.fragment),wm=t(),gi=n("p"),gi.textContent=Z_,vm=t(),Be=n("div"),p(Wa.$$.fragment),bm=t(),Li=n("p"),Li.innerHTML=Y_,$m=t(),p(Dt.$$.fragment),Pd=t(),p(Fa.$$.fragment),Vd=t(),Ye=n("div"),p(Ua.$$.fragment),ym=t(),Ct=n("div"),p(Ea.$$.fragment),Mm=t(),xi=n("p"),xi.innerHTML=O_,Hd=t(),p(qa.$$.fragment),Id=t(),Na=n("div"),p(Xa.$$.fragment),Wd=t(),p(za.$$.fragment),Fd=t(),k=n("div"),p(Ba.$$.fragment),Tm=t(),wi=n("p"),wi.textContent=Q_,Dm=t(),vi=n("div"),p(ja.$$.fragment),Cm=t(),je=n("div"),p(Ga.$$.fragment),Am=t(),bi=n("p"),bi.textContent=K_,km=t(),$i=n("p"),$i.textContent=eu,Sm=t(),ue=n("div"),p(Ja.$$.fragment),Rm=t(),yi=n("p"),yi.textContent=ou,Pm=t(),p(At.$$.fragment),Vm=t(),p(kt.$$.fragment),Hm=t(),Ge=n("div"),p(Za.$$.fragment),Im=t(),Mi=n("p"),Mi.textContent=tu,Wm=t(),p(St.$$.fragment),Fm=t(),Rt=n("div"),p(Ya.$$.fragment),Um=t(),Ti=n("p"),Ti.textContent=ru,Em=t(),Pt=n("div"),p(Oa.$$.fragment),qm=t(),Di=n("p"),Di.innerHTML=au,Nm=t(),Je=n("div"),p(Qa.$$.fragment),Xm=t(),Ci=n("p"),Ci.innerHTML=nu,zm=t(),p(Vt.$$.fragment),Bm=t(),Ze=n("div"),p(Ka.$$.fragment),jm=t(),Ai=n("p"),Ai.textContent=su,Gm=t(),p(Ht.$$.fragment),Ud=t(),p(en.$$.fragment),Ed=t(),ed=n("p"),this.h()},l(e){const L=mu("svelte-u9bgzb",document.head);a=s(L,"META",{name:!0,content:!0}),L.forEach(i),w=r(e),l=s(e,"P",{}),v(l).forEach(i),c=r(e),m(T.$$.fragment,e),d=r(e),y=s(e,"P",{"data-svelte-h":!0}),f(y)!=="svelte-zw3qap"&&(y.innerHTML=Jm),od=r(e),Wt=s(e,"UL",{"data-svelte-h":!0}),f(Wt)!=="svelte-j7hsbc"&&(Wt.innerHTML=Zm),td=r(e),m(so.$$.fragment,e),rd=r(e),m(Ft.$$.fragment,e),ad=r(e),H=s(e,"DIV",{class:!0});var Z=v(H);m(Ut.$$.fragment,Z),$l=r(Z),Ln=s(Z,"P",{"data-svelte-h":!0}),f(Ln)!=="svelte-1btiu64"&&(Ln.innerHTML=Ym),yl=r(Z),io=s(Z,"DIV",{class:!0});var on=v(io);m(Et.$$.fragment,on),Ml=r(on),xn=s(on,"P",{"data-svelte-h":!0}),f(xn)!=="svelte-1062ci4"&&(xn.innerHTML=Om),on.forEach(i),Tl=r(Z),lo=s(Z,"DIV",{class:!0});var tn=v(lo);m(qt.$$.fragment,tn),Dl=r(tn),wn=s(tn,"P",{"data-svelte-h":!0}),f(wn)!=="svelte-u3q4so"&&(wn.innerHTML=Qm),tn.forEach(i),Cl=r(Z),K=s(Z,"DIV",{class:!0});var oe=v(K);m(Nt.$$.fragment,oe),Al=r(oe),vn=s(oe,"P",{"data-svelte-h":!0}),f(vn)!=="svelte-vs7s0z"&&(vn.innerHTML=Km),kl=r(oe),bn=s(oe,"P",{"data-svelte-h":!0}),f(bn)!=="svelte-15b960v"&&(bn.innerHTML=eh),Sl=r(oe),$n=s(oe,"P",{"data-svelte-h":!0}),f($n)!=="svelte-1k09o7t"&&($n.innerHTML=oh),Rl=r(oe),yn=s(oe,"P",{"data-svelte-h":!0}),f(yn)!=="svelte-1791xru"&&(yn.innerHTML=th),Pl=r(oe),Mn=s(oe,"P",{"data-svelte-h":!0}),f(Mn)!=="svelte-1u1p9ls"&&(Mn.innerHTML=rh),oe.forEach(i),Vl=r(Z),ge=s(Z,"DIV",{class:!0});var Oe=v(ge);m(Xt.$$.fragment,Oe),Hl=r(Oe),Tn=s(Oe,"P",{"data-svelte-h":!0}),f(Tn)!=="svelte-flusvq"&&(Tn.textContent=ah),Il=r(Oe),m(co.$$.fragment,Oe),Oe.forEach(i),Wl=r(Z),fo=s(Z,"DIV",{class:!0});var rn=v(fo);m(zt.$$.fragment,rn),Fl=r(rn),Dn=s(rn,"P",{"data-svelte-h":!0}),f(Dn)!=="svelte-1ufq5ot"&&(Dn.textContent=nh),rn.forEach(i),Z.forEach(i),nd=r(e),m(Bt.$$.fragment,e),sd=r(e),I=s(e,"DIV",{class:!0});var Y=v(I);m(jt.$$.fragment,Y),Ul=r(Y),Cn=s(Y,"P",{"data-svelte-h":!0}),f(Cn)!=="svelte-ruj0o9"&&(Cn.innerHTML=sh),El=r(Y),po=s(Y,"DIV",{class:!0});var an=v(po);m(Gt.$$.fragment,an),ql=r(an),An=s(an,"P",{"data-svelte-h":!0}),f(An)!=="svelte-1062ci4"&&(An.innerHTML=ih),an.forEach(i),Nl=r(Y),mo=s(Y,"DIV",{class:!0});var nn=v(mo);m(Jt.$$.fragment,nn),Xl=r(nn),kn=s(nn,"P",{"data-svelte-h":!0}),f(kn)!=="svelte-u3q4so"&&(kn.innerHTML=dh),nn.forEach(i),zl=r(Y),ee=s(Y,"DIV",{class:!0});var te=v(ee);m(Zt.$$.fragment,te),Bl=r(te),Sn=s(te,"P",{"data-svelte-h":!0}),f(Sn)!=="svelte-vs7s0z"&&(Sn.innerHTML=lh),jl=r(te),Rn=s(te,"P",{"data-svelte-h":!0}),f(Rn)!=="svelte-15b960v"&&(Rn.innerHTML=ch),Gl=r(te),Pn=s(te,"P",{"data-svelte-h":!0}),f(Pn)!=="svelte-1k09o7t"&&(Pn.innerHTML=fh),Jl=r(te),Vn=s(te,"P",{"data-svelte-h":!0}),f(Vn)!=="svelte-1791xru"&&(Vn.innerHTML=ph),Zl=r(te),Hn=s(te,"P",{"data-svelte-h":!0}),f(Hn)!=="svelte-1u1p9ls"&&(Hn.innerHTML=mh),te.forEach(i),Yl=r(Y),Le=s(Y,"DIV",{class:!0});var Qe=v(Le);m(Yt.$$.fragment,Qe),Ol=r(Qe),In=s(Qe,"P",{"data-svelte-h":!0}),f(In)!=="svelte-flusvq"&&(In.textContent=hh),Ql=r(Qe),m(ho.$$.fragment,Qe),Qe.forEach(i),Kl=r(Y),_o=s(Y,"DIV",{class:!0});var sn=v(_o);m(Ot.$$.fragment,sn),ec=r(sn),Wn=s(sn,"P",{"data-svelte-h":!0}),f(Wn)!=="svelte-1ufq5ot"&&(Wn.textContent=_h),sn.forEach(i),Y.forEach(i),id=r(e),m(Qt.$$.fragment,e),dd=r(e),S=s(e,"DIV",{class:!0});var P=v(S);m(Kt.$$.fragment,P),oc=r(P),Fn=s(P,"P",{"data-svelte-h":!0}),f(Fn)!=="svelte-1jjo27s"&&(Fn.innerHTML=uh),tc=r(P),Un=s(P,"P",{"data-svelte-h":!0}),f(Un)!=="svelte-10llbq"&&(Un.innerHTML=gh),rc=r(P),uo=s(P,"DIV",{class:!0});var dn=v(uo);m(er.$$.fragment,dn),ac=r(dn),En=s(dn,"P",{"data-svelte-h":!0}),f(En)!=="svelte-1062ci4"&&(En.innerHTML=Lh),dn.forEach(i),nc=r(P),go=s(P,"DIV",{class:!0});var ln=v(go);m(or.$$.fragment,ln),sc=r(ln),qn=s(ln,"P",{"data-svelte-h":!0}),f(qn)!=="svelte-1lgbsz7"&&(qn.innerHTML=xh),ln.forEach(i),ic=r(P),re=s(P,"DIV",{class:!0});var he=v(re);m(tr.$$.fragment,he),dc=r(he),Nn=s(he,"P",{"data-svelte-h":!0}),f(Nn)!=="svelte-vs7s0z"&&(Nn.innerHTML=wh),lc=r(he),Xn=s(he,"P",{"data-svelte-h":!0}),f(Xn)!=="svelte-15b960v"&&(Xn.innerHTML=vh),cc=r(he),zn=s(he,"P",{"data-svelte-h":!0}),f(zn)!=="svelte-1k09o7t"&&(zn.innerHTML=bh),fc=r(he),Bn=s(he,"P",{"data-svelte-h":!0}),f(Bn)!=="svelte-1ukghd4"&&(Bn.innerHTML=$h),he.forEach(i),pc=r(P),xe=s(P,"DIV",{class:!0});var Ke=v(xe);m(rr.$$.fragment,Ke),mc=r(Ke),jn=s(Ke,"P",{"data-svelte-h":!0}),f(jn)!=="svelte-flusvq"&&(jn.textContent=yh),hc=r(Ke),m(Lo.$$.fragment,Ke),Ke.forEach(i),_c=r(P),xo=s(P,"DIV",{class:!0});var cn=v(xo);m(ar.$$.fragment,cn),uc=r(cn),Gn=s(cn,"P",{"data-svelte-h":!0}),f(Gn)!=="svelte-1ufq5ot"&&(Gn.textContent=Mh),cn.forEach(i),gc=r(P),we=s(P,"DIV",{class:!0});var eo=v(we);m(nr.$$.fragment,eo),Lc=r(eo),Jn=s(eo,"P",{"data-svelte-h":!0}),f(Jn)!=="svelte-ioswce"&&(Jn.innerHTML=Th),xc=r(eo),m(wo.$$.fragment,eo),eo.forEach(i),P.forEach(i),ld=r(e),m(sr.$$.fragment,e),cd=r(e),A=s(e,"DIV",{class:!0});var R=v(A);m(ir.$$.fragment,R),wc=r(R),Zn=s(R,"P",{"data-svelte-h":!0}),f(Zn)!=="svelte-ylropp"&&(Zn.innerHTML=Dh),vc=r(R),Yn=s(R,"P",{"data-svelte-h":!0}),f(Yn)!=="svelte-10llbq"&&(Yn.innerHTML=Ch),bc=r(R),vo=s(R,"DIV",{class:!0});var fn=v(vo);m(dr.$$.fragment,fn),$c=r(fn),On=s(fn,"P",{"data-svelte-h":!0}),f(On)!=="svelte-1062ci4"&&(On.innerHTML=Ah),fn.forEach(i),yc=r(R),bo=s(R,"DIV",{class:!0});var pn=v(bo);m(lr.$$.fragment,pn),Mc=r(pn),Qn=s(pn,"P",{"data-svelte-h":!0}),f(Qn)!=="svelte-1lgbsz7"&&(Qn.innerHTML=kh),pn.forEach(i),Tc=r(R),ae=s(R,"DIV",{class:!0});var _e=v(ae);m(cr.$$.fragment,_e),Dc=r(_e),Kn=s(_e,"P",{"data-svelte-h":!0}),f(Kn)!=="svelte-178gcly"&&(Kn.innerHTML=Sh),Cc=r(_e),es=s(_e,"P",{"data-svelte-h":!0}),f(es)!=="svelte-15b960v"&&(es.innerHTML=Rh),Ac=r(_e),os=s(_e,"P",{"data-svelte-h":!0}),f(os)!=="svelte-1k09o7t"&&(os.innerHTML=Ph),kc=r(_e),ts=s(_e,"P",{"data-svelte-h":!0}),f(ts)!=="svelte-1ukghd4"&&(ts.innerHTML=Vh),_e.forEach(i),Sc=r(R),ve=s(R,"DIV",{class:!0});var oo=v(ve);m(fr.$$.fragment,oo),Rc=r(oo),rs=s(oo,"P",{"data-svelte-h":!0}),f(rs)!=="svelte-flusvq"&&(rs.textContent=Hh),Pc=r(oo),m($o.$$.fragment,oo),oo.forEach(i),Vc=r(R),yo=s(R,"DIV",{class:!0});var mn=v(yo);m(pr.$$.fragment,mn),Hc=r(mn),as=s(mn,"P",{"data-svelte-h":!0}),f(as)!=="svelte-1ufq5ot"&&(as.textContent=Ih),mn.forEach(i),Ic=r(R),be=s(R,"DIV",{class:!0});var to=v(be);m(mr.$$.fragment,to),Wc=r(to),ns=s(to,"P",{"data-svelte-h":!0}),f(ns)!=="svelte-ioswce"&&(ns.innerHTML=Wh),Fc=r(to),m(Mo.$$.fragment,to),to.forEach(i),Uc=r(R),$e=s(R,"DIV",{class:!0});var ro=v($e);m(hr.$$.fragment,ro),Ec=r(ro),ss=s(ro,"P",{"data-svelte-h":!0}),f(ss)!=="svelte-119cgd9"&&(ss.textContent=Fh),qc=r(ro),m(To.$$.fragment,ro),ro.forEach(i),R.forEach(i),fd=r(e),m(_r.$$.fragment,e),pd=r(e),W=s(e,"DIV",{class:!0});var O=v(W);m(ur.$$.fragment,O),Nc=r(O),is=s(O,"P",{"data-svelte-h":!0}),f(is)!=="svelte-1b3j6g9"&&(is.innerHTML=Uh),Xc=r(O),Do=s(O,"DIV",{class:!0});var hn=v(Do);m(gr.$$.fragment,hn),zc=r(hn),ds=s(hn,"P",{"data-svelte-h":!0}),f(ds)!=="svelte-1lgbsz7"&&(ds.innerHTML=Eh),hn.forEach(i),Bc=r(O),Co=s(O,"DIV",{class:!0});var _n=v(Co);m(Lr.$$.fragment,_n),jc=r(_n),ls=s(_n,"P",{"data-svelte-h":!0}),f(ls)!=="svelte-1ug3yl0"&&(ls.innerHTML=qh),_n.forEach(i),Gc=r(O),ye=s(O,"DIV",{class:!0});var ao=v(ye);m(xr.$$.fragment,ao),Jc=r(ao),cs=s(ao,"P",{"data-svelte-h":!0}),f(cs)!=="svelte-flusvq"&&(cs.textContent=Nh),Zc=r(ao),m(Ao.$$.fragment,ao),ao.forEach(i),Yc=r(O),ko=s(O,"DIV",{class:!0});var un=v(ko);m(wr.$$.fragment,un),Oc=r(un),fs=s(un,"P",{"data-svelte-h":!0}),f(fs)!=="svelte-1ufq5ot"&&(fs.textContent=Xh),un.forEach(i),Qc=r(O),Me=s(O,"DIV",{class:!0});var no=v(Me);m(vr.$$.fragment,no),Kc=r(no),ps=s(no,"P",{"data-svelte-h":!0}),f(ps)!=="svelte-ioswce"&&(ps.innerHTML=zh),ef=r(no),m(So.$$.fragment,no),no.forEach(i),O.forEach(i),md=r(e),m(br.$$.fragment,e),hd=r(e),F=s(e,"DIV",{class:!0});var Q=v(F);m($r.$$.fragment,Q),of=r(Q),ms=s(Q,"P",{"data-svelte-h":!0}),f(ms)!=="svelte-1o1jg8l"&&(ms.innerHTML=Bh),tf=r(Q),Ro=s(Q,"DIV",{class:!0});var gn=v(Ro);m(yr.$$.fragment,gn),rf=r(gn),hs=s(gn,"P",{"data-svelte-h":!0}),f(hs)!=="svelte-1lgbsz7"&&(hs.innerHTML=jh),gn.forEach(i),af=r(Q),Po=s(Q,"DIV",{class:!0});var Nd=v(Po);m(Mr.$$.fragment,Nd),nf=r(Nd),_s=s(Nd,"P",{"data-svelte-h":!0}),f(_s)!=="svelte-1ug3yl0"&&(_s.innerHTML=Gh),Nd.forEach(i),sf=r(Q),Te=s(Q,"DIV",{class:!0});var ki=v(Te);m(Tr.$$.fragment,ki),df=r(ki),us=s(ki,"P",{"data-svelte-h":!0}),f(us)!=="svelte-flusvq"&&(us.textContent=Jh),lf=r(ki),m(Vo.$$.fragment,ki),ki.forEach(i),cf=r(Q),Ho=s(Q,"DIV",{class:!0});var Xd=v(Ho);m(Dr.$$.fragment,Xd),ff=r(Xd),gs=s(Xd,"P",{"data-svelte-h":!0}),f(gs)!=="svelte-1ufq5ot"&&(gs.textContent=Zh),Xd.forEach(i),pf=r(Q),De=s(Q,"DIV",{class:!0});var Si=v(De);m(Cr.$$.fragment,Si),mf=r(Si),Ls=s(Si,"P",{"data-svelte-h":!0}),f(Ls)!=="svelte-ioswce"&&(Ls.innerHTML=Yh),hf=r(Si),m(Io.$$.fragment,Si),Si.forEach(i),Q.forEach(i),_d=r(e),m(Ar.$$.fragment,e),ud=r(e),U=s(e,"DIV",{class:!0});var ne=v(U);m(kr.$$.fragment,ne),_f=r(ne),xs=s(ne,"P",{"data-svelte-h":!0}),f(xs)!=="svelte-1l8ah08"&&(xs.innerHTML=Oh),uf=r(ne),Wo=s(ne,"DIV",{class:!0});var zd=v(Wo);m(Sr.$$.fragment,zd),gf=r(zd),ws=s(zd,"P",{"data-svelte-h":!0}),f(ws)!=="svelte-1lgbsz7"&&(ws.innerHTML=Qh),zd.forEach(i),Lf=r(ne),Fo=s(ne,"DIV",{class:!0});var Bd=v(Fo);m(Rr.$$.fragment,Bd),xf=r(Bd),vs=s(Bd,"P",{"data-svelte-h":!0}),f(vs)!=="svelte-1ug3yl0"&&(vs.innerHTML=Kh),Bd.forEach(i),wf=r(ne),Ce=s(ne,"DIV",{class:!0});var Ri=v(Ce);m(Pr.$$.fragment,Ri),vf=r(Ri),bs=s(Ri,"P",{"data-svelte-h":!0}),f(bs)!=="svelte-flusvq"&&(bs.textContent=e_),bf=r(Ri),m(Uo.$$.fragment,Ri),Ri.forEach(i),$f=r(ne),Eo=s(ne,"DIV",{class:!0});var jd=v(Eo);m(Vr.$$.fragment,jd),yf=r(jd),$s=s(jd,"P",{"data-svelte-h":!0}),f($s)!=="svelte-1ufq5ot"&&($s.textContent=o_),jd.forEach(i),Mf=r(ne),Ae=s(ne,"DIV",{class:!0});var Pi=v(Ae);m(Hr.$$.fragment,Pi),Tf=r(Pi),ys=s(Pi,"P",{"data-svelte-h":!0}),f(ys)!=="svelte-ioswce"&&(ys.innerHTML=t_),Df=r(Pi),m(qo.$$.fragment,Pi),Pi.forEach(i),ne.forEach(i),gd=r(e),m(Ir.$$.fragment,e),Ld=r(e),E=s(e,"DIV",{class:!0});var se=v(E);m(Wr.$$.fragment,se),Cf=r(se),Ms=s(se,"P",{"data-svelte-h":!0}),f(Ms)!=="svelte-1l515ep"&&(Ms.innerHTML=r_),Af=r(se),No=s(se,"DIV",{class:!0});var Gd=v(No);m(Fr.$$.fragment,Gd),kf=r(Gd),Ts=s(Gd,"P",{"data-svelte-h":!0}),f(Ts)!=="svelte-1lgbsz7"&&(Ts.innerHTML=a_),Gd.forEach(i),Sf=r(se),Xo=s(se,"DIV",{class:!0});var Jd=v(Xo);m(Ur.$$.fragment,Jd),Rf=r(Jd),Ds=s(Jd,"P",{"data-svelte-h":!0}),f(Ds)!=="svelte-1ug3yl0"&&(Ds.innerHTML=n_),Jd.forEach(i),Pf=r(se),ke=s(se,"DIV",{class:!0});var Vi=v(ke);m(Er.$$.fragment,Vi),Vf=r(Vi),Cs=s(Vi,"P",{"data-svelte-h":!0}),f(Cs)!=="svelte-flusvq"&&(Cs.textContent=s_),Hf=r(Vi),m(zo.$$.fragment,Vi),Vi.forEach(i),If=r(se),Bo=s(se,"DIV",{class:!0});var Zd=v(Bo);m(qr.$$.fragment,Zd),Wf=r(Zd),As=s(Zd,"P",{"data-svelte-h":!0}),f(As)!=="svelte-1ufq5ot"&&(As.textContent=i_),Zd.forEach(i),Ff=r(se),Se=s(se,"DIV",{class:!0});var Hi=v(Se);m(Nr.$$.fragment,Hi),Uf=r(Hi),ks=s(Hi,"P",{"data-svelte-h":!0}),f(ks)!=="svelte-ioswce"&&(ks.innerHTML=d_),Ef=r(Hi),m(jo.$$.fragment,Hi),Hi.forEach(i),se.forEach(i),xd=r(e),m(Xr.$$.fragment,e),wd=r(e),q=s(e,"DIV",{class:!0});var ie=v(q);m(zr.$$.fragment,ie),qf=r(ie),Ss=s(ie,"P",{"data-svelte-h":!0}),f(Ss)!=="svelte-tre9co"&&(Ss.innerHTML=l_),Nf=r(ie),Go=s(ie,"DIV",{class:!0});var Yd=v(Go);m(Br.$$.fragment,Yd),Xf=r(Yd),Rs=s(Yd,"P",{"data-svelte-h":!0}),f(Rs)!=="svelte-1lgbsz7"&&(Rs.innerHTML=c_),Yd.forEach(i),zf=r(ie),Jo=s(ie,"DIV",{class:!0});var Od=v(Jo);m(jr.$$.fragment,Od),Bf=r(Od),Ps=s(Od,"P",{"data-svelte-h":!0}),f(Ps)!=="svelte-1ug3yl0"&&(Ps.innerHTML=f_),Od.forEach(i),jf=r(ie),Re=s(ie,"DIV",{class:!0});var Ii=v(Re);m(Gr.$$.fragment,Ii),Gf=r(Ii),Vs=s(Ii,"P",{"data-svelte-h":!0}),f(Vs)!=="svelte-flusvq"&&(Vs.textContent=p_),Jf=r(Ii),m(Zo.$$.fragment,Ii),Ii.forEach(i),Zf=r(ie),Yo=s(ie,"DIV",{class:!0});var Qd=v(Yo);m(Jr.$$.fragment,Qd),Yf=r(Qd),Hs=s(Qd,"P",{"data-svelte-h":!0}),f(Hs)!=="svelte-1ufq5ot"&&(Hs.textContent=m_),Qd.forEach(i),Of=r(ie),Pe=s(ie,"DIV",{class:!0});var Wi=v(Pe);m(Zr.$$.fragment,Wi),Qf=r(Wi),Is=s(Wi,"P",{"data-svelte-h":!0}),f(Is)!=="svelte-ioswce"&&(Is.innerHTML=h_),Kf=r(Wi),m(Oo.$$.fragment,Wi),Wi.forEach(i),ie.forEach(i),vd=r(e),m(Yr.$$.fragment,e),bd=r(e),N=s(e,"DIV",{class:!0});var de=v(N);m(Or.$$.fragment,de),ep=r(de),Ws=s(de,"P",{"data-svelte-h":!0}),f(Ws)!=="svelte-xw6y5o"&&(Ws.innerHTML=__),op=r(de),Qo=s(de,"DIV",{class:!0});var Kd=v(Qo);m(Qr.$$.fragment,Kd),tp=r(Kd),Fs=s(Kd,"P",{"data-svelte-h":!0}),f(Fs)!=="svelte-1lgbsz7"&&(Fs.innerHTML=u_),Kd.forEach(i),rp=r(de),Ko=s(de,"DIV",{class:!0});var el=v(Ko);m(Kr.$$.fragment,el),ap=r(el),Us=s(el,"P",{"data-svelte-h":!0}),f(Us)!=="svelte-1ug3yl0"&&(Us.innerHTML=g_),el.forEach(i),np=r(de),Ve=s(de,"DIV",{class:!0});var Fi=v(Ve);m(ea.$$.fragment,Fi),sp=r(Fi),Es=s(Fi,"P",{"data-svelte-h":!0}),f(Es)!=="svelte-flusvq"&&(Es.textContent=L_),ip=r(Fi),m(et.$$.fragment,Fi),Fi.forEach(i),dp=r(de),ot=s(de,"DIV",{class:!0});var ol=v(ot);m(oa.$$.fragment,ol),lp=r(ol),qs=s(ol,"P",{"data-svelte-h":!0}),f(qs)!=="svelte-1ufq5ot"&&(qs.textContent=x_),ol.forEach(i),cp=r(de),He=s(de,"DIV",{class:!0});var Ui=v(He);m(ta.$$.fragment,Ui),fp=r(Ui),Ns=s(Ui,"P",{"data-svelte-h":!0}),f(Ns)!=="svelte-ioswce"&&(Ns.innerHTML=w_),pp=r(Ui),m(tt.$$.fragment,Ui),Ui.forEach(i),de.forEach(i),$d=r(e),m(ra.$$.fragment,e),yd=r(e),X=s(e,"DIV",{class:!0});var le=v(X);m(aa.$$.fragment,le),mp=r(le),Xs=s(le,"P",{"data-svelte-h":!0}),f(Xs)!=="svelte-13h7gvv"&&(Xs.innerHTML=v_),hp=r(le),rt=s(le,"DIV",{class:!0});var tl=v(rt);m(na.$$.fragment,tl),_p=r(tl),zs=s(tl,"P",{"data-svelte-h":!0}),f(zs)!=="svelte-1lgbsz7"&&(zs.innerHTML=b_),tl.forEach(i),up=r(le),at=s(le,"DIV",{class:!0});var rl=v(at);m(sa.$$.fragment,rl),gp=r(rl),Bs=s(rl,"P",{"data-svelte-h":!0}),f(Bs)!=="svelte-1ug3yl0"&&(Bs.innerHTML=$_),rl.forEach(i),Lp=r(le),Ie=s(le,"DIV",{class:!0});var Ei=v(Ie);m(ia.$$.fragment,Ei),xp=r(Ei),js=s(Ei,"P",{"data-svelte-h":!0}),f(js)!=="svelte-flusvq"&&(js.textContent=y_),wp=r(Ei),m(nt.$$.fragment,Ei),Ei.forEach(i),vp=r(le),st=s(le,"DIV",{class:!0});var al=v(st);m(da.$$.fragment,al),bp=r(al),Gs=s(al,"P",{"data-svelte-h":!0}),f(Gs)!=="svelte-1ufq5ot"&&(Gs.textContent=M_),al.forEach(i),$p=r(le),We=s(le,"DIV",{class:!0});var qi=v(We);m(la.$$.fragment,qi),yp=r(qi),Js=s(qi,"P",{"data-svelte-h":!0}),f(Js)!=="svelte-ioswce"&&(Js.innerHTML=T_),Mp=r(qi),m(it.$$.fragment,qi),qi.forEach(i),le.forEach(i),Md=r(e),m(ca.$$.fragment,e),Td=r(e),z=s(e,"DIV",{class:!0});var ce=v(z);m(fa.$$.fragment,ce),Tp=r(ce),Zs=s(ce,"P",{"data-svelte-h":!0}),f(Zs)!=="svelte-kthno9"&&(Zs.innerHTML=D_),Dp=r(ce),dt=s(ce,"DIV",{class:!0});var nl=v(dt);m(pa.$$.fragment,nl),Cp=r(nl),Ys=s(nl,"P",{"data-svelte-h":!0}),f(Ys)!=="svelte-1lgbsz7"&&(Ys.innerHTML=C_),nl.forEach(i),Ap=r(ce),lt=s(ce,"DIV",{class:!0});var sl=v(lt);m(ma.$$.fragment,sl),kp=r(sl),Os=s(sl,"P",{"data-svelte-h":!0}),f(Os)!=="svelte-1ug3yl0"&&(Os.innerHTML=A_),sl.forEach(i),Sp=r(ce),Fe=s(ce,"DIV",{class:!0});var Ni=v(Fe);m(ha.$$.fragment,Ni),Rp=r(Ni),Qs=s(Ni,"P",{"data-svelte-h":!0}),f(Qs)!=="svelte-flusvq"&&(Qs.textContent=k_),Pp=r(Ni),m(ct.$$.fragment,Ni),Ni.forEach(i),Vp=r(ce),ft=s(ce,"DIV",{class:!0});var il=v(ft);m(_a.$$.fragment,il),Hp=r(il),Ks=s(il,"P",{"data-svelte-h":!0}),f(Ks)!=="svelte-1ufq5ot"&&(Ks.textContent=S_),il.forEach(i),Ip=r(ce),Ue=s(ce,"DIV",{class:!0});var Xi=v(Ue);m(ua.$$.fragment,Xi),Wp=r(Xi),ei=s(Xi,"P",{"data-svelte-h":!0}),f(ei)!=="svelte-ioswce"&&(ei.innerHTML=R_),Fp=r(Xi),m(pt.$$.fragment,Xi),Xi.forEach(i),ce.forEach(i),Dd=r(e),m(ga.$$.fragment,e),Cd=r(e),B=s(e,"DIV",{class:!0});var fe=v(B);m(La.$$.fragment,fe),Up=r(fe),oi=s(fe,"P",{"data-svelte-h":!0}),f(oi)!=="svelte-1dry0uy"&&(oi.innerHTML=P_),Ep=r(fe),mt=s(fe,"DIV",{class:!0});var dl=v(mt);m(xa.$$.fragment,dl),qp=r(dl),ti=s(dl,"P",{"data-svelte-h":!0}),f(ti)!=="svelte-1lgbsz7"&&(ti.innerHTML=V_),dl.forEach(i),Np=r(fe),ht=s(fe,"DIV",{class:!0});var ll=v(ht);m(wa.$$.fragment,ll),Xp=r(ll),ri=s(ll,"P",{"data-svelte-h":!0}),f(ri)!=="svelte-1ug3yl0"&&(ri.innerHTML=H_),ll.forEach(i),zp=r(fe),Ee=s(fe,"DIV",{class:!0});var zi=v(Ee);m(va.$$.fragment,zi),Bp=r(zi),ai=s(zi,"P",{"data-svelte-h":!0}),f(ai)!=="svelte-flusvq"&&(ai.textContent=I_),jp=r(zi),m(_t.$$.fragment,zi),zi.forEach(i),Gp=r(fe),ut=s(fe,"DIV",{class:!0});var cl=v(ut);m(ba.$$.fragment,cl),Jp=r(cl),ni=s(cl,"P",{"data-svelte-h":!0}),f(ni)!=="svelte-1ufq5ot"&&(ni.textContent=W_),cl.forEach(i),Zp=r(fe),qe=s(fe,"DIV",{class:!0});var Bi=v(qe);m($a.$$.fragment,Bi),Yp=r(Bi),si=s(Bi,"P",{"data-svelte-h":!0}),f(si)!=="svelte-ioswce"&&(si.innerHTML=F_),Op=r(Bi),m(gt.$$.fragment,Bi),Bi.forEach(i),fe.forEach(i),Ad=r(e),m(ya.$$.fragment,e),kd=r(e),j=s(e,"DIV",{class:!0});var pe=v(j);m(Ma.$$.fragment,pe),Qp=r(pe),ii=s(pe,"P",{"data-svelte-h":!0}),f(ii)!=="svelte-1dry0uy"&&(ii.innerHTML=U_),Kp=r(pe),Lt=s(pe,"DIV",{class:!0});var fl=v(Lt);m(Ta.$$.fragment,fl),em=r(fl),di=s(fl,"P",{"data-svelte-h":!0}),f(di)!=="svelte-1lgbsz7"&&(di.innerHTML=E_),fl.forEach(i),om=r(pe),xt=s(pe,"DIV",{class:!0});var pl=v(xt);m(Da.$$.fragment,pl),tm=r(pl),li=s(pl,"P",{"data-svelte-h":!0}),f(li)!=="svelte-1ug3yl0"&&(li.innerHTML=q_),pl.forEach(i),rm=r(pe),Ne=s(pe,"DIV",{class:!0});var ji=v(Ne);m(Ca.$$.fragment,ji),am=r(ji),ci=s(ji,"P",{"data-svelte-h":!0}),f(ci)!=="svelte-flusvq"&&(ci.textContent=N_),nm=r(ji),m(wt.$$.fragment,ji),ji.forEach(i),sm=r(pe),vt=s(pe,"DIV",{class:!0});var ml=v(vt);m(Aa.$$.fragment,ml),im=r(ml),fi=s(ml,"P",{"data-svelte-h":!0}),f(fi)!=="svelte-1ufq5ot"&&(fi.textContent=X_),ml.forEach(i),dm=r(pe),Xe=s(pe,"DIV",{class:!0});var Gi=v(Xe);m(ka.$$.fragment,Gi),lm=r(Gi),pi=s(Gi,"P",{"data-svelte-h":!0}),f(pi)!=="svelte-ioswce"&&(pi.innerHTML=z_),cm=r(Gi),m(bt.$$.fragment,Gi),Gi.forEach(i),pe.forEach(i),Sd=r(e),m(Sa.$$.fragment,e),Rd=r(e),G=s(e,"DIV",{class:!0});var me=v(G);m(Ra.$$.fragment,me),fm=r(me),mi=s(me,"P",{"data-svelte-h":!0}),f(mi)!=="svelte-kthno9"&&(mi.innerHTML=B_),pm=r(me),$t=s(me,"DIV",{class:!0});var hl=v($t);m(Pa.$$.fragment,hl),mm=r(hl),hi=s(hl,"P",{"data-svelte-h":!0}),f(hi)!=="svelte-1lgbsz7"&&(hi.innerHTML=j_),hl.forEach(i),hm=r(me),yt=s(me,"DIV",{class:!0});var _l=v(yt);m(Va.$$.fragment,_l),_m=r(_l),_i=s(_l,"P",{"data-svelte-h":!0}),f(_i)!=="svelte-1ug3yl0"&&(_i.innerHTML=G_),_l.forEach(i),um=r(me),ze=s(me,"DIV",{class:!0});var Ji=v(ze);m(Ha.$$.fragment,Ji),gm=r(Ji),ui=s(Ji,"P",{"data-svelte-h":!0}),f(ui)!=="svelte-flusvq"&&(ui.textContent=J_),Lm=r(Ji),m(Mt.$$.fragment,Ji),Ji.forEach(i),xm=r(me),Tt=s(me,"DIV",{class:!0});var ul=v(Tt);m(Ia.$$.fragment,ul),wm=r(ul),gi=s(ul,"P",{"data-svelte-h":!0}),f(gi)!=="svelte-1ufq5ot"&&(gi.textContent=Z_),ul.forEach(i),vm=r(me),Be=s(me,"DIV",{class:!0});var Zi=v(Be);m(Wa.$$.fragment,Zi),bm=r(Zi),Li=s(Zi,"P",{"data-svelte-h":!0}),f(Li)!=="svelte-ioswce"&&(Li.innerHTML=Y_),$m=r(Zi),m(Dt.$$.fragment,Zi),Zi.forEach(i),me.forEach(i),Pd=r(e),m(Fa.$$.fragment,e),Vd=r(e),Ye=s(e,"DIV",{class:!0});var gl=v(Ye);m(Ua.$$.fragment,gl),ym=r(gl),Ct=s(gl,"DIV",{class:!0});var Ll=v(Ct);m(Ea.$$.fragment,Ll),Mm=r(Ll),xi=s(Ll,"P",{"data-svelte-h":!0}),f(xi)!=="svelte-1lgbsz7"&&(xi.innerHTML=O_),Ll.forEach(i),gl.forEach(i),Hd=r(e),m(qa.$$.fragment,e),Id=r(e),Na=s(e,"DIV",{class:!0});var iu=v(Na);m(Xa.$$.fragment,iu),iu.forEach(i),Wd=r(e),m(za.$$.fragment,e),Fd=r(e),k=s(e,"DIV",{class:!0});var V=v(k);m(Ba.$$.fragment,V),Tm=r(V),wi=s(V,"P",{"data-svelte-h":!0}),f(wi)!=="svelte-1q4bbx"&&(wi.textContent=Q_),Dm=r(V),vi=s(V,"DIV",{class:!0});var du=v(vi);m(ja.$$.fragment,du),du.forEach(i),Cm=r(V),je=s(V,"DIV",{class:!0});var Yi=v(je);m(Ga.$$.fragment,Yi),Am=r(Yi),bi=s(Yi,"P",{"data-svelte-h":!0}),f(bi)!=="svelte-w22v11"&&(bi.textContent=K_),km=r(Yi),$i=s(Yi,"P",{"data-svelte-h":!0}),f($i)!=="svelte-zdadya"&&($i.textContent=eu),Yi.forEach(i),Sm=r(V),ue=s(V,"DIV",{class:!0});var It=v(ue);m(Ja.$$.fragment,It),Rm=r(It),yi=s(It,"P",{"data-svelte-h":!0}),f(yi)!=="svelte-1nr2dy0"&&(yi.textContent=ou),Pm=r(It),m(At.$$.fragment,It),Vm=r(It),m(kt.$$.fragment,It),It.forEach(i),Hm=r(V),Ge=s(V,"DIV",{class:!0});var Oi=v(Ge);m(Za.$$.fragment,Oi),Im=r(Oi),Mi=s(Oi,"P",{"data-svelte-h":!0}),f(Mi)!=="svelte-h0os0v"&&(Mi.textContent=tu),Wm=r(Oi),m(St.$$.fragment,Oi),Oi.forEach(i),Fm=r(V),Rt=s(V,"DIV",{class:!0});var xl=v(Rt);m(Ya.$$.fragment,xl),Um=r(xl),Ti=s(xl,"P",{"data-svelte-h":!0}),f(Ti)!=="svelte-1825k9e"&&(Ti.textContent=ru),xl.forEach(i),Em=r(V),Pt=s(V,"DIV",{class:!0});var wl=v(Pt);m(Oa.$$.fragment,wl),qm=r(wl),Di=s(wl,"P",{"data-svelte-h":!0}),f(Di)!=="svelte-rvubqa"&&(Di.innerHTML=au),wl.forEach(i),Nm=r(V),Je=s(V,"DIV",{class:!0});var Qi=v(Je);m(Qa.$$.fragment,Qi),Xm=r(Qi),Ci=s(Qi,"P",{"data-svelte-h":!0}),f(Ci)!=="svelte-ioswce"&&(Ci.innerHTML=nu),zm=r(Qi),m(Vt.$$.fragment,Qi),Qi.forEach(i),Bm=r(V),Ze=s(V,"DIV",{class:!0});var Ki=v(Ze);m(Ka.$$.fragment,Ki),jm=r(Ki),Ai=s(Ki,"P",{"data-svelte-h":!0}),f(Ai)!=="svelte-119cgd9"&&(Ai.textContent=su),Gm=r(Ki),m(Ht.$$.fragment,Ki),Ki.forEach(i),V.forEach(i),Ud=r(e),m(en.$$.fragment,e),Ed=r(e),ed=s(e,"P",{}),v(ed).forEach(i),this.h()},h(){b(a,"name","hf:doc:metadata"),b(a,"content",Ou),b(io,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(lo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(fo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(po,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(mo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(_o,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(uo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(go,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(xo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(we,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(vo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(bo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(yo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b($e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Do,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Co,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(ko,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Ro,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Po,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Ho,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(De,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Wo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Fo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Eo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(No,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Xo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Bo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Go,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Jo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Yo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Qo,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Ko,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(ot,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(He,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(rt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(at,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(st,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(We,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(dt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(lt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(ft,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(mt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(ht,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(ut,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(qe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Lt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(xt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(vt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b($t,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(yt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(ze,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Tt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Ct,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Na,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(vi,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Rt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Pt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(Ze,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),b(k,"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,a),x(e,w,L),x(e,l,L),x(e,c,L),h(T,e,L),x(e,d,L),x(e,y,L),x(e,od,L),x(e,Wt,L),x(e,td,L),h(so,e,L),x(e,rd,L),h(Ft,e,L),x(e,ad,L),x(e,H,L),h(Ut,H,null),o(H,$l),o(H,Ln),o(H,yl),o(H,io),h(Et,io,null),o(io,Ml),o(io,xn),o(H,Tl),o(H,lo),h(qt,lo,null),o(lo,Dl),o(lo,wn),o(H,Cl),o(H,K),h(Nt,K,null),o(K,Al),o(K,vn),o(K,kl),o(K,bn),o(K,Sl),o(K,$n),o(K,Rl),o(K,yn),o(K,Pl),o(K,Mn),o(H,Vl),o(H,ge),h(Xt,ge,null),o(ge,Hl),o(ge,Tn),o(ge,Il),h(co,ge,null),o(H,Wl),o(H,fo),h(zt,fo,null),o(fo,Fl),o(fo,Dn),x(e,nd,L),h(Bt,e,L),x(e,sd,L),x(e,I,L),h(jt,I,null),o(I,Ul),o(I,Cn),o(I,El),o(I,po),h(Gt,po,null),o(po,ql),o(po,An),o(I,Nl),o(I,mo),h(Jt,mo,null),o(mo,Xl),o(mo,kn),o(I,zl),o(I,ee),h(Zt,ee,null),o(ee,Bl),o(ee,Sn),o(ee,jl),o(ee,Rn),o(ee,Gl),o(ee,Pn),o(ee,Jl),o(ee,Vn),o(ee,Zl),o(ee,Hn),o(I,Yl),o(I,Le),h(Yt,Le,null),o(Le,Ol),o(Le,In),o(Le,Ql),h(ho,Le,null),o(I,Kl),o(I,_o),h(Ot,_o,null),o(_o,ec),o(_o,Wn),x(e,id,L),h(Qt,e,L),x(e,dd,L),x(e,S,L),h(Kt,S,null),o(S,oc),o(S,Fn),o(S,tc),o(S,Un),o(S,rc),o(S,uo),h(er,uo,null),o(uo,ac),o(uo,En),o(S,nc),o(S,go),h(or,go,null),o(go,sc),o(go,qn),o(S,ic),o(S,re),h(tr,re,null),o(re,dc),o(re,Nn),o(re,lc),o(re,Xn),o(re,cc),o(re,zn),o(re,fc),o(re,Bn),o(S,pc),o(S,xe),h(rr,xe,null),o(xe,mc),o(xe,jn),o(xe,hc),h(Lo,xe,null),o(S,_c),o(S,xo),h(ar,xo,null),o(xo,uc),o(xo,Gn),o(S,gc),o(S,we),h(nr,we,null),o(we,Lc),o(we,Jn),o(we,xc),h(wo,we,null),x(e,ld,L),h(sr,e,L),x(e,cd,L),x(e,A,L),h(ir,A,null),o(A,wc),o(A,Zn),o(A,vc),o(A,Yn),o(A,bc),o(A,vo),h(dr,vo,null),o(vo,$c),o(vo,On),o(A,yc),o(A,bo),h(lr,bo,null),o(bo,Mc),o(bo,Qn),o(A,Tc),o(A,ae),h(cr,ae,null),o(ae,Dc),o(ae,Kn),o(ae,Cc),o(ae,es),o(ae,Ac),o(ae,os),o(ae,kc),o(ae,ts),o(A,Sc),o(A,ve),h(fr,ve,null),o(ve,Rc),o(ve,rs),o(ve,Pc),h($o,ve,null),o(A,Vc),o(A,yo),h(pr,yo,null),o(yo,Hc),o(yo,as),o(A,Ic),o(A,be),h(mr,be,null),o(be,Wc),o(be,ns),o(be,Fc),h(Mo,be,null),o(A,Uc),o(A,$e),h(hr,$e,null),o($e,Ec),o($e,ss),o($e,qc),h(To,$e,null),x(e,fd,L),h(_r,e,L),x(e,pd,L),x(e,W,L),h(ur,W,null),o(W,Nc),o(W,is),o(W,Xc),o(W,Do),h(gr,Do,null),o(Do,zc),o(Do,ds),o(W,Bc),o(W,Co),h(Lr,Co,null),o(Co,jc),o(Co,ls),o(W,Gc),o(W,ye),h(xr,ye,null),o(ye,Jc),o(ye,cs),o(ye,Zc),h(Ao,ye,null),o(W,Yc),o(W,ko),h(wr,ko,null),o(ko,Oc),o(ko,fs),o(W,Qc),o(W,Me),h(vr,Me,null),o(Me,Kc),o(Me,ps),o(Me,ef),h(So,Me,null),x(e,md,L),h(br,e,L),x(e,hd,L),x(e,F,L),h($r,F,null),o(F,of),o(F,ms),o(F,tf),o(F,Ro),h(yr,Ro,null),o(Ro,rf),o(Ro,hs),o(F,af),o(F,Po),h(Mr,Po,null),o(Po,nf),o(Po,_s),o(F,sf),o(F,Te),h(Tr,Te,null),o(Te,df),o(Te,us),o(Te,lf),h(Vo,Te,null),o(F,cf),o(F,Ho),h(Dr,Ho,null),o(Ho,ff),o(Ho,gs),o(F,pf),o(F,De),h(Cr,De,null),o(De,mf),o(De,Ls),o(De,hf),h(Io,De,null),x(e,_d,L),h(Ar,e,L),x(e,ud,L),x(e,U,L),h(kr,U,null),o(U,_f),o(U,xs),o(U,uf),o(U,Wo),h(Sr,Wo,null),o(Wo,gf),o(Wo,ws),o(U,Lf),o(U,Fo),h(Rr,Fo,null),o(Fo,xf),o(Fo,vs),o(U,wf),o(U,Ce),h(Pr,Ce,null),o(Ce,vf),o(Ce,bs),o(Ce,bf),h(Uo,Ce,null),o(U,$f),o(U,Eo),h(Vr,Eo,null),o(Eo,yf),o(Eo,$s),o(U,Mf),o(U,Ae),h(Hr,Ae,null),o(Ae,Tf),o(Ae,ys),o(Ae,Df),h(qo,Ae,null),x(e,gd,L),h(Ir,e,L),x(e,Ld,L),x(e,E,L),h(Wr,E,null),o(E,Cf),o(E,Ms),o(E,Af),o(E,No),h(Fr,No,null),o(No,kf),o(No,Ts),o(E,Sf),o(E,Xo),h(Ur,Xo,null),o(Xo,Rf),o(Xo,Ds),o(E,Pf),o(E,ke),h(Er,ke,null),o(ke,Vf),o(ke,Cs),o(ke,Hf),h(zo,ke,null),o(E,If),o(E,Bo),h(qr,Bo,null),o(Bo,Wf),o(Bo,As),o(E,Ff),o(E,Se),h(Nr,Se,null),o(Se,Uf),o(Se,ks),o(Se,Ef),h(jo,Se,null),x(e,xd,L),h(Xr,e,L),x(e,wd,L),x(e,q,L),h(zr,q,null),o(q,qf),o(q,Ss),o(q,Nf),o(q,Go),h(Br,Go,null),o(Go,Xf),o(Go,Rs),o(q,zf),o(q,Jo),h(jr,Jo,null),o(Jo,Bf),o(Jo,Ps),o(q,jf),o(q,Re),h(Gr,Re,null),o(Re,Gf),o(Re,Vs),o(Re,Jf),h(Zo,Re,null),o(q,Zf),o(q,Yo),h(Jr,Yo,null),o(Yo,Yf),o(Yo,Hs),o(q,Of),o(q,Pe),h(Zr,Pe,null),o(Pe,Qf),o(Pe,Is),o(Pe,Kf),h(Oo,Pe,null),x(e,vd,L),h(Yr,e,L),x(e,bd,L),x(e,N,L),h(Or,N,null),o(N,ep),o(N,Ws),o(N,op),o(N,Qo),h(Qr,Qo,null),o(Qo,tp),o(Qo,Fs),o(N,rp),o(N,Ko),h(Kr,Ko,null),o(Ko,ap),o(Ko,Us),o(N,np),o(N,Ve),h(ea,Ve,null),o(Ve,sp),o(Ve,Es),o(Ve,ip),h(et,Ve,null),o(N,dp),o(N,ot),h(oa,ot,null),o(ot,lp),o(ot,qs),o(N,cp),o(N,He),h(ta,He,null),o(He,fp),o(He,Ns),o(He,pp),h(tt,He,null),x(e,$d,L),h(ra,e,L),x(e,yd,L),x(e,X,L),h(aa,X,null),o(X,mp),o(X,Xs),o(X,hp),o(X,rt),h(na,rt,null),o(rt,_p),o(rt,zs),o(X,up),o(X,at),h(sa,at,null),o(at,gp),o(at,Bs),o(X,Lp),o(X,Ie),h(ia,Ie,null),o(Ie,xp),o(Ie,js),o(Ie,wp),h(nt,Ie,null),o(X,vp),o(X,st),h(da,st,null),o(st,bp),o(st,Gs),o(X,$p),o(X,We),h(la,We,null),o(We,yp),o(We,Js),o(We,Mp),h(it,We,null),x(e,Md,L),h(ca,e,L),x(e,Td,L),x(e,z,L),h(fa,z,null),o(z,Tp),o(z,Zs),o(z,Dp),o(z,dt),h(pa,dt,null),o(dt,Cp),o(dt,Ys),o(z,Ap),o(z,lt),h(ma,lt,null),o(lt,kp),o(lt,Os),o(z,Sp),o(z,Fe),h(ha,Fe,null),o(Fe,Rp),o(Fe,Qs),o(Fe,Pp),h(ct,Fe,null),o(z,Vp),o(z,ft),h(_a,ft,null),o(ft,Hp),o(ft,Ks),o(z,Ip),o(z,Ue),h(ua,Ue,null),o(Ue,Wp),o(Ue,ei),o(Ue,Fp),h(pt,Ue,null),x(e,Dd,L),h(ga,e,L),x(e,Cd,L),x(e,B,L),h(La,B,null),o(B,Up),o(B,oi),o(B,Ep),o(B,mt),h(xa,mt,null),o(mt,qp),o(mt,ti),o(B,Np),o(B,ht),h(wa,ht,null),o(ht,Xp),o(ht,ri),o(B,zp),o(B,Ee),h(va,Ee,null),o(Ee,Bp),o(Ee,ai),o(Ee,jp),h(_t,Ee,null),o(B,Gp),o(B,ut),h(ba,ut,null),o(ut,Jp),o(ut,ni),o(B,Zp),o(B,qe),h($a,qe,null),o(qe,Yp),o(qe,si),o(qe,Op),h(gt,qe,null),x(e,Ad,L),h(ya,e,L),x(e,kd,L),x(e,j,L),h(Ma,j,null),o(j,Qp),o(j,ii),o(j,Kp),o(j,Lt),h(Ta,Lt,null),o(Lt,em),o(Lt,di),o(j,om),o(j,xt),h(Da,xt,null),o(xt,tm),o(xt,li),o(j,rm),o(j,Ne),h(Ca,Ne,null),o(Ne,am),o(Ne,ci),o(Ne,nm),h(wt,Ne,null),o(j,sm),o(j,vt),h(Aa,vt,null),o(vt,im),o(vt,fi),o(j,dm),o(j,Xe),h(ka,Xe,null),o(Xe,lm),o(Xe,pi),o(Xe,cm),h(bt,Xe,null),x(e,Sd,L),h(Sa,e,L),x(e,Rd,L),x(e,G,L),h(Ra,G,null),o(G,fm),o(G,mi),o(G,pm),o(G,$t),h(Pa,$t,null),o($t,mm),o($t,hi),o(G,hm),o(G,yt),h(Va,yt,null),o(yt,_m),o(yt,_i),o(G,um),o(G,ze),h(Ha,ze,null),o(ze,gm),o(ze,ui),o(ze,Lm),h(Mt,ze,null),o(G,xm),o(G,Tt),h(Ia,Tt,null),o(Tt,wm),o(Tt,gi),o(G,vm),o(G,Be),h(Wa,Be,null),o(Be,bm),o(Be,Li),o(Be,$m),h(Dt,Be,null),x(e,Pd,L),h(Fa,e,L),x(e,Vd,L),x(e,Ye,L),h(Ua,Ye,null),o(Ye,ym),o(Ye,Ct),h(Ea,Ct,null),o(Ct,Mm),o(Ct,xi),x(e,Hd,L),h(qa,e,L),x(e,Id,L),x(e,Na,L),h(Xa,Na,null),x(e,Wd,L),h(za,e,L),x(e,Fd,L),x(e,k,L),h(Ba,k,null),o(k,Tm),o(k,wi),o(k,Dm),o(k,vi),h(ja,vi,null),o(k,Cm),o(k,je),h(Ga,je,null),o(je,Am),o(je,bi),o(je,km),o(je,$i),o(k,Sm),o(k,ue),h(Ja,ue,null),o(ue,Rm),o(ue,yi),o(ue,Pm),h(At,ue,null),o(ue,Vm),h(kt,ue,null),o(k,Hm),o(k,Ge),h(Za,Ge,null),o(Ge,Im),o(Ge,Mi),o(Ge,Wm),h(St,Ge,null),o(k,Fm),o(k,Rt),h(Ya,Rt,null),o(Rt,Um),o(Rt,Ti),o(k,Em),o(k,Pt),h(Oa,Pt,null),o(Pt,qm),o(Pt,Di),o(k,Nm),o(k,Je),h(Qa,Je,null),o(Je,Xm),o(Je,Ci),o(Je,zm),h(Vt,Je,null),o(k,Bm),o(k,Ze),h(Ka,Ze,null),o(Ze,jm),o(Ze,Ai),o(Ze,Gm),h(Ht,Ze,null),x(e,Ud,L),h(en,e,L),x(e,Ed,L),x(e,ed,L),qd=!0},p(e,[L]){const Z={};L&2&&(Z.$$scope={dirty:L,ctx:e}),so.$set(Z);const on={};L&2&&(on.$$scope={dirty:L,ctx:e}),co.$set(on);const tn={};L&2&&(tn.$$scope={dirty:L,ctx:e}),ho.$set(tn);const oe={};L&2&&(oe.$$scope={dirty:L,ctx:e}),Lo.$set(oe);const Oe={};L&2&&(Oe.$$scope={dirty:L,ctx:e}),wo.$set(Oe);const rn={};L&2&&(rn.$$scope={dirty:L,ctx:e}),$o.$set(rn);const Y={};L&2&&(Y.$$scope={dirty:L,ctx:e}),Mo.$set(Y);const an={};L&2&&(an.$$scope={dirty:L,ctx:e}),To.$set(an);const nn={};L&2&&(nn.$$scope={dirty:L,ctx:e}),Ao.$set(nn);const te={};L&2&&(te.$$scope={dirty:L,ctx:e}),So.$set(te);const Qe={};L&2&&(Qe.$$scope={dirty:L,ctx:e}),Vo.$set(Qe);const sn={};L&2&&(sn.$$scope={dirty:L,ctx:e}),Io.$set(sn);const P={};L&2&&(P.$$scope={dirty:L,ctx:e}),Uo.$set(P);const dn={};L&2&&(dn.$$scope={dirty:L,ctx:e}),qo.$set(dn);const ln={};L&2&&(ln.$$scope={dirty:L,ctx:e}),zo.$set(ln);const he={};L&2&&(he.$$scope={dirty:L,ctx:e}),jo.$set(he);const Ke={};L&2&&(Ke.$$scope={dirty:L,ctx:e}),Zo.$set(Ke);const cn={};L&2&&(cn.$$scope={dirty:L,ctx:e}),Oo.$set(cn);const eo={};L&2&&(eo.$$scope={dirty:L,ctx:e}),et.$set(eo);const R={};L&2&&(R.$$scope={dirty:L,ctx:e}),tt.$set(R);const fn={};L&2&&(fn.$$scope={dirty:L,ctx:e}),nt.$set(fn);const pn={};L&2&&(pn.$$scope={dirty:L,ctx:e}),it.$set(pn);const _e={};L&2&&(_e.$$scope={dirty:L,ctx:e}),ct.$set(_e);const oo={};L&2&&(oo.$$scope={dirty:L,ctx:e}),pt.$set(oo);const mn={};L&2&&(mn.$$scope={dirty:L,ctx:e}),_t.$set(mn);const to={};L&2&&(to.$$scope={dirty:L,ctx:e}),gt.$set(to);const ro={};L&2&&(ro.$$scope={dirty:L,ctx:e}),wt.$set(ro);const O={};L&2&&(O.$$scope={dirty:L,ctx:e}),bt.$set(O);const hn={};L&2&&(hn.$$scope={dirty:L,ctx:e}),Mt.$set(hn);const _n={};L&2&&(_n.$$scope={dirty:L,ctx:e}),Dt.$set(_n);const ao={};L&2&&(ao.$$scope={dirty:L,ctx:e}),At.$set(ao);const un={};L&2&&(un.$$scope={dirty:L,ctx:e}),kt.$set(un);const no={};L&2&&(no.$$scope={dirty:L,ctx:e}),St.$set(no);const Q={};L&2&&(Q.$$scope={dirty:L,ctx:e}),Vt.$set(Q);const gn={};L&2&&(gn.$$scope={dirty:L,ctx:e}),Ht.$set(gn)},i(e){qd||(_(T.$$.fragment,e),_(so.$$.fragment,e),_(Ft.$$.fragment,e),_(Ut.$$.fragment,e),_(Et.$$.fragment,e),_(qt.$$.fragment,e),_(Nt.$$.fragment,e),_(Xt.$$.fragment,e),_(co.$$.fragment,e),_(zt.$$.fragment,e),_(Bt.$$.fragment,e),_(jt.$$.fragment,e),_(Gt.$$.fragment,e),_(Jt.$$.fragment,e),_(Zt.$$.fragment,e),_(Yt.$$.fragment,e),_(ho.$$.fragment,e),_(Ot.$$.fragment,e),_(Qt.$$.fragment,e),_(Kt.$$.fragment,e),_(er.$$.fragment,e),_(or.$$.fragment,e),_(tr.$$.fragment,e),_(rr.$$.fragment,e),_(Lo.$$.fragment,e),_(ar.$$.fragment,e),_(nr.$$.fragment,e),_(wo.$$.fragment,e),_(sr.$$.fragment,e),_(ir.$$.fragment,e),_(dr.$$.fragment,e),_(lr.$$.fragment,e),_(cr.$$.fragment,e),_(fr.$$.fragment,e),_($o.$$.fragment,e),_(pr.$$.fragment,e),_(mr.$$.fragment,e),_(Mo.$$.fragment,e),_(hr.$$.fragment,e),_(To.$$.fragment,e),_(_r.$$.fragment,e),_(ur.$$.fragment,e),_(gr.$$.fragment,e),_(Lr.$$.fragment,e),_(xr.$$.fragment,e),_(Ao.$$.fragment,e),_(wr.$$.fragment,e),_(vr.$$.fragment,e),_(So.$$.fragment,e),_(br.$$.fragment,e),_($r.$$.fragment,e),_(yr.$$.fragment,e),_(Mr.$$.fragment,e),_(Tr.$$.fragment,e),_(Vo.$$.fragment,e),_(Dr.$$.fragment,e),_(Cr.$$.fragment,e),_(Io.$$.fragment,e),_(Ar.$$.fragment,e),_(kr.$$.fragment,e),_(Sr.$$.fragment,e),_(Rr.$$.fragment,e),_(Pr.$$.fragment,e),_(Uo.$$.fragment,e),_(Vr.$$.fragment,e),_(Hr.$$.fragment,e),_(qo.$$.fragment,e),_(Ir.$$.fragment,e),_(Wr.$$.fragment,e),_(Fr.$$.fragment,e),_(Ur.$$.fragment,e),_(Er.$$.fragment,e),_(zo.$$.fragment,e),_(qr.$$.fragment,e),_(Nr.$$.fragment,e),_(jo.$$.fragment,e),_(Xr.$$.fragment,e),_(zr.$$.fragment,e),_(Br.$$.fragment,e),_(jr.$$.fragment,e),_(Gr.$$.fragment,e),_(Zo.$$.fragment,e),_(Jr.$$.fragment,e),_(Zr.$$.fragment,e),_(Oo.$$.fragment,e),_(Yr.$$.fragment,e),_(Or.$$.fragment,e),_(Qr.$$.fragment,e),_(Kr.$$.fragment,e),_(ea.$$.fragment,e),_(et.$$.fragment,e),_(oa.$$.fragment,e),_(ta.$$.fragment,e),_(tt.$$.fragment,e),_(ra.$$.fragment,e),_(aa.$$.fragment,e),_(na.$$.fragment,e),_(sa.$$.fragment,e),_(ia.$$.fragment,e),_(nt.$$.fragment,e),_(da.$$.fragment,e),_(la.$$.fragment,e),_(it.$$.fragment,e),_(ca.$$.fragment,e),_(fa.$$.fragment,e),_(pa.$$.fragment,e),_(ma.$$.fragment,e),_(ha.$$.fragment,e),_(ct.$$.fragment,e),_(_a.$$.fragment,e),_(ua.$$.fragment,e),_(pt.$$.fragment,e),_(ga.$$.fragment,e),_(La.$$.fragment,e),_(xa.$$.fragment,e),_(wa.$$.fragment,e),_(va.$$.fragment,e),_(_t.$$.fragment,e),_(ba.$$.fragment,e),_($a.$$.fragment,e),_(gt.$$.fragment,e),_(ya.$$.fragment,e),_(Ma.$$.fragment,e),_(Ta.$$.fragment,e),_(Da.$$.fragment,e),_(Ca.$$.fragment,e),_(wt.$$.fragment,e),_(Aa.$$.fragment,e),_(ka.$$.fragment,e),_(bt.$$.fragment,e),_(Sa.$$.fragment,e),_(Ra.$$.fragment,e),_(Pa.$$.fragment,e),_(Va.$$.fragment,e),_(Ha.$$.fragment,e),_(Mt.$$.fragment,e),_(Ia.$$.fragment,e),_(Wa.$$.fragment,e),_(Dt.$$.fragment,e),_(Fa.$$.fragment,e),_(Ua.$$.fragment,e),_(Ea.$$.fragment,e),_(qa.$$.fragment,e),_(Xa.$$.fragment,e),_(za.$$.fragment,e),_(Ba.$$.fragment,e),_(ja.$$.fragment,e),_(Ga.$$.fragment,e),_(Ja.$$.fragment,e),_(At.$$.fragment,e),_(kt.$$.fragment,e),_(Za.$$.fragment,e),_(St.$$.fragment,e),_(Ya.$$.fragment,e),_(Oa.$$.fragment,e),_(Qa.$$.fragment,e),_(Vt.$$.fragment,e),_(Ka.$$.fragment,e),_(Ht.$$.fragment,e),_(en.$$.fragment,e),qd=!0)},o(e){u(T.$$.fragment,e),u(so.$$.fragment,e),u(Ft.$$.fragment,e),u(Ut.$$.fragment,e),u(Et.$$.fragment,e),u(qt.$$.fragment,e),u(Nt.$$.fragment,e),u(Xt.$$.fragment,e),u(co.$$.fragment,e),u(zt.$$.fragment,e),u(Bt.$$.fragment,e),u(jt.$$.fragment,e),u(Gt.$$.fragment,e),u(Jt.$$.fragment,e),u(Zt.$$.fragment,e),u(Yt.$$.fragment,e),u(ho.$$.fragment,e),u(Ot.$$.fragment,e),u(Qt.$$.fragment,e),u(Kt.$$.fragment,e),u(er.$$.fragment,e),u(or.$$.fragment,e),u(tr.$$.fragment,e),u(rr.$$.fragment,e),u(Lo.$$.fragment,e),u(ar.$$.fragment,e),u(nr.$$.fragment,e),u(wo.$$.fragment,e),u(sr.$$.fragment,e),u(ir.$$.fragment,e),u(dr.$$.fragment,e),u(lr.$$.fragment,e),u(cr.$$.fragment,e),u(fr.$$.fragment,e),u($o.$$.fragment,e),u(pr.$$.fragment,e),u(mr.$$.fragment,e),u(Mo.$$.fragment,e),u(hr.$$.fragment,e),u(To.$$.fragment,e),u(_r.$$.fragment,e),u(ur.$$.fragment,e),u(gr.$$.fragment,e),u(Lr.$$.fragment,e),u(xr.$$.fragment,e),u(Ao.$$.fragment,e),u(wr.$$.fragment,e),u(vr.$$.fragment,e),u(So.$$.fragment,e),u(br.$$.fragment,e),u($r.$$.fragment,e),u(yr.$$.fragment,e),u(Mr.$$.fragment,e),u(Tr.$$.fragment,e),u(Vo.$$.fragment,e),u(Dr.$$.fragment,e),u(Cr.$$.fragment,e),u(Io.$$.fragment,e),u(Ar.$$.fragment,e),u(kr.$$.fragment,e),u(Sr.$$.fragment,e),u(Rr.$$.fragment,e),u(Pr.$$.fragment,e),u(Uo.$$.fragment,e),u(Vr.$$.fragment,e),u(Hr.$$.fragment,e),u(qo.$$.fragment,e),u(Ir.$$.fragment,e),u(Wr.$$.fragment,e),u(Fr.$$.fragment,e),u(Ur.$$.fragment,e),u(Er.$$.fragment,e),u(zo.$$.fragment,e),u(qr.$$.fragment,e),u(Nr.$$.fragment,e),u(jo.$$.fragment,e),u(Xr.$$.fragment,e),u(zr.$$.fragment,e),u(Br.$$.fragment,e),u(jr.$$.fragment,e),u(Gr.$$.fragment,e),u(Zo.$$.fragment,e),u(Jr.$$.fragment,e),u(Zr.$$.fragment,e),u(Oo.$$.fragment,e),u(Yr.$$.fragment,e),u(Or.$$.fragment,e),u(Qr.$$.fragment,e),u(Kr.$$.fragment,e),u(ea.$$.fragment,e),u(et.$$.fragment,e),u(oa.$$.fragment,e),u(ta.$$.fragment,e),u(tt.$$.fragment,e),u(ra.$$.fragment,e),u(aa.$$.fragment,e),u(na.$$.fragment,e),u(sa.$$.fragment,e),u(ia.$$.fragment,e),u(nt.$$.fragment,e),u(da.$$.fragment,e),u(la.$$.fragment,e),u(it.$$.fragment,e),u(ca.$$.fragment,e),u(fa.$$.fragment,e),u(pa.$$.fragment,e),u(ma.$$.fragment,e),u(ha.$$.fragment,e),u(ct.$$.fragment,e),u(_a.$$.fragment,e),u(ua.$$.fragment,e),u(pt.$$.fragment,e),u(ga.$$.fragment,e),u(La.$$.fragment,e),u(xa.$$.fragment,e),u(wa.$$.fragment,e),u(va.$$.fragment,e),u(_t.$$.fragment,e),u(ba.$$.fragment,e),u($a.$$.fragment,e),u(gt.$$.fragment,e),u(ya.$$.fragment,e),u(Ma.$$.fragment,e),u(Ta.$$.fragment,e),u(Da.$$.fragment,e),u(Ca.$$.fragment,e),u(wt.$$.fragment,e),u(Aa.$$.fragment,e),u(ka.$$.fragment,e),u(bt.$$.fragment,e),u(Sa.$$.fragment,e),u(Ra.$$.fragment,e),u(Pa.$$.fragment,e),u(Va.$$.fragment,e),u(Ha.$$.fragment,e),u(Mt.$$.fragment,e),u(Ia.$$.fragment,e),u(Wa.$$.fragment,e),u(Dt.$$.fragment,e),u(Fa.$$.fragment,e),u(Ua.$$.fragment,e),u(Ea.$$.fragment,e),u(qa.$$.fragment,e),u(Xa.$$.fragment,e),u(za.$$.fragment,e),u(Ba.$$.fragment,e),u(ja.$$.fragment,e),u(Ga.$$.fragment,e),u(Ja.$$.fragment,e),u(At.$$.fragment,e),u(kt.$$.fragment,e),u(Za.$$.fragment,e),u(St.$$.fragment,e),u(Ya.$$.fragment,e),u(Oa.$$.fragment,e),u(Qa.$$.fragment,e),u(Vt.$$.fragment,e),u(Ka.$$.fragment,e),u(Ht.$$.fragment,e),u(en.$$.fragment,e),qd=!1},d(e){e&&(i(w),i(l),i(c),i(d),i(y),i(od),i(Wt),i(td),i(rd),i(ad),i(H),i(nd),i(sd),i(I),i(id),i(dd),i(S),i(ld),i(cd),i(A),i(fd),i(pd),i(W),i(md),i(hd),i(F),i(_d),i(ud),i(U),i(gd),i(Ld),i(E),i(xd),i(wd),i(q),i(vd),i(bd),i(N),i($d),i(yd),i(X),i(Md),i(Td),i(z),i(Dd),i(Cd),i(B),i(Ad),i(kd),i(j),i(Sd),i(Rd),i(G),i(Pd),i(Vd),i(Ye),i(Hd),i(Id),i(Na),i(Wd),i(Fd),i(k),i(Ud),i(Ed),i(ed)),i(a),g(T,e),g(so,e),g(Ft,e),g(Ut),g(Et),g(qt),g(Nt),g(Xt),g(co),g(zt),g(Bt,e),g(jt),g(Gt),g(Jt),g(Zt),g(Yt),g(ho),g(Ot),g(Qt,e),g(Kt),g(er),g(or),g(tr),g(rr),g(Lo),g(ar),g(nr),g(wo),g(sr,e),g(ir),g(dr),g(lr),g(cr),g(fr),g($o),g(pr),g(mr),g(Mo),g(hr),g(To),g(_r,e),g(ur),g(gr),g(Lr),g(xr),g(Ao),g(wr),g(vr),g(So),g(br,e),g($r),g(yr),g(Mr),g(Tr),g(Vo),g(Dr),g(Cr),g(Io),g(Ar,e),g(kr),g(Sr),g(Rr),g(Pr),g(Uo),g(Vr),g(Hr),g(qo),g(Ir,e),g(Wr),g(Fr),g(Ur),g(Er),g(zo),g(qr),g(Nr),g(jo),g(Xr,e),g(zr),g(Br),g(jr),g(Gr),g(Zo),g(Jr),g(Zr),g(Oo),g(Yr,e),g(Or),g(Qr),g(Kr),g(ea),g(et),g(oa),g(ta),g(tt),g(ra,e),g(aa),g(na),g(sa),g(ia),g(nt),g(da),g(la),g(it),g(ca,e),g(fa),g(pa),g(ma),g(ha),g(ct),g(_a),g(ua),g(pt),g(ga,e),g(La),g(xa),g(wa),g(va),g(_t),g(ba),g($a),g(gt),g(ya,e),g(Ma),g(Ta),g(Da),g(Ca),g(wt),g(Aa),g(ka),g(bt),g(Sa,e),g(Ra),g(Pa),g(Va),g(Ha),g(Mt),g(Ia),g(Wa),g(Dt),g(Fa,e),g(Ua),g(Ea),g(qa,e),g(Xa),g(za,e),g(Ba),g(ja),g(Ga),g(Ja),g(At),g(kt),g(Za),g(St),g(Ya),g(Oa),g(Qa),g(Vt),g(Ka),g(Ht),g(en,e)}}}const Ou='{"title":"LoRA","local":"lora","sections":[{"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":"WanLoraLoaderMixin","local":"diffusers.loaders.WanLoraLoaderMixin","sections":[],"depth":2},{"title":"CogView4LoraLoaderMixin","local":"diffusers.loaders.CogView4LoraLoaderMixin","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":"LoraBaseMixin","local":"diffusers.loaders.LoraBaseMixin","sections":[],"depth":2}],"depth":1}';function Qu(M){return cu(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class sg extends fu{constructor(a){super(),pu(this,a,Qu,Yu,lu,{})}}export{sg as component}; | |
Xet Storage Details
- Size:
- 322 kB
- Xet hash:
- 294967db590b6b1c188d97925ec16b5fe769a12f443bbb651c9a71811663ef67
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.