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