import{s as Ao,o as Oo,n as F}from"../chunks/scheduler.8c3d61f6.js";import{S as Ko,i as ea,g as l,s as o,r as p,m as So,H as ta,A as sa,h as i,f as d,c as a,j as T,u as f,n as Lo,E as na,x as y,k as j,y as s,a as $,v as u,d as h,t as g,w as b}from"../chunks/index.da70eac4.js";import{T as Po}from"../chunks/Tip.1d9b8c37.js";import{D as k}from"../chunks/Docstring.c021b19a.js";import{C as E}from"../chunks/CodeBlock.a9c4becf.js";import{E as z}from"../chunks/ExampleCodeBlock.56b4589c.js";import{H as js,E as oa}from"../chunks/getInferenceSnippets.725ed3d4.js";function aa(U){let n,w="Example:",m,r,c;return r=new E({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMENvZ1ZpZGVvWFRyYW5zZm9ybWVyM0RNb2RlbCUwQSUwQXRyYW5zZm9ybWVyJTIwJTNEJTIwQ29nVmlkZW9YVHJhbnNmb3JtZXIzRE1vZGVsLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJUSFVETSUyRkNvZ1ZpZGVvWC01YiUyMiUyQyUyMHN1YmZvbGRlciUzRCUyMnRyYW5zZm9ybWVyJTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5iZmxvYXQxNiUwQSklMEElMEF0cmFuc2Zvcm1lci5lbmFibGVfZ3JvdXBfb2ZmbG9hZCglMEElMjAlMjAlMjAlMjBvbmxvYWRfZGV2aWNlJTNEdG9yY2guZGV2aWNlKCUyMmN1ZGElMjIpJTJDJTBBJTIwJTIwJTIwJTIwb2ZmbG9hZF9kZXZpY2UlM0R0b3JjaC5kZXZpY2UoJTIyY3B1JTIyKSUyQyUwQSUyMCUyMCUyMCUyMG9mZmxvYWRfdHlwZSUzRCUyMmxlYWZfbGV2ZWwlMjIlMkMlMEElMjAlMjAlMjAlMjB1c2Vfc3RyZWFtJTNEVHJ1ZSUyQyUwQSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> CogVideoXTransformer3DModel

<span class="hljs-meta">&gt;&gt;&gt; </span>transformer = CogVideoXTransformer3DModel.from_pretrained(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;THUDM/CogVideoX-5b&quot;</span>, subfolder=<span class="hljs-string">&quot;transformer&quot;</span>, torch_dtype=torch.bfloat16
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>transformer.enable_group_offload(
<span class="hljs-meta">... </span>    onload_device=torch.device(<span class="hljs-string">&quot;cuda&quot;</span>),
<span class="hljs-meta">... </span>    offload_device=torch.device(<span class="hljs-string">&quot;cpu&quot;</span>),
<span class="hljs-meta">... </span>    offload_type=<span class="hljs-string">&quot;leaf_level&quot;</span>,
<span class="hljs-meta">... </span>    use_stream=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>)`,wrap:!1}}),{c(){n=l("p"),n.textContent=w,m=o(),p(r.$$.fragment)},l(e){n=i(e,"P",{"data-svelte-h":!0}),y(n)!=="svelte-11lpom8"&&(n.textContent=w),m=a(e),f(r.$$.fragment,e)},m(e,M){$(e,n,M),$(e,m,M),u(r,e,M),c=!0},p:F,i(e){c||(h(r.$$.fragment,e),c=!0)},o(e){g(r.$$.fragment,e),c=!1},d(e){e&&(d(n),d(m)),b(r,e)}}}function ra(U){let n,w='Using <a href="/docs/diffusers/main/en/api/models/overview#diffusers.ModelMixin.enable_layerwise_casting">enable_layerwise_casting()</a>:',m,r,c;return r=new E({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMENvZ1ZpZGVvWFRyYW5zZm9ybWVyM0RNb2RlbCUwQSUwQXRyYW5zZm9ybWVyJTIwJTNEJTIwQ29nVmlkZW9YVHJhbnNmb3JtZXIzRE1vZGVsLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJUSFVETSUyRkNvZ1ZpZGVvWC01YiUyMiUyQyUyMHN1YmZvbGRlciUzRCUyMnRyYW5zZm9ybWVyJTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5iZmxvYXQxNiUwQSklMEElMEElMjMlMjBFbmFibGUlMjBsYXllcndpc2UlMjBjYXN0aW5nJTIwdmlhJTIwdGhlJTIwbW9kZWwlMkMlMjB3aGljaCUyMGlnbm9yZXMlMjBjZXJ0YWluJTIwbW9kdWxlcyUyMGJ5JTIwZGVmYXVsdCUwQXRyYW5zZm9ybWVyLmVuYWJsZV9sYXllcndpc2VfY2FzdGluZyhzdG9yYWdlX2R0eXBlJTNEdG9yY2guZmxvYXQ4X2U0bTNmbiUyQyUyMGNvbXB1dGVfZHR5cGUlM0R0b3JjaC5iZmxvYXQxNik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> CogVideoXTransformer3DModel

<span class="hljs-meta">&gt;&gt;&gt; </span>transformer = CogVideoXTransformer3DModel.from_pretrained(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;THUDM/CogVideoX-5b&quot;</span>, subfolder=<span class="hljs-string">&quot;transformer&quot;</span>, torch_dtype=torch.bfloat16
<span class="hljs-meta">... </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Enable layerwise casting via the model, which ignores certain modules by default</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>transformer.enable_layerwise_casting(storage_dtype=torch.float8_e4m3fn, compute_dtype=torch.bfloat16)`,wrap:!1}}),{c(){n=l("p"),n.innerHTML=w,m=o(),p(r.$$.fragment)},l(e){n=i(e,"P",{"data-svelte-h":!0}),y(n)!=="svelte-1anawjo"&&(n.innerHTML=w),m=a(e),f(r.$$.fragment,e)},m(e,M){$(e,n,M),$(e,m,M),u(r,e,M),c=!0},p:F,i(e){c||(h(r.$$.fragment,e),c=!0)},o(e){g(r.$$.fragment,e),c=!1},d(e){e&&(d(n),d(m)),b(r,e)}}}function la(U){let n,w=`⚠️ When memory efficient attention and sliced attention are both enabled, memory efficient attention takes
precedent.`;return{c(){n=l("p"),n.textContent=w},l(m){n=i(m,"P",{"data-svelte-h":!0}),y(n)!=="svelte-17p1lpg"&&(n.textContent=w)},m(m,r){$(m,n,r)},p:F,d(m){m&&d(n)}}}function ia(U){let n,w="Examples:",m,r,c;return r=new E({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwVU5ldDJEQ29uZGl0aW9uTW9kZWwlMEFmcm9tJTIweGZvcm1lcnMub3BzJTIwaW1wb3J0JTIwTWVtb3J5RWZmaWNpZW50QXR0ZW50aW9uRmxhc2hBdHRlbnRpb25PcCUwQSUwQW1vZGVsJTIwJTNEJTIwVU5ldDJEQ29uZGl0aW9uTW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCUyMnN0YWJpbGl0eWFpJTJGc3RhYmxlLWRpZmZ1c2lvbi0yLTElMjIlMkMlMjBzdWJmb2xkZXIlM0QlMjJ1bmV0JTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTBBKSUwQW1vZGVsJTIwJTNEJTIwbW9kZWwudG8oJTIyY3VkYSUyMiklMEFtb2RlbC5lbmFibGVfeGZvcm1lcnNfbWVtb3J5X2VmZmljaWVudF9hdHRlbnRpb24oYXR0ZW50aW9uX29wJTNETWVtb3J5RWZmaWNpZW50QXR0ZW50aW9uRmxhc2hBdHRlbnRpb25PcCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> torch
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> UNet2DConditionModel
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> xformers.ops <span class="hljs-keyword">import</span> MemoryEfficientAttentionFlashAttentionOp

<span class="hljs-meta">&gt;&gt;&gt; </span>model = UNet2DConditionModel.from_pretrained(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;stabilityai/stable-diffusion-2-1&quot;</span>, subfolder=<span class="hljs-string">&quot;unet&quot;</span>, torch_dtype=torch.float16
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = model.to(<span class="hljs-string">&quot;cuda&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>model.enable_xformers_memory_efficient_attention(attention_op=MemoryEfficientAttentionFlashAttentionOp)`,wrap:!1}}),{c(){n=l("p"),n.textContent=w,m=o(),p(r.$$.fragment)},l(e){n=i(e,"P",{"data-svelte-h":!0}),y(n)!=="svelte-kvfsh7"&&(n.textContent=w),m=a(e),f(r.$$.fragment,e)},m(e,M){$(e,n,M),$(e,m,M),u(r,e,M),c=!0},p:F,i(e){c||(h(r.$$.fragment,e),c=!0)},o(e){g(r.$$.fragment,e),c=!1},d(e){e&&(d(n),d(m)),b(r,e)}}}function da(U){let n,w=`To use private or <a href="https://huggingface.co/docs/hub/models-gated#gated-models" rel="nofollow">gated models</a>, log-in with <code>hf auth login</code>. You can also activate the special
<a href="https://huggingface.co/diffusers/installation.html#offline-mode" rel="nofollow">“offline-mode”</a> to use this method in a
firewalled environment.`;return{c(){n=l("p"),n.innerHTML=w},l(m){n=i(m,"P",{"data-svelte-h":!0}),y(n)!=="svelte-kjkp1z"&&(n.innerHTML=w)},m(m,r){$(m,n,r)},p:F,d(m){m&&d(n)}}}function ma(U){let n,w="Example:",m,r,c;return r=new E({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFVOZXQyRENvbmRpdGlvbk1vZGVsJTBBJTBBdW5ldCUyMCUzRCUyMFVOZXQyRENvbmRpdGlvbk1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJydW53YXltbCUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyMiUyQyUyMHN1YmZvbGRlciUzRCUyMnVuZXQlMjIp",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> UNet2DConditionModel

unet = UNet2DConditionModel.from_pretrained(<span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>, subfolder=<span class="hljs-string">&quot;unet&quot;</span>)`,wrap:!1}}),{c(){n=l("p"),n.textContent=w,m=o(),p(r.$$.fragment)},l(e){n=i(e,"P",{"data-svelte-h":!0}),y(n)!=="svelte-11lpom8"&&(n.textContent=w),m=a(e),f(r.$$.fragment,e)},m(e,M){$(e,n,M),$(e,m,M),u(r,e,M),c=!0},p:F,i(e){c||(h(r.$$.fragment,e),c=!0)},o(e){g(r.$$.fragment,e),c=!1},d(e){e&&(d(n),d(m)),b(r,e)}}}function ca(U){let n,w="If you get the error message below, you need to finetune the weights for your downstream task:",m,r,c;return r=new E({props:{code:"U29tZSUyMHdlaWdodHMlMjBvZiUyMFVOZXQyRENvbmRpdGlvbk1vZGVsJTIwd2VyZSUyMG5vdCUyMGluaXRpYWxpemVkJTIwZnJvbSUyMHRoZSUyMG1vZGVsJTIwY2hlY2twb2ludCUyMGF0JTIwcnVud2F5bWwlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTUlMjBhbmQlMjBhcmUlMjBuZXdseSUyMGluaXRpYWxpemVkJTIwYmVjYXVzZSUyMHRoZSUyMHNoYXBlcyUyMGRpZCUyMG5vdCUyMG1hdGNoJTNBJTBBLSUyMGNvbnZfaW4ud2VpZ2h0JTNBJTIwZm91bmQlMjBzaGFwZSUyMHRvcmNoLlNpemUoJTVCMzIwJTJDJTIwNCUyQyUyMDMlMkMlMjAzJTVEKSUyMGluJTIwdGhlJTIwY2hlY2twb2ludCUyMGFuZCUyMHRvcmNoLlNpemUoJTVCMzIwJTJDJTIwOSUyQyUyMDMlMkMlMjAzJTVEKSUyMGluJTIwdGhlJTIwbW9kZWwlMjBpbnN0YW50aWF0ZWQlMEFZb3UlMjBzaG91bGQlMjBwcm9iYWJseSUyMFRSQUlOJTIwdGhpcyUyMG1vZGVsJTIwb24lMjBhJTIwZG93bi1zdHJlYW0lMjB0YXNrJTIwdG8lMjBiZSUyMGFibGUlMjB0byUyMHVzZSUyMGl0JTIwZm9yJTIwcHJlZGljdGlvbnMlMjBhbmQlMjBpbmZlcmVuY2Uu",highlighted:`Some weights of UNet2DConditionModel were not initialized from the model checkpoint at runwayml/stable-diffusion-v1-5 and are newly initialized because the shapes did not match:
- conv_in.weight: found shape torch.Size([320, 4, 3, 3]) <span class="hljs-keyword">in</span> the checkpoint and torch.Size([320, 9, 3, 3]) <span class="hljs-keyword">in</span> the model instantiated
You should probably TRAIN this model on a down-stream task to be able to use it <span class="hljs-keyword">for</span> predictions and inference.`,wrap:!1}}),{c(){n=l("p"),n.textContent=w,m=o(),p(r.$$.fragment)},l(e){n=i(e,"P",{"data-svelte-h":!0}),y(n)!=="svelte-xueb0m"&&(n.textContent=w),m=a(e),f(r.$$.fragment,e)},m(e,M){$(e,n,M),$(e,m,M),u(r,e,M),c=!0},p:F,i(e){c||(h(r.$$.fragment,e),c=!0)},o(e){g(r.$$.fragment,e),c=!1},d(e){e&&(d(n),d(m)),b(r,e)}}}function pa(U){let n,w="Example:",m,r,c;return r=new E({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFVOZXQyRENvbmRpdGlvbk1vZGVsJTBBJTBBbW9kZWxfaWQlMjAlM0QlMjAlMjJydW53YXltbCUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyMiUwQXVuZXQlMjAlM0QlMjBVTmV0MkRDb25kaXRpb25Nb2RlbC5mcm9tX3ByZXRyYWluZWQobW9kZWxfaWQlMkMlMjBzdWJmb2xkZXIlM0QlMjJ1bmV0JTIyKSUwQXVuZXQubnVtX3BhcmFtZXRlcnMob25seV90cmFpbmFibGUlM0RUcnVlKSUwQTg1OTUyMDk2NA==",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> UNet2DConditionModel

model_id = <span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>
unet = UNet2DConditionModel.from_pretrained(model_id, subfolder=<span class="hljs-string">&quot;unet&quot;</span>)
unet.num_parameters(only_trainable=<span class="hljs-literal">True</span>)
<span class="hljs-number">859520964</span>`,wrap:!1}}),{c(){n=l("p"),n.textContent=w,m=o(),p(r.$$.fragment)},l(e){n=i(e,"P",{"data-svelte-h":!0}),y(n)!=="svelte-11lpom8"&&(n.textContent=w),m=a(e),f(r.$$.fragment,e)},m(e,M){$(e,n,M),$(e,m,M),u(r,e,M),c=!0},p:F,i(e){c||(h(r.$$.fragment,e),c=!0)},o(e){g(r.$$.fragment,e),c=!1},d(e){e&&(d(n),d(m)),b(r,e)}}}function fa(U){let n,w="Examples:",m,r,c;return r=new E({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEZsYXhVTmV0MkRDb25kaXRpb25Nb2RlbCUwQSUwQSUyMyUyMERvd25sb2FkJTIwbW9kZWwlMjBhbmQlMjBjb25maWd1cmF0aW9uJTIwZnJvbSUyMGh1Z2dpbmdmYWNlLmNvJTIwYW5kJTIwY2FjaGUuJTBBbW9kZWwlMkMlMjBwYXJhbXMlMjAlM0QlMjBGbGF4VU5ldDJEQ29uZGl0aW9uTW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMnJ1bndheW1sJTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTIyKSUwQSUyMyUyME1vZGVsJTIwd2FzJTIwc2F2ZWQlMjB1c2luZyUyMCpzYXZlX3ByZXRyYWluZWQoJy4lMkZ0ZXN0JTJGc2F2ZWRfbW9kZWwlMkYnKSolMjAoZm9yJTIwZXhhbXBsZSUyMHB1cnBvc2VzJTJDJTIwbm90JTIwcnVubmFibGUpLiUwQW1vZGVsJTJDJTIwcGFyYW1zJTIwJTNEJTIwRmxheFVOZXQyRENvbmRpdGlvbk1vZGVsLmZyb21fcHJldHJhaW5lZCglMjIuJTJGdGVzdCUyRnNhdmVkX21vZGVsJTJGJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> FlaxUNet2DConditionModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Download model and configuration from huggingface.co and cache.</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model, params = FlaxUNet2DConditionModel.from_pretrained(<span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Model was saved using *save_pretrained(&#x27;./test/saved_model/&#x27;)* (for example purposes, not runnable).</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model, params = FlaxUNet2DConditionModel.from_pretrained(<span class="hljs-string">&quot;./test/saved_model/&quot;</span>)`,wrap:!1}}),{c(){n=l("p"),n.textContent=w,m=o(),p(r.$$.fragment)},l(e){n=i(e,"P",{"data-svelte-h":!0}),y(n)!=="svelte-kvfsh7"&&(n.textContent=w),m=a(e),f(r.$$.fragment,e)},m(e,M){$(e,n,M),$(e,m,M),u(r,e,M),c=!0},p:F,i(e){c||(h(r.$$.fragment,e),c=!0)},o(e){g(r.$$.fragment,e),c=!1},d(e){e&&(d(n),d(m)),b(r,e)}}}function ua(U){let n,w="If you get the error message below, you need to finetune the weights for your downstream task:",m,r,c;return r=new E({props:{code:"U29tZSUyMHdlaWdodHMlMjBvZiUyMFVOZXQyRENvbmRpdGlvbk1vZGVsJTIwd2VyZSUyMG5vdCUyMGluaXRpYWxpemVkJTIwZnJvbSUyMHRoZSUyMG1vZGVsJTIwY2hlY2twb2ludCUyMGF0JTIwcnVud2F5bWwlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTUlMjBhbmQlMjBhcmUlMjBuZXdseSUyMGluaXRpYWxpemVkJTIwYmVjYXVzZSUyMHRoZSUyMHNoYXBlcyUyMGRpZCUyMG5vdCUyMG1hdGNoJTNBJTBBLSUyMGNvbnZfaW4ud2VpZ2h0JTNBJTIwZm91bmQlMjBzaGFwZSUyMHRvcmNoLlNpemUoJTVCMzIwJTJDJTIwNCUyQyUyMDMlMkMlMjAzJTVEKSUyMGluJTIwdGhlJTIwY2hlY2twb2ludCUyMGFuZCUyMHRvcmNoLlNpemUoJTVCMzIwJTJDJTIwOSUyQyUyMDMlMkMlMjAzJTVEKSUyMGluJTIwdGhlJTIwbW9kZWwlMjBpbnN0YW50aWF0ZWQlMEFZb3UlMjBzaG91bGQlMjBwcm9iYWJseSUyMFRSQUlOJTIwdGhpcyUyMG1vZGVsJTIwb24lMjBhJTIwZG93bi1zdHJlYW0lMjB0YXNrJTIwdG8lMjBiZSUyMGFibGUlMjB0byUyMHVzZSUyMGl0JTIwZm9yJTIwcHJlZGljdGlvbnMlMjBhbmQlMjBpbmZlcmVuY2Uu",highlighted:`Some weights of UNet2DConditionModel were not initialized from the model checkpoint at runwayml/stable-diffusion-v1-5 and are newly initialized because the shapes did not match:
- conv_in.weight: found shape torch.Size([320, 4, 3, 3]) <span class="hljs-keyword">in</span> the checkpoint and torch.Size([320, 9, 3, 3]) <span class="hljs-keyword">in</span> the model instantiated
You should probably TRAIN this model on a down-stream task to be able to use it <span class="hljs-keyword">for</span> predictions and inference.`,wrap:!1}}),{c(){n=l("p"),n.textContent=w,m=o(),p(r.$$.fragment)},l(e){n=i(e,"P",{"data-svelte-h":!0}),y(n)!=="svelte-xueb0m"&&(n.textContent=w),m=a(e),f(r.$$.fragment,e)},m(e,M){$(e,n,M),$(e,m,M),u(r,e,M),c=!0},p:F,i(e){c||(h(r.$$.fragment,e),c=!0)},o(e){g(r.$$.fragment,e),c=!1},d(e){e&&(d(n),d(m)),b(r,e)}}}function ha(U){let n,w="Examples:",m,r,c;return r=new E({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEZsYXhVTmV0MkRDb25kaXRpb25Nb2RlbCUwQSUwQSUyMyUyMGxvYWQlMjBtb2RlbCUwQW1vZGVsJTJDJTIwcGFyYW1zJTIwJTNEJTIwRmxheFVOZXQyRENvbmRpdGlvbk1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJydW53YXltbCUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyMiklMEElMjMlMjBCeSUyMGRlZmF1bHQlMkMlMjB0aGUlMjBtb2RlbCUyMHBhcmFtZXRlcnMlMjB3aWxsJTIwYmUlMjBpbiUyMGZwMzIlMjBwcmVjaXNpb24lMkMlMjB0byUyMGNhc3QlMjB0aGVzZSUyMHRvJTIwYmZsb2F0MTYlMjBwcmVjaXNpb24lMEFwYXJhbXMlMjAlM0QlMjBtb2RlbC50b19iZjE2KHBhcmFtcyklMEElMjMlMjBJZiUyMHlvdSUyMGRvbid0JTIwd2FudCUyMHRvJTIwY2FzdCUyMGNlcnRhaW4lMjBwYXJhbWV0ZXJzJTIwKGZvciUyMGV4YW1wbGUlMjBsYXllciUyMG5vcm0lMjBiaWFzJTIwYW5kJTIwc2NhbGUpJTBBJTIzJTIwdGhlbiUyMHBhc3MlMjB0aGUlMjBtYXNrJTIwYXMlMjBmb2xsb3dzJTBBZnJvbSUyMGZsYXglMjBpbXBvcnQlMjB0cmF2ZXJzZV91dGlsJTBBJTBBbW9kZWwlMkMlMjBwYXJhbXMlMjAlM0QlMjBGbGF4VU5ldDJEQ29uZGl0aW9uTW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMnJ1bndheW1sJTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTIyKSUwQWZsYXRfcGFyYW1zJTIwJTNEJTIwdHJhdmVyc2VfdXRpbC5mbGF0dGVuX2RpY3QocGFyYW1zKSUwQW1hc2slMjAlM0QlMjAlN0IlMEElMjAlMjAlMjAlMjBwYXRoJTNBJTIwKHBhdGglNUItMiU1RCUyMCElM0QlMjAoJTIyTGF5ZXJOb3JtJTIyJTJDJTIwJTIyYmlhcyUyMiklMjBhbmQlMjBwYXRoJTVCLTIlM0ElNUQlMjAhJTNEJTIwKCUyMkxheWVyTm9ybSUyMiUyQyUyMCUyMnNjYWxlJTIyKSklMEElMjAlMjAlMjAlMjBmb3IlMjBwYXRoJTIwaW4lMjBmbGF0X3BhcmFtcyUwQSU3RCUwQW1hc2slMjAlM0QlMjB0cmF2ZXJzZV91dGlsLnVuZmxhdHRlbl9kaWN0KG1hc2spJTBBcGFyYW1zJTIwJTNEJTIwbW9kZWwudG9fYmYxNihwYXJhbXMlMkMlMjBtYXNrKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> FlaxUNet2DConditionModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># load model</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model, params = FlaxUNet2DConditionModel.from_pretrained(<span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># By default, the model parameters will be in fp32 precision, to cast these to bfloat16 precision</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>params = model.to_bf16(params)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># If you don&#x27;t want to cast certain parameters (for example layer norm bias and scale)</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># then pass the mask as follows</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> flax <span class="hljs-keyword">import</span> traverse_util

<span class="hljs-meta">&gt;&gt;&gt; </span>model, params = FlaxUNet2DConditionModel.from_pretrained(<span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>flat_params = traverse_util.flatten_dict(params)
<span class="hljs-meta">&gt;&gt;&gt; </span>mask = {
<span class="hljs-meta">... </span>    path: (path[-<span class="hljs-number">2</span>] != (<span class="hljs-string">&quot;LayerNorm&quot;</span>, <span class="hljs-string">&quot;bias&quot;</span>) <span class="hljs-keyword">and</span> path[-<span class="hljs-number">2</span>:] != (<span class="hljs-string">&quot;LayerNorm&quot;</span>, <span class="hljs-string">&quot;scale&quot;</span>))
<span class="hljs-meta">... </span>    <span class="hljs-keyword">for</span> path <span class="hljs-keyword">in</span> flat_params
<span class="hljs-meta">... </span>}
<span class="hljs-meta">&gt;&gt;&gt; </span>mask = traverse_util.unflatten_dict(mask)
<span class="hljs-meta">&gt;&gt;&gt; </span>params = model.to_bf16(params, mask)`,wrap:!1}}),{c(){n=l("p"),n.textContent=w,m=o(),p(r.$$.fragment)},l(e){n=i(e,"P",{"data-svelte-h":!0}),y(n)!=="svelte-kvfsh7"&&(n.textContent=w),m=a(e),f(r.$$.fragment,e)},m(e,M){$(e,n,M),$(e,m,M),u(r,e,M),c=!0},p:F,i(e){c||(h(r.$$.fragment,e),c=!0)},o(e){g(r.$$.fragment,e),c=!1},d(e){e&&(d(n),d(m)),b(r,e)}}}function ga(U){let n,w="Examples:",m,r,c;return r=new E({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEZsYXhVTmV0MkRDb25kaXRpb25Nb2RlbCUwQSUwQSUyMyUyMGxvYWQlMjBtb2RlbCUwQW1vZGVsJTJDJTIwcGFyYW1zJTIwJTNEJTIwRmxheFVOZXQyRENvbmRpdGlvbk1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJydW53YXltbCUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyMiklMEElMjMlMjBCeSUyMGRlZmF1bHQlMkMlMjB0aGUlMjBtb2RlbCUyMHBhcmFtcyUyMHdpbGwlMjBiZSUyMGluJTIwZnAzMiUyQyUyMHRvJTIwY2FzdCUyMHRoZXNlJTIwdG8lMjBmbG9hdDE2JTBBcGFyYW1zJTIwJTNEJTIwbW9kZWwudG9fZnAxNihwYXJhbXMpJTBBJTIzJTIwSWYlMjB5b3UlMjB3YW50JTIwZG9uJ3QlMjB3YW50JTIwdG8lMjBjYXN0JTIwY2VydGFpbiUyMHBhcmFtZXRlcnMlMjAoZm9yJTIwZXhhbXBsZSUyMGxheWVyJTIwbm9ybSUyMGJpYXMlMjBhbmQlMjBzY2FsZSklMEElMjMlMjB0aGVuJTIwcGFzcyUyMHRoZSUyMG1hc2slMjBhcyUyMGZvbGxvd3MlMEFmcm9tJTIwZmxheCUyMGltcG9ydCUyMHRyYXZlcnNlX3V0aWwlMEElMEFtb2RlbCUyQyUyMHBhcmFtcyUyMCUzRCUyMEZsYXhVTmV0MkRDb25kaXRpb25Nb2RlbC5mcm9tX3ByZXRyYWluZWQoJTIycnVud2F5bWwlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTUlMjIpJTBBZmxhdF9wYXJhbXMlMjAlM0QlMjB0cmF2ZXJzZV91dGlsLmZsYXR0ZW5fZGljdChwYXJhbXMpJTBBbWFzayUyMCUzRCUyMCU3QiUwQSUyMCUyMCUyMCUyMHBhdGglM0ElMjAocGF0aCU1Qi0yJTVEJTIwISUzRCUyMCglMjJMYXllck5vcm0lMjIlMkMlMjAlMjJiaWFzJTIyKSUyMGFuZCUyMHBhdGglNUItMiUzQSU1RCUyMCElM0QlMjAoJTIyTGF5ZXJOb3JtJTIyJTJDJTIwJTIyc2NhbGUlMjIpKSUwQSUyMCUyMCUyMCUyMGZvciUyMHBhdGglMjBpbiUyMGZsYXRfcGFyYW1zJTBBJTdEJTBBbWFzayUyMCUzRCUyMHRyYXZlcnNlX3V0aWwudW5mbGF0dGVuX2RpY3QobWFzayklMEFwYXJhbXMlMjAlM0QlMjBtb2RlbC50b19mcDE2KHBhcmFtcyUyQyUyMG1hc2sp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> FlaxUNet2DConditionModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># load model</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model, params = FlaxUNet2DConditionModel.from_pretrained(<span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># By default, the model params will be in fp32, to cast these to float16</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>params = model.to_fp16(params)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># If you want don&#x27;t want to cast certain parameters (for example layer norm bias and scale)</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># then pass the mask as follows</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> flax <span class="hljs-keyword">import</span> traverse_util

<span class="hljs-meta">&gt;&gt;&gt; </span>model, params = FlaxUNet2DConditionModel.from_pretrained(<span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>flat_params = traverse_util.flatten_dict(params)
<span class="hljs-meta">&gt;&gt;&gt; </span>mask = {
<span class="hljs-meta">... </span>    path: (path[-<span class="hljs-number">2</span>] != (<span class="hljs-string">&quot;LayerNorm&quot;</span>, <span class="hljs-string">&quot;bias&quot;</span>) <span class="hljs-keyword">and</span> path[-<span class="hljs-number">2</span>:] != (<span class="hljs-string">&quot;LayerNorm&quot;</span>, <span class="hljs-string">&quot;scale&quot;</span>))
<span class="hljs-meta">... </span>    <span class="hljs-keyword">for</span> path <span class="hljs-keyword">in</span> flat_params
<span class="hljs-meta">... </span>}
<span class="hljs-meta">&gt;&gt;&gt; </span>mask = traverse_util.unflatten_dict(mask)
<span class="hljs-meta">&gt;&gt;&gt; </span>params = model.to_fp16(params, mask)`,wrap:!1}}),{c(){n=l("p"),n.textContent=w,m=o(),p(r.$$.fragment)},l(e){n=i(e,"P",{"data-svelte-h":!0}),y(n)!=="svelte-kvfsh7"&&(n.textContent=w),m=a(e),f(r.$$.fragment,e)},m(e,M){$(e,n,M),$(e,m,M),u(r,e,M),c=!0},p:F,i(e){c||(h(r.$$.fragment,e),c=!0)},o(e){g(r.$$.fragment,e),c=!1},d(e){e&&(d(n),d(m)),b(r,e)}}}function ba(U){let n,w="Examples:",m,r,c;return r=new E({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEZsYXhVTmV0MkRDb25kaXRpb25Nb2RlbCUwQSUwQSUyMyUyMERvd25sb2FkJTIwbW9kZWwlMjBhbmQlMjBjb25maWd1cmF0aW9uJTIwZnJvbSUyMGh1Z2dpbmdmYWNlLmNvJTBBbW9kZWwlMkMlMjBwYXJhbXMlMjAlM0QlMjBGbGF4VU5ldDJEQ29uZGl0aW9uTW9kZWwuZnJvbV9wcmV0cmFpbmVkKCUyMnJ1bndheW1sJTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTIyKSUwQSUyMyUyMEJ5JTIwZGVmYXVsdCUyQyUyMHRoZSUyMG1vZGVsJTIwcGFyYW1zJTIwd2lsbCUyMGJlJTIwaW4lMjBmcDMyJTJDJTIwdG8lMjBpbGx1c3RyYXRlJTIwdGhlJTIwdXNlJTIwb2YlMjB0aGlzJTIwbWV0aG9kJTJDJTBBJTIzJTIwd2UnbGwlMjBmaXJzdCUyMGNhc3QlMjB0byUyMGZwMTYlMjBhbmQlMjBiYWNrJTIwdG8lMjBmcDMyJTBBcGFyYW1zJTIwJTNEJTIwbW9kZWwudG9fZjE2KHBhcmFtcyklMEElMjMlMjBub3clMjBjYXN0JTIwYmFjayUyMHRvJTIwZnAzMiUwQXBhcmFtcyUyMCUzRCUyMG1vZGVsLnRvX2ZwMzIocGFyYW1zKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> FlaxUNet2DConditionModel

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># Download model and configuration from huggingface.co</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>model, params = FlaxUNet2DConditionModel.from_pretrained(<span class="hljs-string">&quot;runwayml/stable-diffusion-v1-5&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># By default, the model params will be in fp32, to illustrate the use of this method,</span>
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># we&#x27;ll first cast to fp16 and back to fp32</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>params = model.to_f16(params)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-comment"># now cast back to fp32</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>params = model.to_fp32(params)`,wrap:!1}}),{c(){n=l("p"),n.textContent=w,m=o(),p(r.$$.fragment)},l(e){n=i(e,"P",{"data-svelte-h":!0}),y(n)!=="svelte-kvfsh7"&&(n.textContent=w),m=a(e),f(r.$$.fragment,e)},m(e,M){$(e,n,M),$(e,m,M),u(r,e,M),c=!0},p:F,i(e){c||(h(r.$$.fragment,e),c=!0)},o(e){g(r.$$.fragment,e),c=!1},d(e){e&&(d(n),d(m)),b(r,e)}}}function ya(U){let n,w="Examples:",m,r,c;return r=new E({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFVOZXQyRENvbmRpdGlvbk1vZGVsJTBBJTBBdW5ldCUyMCUzRCUyMFVOZXQyRENvbmRpdGlvbk1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJzdGFiaWxpdHlhaSUyRnN0YWJsZS1kaWZmdXNpb24tMiUyMiUyQyUyMHN1YmZvbGRlciUzRCUyMnVuZXQlMjIpJTBBJTBBJTIzJTIwUHVzaCUyMHRoZSUyMCU2MHVuZXQlNjAlMjB0byUyMHlvdXIlMjBuYW1lc3BhY2UlMjB3aXRoJTIwdGhlJTIwbmFtZSUyMCUyMm15LWZpbmV0dW5lZC11bmV0JTIyLiUwQXVuZXQucHVzaF90b19odWIoJTIybXktZmluZXR1bmVkLXVuZXQlMjIpJTBBJTBBJTIzJTIwUHVzaCUyMHRoZSUyMCU2MHVuZXQlNjAlMjB0byUyMGFuJTIwb3JnYW5pemF0aW9uJTIwd2l0aCUyMHRoZSUyMG5hbWUlMjAlMjJteS1maW5ldHVuZWQtdW5ldCUyMi4lMEF1bmV0LnB1c2hfdG9faHViKCUyMnlvdXItb3JnJTJGbXktZmluZXR1bmVkLXVuZXQlMjIp",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> UNet2DConditionModel

unet = UNet2DConditionModel.from_pretrained(<span class="hljs-string">&quot;stabilityai/stable-diffusion-2&quot;</span>, subfolder=<span class="hljs-string">&quot;unet&quot;</span>)

<span class="hljs-comment"># Push the \`unet\` to your namespace with the name &quot;my-finetuned-unet&quot;.</span>
unet.push_to_hub(<span class="hljs-string">&quot;my-finetuned-unet&quot;</span>)

<span class="hljs-comment"># Push the \`unet\` to an organization with the name &quot;my-finetuned-unet&quot;.</span>
unet.push_to_hub(<span class="hljs-string">&quot;your-org/my-finetuned-unet&quot;</span>)`,wrap:!1}}),{c(){n=l("p"),n.textContent=w,m=o(),p(r.$$.fragment)},l(e){n=i(e,"P",{"data-svelte-h":!0}),y(n)!=="svelte-kvfsh7"&&(n.textContent=w),m=a(e),f(r.$$.fragment,e)},m(e,M){$(e,n,M),$(e,m,M),u(r,e,M),c=!0},p:F,i(e){c||(h(r.$$.fragment,e),c=!0)},o(e){g(r.$$.fragment,e),c=!1},d(e){e&&(d(n),d(m)),b(r,e)}}}function Ma(U){let n,w,m,r,c,e,M,ks,ds,qo='<span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>p</mi><mi>θ</mi></msub><mo stretchy="false">(</mo><msub><mi>x</mi><mrow><mi>t</mi><mo>−</mo><mn>1</mn></mrow></msub><mi mathvariant="normal">∣</mi><msub><mi>x</mi><mi>t</mi></msub><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">p_{\\theta}(x_{t-1}|x_{t})</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord"><span class="mord mathnormal">p</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.3361em;"><span style="top:-2.55em;margin-left:0em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathnormal mtight" style="margin-right:0.02778em;">θ</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span><span class="mopen">(</span><span class="mord"><span class="mord mathnormal">x</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.3011em;"><span style="top:-2.55em;margin-left:0em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathnormal mtight">t</span><span class="mbin mtight">−</span><span class="mord mtight">1</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.2083em;"><span></span></span></span></span></span></span><span class="mord">∣</span><span class="mord"><span class="mord mathnormal">x</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.2806em;"><span style="top:-2.55em;margin-left:0em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathnormal mtight">t</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span><span class="mclose">)</span></span></span></span>',ms,cs,ke,no='All models are built from the base <a href="/docs/diffusers/main/en/api/models/overview#diffusers.ModelMixin">ModelMixin</a> class which is a <a href="https://pytorch.org/docs/stable/generated/torch.nn.Module.html" rel="nofollow"><code>torch.nn.Module</code></a> providing basic functionality for saving and loading models, locally and from the Hugging Face Hub.',ps,Je,fs,v,Ze,Js,gt,oo="Base class for all models.",Zs,bt,ao=`<a href="/docs/diffusers/main/en/api/models/overview#diffusers.ModelMixin">ModelMixin</a> takes care of storing the model configuration and provides methods for loading, downloading and
saving models.`,Cs,yt,ro='<li><strong>config_name</strong> (<code>str</code>) — Filename to save a model to when calling <a href="/docs/diffusers/main/en/api/models/overview#diffusers.ModelMixin.save_pretrained">save_pretrained()</a>.</li>',Gs,B,Ce,Is,Mt,lo=`Compiles <em>only</em> the frequently repeated sub-modules of a model (e.g. the Transformer layers) instead of
compiling the entire model. This technique—often called <strong>regional compilation</strong> (see the PyTorch recipe
<a href="https://docs.pytorch.org/tutorials/recipes/regional_compilation.html" rel="nofollow">https://docs.pytorch.org/tutorials/recipes/regional_compilation.html</a>) can reduce end-to-end compile time
substantially, while preserving the runtime speed-ups you would expect from a full <code>torch.compile</code>.`,Ws,_t,io=`The set of sub-modules to compile is discovered by the presence of <strong><code>_repeated_blocks</code></strong> attribute in the
model definition. Define this attribute on your model subclass as a list/tuple of class names (strings). Every
module whose class name matches will be compiled.`,Fs,vt,mo=`Once discovered, each matching sub-module is compiled by calling <code>submodule.compile(*args, **kwargs)</code>. Any
positional or keyword arguments you supply to <code>compile_repeated_blocks</code> are forwarded verbatim to
<code>torch.compile</code>.`,Vs,A,Ge,Bs,xt,co=`Potentially dequantize the model in case it has been quantized by a quantization method that support
dequantization.`,Rs,O,Ie,Ns,wt,po=`Deactivates gradient checkpointing for the current model (may be referred to as <em>activation checkpointing</em> or
<em>checkpoint activations</em> in other frameworks).`,Hs,K,We,Xs,$t,fo="disable npu flash attention from torch_npu",Ys,ee,Fe,zs,Tt,uo='Disable memory efficient attention from <a href="https://facebookresearch.github.io/xformers/" rel="nofollow">xFormers</a>.',Es,te,Ve,Ds,Ut,ho="Disable the flash attention pallals kernel for torch_xla.",Qs,se,Be,Ss,jt,go=`Activates gradient checkpointing for the current model (may be referred to as <em>activation checkpointing</em> or
<em>checkpoint activations</em> in other frameworks).`,Ls,R,Re,Ps,kt,bo="Activates group offloading for the current model.",qs,Jt,yo='See <a href="/docs/diffusers/main/en/api/utilities#diffusers.hooks.apply_group_offloading">apply_group_offloading()</a> for more information.',As,ne,Os,C,Ne,Ks,Zt,Mo="Activates layerwise casting for the current model.",en,Ct,_o=`Layerwise casting is a technique that casts the model weights to a lower precision dtype for storage but
upcasts them on-the-fly to a higher precision dtype for computation. This process can significantly reduce the
memory footprint from model weights, but may lead to some quality degradation in the outputs. Most degradations
are negligible, mostly stemming from weight casting in normalization and modulation layers.`,tn,Gt,vo=`By default, most models in diffusers set the <code>_skip_layerwise_casting_patterns</code> attribute to ignore patch
embedding, positional embedding and normalization layers. This is because these layers are most likely
precision-critical for quality. If you wish to change this behavior, you can set the
<code>_skip_layerwise_casting_patterns</code> attribute to <code>None</code>, or call
<a href="/docs/diffusers/main/en/api/utilities#diffusers.hooks.apply_layerwise_casting">apply_layerwise_casting()</a> with custom arguments.`,sn,It,xo="Example:",nn,oe,on,ae,He,an,Wt,wo="Enable npu flash attention from torch_npu",rn,W,Xe,ln,Ft,$o='Enable memory efficient attention from <a href="https://facebookresearch.github.io/xformers/" rel="nofollow">xFormers</a>.',dn,Vt,To=`When this option is enabled, you should observe lower GPU memory usage and a potential speed up during
inference. Speed up during training is not guaranteed.`,mn,re,cn,le,pn,ie,Ye,fn,Bt,Uo="Enable the flash attention pallals kernel for torch_xla.",un,G,ze,hn,Rt,jo="Instantiate a pretrained PyTorch model from a pretrained model configuration.",gn,Nt,ko=`The model is set in evaluation mode - <code>model.eval()</code> - by default, and dropout modules are deactivated. To
train the model, set it back in training mode with <code>model.train()</code>.`,bn,de,yn,me,Mn,ce,_n,pe,Ee,vn,Ht,Jo=`Get the memory footprint of a model. This will return the memory footprint of the current model in bytes.
Useful to benchmark the memory footprint of the current model and design some tests. Solution inspired from the
PyTorch discussions: <a href="https://discuss.pytorch.org/t/gpu-memory-that-model-uses/56822/2" rel="nofollow">https://discuss.pytorch.org/t/gpu-memory-that-model-uses/56822/2</a>`,xn,L,De,wn,Xt,Zo="Get number of (trainable or non-embedding) parameters in the module.",$n,fe,Tn,ue,Qe,Un,Yt,Co=`Resets the attention backend for the model. Following calls to <code>forward</code> will use the environment default or
the torch native scaled dot product attention.`,jn,he,Se,kn,zt,Go=`Save a model and its configuration file to a directory so that it can be reloaded using the
<a href="/docs/diffusers/main/en/api/models/overview#diffusers.ModelMixin.from_pretrained">from_pretrained()</a> class method.`,Jn,ge,Le,Zn,Et,Io="Set the attention backend for the model.",Cn,be,Pe,Gn,Dt,Wo="Set the switch for the npu flash attention.",us,qe,hs,J,Ae,In,Qt,Fo="Base class for all Flax models.",Wn,St,Vo=`<a href="/docs/diffusers/main/en/api/models/overview#diffusers.FlaxModelMixin">FlaxModelMixin</a> takes care of storing the model configuration and provides methods for loading, downloading and
saving models.`,Fn,Lt,Bo='<li><strong>config_name</strong> (<code>str</code>) — Filename to save a model to when calling <a href="/docs/diffusers/main/en/api/models/overview#diffusers.FlaxModelMixin.save_pretrained">save_pretrained()</a>.</li>',Vn,N,Oe,Bn,Pt,Ro="Instantiate a pretrained Flax model from a pretrained model configuration.",Rn,ye,Nn,Me,Hn,_e,Ke,Xn,qt,No=`Save a model and its configuration file to a directory so that it can be reloaded using the
<a href="/docs/diffusers/main/en/api/models/overview#diffusers.FlaxModelMixin.from_pretrained">from_pretrained()</a> class method.`,Yn,H,et,zn,At,Ho=`Cast the floating-point <code>params</code> to <code>jax.numpy.bfloat16</code>. This returns a new <code>params</code> tree and does not cast
the <code>params</code> in place.`,En,Ot,Xo=`This method can be used on a TPU to explicitly convert the model parameters to bfloat16 precision to do full
half-precision training or to save weights in bfloat16 for inference in order to save memory and improve speed.`,Dn,ve,Qn,X,tt,Sn,Kt,Yo=`Cast the floating-point <code>params</code> to <code>jax.numpy.float16</code>. This returns a new <code>params</code> tree and does not cast the
<code>params</code> in place.`,Ln,es,zo=`This method can be used on a GPU to explicitly convert the model parameters to float16 precision to do full
half-precision training or to save weights in float16 for inference in order to save memory and improve speed.`,Pn,xe,qn,P,st,An,ts,Eo=`Cast the floating-point <code>params</code> to <code>jax.numpy.float32</code>. This method can be used to explicitly convert the
model parameters to fp32 precision. This returns a new <code>params</code> tree and does not cast the <code>params</code> in place.`,On,we,gs,nt,bs,D,ot,Kn,ss,Do="A Mixin to push a model, scheduler, or pipeline to the Hugging Face Hub.",eo,q,at,to,ns,Qo="Upload model, scheduler, or pipeline files to the 🤗 Hugging Face Hub.",so,$e,ys,rt,Ms,is,_s;return c=new js({props:{title:"Models",local:"models",headingTag:"h1"}}),Je=new js({props:{title:"ModelMixin",local:"diffusers.ModelMixin",headingTag:"h2"}}),Ze=new k({props:{name:"class diffusers.ModelMixin",anchor:"diffusers.ModelMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/modeling_utils.py#L233"}}),Ce=new k({props:{name:"compile_repeated_blocks",anchor:"diffusers.ModelMixin.compile_repeated_blocks",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/modeling_utils.py#L1449"}}),Ge=new k({props:{name:"dequantize",anchor:"diffusers.ModelMixin.dequantize",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/modeling_utils.py#L796"}}),Ie=new k({props:{name:"disable_gradient_checkpointing",anchor:"diffusers.ModelMixin.disable_gradient_checkpointing",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/modeling_utils.py#L313"}}),We=new k({props:{name:"disable_npu_flash_attention",anchor:"diffusers.ModelMixin.disable_npu_flash_attention",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/modeling_utils.py#L344"}}),Fe=new k({props:{name:"disable_xformers_memory_efficient_attention",anchor:"diffusers.ModelMixin.disable_xformers_memory_efficient_attention",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/modeling_utils.py#L433"}}),Ve=new k({props:{name:"disable_xla_flash_attention",anchor:"diffusers.ModelMixin.disable_xla_flash_attention",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/modeling_utils.py#L374"}}),Be=new k({props:{name:"enable_gradient_checkpointing",anchor:"diffusers.ModelMixin.enable_gradient_checkpointing",parameters:[{name:"gradient_checkpointing_func",val:": typing.Optional[typing.Callable] = None"}],parametersDescription:[{anchor:"diffusers.ModelMixin.enable_gradient_checkpointing.gradient_checkpointing_func",description:`<strong>gradient_checkpointing_func</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
The function to use for gradient checkpointing. If <code>None</code>, the default PyTorch checkpointing function
is used (<code>torch.utils.checkpoint.checkpoint</code>).`,name:"gradient_checkpointing_func"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/modeling_utils.py#L283"}}),Re=new k({props:{name:"enable_group_offload",anchor:"diffusers.ModelMixin.enable_group_offload",parameters:[{name:"onload_device",val:": device"},{name:"offload_device",val:": device = device(type='cpu')"},{name:"offload_type",val:": str = 'block_level'"},{name:"num_blocks_per_group",val:": typing.Optional[int] = None"},{name:"non_blocking",val:": bool = False"},{name:"use_stream",val:": bool = False"},{name:"record_stream",val:": bool = False"},{name:"low_cpu_mem_usage",val:" = False"},{name:"offload_to_disk_path",val:": typing.Optional[str] = None"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/modeling_utils.py#L524"}}),ne=new z({props:{anchor:"diffusers.ModelMixin.enable_group_offload.example",$$slots:{default:[aa]},$$scope:{ctx:U}}}),Ne=new k({props:{name:"enable_layerwise_casting",anchor:"diffusers.ModelMixin.enable_layerwise_casting",parameters:[{name:"storage_dtype",val:": dtype = torch.float8_e4m3fn"},{name:"compute_dtype",val:": typing.Optional[torch.dtype] = None"},{name:"skip_modules_pattern",val:": typing.Optional[typing.Tuple[str, ...]] = None"},{name:"skip_modules_classes",val:": typing.Optional[typing.Tuple[typing.Type[torch.nn.modules.module.Module], ...]] = None"},{name:"non_blocking",val:": bool = False"}],parametersDescription:[{anchor:"diffusers.ModelMixin.enable_layerwise_casting.storage_dtype",description:`<strong>storage_dtype</strong> (<code>torch.dtype</code>) &#x2014;
The dtype to which the model should be cast for storage.`,name:"storage_dtype"},{anchor:"diffusers.ModelMixin.enable_layerwise_casting.compute_dtype",description:`<strong>compute_dtype</strong> (<code>torch.dtype</code>) &#x2014;
The dtype to which the model weights should be cast during the forward pass.`,name:"compute_dtype"},{anchor:"diffusers.ModelMixin.enable_layerwise_casting.skip_modules_pattern",description:`<strong>skip_modules_pattern</strong> (<code>Tuple[str, ...]</code>, <em>optional</em>) &#x2014;
A list of patterns to match the names of the modules to skip during the layerwise casting process. If
set to <code>None</code>, default skip patterns are used to ignore certain internal layers of modules and PEFT
layers.`,name:"skip_modules_pattern"},{anchor:"diffusers.ModelMixin.enable_layerwise_casting.skip_modules_classes",description:`<strong>skip_modules_classes</strong> (<code>Tuple[Type[torch.nn.Module], ...]</code>, <em>optional</em>) &#x2014;
A list of module classes to skip during the layerwise casting process.`,name:"skip_modules_classes"},{anchor:"diffusers.ModelMixin.enable_layerwise_casting.non_blocking",description:`<strong>non_blocking</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
If <code>True</code>, the weight casting operations are non-blocking.`,name:"non_blocking"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/modeling_utils.py#L439"}}),oe=new z({props:{anchor:"diffusers.ModelMixin.enable_layerwise_casting.example",$$slots:{default:[ra]},$$scope:{ctx:U}}}),He=new k({props:{name:"enable_npu_flash_attention",anchor:"diffusers.ModelMixin.enable_npu_flash_attention",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/modeling_utils.py#L337"}}),Xe=new k({props:{name:"enable_xformers_memory_efficient_attention",anchor:"diffusers.ModelMixin.enable_xformers_memory_efficient_attention",parameters:[{name:"attention_op",val:": typing.Optional[typing.Callable] = None"}],parametersDescription:[{anchor:"diffusers.ModelMixin.enable_xformers_memory_efficient_attention.attention_op",description:`<strong>attention_op</strong> (<code>Callable</code>, <em>optional</em>) &#x2014;
Override the default <code>None</code> operator for use as <code>op</code> argument to the
<a href="https://facebookresearch.github.io/xformers/components/ops.html#xformers.ops.memory_efficient_attention" rel="nofollow"><code>memory_efficient_attention()</code></a>
function of xFormers.`,name:"attention_op"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/modeling_utils.py#L397"}}),re=new Po({props:{warning:!0,$$slots:{default:[la]},$$scope:{ctx:U}}}),le=new z({props:{anchor:"diffusers.ModelMixin.enable_xformers_memory_efficient_attention.example",$$slots:{default:[ia]},$$scope:{ctx:U}}}),Ye=new k({props:{name:"enable_xla_flash_attention",anchor:"diffusers.ModelMixin.enable_xla_flash_attention",parameters:[{name:"partition_spec",val:": typing.Optional[typing.Callable] = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/modeling_utils.py#L368"}}),ze=new k({props:{name:"from_pretrained",anchor:"diffusers.ModelMixin.from_pretrained",parameters:[{name:"pretrained_model_name_or_path",val:": typing.Union[str, os.PathLike, NoneType]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.ModelMixin.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>, <em>optional</em>) &#x2014;
Can be either:</p>
<ul>
<li>A string, the <em>model id</em> (for example <code>google/ddpm-celebahq-256</code>) of a pretrained model hosted on
the Hub.</li>
<li>A path to a <em>directory</em> (for example <code>./my_model_directory</code>) containing the model weights saved
with <a href="/docs/diffusers/main/en/api/models/overview#diffusers.ModelMixin.save_pretrained">save_pretrained()</a>.</li>
</ul>`,name:"pretrained_model_name_or_path"},{anchor:"diffusers.ModelMixin.from_pretrained.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.ModelMixin.from_pretrained.torch_dtype",description:`<strong>torch_dtype</strong> (<code>torch.dtype</code>, <em>optional</em>) &#x2014;
Override the default <code>torch.dtype</code> and load the model with another dtype.`,name:"torch_dtype"},{anchor:"diffusers.ModelMixin.from_pretrained.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.ModelMixin.from_pretrained.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.ModelMixin.from_pretrained.output_loading_info",description:`<strong>output_loading_info</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to also return a dictionary containing missing keys, unexpected keys and error messages.`,name:"output_loading_info"},{anchor:"diffusers.ModelMixin.from_pretrained.local_files_only(bool,",description:`<strong>local_files_only(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only(bool,"},{anchor:"diffusers.ModelMixin.from_pretrained.token",description:`<strong>token</strong> (<code>str</code> or <em>bool</em>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If <code>True</code>, the token generated from
<code>diffusers-cli login</code> (stored in <code>~/.huggingface</code>) is used.`,name:"token"},{anchor:"diffusers.ModelMixin.from_pretrained.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.ModelMixin.from_pretrained.from_flax",description:`<strong>from_flax</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Load the model weights from a Flax checkpoint save file.`,name:"from_flax"},{anchor:"diffusers.ModelMixin.from_pretrained.subfolder",description:`<strong>subfolder</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;&quot;</code>) &#x2014;
The subfolder location of a model file within a larger model repository on the Hub or locally.`,name:"subfolder"},{anchor:"diffusers.ModelMixin.from_pretrained.mirror",description:`<strong>mirror</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Mirror source to resolve accessibility issues if you&#x2019;re downloading a model in China. We do not
guarantee the timeliness or safety of the source, and you should refer to the mirror site for more
information.`,name:"mirror"},{anchor:"diffusers.ModelMixin.from_pretrained.device_map",description:`<strong>device_map</strong> (<code>Union[int, str, torch.device]</code> or <code>Dict[str, Union[int, str, torch.device]]</code>, <em>optional</em>) &#x2014;
A map that specifies where each submodule should go. It doesn&#x2019;t need to be defined for each
parameter/buffer name; once a given module name is inside, every submodule of it will be sent to the
same device. Defaults to <code>None</code>, meaning that the model will be loaded on CPU.</p>
<p>Examples:`,name:"device_map"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/modeling_utils.py#L808"}}),de=new Po({props:{$$slots:{default:[da]},$$scope:{ctx:U}}}),me=new z({props:{anchor:"diffusers.ModelMixin.from_pretrained.example",$$slots:{default:[ma]},$$scope:{ctx:U}}}),ce=new z({props:{anchor:"diffusers.ModelMixin.from_pretrained.example-2",$$slots:{default:[ca]},$$scope:{ctx:U}}}),Ee=new k({props:{name:"get_memory_footprint",anchor:"diffusers.ModelMixin.get_memory_footprint",parameters:[{name:"return_buffers",val:" = True"}],parametersDescription:[{anchor:"diffusers.ModelMixin.get_memory_footprint.return_buffers",description:`<strong>return_buffers</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to return the size of the buffer tensors in the computation of the memory footprint. Buffers
are tensors that do not require gradients and not registered as parameters. E.g. mean and std in batch
norm layers. Please see: <a href="https://discuss.pytorch.org/t/what-pytorch-means-by-buffers/120266/2" rel="nofollow">https://discuss.pytorch.org/t/what-pytorch-means-by-buffers/120266/2</a>`,name:"return_buffers"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/modeling_utils.py#L1785"}}),De=new k({props:{name:"num_parameters",anchor:"diffusers.ModelMixin.num_parameters",parameters:[{name:"only_trainable",val:": bool = False"},{name:"exclude_embeddings",val:": bool = False"}],parametersDescription:[{anchor:"diffusers.ModelMixin.num_parameters.only_trainable",description:`<strong>only_trainable</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to return only the number of trainable parameters.`,name:"only_trainable"},{anchor:"diffusers.ModelMixin.num_parameters.exclude_embeddings",description:`<strong>exclude_embeddings</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to return only the number of non-embedding parameters.`,name:"exclude_embeddings"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/modeling_utils.py#L1721",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The number of parameters.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>int</code></p>
`}}),fe=new z({props:{anchor:"diffusers.ModelMixin.num_parameters.example",$$slots:{default:[pa]},$$scope:{ctx:U}}}),Qe=new k({props:{name:"reset_attention_backend",anchor:"diffusers.ModelMixin.reset_attention_backend",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/modeling_utils.py#L622"}}),Se=new k({props:{name:"save_pretrained",anchor:"diffusers.ModelMixin.save_pretrained",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"is_main_process",val:": bool = True"},{name:"save_function",val:": typing.Optional[typing.Callable] = None"},{name:"safe_serialization",val:": bool = True"},{name:"variant",val:": typing.Optional[str] = None"},{name:"max_shard_size",val:": typing.Union[int, str] = '10GB'"},{name:"push_to_hub",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.ModelMixin.save_pretrained.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory to save a model and its configuration file to. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"diffusers.ModelMixin.save_pretrained.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether the process calling this is the main process or not. Useful during distributed training and you
need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on the main
process to avoid race conditions.`,name:"is_main_process"},{anchor:"diffusers.ModelMixin.save_pretrained.save_function",description:`<strong>save_function</strong> (<code>Callable</code>) &#x2014;
The function to use to save the state dictionary. Useful during distributed training when you need to
replace <code>torch.save</code> with another method. Can be configured with the environment variable
<code>DIFFUSERS_SAVE_MODE</code>.`,name:"save_function"},{anchor:"diffusers.ModelMixin.save_pretrained.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether to save the model using <code>safetensors</code> or the traditional PyTorch way with <code>pickle</code>.`,name:"safe_serialization"},{anchor:"diffusers.ModelMixin.save_pretrained.variant",description:`<strong>variant</strong> (<code>str</code>, <em>optional</em>) &#x2014;
If specified, weights are saved in the format <code>pytorch_model.&lt;variant&gt;.bin</code>.`,name:"variant"},{anchor:"diffusers.ModelMixin.save_pretrained.max_shard_size",description:`<strong>max_shard_size</strong> (<code>int</code> or <code>str</code>, defaults to <code>&quot;10GB&quot;</code>) &#x2014;
The maximum size for a checkpoint before being sharded. Checkpoints shard will then be each of size
lower than this size. If expressed as a string, needs to be digits followed by a unit (like <code>&quot;5GB&quot;</code>).
If expressed as an integer, the unit is bytes. Note that this limit will be decreased after a certain
period of time (starting from Oct 2024) to allow users to upgrade to the latest version of <code>diffusers</code>.
This is to establish a common default size for this argument across different libraries in the Hugging
Face ecosystem (<code>transformers</code>, and <code>accelerate</code>, for example).`,name:"max_shard_size"},{anchor:"diffusers.ModelMixin.save_pretrained.push_to_hub",description:`<strong>push_to_hub</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to push your model to the Hugging Face Hub after saving it. You can specify the
repository you want to push to with <code>repo_id</code> (will default to the name of <code>save_directory</code> in your
namespace).`,name:"push_to_hub"},{anchor:"diffusers.ModelMixin.save_pretrained.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional keyword arguments passed along to the <a href="/docs/diffusers/main/en/api/schedulers/overview#diffusers.utils.PushToHubMixin.push_to_hub">push_to_hub()</a> method.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/modeling_utils.py#L641"}}),Le=new k({props:{name:"set_attention_backend",anchor:"diffusers.ModelMixin.set_attention_backend",parameters:[{name:"backend",val:": str"}],parametersDescription:[{anchor:"diffusers.ModelMixin.set_attention_backend.backend",description:`<strong>backend</strong> (<code>str</code>) &#x2014;
The name of the backend to set. Must be one of the available backends defined in
<code>AttentionBackendName</code>. Available backends can be found in
<code>diffusers.attention_dispatch.AttentionBackendName</code>. Defaults to torch native scaled dot product
attention as backend.`,name:"backend"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/modeling_utils.py#L587"}}),Pe=new k({props:{name:"set_use_npu_flash_attention",anchor:"diffusers.ModelMixin.set_use_npu_flash_attention",parameters:[{name:"valid",val:": bool"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/modeling_utils.py#L321"}}),qe=new js({props:{title:"FlaxModelMixin",local:"diffusers.FlaxModelMixin",headingTag:"h2"}}),Ae=new k({props:{name:"class diffusers.FlaxModelMixin",anchor:"diffusers.FlaxModelMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/modeling_flax_utils.py#L50"}}),Oe=new k({props:{name:"from_pretrained",anchor:"diffusers.FlaxModelMixin.from_pretrained",parameters:[{name:"pretrained_model_name_or_path",val:": typing.Union[str, os.PathLike]"},{name:"dtype",val:": dtype = <class 'jax.numpy.float32'>"},{name:"*model_args",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.FlaxModelMixin.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Can be either:</p>
<ul>
<li>A string, the <em>model id</em> (for example <code>runwayml/stable-diffusion-v1-5</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
using <a href="/docs/diffusers/main/en/api/models/overview#diffusers.FlaxModelMixin.save_pretrained">save_pretrained()</a>.</li>
</ul>`,name:"pretrained_model_name_or_path"},{anchor:"diffusers.FlaxModelMixin.from_pretrained.dtype",description:`<strong>dtype</strong> (<code>jax.numpy.dtype</code>, <em>optional</em>, defaults to <code>jax.numpy.float32</code>) &#x2014;
The data type of the computation. Can be one of <code>jax.numpy.float32</code>, <code>jax.numpy.float16</code> (on GPUs) and
<code>jax.numpy.bfloat16</code> (on TPUs).</p>
<p>This can be used to enable mixed-precision training or half-precision inference on GPUs or TPUs. If
specified, all the computation will be performed with the given <code>dtype</code>.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						
<p>This only specifies the dtype of the <em>computation</em> and does not influence the dtype of model
parameters.</p>
<p>If you wish to change the dtype of the model parameters, see <a href="/docs/diffusers/main/en/api/models/overview#diffusers.FlaxModelMixin.to_fp16">to_fp16()</a> and
<a href="/docs/diffusers/main/en/api/models/overview#diffusers.FlaxModelMixin.to_bf16">to_bf16()</a>.</p>

					</div>`,name:"dtype"},{anchor:"diffusers.FlaxModelMixin.from_pretrained.model_args",description:`<strong>model_args</strong> (sequence of positional arguments, <em>optional</em>) &#x2014;
All remaining positional arguments are passed to the underlying model&#x2019;s <code>__init__</code> method.`,name:"model_args"},{anchor:"diffusers.FlaxModelMixin.from_pretrained.cache_dir",description:`<strong>cache_dir</strong> (<code>Union[str, os.PathLike]</code>, <em>optional</em>) &#x2014;
Path to a directory where a downloaded pretrained model configuration is cached if the standard cache
is not used.`,name:"cache_dir"},{anchor:"diffusers.FlaxModelMixin.from_pretrained.force_download",description:`<strong>force_download</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to force the (re-)download of the model weights and configuration files, overriding the
cached versions if they exist.`,name:"force_download"},{anchor:"diffusers.FlaxModelMixin.from_pretrained.proxies",description:`<strong>proxies</strong> (<code>Dict[str, str]</code>, <em>optional</em>) &#x2014;
A dictionary of proxy servers to use by protocol or endpoint, for example, <code>{&apos;http&apos;: &apos;foo.bar:3128&apos;, &apos;http://hostname&apos;: &apos;foo.bar:4012&apos;}</code>. The proxies are used on each request.`,name:"proxies"},{anchor:"diffusers.FlaxModelMixin.from_pretrained.local_files_only(bool,",description:`<strong>local_files_only(<code>bool</code>,</strong> <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to only load local model weights and configuration files or not. If set to <code>True</code>, the model
won&#x2019;t be downloaded from the Hub.`,name:"local_files_only(bool,"},{anchor:"diffusers.FlaxModelMixin.from_pretrained.revision",description:`<strong>revision</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;main&quot;</code>) &#x2014;
The specific model version to use. It can be a branch name, a tag name, a commit id, or any identifier
allowed by Git.`,name:"revision"},{anchor:"diffusers.FlaxModelMixin.from_pretrained.from_pt",description:`<strong>from_pt</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Load the model weights from a PyTorch checkpoint save file.`,name:"from_pt"},{anchor:"diffusers.FlaxModelMixin.from_pretrained.kwargs",description:`<strong>kwargs</strong> (remaining dictionary of keyword arguments, <em>optional</em>) &#x2014;
Can be used to update the configuration object (after it is loaded) and initiate the model (for
example, <code>output_attentions=True</code>). Behaves differently depending on whether a <code>config</code> is provided or
automatically loaded:</p>
<ul>
<li>If a configuration is provided with <code>config</code>, <code>kwargs</code> are directly passed to the underlying
model&#x2019;s <code>__init__</code> method (we assume all relevant updates to the configuration have already been
done).</li>
<li>If a configuration is not provided, <code>kwargs</code> are first passed to the configuration class
initialization function <a href="/docs/diffusers/main/en/api/configuration#diffusers.ConfigMixin.from_config">from_config()</a>. Each key of the <code>kwargs</code> that corresponds
to a configuration attribute is used to override said attribute with the supplied <code>kwargs</code> value.
Remaining keys that do not correspond to any configuration attribute are passed to the underlying
model&#x2019;s <code>__init__</code> function.</li>
</ul>`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/modeling_flax_utils.py#L203"}}),ye=new z({props:{anchor:"diffusers.FlaxModelMixin.from_pretrained.example",$$slots:{default:[fa]},$$scope:{ctx:U}}}),Me=new z({props:{anchor:"diffusers.FlaxModelMixin.from_pretrained.example-2",$$slots:{default:[ua]},$$scope:{ctx:U}}}),Ke=new k({props:{name:"save_pretrained",anchor:"diffusers.FlaxModelMixin.save_pretrained",parameters:[{name:"save_directory",val:": typing.Union[str, os.PathLike]"},{name:"params",val:": typing.Union[typing.Dict, flax.core.frozen_dict.FrozenDict]"},{name:"is_main_process",val:": bool = True"},{name:"push_to_hub",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"diffusers.FlaxModelMixin.save_pretrained.save_directory",description:`<strong>save_directory</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
Directory to save a model and its configuration file to. Will be created if it doesn&#x2019;t exist.`,name:"save_directory"},{anchor:"diffusers.FlaxModelMixin.save_pretrained.params",description:`<strong>params</strong> (<code>Union[Dict, FrozenDict]</code>) &#x2014;
A <code>PyTree</code> of model parameters.`,name:"params"},{anchor:"diffusers.FlaxModelMixin.save_pretrained.is_main_process",description:`<strong>is_main_process</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether the process calling this is the main process or not. Useful during distributed training and you
need to call this function on all processes. In this case, set <code>is_main_process=True</code> only on the main
process to avoid race conditions.`,name:"is_main_process"},{anchor:"diffusers.FlaxModelMixin.save_pretrained.push_to_hub",description:`<strong>push_to_hub</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to push your model to the Hugging Face model hub after saving it. You can specify the
repository you want to push to with <code>repo_id</code> (will default to the name of <code>save_directory</code> in your
namespace).`,name:"push_to_hub"},{anchor:"diffusers.FlaxModelMixin.save_pretrained.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional key word arguments passed along to the <a href="/docs/diffusers/main/en/api/schedulers/overview#diffusers.utils.PushToHubMixin.push_to_hub">push_to_hub()</a> method.`,name:"kwargs"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/modeling_flax_utils.py#L496"}}),et=new k({props:{name:"to_bf16",anchor:"diffusers.FlaxModelMixin.to_bf16",parameters:[{name:"params",val:": typing.Union[typing.Dict, flax.core.frozen_dict.FrozenDict]"},{name:"mask",val:": typing.Any = None"}],parametersDescription:[{anchor:"diffusers.FlaxModelMixin.to_bf16.params",description:`<strong>params</strong> (<code>Union[Dict, FrozenDict]</code>) &#x2014;
A <code>PyTree</code> of model parameters.`,name:"params"},{anchor:"diffusers.FlaxModelMixin.to_bf16.mask",description:`<strong>mask</strong> (<code>Union[Dict, FrozenDict]</code>) &#x2014;
A <code>PyTree</code> with same structure as the <code>params</code> tree. The leaves should be booleans. It should be <code>True</code>
for params you want to cast, and <code>False</code> for those you want to skip.`,name:"mask"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/modeling_flax_utils.py#L95"}}),ve=new z({props:{anchor:"diffusers.FlaxModelMixin.to_bf16.example",$$slots:{default:[ha]},$$scope:{ctx:U}}}),tt=new k({props:{name:"to_fp16",anchor:"diffusers.FlaxModelMixin.to_fp16",parameters:[{name:"params",val:": typing.Union[typing.Dict, flax.core.frozen_dict.FrozenDict]"},{name:"mask",val:": typing.Any = None"}],parametersDescription:[{anchor:"diffusers.FlaxModelMixin.to_fp16.params",description:`<strong>params</strong> (<code>Union[Dict, FrozenDict]</code>) &#x2014;
A <code>PyTree</code> of model parameters.`,name:"params"},{anchor:"diffusers.FlaxModelMixin.to_fp16.mask",description:`<strong>mask</strong> (<code>Union[Dict, FrozenDict]</code>) &#x2014;
A <code>PyTree</code> with same structure as the <code>params</code> tree. The leaves should be booleans. It should be <code>True</code>
for params you want to cast, and <code>False</code> for those you want to skip.`,name:"mask"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/modeling_flax_utils.py#L161"}}),xe=new z({props:{anchor:"diffusers.FlaxModelMixin.to_fp16.example",$$slots:{default:[ga]},$$scope:{ctx:U}}}),st=new k({props:{name:"to_fp32",anchor:"diffusers.FlaxModelMixin.to_fp32",parameters:[{name:"params",val:": typing.Union[typing.Dict, flax.core.frozen_dict.FrozenDict]"},{name:"mask",val:": typing.Any = None"}],parametersDescription:[{anchor:"diffusers.FlaxModelMixin.to_fp32.params",description:`<strong>params</strong> (<code>Union[Dict, FrozenDict]</code>) &#x2014;
A <code>PyTree</code> of model parameters.`,name:"params"},{anchor:"diffusers.FlaxModelMixin.to_fp32.mask",description:`<strong>mask</strong> (<code>Union[Dict, FrozenDict]</code>) &#x2014;
A <code>PyTree</code> with same structure as the <code>params</code> tree. The leaves should be booleans. It should be <code>True</code>
for params you want to cast, and <code>False</code> for those you want to skip.`,name:"mask"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/modeling_flax_utils.py#L134"}}),we=new z({props:{anchor:"diffusers.FlaxModelMixin.to_fp32.example",$$slots:{default:[ba]},$$scope:{ctx:U}}}),nt=new js({props:{title:"PushToHubMixin",local:"diffusers.utils.PushToHubMixin",headingTag:"h2"}}),ot=new k({props:{name:"class diffusers.utils.PushToHubMixin",anchor:"diffusers.utils.PushToHubMixin",parameters:[],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/utils/hub_utils.py#L457"}}),at=new k({props:{name:"push_to_hub",anchor:"diffusers.utils.PushToHubMixin.push_to_hub",parameters:[{name:"repo_id",val:": str"},{name:"commit_message",val:": typing.Optional[str] = None"},{name:"private",val:": typing.Optional[bool] = None"},{name:"token",val:": typing.Optional[str] = None"},{name:"create_pr",val:": bool = False"},{name:"safe_serialization",val:": bool = True"},{name:"variant",val:": typing.Optional[str] = None"},{name:"subfolder",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"diffusers.utils.PushToHubMixin.push_to_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The name of the repository you want to push your model, scheduler, or pipeline files to. It should
contain your organization name when pushing to an organization. <code>repo_id</code> can also be a path to a local
directory.`,name:"repo_id"},{anchor:"diffusers.utils.PushToHubMixin.push_to_hub.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Message to commit while pushing. Default to <code>&quot;Upload {object}&quot;</code>.`,name:"commit_message"},{anchor:"diffusers.utils.PushToHubMixin.push_to_hub.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to make the repo private. If <code>None</code> (default), the repo will be public unless the
organization&#x2019;s default is private. This value is ignored if the repo already exists.`,name:"private"},{anchor:"diffusers.utils.PushToHubMixin.push_to_hub.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. The token generated when running <code>hf auth login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"diffusers.utils.PushToHubMixin.push_to_hub.create_pr",description:`<strong>create_pr</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to create a PR with the uploaded files or directly commit.`,name:"create_pr"},{anchor:"diffusers.utils.PushToHubMixin.push_to_hub.safe_serialization",description:`<strong>safe_serialization</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>True</code>) &#x2014;
Whether or not to convert the model weights to the <code>safetensors</code> format.`,name:"safe_serialization"},{anchor:"diffusers.utils.PushToHubMixin.push_to_hub.variant",description:`<strong>variant</strong> (<code>str</code>, <em>optional</em>) &#x2014;
If specified, weights are saved in the format <code>pytorch_model.&lt;variant&gt;.bin</code>.`,name:"variant"}],source:"https://github.com/huggingface/diffusers/blob/main/src/diffusers/utils/hub_utils.py#L492"}}),$e=new z({props:{anchor:"diffusers.utils.PushToHubMixin.push_to_hub.example",$$slots:{default:[ya]},$$scope:{ctx:U}}}),rt=new oa({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/api/models/overview.md"}}),{c(){n=l("meta"),w=o(),m=l("p"),r=o(),p(c.$$.fragment),e=o(),M=l("p"),ks=So("🤗 Diffusers provides pretrained models for popular algorithms and modules to create custom diffusion systems. The primary function of models is to denoise an input sample as modeled by the distribution "),ds=new ta(!1),ms=So("."),cs=o(),ke=l("p"),ke.innerHTML=no,ps=o(),p(Je.$$.fragment),fs=o(),v=l("div"),p(Ze.$$.fragment),Js=o(),gt=l("p"),gt.textContent=oo,Zs=o(),bt=l("p"),bt.innerHTML=ao,Cs=o(),yt=l("ul"),yt.innerHTML=ro,Gs=o(),B=l("div"),p(Ce.$$.fragment),Is=o(),Mt=l("p"),Mt.innerHTML=lo,Ws=o(),_t=l("p"),_t.innerHTML=io,Fs=o(),vt=l("p"),vt.innerHTML=mo,Vs=o(),A=l("div"),p(Ge.$$.fragment),Bs=o(),xt=l("p"),xt.textContent=co,Rs=o(),O=l("div"),p(Ie.$$.fragment),Ns=o(),wt=l("p"),wt.innerHTML=po,Hs=o(),K=l("div"),p(We.$$.fragment),Xs=o(),$t=l("p"),$t.textContent=fo,Ys=o(),ee=l("div"),p(Fe.$$.fragment),zs=o(),Tt=l("p"),Tt.innerHTML=uo,Es=o(),te=l("div"),p(Ve.$$.fragment),Ds=o(),Ut=l("p"),Ut.textContent=ho,Qs=o(),se=l("div"),p(Be.$$.fragment),Ss=o(),jt=l("p"),jt.innerHTML=go,Ls=o(),R=l("div"),p(Re.$$.fragment),Ps=o(),kt=l("p"),kt.textContent=bo,qs=o(),Jt=l("p"),Jt.innerHTML=yo,As=o(),p(ne.$$.fragment),Os=o(),C=l("div"),p(Ne.$$.fragment),Ks=o(),Zt=l("p"),Zt.textContent=Mo,en=o(),Ct=l("p"),Ct.textContent=_o,tn=o(),Gt=l("p"),Gt.innerHTML=vo,sn=o(),It=l("p"),It.textContent=xo,nn=o(),p(oe.$$.fragment),on=o(),ae=l("div"),p(He.$$.fragment),an=o(),Wt=l("p"),Wt.textContent=wo,rn=o(),W=l("div"),p(Xe.$$.fragment),ln=o(),Ft=l("p"),Ft.innerHTML=$o,dn=o(),Vt=l("p"),Vt.textContent=To,mn=o(),p(re.$$.fragment),cn=o(),p(le.$$.fragment),pn=o(),ie=l("div"),p(Ye.$$.fragment),fn=o(),Bt=l("p"),Bt.textContent=Uo,un=o(),G=l("div"),p(ze.$$.fragment),hn=o(),Rt=l("p"),Rt.textContent=jo,gn=o(),Nt=l("p"),Nt.innerHTML=ko,bn=o(),p(de.$$.fragment),yn=o(),p(me.$$.fragment),Mn=o(),p(ce.$$.fragment),_n=o(),pe=l("div"),p(Ee.$$.fragment),vn=o(),Ht=l("p"),Ht.innerHTML=Jo,xn=o(),L=l("div"),p(De.$$.fragment),wn=o(),Xt=l("p"),Xt.textContent=Zo,$n=o(),p(fe.$$.fragment),Tn=o(),ue=l("div"),p(Qe.$$.fragment),Un=o(),Yt=l("p"),Yt.innerHTML=Co,jn=o(),he=l("div"),p(Se.$$.fragment),kn=o(),zt=l("p"),zt.innerHTML=Go,Jn=o(),ge=l("div"),p(Le.$$.fragment),Zn=o(),Et=l("p"),Et.textContent=Io,Cn=o(),be=l("div"),p(Pe.$$.fragment),Gn=o(),Dt=l("p"),Dt.textContent=Wo,us=o(),p(qe.$$.fragment),hs=o(),J=l("div"),p(Ae.$$.fragment),In=o(),Qt=l("p"),Qt.textContent=Fo,Wn=o(),St=l("p"),St.innerHTML=Vo,Fn=o(),Lt=l("ul"),Lt.innerHTML=Bo,Vn=o(),N=l("div"),p(Oe.$$.fragment),Bn=o(),Pt=l("p"),Pt.textContent=Ro,Rn=o(),p(ye.$$.fragment),Nn=o(),p(Me.$$.fragment),Hn=o(),_e=l("div"),p(Ke.$$.fragment),Xn=o(),qt=l("p"),qt.innerHTML=No,Yn=o(),H=l("div"),p(et.$$.fragment),zn=o(),At=l("p"),At.innerHTML=Ho,En=o(),Ot=l("p"),Ot.textContent=Xo,Dn=o(),p(ve.$$.fragment),Qn=o(),X=l("div"),p(tt.$$.fragment),Sn=o(),Kt=l("p"),Kt.innerHTML=Yo,Ln=o(),es=l("p"),es.textContent=zo,Pn=o(),p(xe.$$.fragment),qn=o(),P=l("div"),p(st.$$.fragment),An=o(),ts=l("p"),ts.innerHTML=Eo,On=o(),p(we.$$.fragment),gs=o(),p(nt.$$.fragment),bs=o(),D=l("div"),p(ot.$$.fragment),Kn=o(),ss=l("p"),ss.textContent=Do,eo=o(),q=l("div"),p(at.$$.fragment),to=o(),ns=l("p"),ns.textContent=Qo,so=o(),p($e.$$.fragment),ys=o(),p(rt.$$.fragment),Ms=o(),is=l("p"),this.h()},l(t){const _=sa("svelte-u9bgzb",document.head);n=i(_,"META",{name:!0,content:!0}),_.forEach(d),w=a(t),m=i(t,"P",{}),T(m).forEach(d),r=a(t),f(c.$$.fragment,t),e=a(t),M=i(t,"P",{});var lt=T(M);ks=Lo(lt,"🤗 Diffusers provides pretrained models for popular algorithms and modules to create custom diffusion systems. The primary function of models is to denoise an input sample as modeled by the distribution "),ds=na(lt,!1),ms=Lo(lt,"."),lt.forEach(d),cs=a(t),ke=i(t,"P",{"data-svelte-h":!0}),y(ke)!=="svelte-1elbdrk"&&(ke.innerHTML=no),ps=a(t),f(Je.$$.fragment,t),fs=a(t),v=i(t,"DIV",{class:!0});var x=T(v);f(Ze.$$.fragment,x),Js=a(x),gt=i(x,"P",{"data-svelte-h":!0}),y(gt)!=="svelte-12nk4t7"&&(gt.textContent=oo),Zs=a(x),bt=i(x,"P",{"data-svelte-h":!0}),y(bt)!=="svelte-ku6myw"&&(bt.innerHTML=ao),Cs=a(x),yt=i(x,"UL",{"data-svelte-h":!0}),y(yt)!=="svelte-kvpw1l"&&(yt.innerHTML=ro),Gs=a(x),B=i(x,"DIV",{class:!0});var Q=T(B);f(Ce.$$.fragment,Q),Is=a(Q),Mt=i(Q,"P",{"data-svelte-h":!0}),y(Mt)!=="svelte-38nsj2"&&(Mt.innerHTML=lo),Ws=a(Q),_t=i(Q,"P",{"data-svelte-h":!0}),y(_t)!=="svelte-1et28mh"&&(_t.innerHTML=io),Fs=a(Q),vt=i(Q,"P",{"data-svelte-h":!0}),y(vt)!=="svelte-k8xxs3"&&(vt.innerHTML=mo),Q.forEach(d),Vs=a(x),A=i(x,"DIV",{class:!0});var it=T(A);f(Ge.$$.fragment,it),Bs=a(it),xt=i(it,"P",{"data-svelte-h":!0}),y(xt)!=="svelte-on69a4"&&(xt.textContent=co),it.forEach(d),Rs=a(x),O=i(x,"DIV",{class:!0});var dt=T(O);f(Ie.$$.fragment,dt),Ns=a(dt),wt=i(dt,"P",{"data-svelte-h":!0}),y(wt)!=="svelte-jedy0o"&&(wt.innerHTML=po),dt.forEach(d),Hs=a(x),K=i(x,"DIV",{class:!0});var mt=T(K);f(We.$$.fragment,mt),Xs=a(mt),$t=i(mt,"P",{"data-svelte-h":!0}),y($t)!=="svelte-advgdt"&&($t.textContent=fo),mt.forEach(d),Ys=a(x),ee=i(x,"DIV",{class:!0});var ct=T(ee);f(Fe.$$.fragment,ct),zs=a(ct),Tt=i(ct,"P",{"data-svelte-h":!0}),y(Tt)!=="svelte-1vfte1e"&&(Tt.innerHTML=uo),ct.forEach(d),Es=a(x),te=i(x,"DIV",{class:!0});var pt=T(te);f(Ve.$$.fragment,pt),Ds=a(pt),Ut=i(pt,"P",{"data-svelte-h":!0}),y(Ut)!=="svelte-l9u3py"&&(Ut.textContent=ho),pt.forEach(d),Qs=a(x),se=i(x,"DIV",{class:!0});var ft=T(se);f(Be.$$.fragment,ft),Ss=a(ft),jt=i(ft,"P",{"data-svelte-h":!0}),y(jt)!=="svelte-1rv66k9"&&(jt.innerHTML=go),ft.forEach(d),Ls=a(x),R=i(x,"DIV",{class:!0});var S=T(R);f(Re.$$.fragment,S),Ps=a(S),kt=i(S,"P",{"data-svelte-h":!0}),y(kt)!=="svelte-h27n1e"&&(kt.textContent=bo),qs=a(S),Jt=i(S,"P",{"data-svelte-h":!0}),y(Jt)!=="svelte-l2yd37"&&(Jt.innerHTML=yo),As=a(S),f(ne.$$.fragment,S),S.forEach(d),Os=a(x),C=i(x,"DIV",{class:!0});var I=T(C);f(Ne.$$.fragment,I),Ks=a(I),Zt=i(I,"P",{"data-svelte-h":!0}),y(Zt)!=="svelte-1iclqp4"&&(Zt.textContent=Mo),en=a(I),Ct=i(I,"P",{"data-svelte-h":!0}),y(Ct)!=="svelte-1qne8y2"&&(Ct.textContent=_o),tn=a(I),Gt=i(I,"P",{"data-svelte-h":!0}),y(Gt)!=="svelte-ss6or"&&(Gt.innerHTML=vo),sn=a(I),It=i(I,"P",{"data-svelte-h":!0}),y(It)!=="svelte-11lpom8"&&(It.textContent=xo),nn=a(I),f(oe.$$.fragment,I),I.forEach(d),on=a(x),ae=i(x,"DIV",{class:!0});var ut=T(ae);f(He.$$.fragment,ut),an=a(ut),Wt=i(ut,"P",{"data-svelte-h":!0}),y(Wt)!=="svelte-10xtjge"&&(Wt.textContent=wo),ut.forEach(d),rn=a(x),W=i(x,"DIV",{class:!0});var V=T(W);f(Xe.$$.fragment,V),ln=a(V),Ft=i(V,"P",{"data-svelte-h":!0}),y(Ft)!=="svelte-yfpdyb"&&(Ft.innerHTML=$o),dn=a(V),Vt=i(V,"P",{"data-svelte-h":!0}),y(Vt)!=="svelte-z1uct7"&&(Vt.textContent=To),mn=a(V),f(re.$$.fragment,V),cn=a(V),f(le.$$.fragment,V),V.forEach(d),pn=a(x),ie=i(x,"DIV",{class:!0});var ht=T(ie);f(Ye.$$.fragment,ht),fn=a(ht),Bt=i(ht,"P",{"data-svelte-h":!0}),y(Bt)!=="svelte-17oym6v"&&(Bt.textContent=Uo),ht.forEach(d),un=a(x),G=i(x,"DIV",{class:!0});var Y=T(G);f(ze.$$.fragment,Y),hn=a(Y),Rt=i(Y,"P",{"data-svelte-h":!0}),y(Rt)!=="svelte-1lisopl"&&(Rt.textContent=jo),gn=a(Y),Nt=i(Y,"P",{"data-svelte-h":!0}),y(Nt)!=="svelte-1fnd9e6"&&(Nt.innerHTML=ko),bn=a(Y),f(de.$$.fragment,Y),yn=a(Y),f(me.$$.fragment,Y),Mn=a(Y),f(ce.$$.fragment,Y),Y.forEach(d),_n=a(x),pe=i(x,"DIV",{class:!0});var vs=T(pe);f(Ee.$$.fragment,vs),vn=a(vs),Ht=i(vs,"P",{"data-svelte-h":!0}),y(Ht)!=="svelte-1o6lvix"&&(Ht.innerHTML=Jo),vs.forEach(d),xn=a(x),L=i(x,"DIV",{class:!0});var os=T(L);f(De.$$.fragment,os),wn=a(os),Xt=i(os,"P",{"data-svelte-h":!0}),y(Xt)!=="svelte-1jxmzhx"&&(Xt.textContent=Zo),$n=a(os),f(fe.$$.fragment,os),os.forEach(d),Tn=a(x),ue=i(x,"DIV",{class:!0});var xs=T(ue);f(Qe.$$.fragment,xs),Un=a(xs),Yt=i(xs,"P",{"data-svelte-h":!0}),y(Yt)!=="svelte-1r5smqa"&&(Yt.innerHTML=Co),xs.forEach(d),jn=a(x),he=i(x,"DIV",{class:!0});var ws=T(he);f(Se.$$.fragment,ws),kn=a(ws),zt=i(ws,"P",{"data-svelte-h":!0}),y(zt)!=="svelte-1y16a8m"&&(zt.innerHTML=Go),ws.forEach(d),Jn=a(x),ge=i(x,"DIV",{class:!0});var $s=T(ge);f(Le.$$.fragment,$s),Zn=a($s),Et=i($s,"P",{"data-svelte-h":!0}),y(Et)!=="svelte-e25n5q"&&(Et.textContent=Io),$s.forEach(d),Cn=a(x),be=i(x,"DIV",{class:!0});var Ts=T(be);f(Pe.$$.fragment,Ts),Gn=a(Ts),Dt=i(Ts,"P",{"data-svelte-h":!0}),y(Dt)!=="svelte-qmktby"&&(Dt.textContent=Wo),Ts.forEach(d),x.forEach(d),us=a(t),f(qe.$$.fragment,t),hs=a(t),J=i(t,"DIV",{class:!0});var Z=T(J);f(Ae.$$.fragment,Z),In=a(Z),Qt=i(Z,"P",{"data-svelte-h":!0}),y(Qt)!=="svelte-1kw8rks"&&(Qt.textContent=Fo),Wn=a(Z),St=i(Z,"P",{"data-svelte-h":!0}),y(St)!=="svelte-ltxz86"&&(St.innerHTML=Vo),Fn=a(Z),Lt=i(Z,"UL",{"data-svelte-h":!0}),y(Lt)!=="svelte-5tww1s"&&(Lt.innerHTML=Bo),Vn=a(Z),N=i(Z,"DIV",{class:!0});var Te=T(N);f(Oe.$$.fragment,Te),Bn=a(Te),Pt=i(Te,"P",{"data-svelte-h":!0}),y(Pt)!=="svelte-72pb05"&&(Pt.textContent=Ro),Rn=a(Te),f(ye.$$.fragment,Te),Nn=a(Te),f(Me.$$.fragment,Te),Te.forEach(d),Hn=a(Z),_e=i(Z,"DIV",{class:!0});var Us=T(_e);f(Ke.$$.fragment,Us),Xn=a(Us),qt=i(Us,"P",{"data-svelte-h":!0}),y(qt)!=="svelte-9z80ed"&&(qt.innerHTML=No),Us.forEach(d),Yn=a(Z),H=i(Z,"DIV",{class:!0});var Ue=T(H);f(et.$$.fragment,Ue),zn=a(Ue),At=i(Ue,"P",{"data-svelte-h":!0}),y(At)!=="svelte-16uni9u"&&(At.innerHTML=Ho),En=a(Ue),Ot=i(Ue,"P",{"data-svelte-h":!0}),y(Ot)!=="svelte-1y9zqww"&&(Ot.textContent=Xo),Dn=a(Ue),f(ve.$$.fragment,Ue),Ue.forEach(d),Qn=a(Z),X=i(Z,"DIV",{class:!0});var je=T(X);f(tt.$$.fragment,je),Sn=a(je),Kt=i(je,"P",{"data-svelte-h":!0}),y(Kt)!=="svelte-ifz6ak"&&(Kt.innerHTML=Yo),Ln=a(je),es=i(je,"P",{"data-svelte-h":!0}),y(es)!=="svelte-yfkr09"&&(es.textContent=zo),Pn=a(je),f(xe.$$.fragment,je),je.forEach(d),qn=a(Z),P=i(Z,"DIV",{class:!0});var as=T(P);f(st.$$.fragment,as),An=a(as),ts=i(as,"P",{"data-svelte-h":!0}),y(ts)!=="svelte-j66hh4"&&(ts.innerHTML=Eo),On=a(as),f(we.$$.fragment,as),as.forEach(d),Z.forEach(d),gs=a(t),f(nt.$$.fragment,t),bs=a(t),D=i(t,"DIV",{class:!0});var rs=T(D);f(ot.$$.fragment,rs),Kn=a(rs),ss=i(rs,"P",{"data-svelte-h":!0}),y(ss)!=="svelte-7y8zei"&&(ss.textContent=Do),eo=a(rs),q=i(rs,"DIV",{class:!0});var ls=T(q);f(at.$$.fragment,ls),to=a(ls),ns=i(ls,"P",{"data-svelte-h":!0}),y(ns)!=="svelte-5nfhmh"&&(ns.textContent=Qo),so=a(ls),f($e.$$.fragment,ls),ls.forEach(d),rs.forEach(d),ys=a(t),f(rt.$$.fragment,t),Ms=a(t),is=i(t,"P",{}),T(is).forEach(d),this.h()},h(){j(n,"name","hf:doc:metadata"),j(n,"content",_a),ds.a=ms,j(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(he,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(v,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(_e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),j(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(t,_){s(document.head,n),$(t,w,_),$(t,m,_),$(t,r,_),u(c,t,_),$(t,e,_),$(t,M,_),s(M,ks),ds.m(qo,M),s(M,ms),$(t,cs,_),$(t,ke,_),$(t,ps,_),u(Je,t,_),$(t,fs,_),$(t,v,_),u(Ze,v,null),s(v,Js),s(v,gt),s(v,Zs),s(v,bt),s(v,Cs),s(v,yt),s(v,Gs),s(v,B),u(Ce,B,null),s(B,Is),s(B,Mt),s(B,Ws),s(B,_t),s(B,Fs),s(B,vt),s(v,Vs),s(v,A),u(Ge,A,null),s(A,Bs),s(A,xt),s(v,Rs),s(v,O),u(Ie,O,null),s(O,Ns),s(O,wt),s(v,Hs),s(v,K),u(We,K,null),s(K,Xs),s(K,$t),s(v,Ys),s(v,ee),u(Fe,ee,null),s(ee,zs),s(ee,Tt),s(v,Es),s(v,te),u(Ve,te,null),s(te,Ds),s(te,Ut),s(v,Qs),s(v,se),u(Be,se,null),s(se,Ss),s(se,jt),s(v,Ls),s(v,R),u(Re,R,null),s(R,Ps),s(R,kt),s(R,qs),s(R,Jt),s(R,As),u(ne,R,null),s(v,Os),s(v,C),u(Ne,C,null),s(C,Ks),s(C,Zt),s(C,en),s(C,Ct),s(C,tn),s(C,Gt),s(C,sn),s(C,It),s(C,nn),u(oe,C,null),s(v,on),s(v,ae),u(He,ae,null),s(ae,an),s(ae,Wt),s(v,rn),s(v,W),u(Xe,W,null),s(W,ln),s(W,Ft),s(W,dn),s(W,Vt),s(W,mn),u(re,W,null),s(W,cn),u(le,W,null),s(v,pn),s(v,ie),u(Ye,ie,null),s(ie,fn),s(ie,Bt),s(v,un),s(v,G),u(ze,G,null),s(G,hn),s(G,Rt),s(G,gn),s(G,Nt),s(G,bn),u(de,G,null),s(G,yn),u(me,G,null),s(G,Mn),u(ce,G,null),s(v,_n),s(v,pe),u(Ee,pe,null),s(pe,vn),s(pe,Ht),s(v,xn),s(v,L),u(De,L,null),s(L,wn),s(L,Xt),s(L,$n),u(fe,L,null),s(v,Tn),s(v,ue),u(Qe,ue,null),s(ue,Un),s(ue,Yt),s(v,jn),s(v,he),u(Se,he,null),s(he,kn),s(he,zt),s(v,Jn),s(v,ge),u(Le,ge,null),s(ge,Zn),s(ge,Et),s(v,Cn),s(v,be),u(Pe,be,null),s(be,Gn),s(be,Dt),$(t,us,_),u(qe,t,_),$(t,hs,_),$(t,J,_),u(Ae,J,null),s(J,In),s(J,Qt),s(J,Wn),s(J,St),s(J,Fn),s(J,Lt),s(J,Vn),s(J,N),u(Oe,N,null),s(N,Bn),s(N,Pt),s(N,Rn),u(ye,N,null),s(N,Nn),u(Me,N,null),s(J,Hn),s(J,_e),u(Ke,_e,null),s(_e,Xn),s(_e,qt),s(J,Yn),s(J,H),u(et,H,null),s(H,zn),s(H,At),s(H,En),s(H,Ot),s(H,Dn),u(ve,H,null),s(J,Qn),s(J,X),u(tt,X,null),s(X,Sn),s(X,Kt),s(X,Ln),s(X,es),s(X,Pn),u(xe,X,null),s(J,qn),s(J,P),u(st,P,null),s(P,An),s(P,ts),s(P,On),u(we,P,null),$(t,gs,_),u(nt,t,_),$(t,bs,_),$(t,D,_),u(ot,D,null),s(D,Kn),s(D,ss),s(D,eo),s(D,q),u(at,q,null),s(q,to),s(q,ns),s(q,so),u($e,q,null),$(t,ys,_),u(rt,t,_),$(t,Ms,_),$(t,is,_),_s=!0},p(t,[_]){const lt={};_&2&&(lt.$$scope={dirty:_,ctx:t}),ne.$set(lt);const x={};_&2&&(x.$$scope={dirty:_,ctx:t}),oe.$set(x);const Q={};_&2&&(Q.$$scope={dirty:_,ctx:t}),re.$set(Q);const it={};_&2&&(it.$$scope={dirty:_,ctx:t}),le.$set(it);const dt={};_&2&&(dt.$$scope={dirty:_,ctx:t}),de.$set(dt);const mt={};_&2&&(mt.$$scope={dirty:_,ctx:t}),me.$set(mt);const ct={};_&2&&(ct.$$scope={dirty:_,ctx:t}),ce.$set(ct);const pt={};_&2&&(pt.$$scope={dirty:_,ctx:t}),fe.$set(pt);const ft={};_&2&&(ft.$$scope={dirty:_,ctx:t}),ye.$set(ft);const S={};_&2&&(S.$$scope={dirty:_,ctx:t}),Me.$set(S);const I={};_&2&&(I.$$scope={dirty:_,ctx:t}),ve.$set(I);const ut={};_&2&&(ut.$$scope={dirty:_,ctx:t}),xe.$set(ut);const V={};_&2&&(V.$$scope={dirty:_,ctx:t}),we.$set(V);const ht={};_&2&&(ht.$$scope={dirty:_,ctx:t}),$e.$set(ht)},i(t){_s||(h(c.$$.fragment,t),h(Je.$$.fragment,t),h(Ze.$$.fragment,t),h(Ce.$$.fragment,t),h(Ge.$$.fragment,t),h(Ie.$$.fragment,t),h(We.$$.fragment,t),h(Fe.$$.fragment,t),h(Ve.$$.fragment,t),h(Be.$$.fragment,t),h(Re.$$.fragment,t),h(ne.$$.fragment,t),h(Ne.$$.fragment,t),h(oe.$$.fragment,t),h(He.$$.fragment,t),h(Xe.$$.fragment,t),h(re.$$.fragment,t),h(le.$$.fragment,t),h(Ye.$$.fragment,t),h(ze.$$.fragment,t),h(de.$$.fragment,t),h(me.$$.fragment,t),h(ce.$$.fragment,t),h(Ee.$$.fragment,t),h(De.$$.fragment,t),h(fe.$$.fragment,t),h(Qe.$$.fragment,t),h(Se.$$.fragment,t),h(Le.$$.fragment,t),h(Pe.$$.fragment,t),h(qe.$$.fragment,t),h(Ae.$$.fragment,t),h(Oe.$$.fragment,t),h(ye.$$.fragment,t),h(Me.$$.fragment,t),h(Ke.$$.fragment,t),h(et.$$.fragment,t),h(ve.$$.fragment,t),h(tt.$$.fragment,t),h(xe.$$.fragment,t),h(st.$$.fragment,t),h(we.$$.fragment,t),h(nt.$$.fragment,t),h(ot.$$.fragment,t),h(at.$$.fragment,t),h($e.$$.fragment,t),h(rt.$$.fragment,t),_s=!0)},o(t){g(c.$$.fragment,t),g(Je.$$.fragment,t),g(Ze.$$.fragment,t),g(Ce.$$.fragment,t),g(Ge.$$.fragment,t),g(Ie.$$.fragment,t),g(We.$$.fragment,t),g(Fe.$$.fragment,t),g(Ve.$$.fragment,t),g(Be.$$.fragment,t),g(Re.$$.fragment,t),g(ne.$$.fragment,t),g(Ne.$$.fragment,t),g(oe.$$.fragment,t),g(He.$$.fragment,t),g(Xe.$$.fragment,t),g(re.$$.fragment,t),g(le.$$.fragment,t),g(Ye.$$.fragment,t),g(ze.$$.fragment,t),g(de.$$.fragment,t),g(me.$$.fragment,t),g(ce.$$.fragment,t),g(Ee.$$.fragment,t),g(De.$$.fragment,t),g(fe.$$.fragment,t),g(Qe.$$.fragment,t),g(Se.$$.fragment,t),g(Le.$$.fragment,t),g(Pe.$$.fragment,t),g(qe.$$.fragment,t),g(Ae.$$.fragment,t),g(Oe.$$.fragment,t),g(ye.$$.fragment,t),g(Me.$$.fragment,t),g(Ke.$$.fragment,t),g(et.$$.fragment,t),g(ve.$$.fragment,t),g(tt.$$.fragment,t),g(xe.$$.fragment,t),g(st.$$.fragment,t),g(we.$$.fragment,t),g(nt.$$.fragment,t),g(ot.$$.fragment,t),g(at.$$.fragment,t),g($e.$$.fragment,t),g(rt.$$.fragment,t),_s=!1},d(t){t&&(d(w),d(m),d(r),d(e),d(M),d(cs),d(ke),d(ps),d(fs),d(v),d(us),d(hs),d(J),d(gs),d(bs),d(D),d(ys),d(Ms),d(is)),d(n),b(c,t),b(Je,t),b(Ze),b(Ce),b(Ge),b(Ie),b(We),b(Fe),b(Ve),b(Be),b(Re),b(ne),b(Ne),b(oe),b(He),b(Xe),b(re),b(le),b(Ye),b(ze),b(de),b(me),b(ce),b(Ee),b(De),b(fe),b(Qe),b(Se),b(Le),b(Pe),b(qe,t),b(Ae),b(Oe),b(ye),b(Me),b(Ke),b(et),b(ve),b(tt),b(xe),b(st),b(we),b(nt,t),b(ot),b(at),b($e),b(rt,t)}}}const _a='{"title":"Models","local":"models","sections":[{"title":"ModelMixin","local":"diffusers.ModelMixin","sections":[],"depth":2},{"title":"FlaxModelMixin","local":"diffusers.FlaxModelMixin","sections":[],"depth":2},{"title":"PushToHubMixin","local":"diffusers.utils.PushToHubMixin","sections":[],"depth":2}],"depth":1}';function va(U){return Oo(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ja extends Ko{constructor(n){super(),ea(this,n,va,Ma,Ao,{})}}export{Ja as component};
