import{s as ms,o as hs,n as de}from"../chunks/scheduler.8c3d61f6.js";import{S as Ms,i as ys,g,s as i,r as f,A as bs,h as w,f as l,c as r,j as fs,u as m,x as Z,k as De,y as gs,a as t,v as h,d as M,t as y,w as b}from"../chunks/index.da70eac4.js";import{T as ws}from"../chunks/Tip.1d9b8c37.js";import{C as $}from"../chunks/CodeBlock.00a903b3.js";import{D as Js}from"../chunks/DocNotebookDropdown.02900f6b.js";import{H as ce,E as Zs}from"../chunks/EditOnGithub.1e64e623.js";import{H as Us,a as qe}from"../chunks/HfOption.c1483eb1.js";function Ts(T){let n,J='<a href="/docs/diffusers/pr_10095/en/api/schedulers/lms_discrete#diffusers.LMSDiscreteScheduler">LMSDiscreteScheduler</a> typically generates higher quality images than the default scheduler.',u,o,c;return o=new $({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMExNU0Rpc2NyZXRlU2NoZWR1bGVyJTBBJTBBcGlwZWxpbmUuc2NoZWR1bGVyJTIwJTNEJTIwTE1TRGlzY3JldGVTY2hlZHVsZXIuZnJvbV9jb25maWcocGlwZWxpbmUuc2NoZWR1bGVyLmNvbmZpZyklMEFpbWFnZSUyMCUzRCUyMHBpcGVsaW5lKHByb21wdCUyQyUyMGdlbmVyYXRvciUzRGdlbmVyYXRvcikuaW1hZ2VzJTVCMCU1RCUwQWltYWdl",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> LMSDiscreteScheduler

pipeline.scheduler = LMSDiscreteScheduler.from_config(pipeline.scheduler.config)
image = pipeline(prompt, generator=generator).images[<span class="hljs-number">0</span>]
image`,wrap:!1}}),{c(){n=g("p"),n.innerHTML=J,u=i(),f(o.$$.fragment)},l(a){n=w(a,"P",{"data-svelte-h":!0}),Z(n)!=="svelte-1o7dmei"&&(n.innerHTML=J),u=r(a),m(o.$$.fragment,a)},m(a,d){t(a,n,d),t(a,u,d),h(o,a,d),c=!0},p:de,i(a){c||(M(o.$$.fragment,a),c=!0)},o(a){y(o.$$.fragment,a),c=!1},d(a){a&&(l(n),l(u)),b(o,a)}}}function $s(T){let n,J='<a href="/docs/diffusers/pr_10095/en/api/schedulers/euler#diffusers.EulerDiscreteScheduler">EulerDiscreteScheduler</a> can generate higher quality images in just 30 steps.',u,o,c;return o=new $({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEV1bGVyRGlzY3JldGVTY2hlZHVsZXIlMEElMEFwaXBlbGluZS5zY2hlZHVsZXIlMjAlM0QlMjBFdWxlckRpc2NyZXRlU2NoZWR1bGVyLmZyb21fY29uZmlnKHBpcGVsaW5lLnNjaGVkdWxlci5jb25maWcpJTBBaW1hZ2UlMjAlM0QlMjBwaXBlbGluZShwcm9tcHQlMkMlMjBnZW5lcmF0b3IlM0RnZW5lcmF0b3IpLmltYWdlcyU1QjAlNUQlMEFpbWFnZQ==",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> EulerDiscreteScheduler

pipeline.scheduler = EulerDiscreteScheduler.from_config(pipeline.scheduler.config)
image = pipeline(prompt, generator=generator).images[<span class="hljs-number">0</span>]
image`,wrap:!1}}),{c(){n=g("p"),n.innerHTML=J,u=i(),f(o.$$.fragment)},l(a){n=w(a,"P",{"data-svelte-h":!0}),Z(n)!=="svelte-ppmliw"&&(n.innerHTML=J),u=r(a),m(o.$$.fragment,a)},m(a,d){t(a,n,d),t(a,u,d),h(o,a,d),c=!0},p:de,i(a){c||(M(o.$$.fragment,a),c=!0)},o(a){y(o.$$.fragment,a),c=!1},d(a){a&&(l(n),l(u)),b(o,a)}}}function js(T){let n,J='<a href="/docs/diffusers/pr_10095/en/api/schedulers/euler_ancestral#diffusers.EulerAncestralDiscreteScheduler">EulerAncestralDiscreteScheduler</a> can generate higher quality images in just 30 steps.',u,o,c;return o=new $({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMEV1bGVyQW5jZXN0cmFsRGlzY3JldGVTY2hlZHVsZXIlMEElMEFwaXBlbGluZS5zY2hlZHVsZXIlMjAlM0QlMjBFdWxlckFuY2VzdHJhbERpc2NyZXRlU2NoZWR1bGVyLmZyb21fY29uZmlnKHBpcGVsaW5lLnNjaGVkdWxlci5jb25maWcpJTBBaW1hZ2UlMjAlM0QlMjBwaXBlbGluZShwcm9tcHQlMkMlMjBnZW5lcmF0b3IlM0RnZW5lcmF0b3IpLmltYWdlcyU1QjAlNUQlMEFpbWFnZQ==",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> EulerAncestralDiscreteScheduler

pipeline.scheduler = EulerAncestralDiscreteScheduler.from_config(pipeline.scheduler.config)
image = pipeline(prompt, generator=generator).images[<span class="hljs-number">0</span>]
image`,wrap:!1}}),{c(){n=g("p"),n.innerHTML=J,u=i(),f(o.$$.fragment)},l(a){n=w(a,"P",{"data-svelte-h":!0}),Z(n)!=="svelte-dji7su"&&(n.innerHTML=J),u=r(a),m(o.$$.fragment,a)},m(a,d){t(a,n,d),t(a,u,d),h(o,a,d),c=!0},p:de,i(a){c||(M(o.$$.fragment,a),c=!0)},o(a){y(o.$$.fragment,a),c=!1},d(a){a&&(l(n),l(u)),b(o,a)}}}function vs(T){let n,J='<a href="/docs/diffusers/pr_10095/en/api/schedulers/multistep_dpm_solver#diffusers.DPMSolverMultistepScheduler">DPMSolverMultistepScheduler</a> provides a balance between speed and quality and can generate higher quality images in just 20 steps.',u,o,c;return o=new $({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMERQTVNvbHZlck11bHRpc3RlcFNjaGVkdWxlciUwQSUwQXBpcGVsaW5lLnNjaGVkdWxlciUyMCUzRCUyMERQTVNvbHZlck11bHRpc3RlcFNjaGVkdWxlci5mcm9tX2NvbmZpZyhwaXBlbGluZS5zY2hlZHVsZXIuY29uZmlnKSUwQWltYWdlJTIwJTNEJTIwcGlwZWxpbmUocHJvbXB0JTJDJTIwZ2VuZXJhdG9yJTNEZ2VuZXJhdG9yKS5pbWFnZXMlNUIwJTVEJTBBaW1hZ2U=",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> DPMSolverMultistepScheduler

pipeline.scheduler = DPMSolverMultistepScheduler.from_config(pipeline.scheduler.config)
image = pipeline(prompt, generator=generator).images[<span class="hljs-number">0</span>]
image`,wrap:!1}}),{c(){n=g("p"),n.innerHTML=J,u=i(),f(o.$$.fragment)},l(a){n=w(a,"P",{"data-svelte-h":!0}),Z(n)!=="svelte-1vegwnw"&&(n.innerHTML=J),u=r(a),m(o.$$.fragment,a)},m(a,d){t(a,n,d),t(a,u,d),h(o,a,d),c=!0},p:de,i(a){c||(M(o.$$.fragment,a),c=!0)},o(a){y(o.$$.fragment,a),c=!1},d(a){a&&(l(n),l(u)),b(o,a)}}}function Gs(T){let n,J,u,o,c,a,d,v;return n=new qe({props:{id:"schedulers",option:"LMSDiscreteScheduler",$$slots:{default:[Ts]},$$scope:{ctx:T}}}),u=new qe({props:{id:"schedulers",option:"EulerDiscreteScheduler",$$slots:{default:[$s]},$$scope:{ctx:T}}}),c=new qe({props:{id:"schedulers",option:"EulerAncestralDiscreteScheduler",$$slots:{default:[js]},$$scope:{ctx:T}}}),d=new qe({props:{id:"schedulers",option:"DPMSolverMultistepScheduler",$$slots:{default:[vs]},$$scope:{ctx:T}}}),{c(){f(n.$$.fragment),J=i(),f(u.$$.fragment),o=i(),f(c.$$.fragment),a=i(),f(d.$$.fragment)},l(p){m(n.$$.fragment,p),J=r(p),m(u.$$.fragment,p),o=r(p),m(c.$$.fragment,p),a=r(p),m(d.$$.fragment,p)},m(p,U){h(n,p,U),t(p,J,U),h(u,p,U),t(p,o,U),h(c,p,U),t(p,a,U),h(d,p,U),v=!0},p(p,U){const S={};U&2&&(S.$$scope={dirty:U,ctx:p}),n.$set(S);const j={};U&2&&(j.$$scope={dirty:U,ctx:p}),u.$set(j);const oe={};U&2&&(oe.$$scope={dirty:U,ctx:p}),c.$set(oe);const k={};U&2&&(k.$$scope={dirty:U,ctx:p}),d.$set(k)},i(p){v||(M(n.$$.fragment,p),M(u.$$.fragment,p),M(c.$$.fragment,p),M(d.$$.fragment,p),v=!0)},o(p){y(n.$$.fragment,p),y(u.$$.fragment,p),y(c.$$.fragment,p),y(d.$$.fragment,p),v=!1},d(p){p&&(l(J),l(o),l(a)),b(n,p),b(u,p),b(c,p),b(d,p)}}}function _s(T){let n,J='The <code>FlaxLMSDiscreteScheduler</code> and <code>FlaxDDPMScheduler</code> are not compatible with the <a href="/docs/diffusers/pr_10095/en/api/pipelines/stable_diffusion/text2img#diffusers.FlaxStableDiffusionPipeline">FlaxStableDiffusionPipeline</a> yet.';return{c(){n=g("p"),n.innerHTML=J},l(u){n=w(u,"P",{"data-svelte-h":!0}),Z(n)!=="svelte-8gluc2"&&(n.innerHTML=J)},m(u,o){t(u,n,o)},p:de,d(u){u&&l(n)}}}function Ws(T){let n,J,u,o,c,a,d,v,p,U="Diffusion pipelines are a collection of interchangeable schedulers and models that can be mixed and matched to tailor a pipeline to a specific use case. The scheduler encapsulates the entire denoising process such as the number of denoising steps and the algorithm for finding the denoised sample. A scheduler is not parameterized or trained so they don’t take very much memory. The model is usually only concerned with the forward pass of going from a noisy input to a less noisy sample.",S,j,oe='This guide will show you how to load schedulers and models to customize a pipeline. You’ll use the <a href="https://hf.co/stable-diffusion-v1-5/stable-diffusion-v1-5" rel="nofollow">stable-diffusion-v1-5/stable-diffusion-v1-5</a> checkpoint throughout this guide, so let’s load it first.',k,I,fe,x,Ye="You can see what scheduler this pipeline uses with the <code>pipeline.scheduler</code> attribute.",me,R,he,B,Me,C,Pe='Schedulers are defined by a configuration file that can be used by a variety of schedulers. Load a scheduler with the <a href="/docs/diffusers/pr_10095/en/api/schedulers/overview#diffusers.SchedulerMixin.from_pretrained">SchedulerMixin.from_pretrained()</a> method, and specify the <code>subfolder</code> parameter to load the configuration file into the correct subfolder of the pipeline repository.',ye,X,Ae='For example, to load the <a href="/docs/diffusers/pr_10095/en/api/schedulers/ddim#diffusers.DDIMScheduler">DDIMScheduler</a>:',be,E,ge,F,Ke="Then you can pass the newly loaded scheduler to the pipeline.",we,H,Je,N,Ze,z,Oe="Schedulers have their own unique strengths and weaknesses, making it difficult to quantitatively compare which scheduler works best for a pipeline. You typically have to make a trade-off between denoising speed and denoising quality. We recommend trying out different schedulers to find one that works best for your use case. Call the <code>pipeline.scheduler.compatibles</code> attribute to see what schedulers are compatible with a pipeline.",Ue,L,es='Let’s compare the <a href="/docs/diffusers/pr_10095/en/api/schedulers/lms_discrete#diffusers.LMSDiscreteScheduler">LMSDiscreteScheduler</a>, <a href="/docs/diffusers/pr_10095/en/api/schedulers/euler#diffusers.EulerDiscreteScheduler">EulerDiscreteScheduler</a>, <a href="/docs/diffusers/pr_10095/en/api/schedulers/euler_ancestral#diffusers.EulerAncestralDiscreteScheduler">EulerAncestralDiscreteScheduler</a>, and the <a href="/docs/diffusers/pr_10095/en/api/schedulers/multistep_dpm_solver#diffusers.DPMSolverMultistepScheduler">DPMSolverMultistepScheduler</a> on the following prompt and seed.',Te,Q,$e,D,ss='To change the pipelines scheduler, use the <a href="/docs/diffusers/pr_10095/en/api/configuration#diffusers.ConfigMixin.from_config">from_config()</a> method to load a different scheduler’s <code>pipeline.scheduler.config</code> into the pipeline.',je,G,ve,_,ls='<div><img class="rounded-xl" src="https://huggingface.co/datasets/patrickvonplaten/images/resolve/main/diffusers_docs/astronaut_lms.png"/> <figcaption class="mt-2 text-center text-sm text-gray-500">LMSDiscreteScheduler</figcaption></div> <div><img class="rounded-xl" src="https://huggingface.co/datasets/patrickvonplaten/images/resolve/main/diffusers_docs/astronaut_euler_discrete.png"/> <figcaption class="mt-2 text-center text-sm text-gray-500">EulerDiscreteScheduler</figcaption></div>',Ge,W,ts='<div><img class="rounded-xl" src="https://huggingface.co/datasets/patrickvonplaten/images/resolve/main/diffusers_docs/astronaut_euler_ancestral.png"/> <figcaption class="mt-2 text-center text-sm text-gray-500">EulerAncestralDiscreteScheduler</figcaption></div> <div><img class="rounded-xl" src="https://huggingface.co/datasets/patrickvonplaten/images/resolve/main/diffusers_docs/astronaut_dpm.png"/> <figcaption class="mt-2 text-center text-sm text-gray-500">DPMSolverMultistepScheduler</figcaption></div>',_e,q,as="Most images look very similar and are comparable in quality. Again, it often comes down to your specific use case so a good approach is to run multiple different schedulers and compare the results.",We,Y,Ve,P,ns='To compare Flax schedulers, you need to additionally load the scheduler state into the model parameters. For example, let’s change the default scheduler in <a href="/docs/diffusers/pr_10095/en/api/pipelines/stable_diffusion/text2img#diffusers.FlaxStableDiffusionPipeline">FlaxStableDiffusionPipeline</a> to use the super fast <code>FlaxDPMSolverMultistepScheduler</code>.',Se,V,ke,A,Ie,K,is="Then you can take advantage of Flax’s compatibility with TPUs to generate a number of images in parallel. You’ll need to make a copy of the model parameters for each available device and then split the inputs across them to generate your desired number of images.",xe,O,Re,ee,Be,se,rs='Models are loaded from the <a href="/docs/diffusers/pr_10095/en/api/models/overview#diffusers.ModelMixin.from_pretrained">ModelMixin.from_pretrained()</a> method, which downloads and caches the latest version of the model weights and configurations. If the latest files are available in the local cache, <a href="/docs/diffusers/pr_10095/en/api/models/overview#diffusers.ModelMixin.from_pretrained">from_pretrained()</a> reuses files in the cache instead of re-downloading them.',Ce,le,ps='Models can be loaded from a subfolder with the <code>subfolder</code> argument. For example, the model weights for <a href="https://hf.co/stable-diffusion-v1-5/stable-diffusion-v1-5" rel="nofollow">stable-diffusion-v1-5/stable-diffusion-v1-5</a> are stored in the <a href="https://hf.co/stable-diffusion-v1-5/stable-diffusion-v1-5/tree/main/unet" rel="nofollow">unet</a> subfolder.',Xe,te,Ee,ae,os='They can also be directly loaded from a <a href="https://huggingface.co/google/ddpm-cifar10-32/tree/main" rel="nofollow">repository</a>.',Fe,ne,He,ie,us='To load and save model variants, specify the <code>variant</code> argument in <a href="/docs/diffusers/pr_10095/en/api/models/overview#diffusers.ModelMixin.from_pretrained">ModelMixin.from_pretrained()</a> and <a href="/docs/diffusers/pr_10095/en/api/models/overview#diffusers.ModelMixin.save_pretrained">ModelMixin.save_pretrained()</a>.',Ne,re,ze,pe,Le,ue,Qe;return c=new ce({props:{title:"Load schedulers and models",local:"load-schedulers-and-models",headingTag:"h1"}}),d=new Js({props:{classNames:"absolute z-10 right-0 top-0",options:[{label:"Mixed",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers_doc/en/schedulers.ipynb"},{label:"PyTorch",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers_doc/en/pytorch/schedulers.ipynb"},{label:"TensorFlow",value:"https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers_doc/en/tensorflow/schedulers.ipynb"},{label:"Mixed",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/diffusers_doc/en/schedulers.ipynb"},{label:"PyTorch",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/diffusers_doc/en/pytorch/schedulers.ipynb"},{label:"TensorFlow",value:"https://studiolab.sagemaker.aws/import/github/huggingface/notebooks/blob/main/diffusers_doc/en/tensorflow/schedulers.ipynb"}]}}),I=new $({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwRGlmZnVzaW9uUGlwZWxpbmUlMEElMEFwaXBlbGluZSUyMCUzRCUyMERpZmZ1c2lvblBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJzdGFibGUtZGlmZnVzaW9uLXYxLTUlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTUlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYlMkMlMjB1c2Vfc2FmZXRlbnNvcnMlM0RUcnVlJTBBKS50byglMjJjdWRhJTIyKQ==",highlighted:`<span class="hljs-keyword">import</span> torch
<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> DiffusionPipeline

pipeline = DiffusionPipeline.from_pretrained(
    <span class="hljs-string">&quot;stable-diffusion-v1-5/stable-diffusion-v1-5&quot;</span>, torch_dtype=torch.float16, use_safetensors=<span class="hljs-literal">True</span>
).to(<span class="hljs-string">&quot;cuda&quot;</span>)`,wrap:!1}}),R=new $({props:{code:"cGlwZWxpbmUuc2NoZWR1bGVyJTBBUE5ETVNjaGVkdWxlciUyMCU3QiUwQSUyMCUyMCUyMl9jbGFzc19uYW1lJTIyJTNBJTIwJTIyUE5ETVNjaGVkdWxlciUyMiUyQyUwQSUyMCUyMCUyMl9kaWZmdXNlcnNfdmVyc2lvbiUyMiUzQSUyMCUyMjAuMjEuNCUyMiUyQyUwQSUyMCUyMCUyMmJldGFfZW5kJTIyJTNBJTIwMC4wMTIlMkMlMEElMjAlMjAlMjJiZXRhX3NjaGVkdWxlJTIyJTNBJTIwJTIyc2NhbGVkX2xpbmVhciUyMiUyQyUwQSUyMCUyMCUyMmJldGFfc3RhcnQlMjIlM0ElMjAwLjAwMDg1JTJDJTBBJTIwJTIwJTIyY2xpcF9zYW1wbGUlMjIlM0ElMjBmYWxzZSUyQyUwQSUyMCUyMCUyMm51bV90cmFpbl90aW1lc3RlcHMlMjIlM0ElMjAxMDAwJTJDJTBBJTIwJTIwJTIyc2V0X2FscGhhX3RvX29uZSUyMiUzQSUyMGZhbHNlJTJDJTBBJTIwJTIwJTIyc2tpcF9wcmtfc3RlcHMlMjIlM0ElMjB0cnVlJTJDJTBBJTIwJTIwJTIyc3RlcHNfb2Zmc2V0JTIyJTNBJTIwMSUyQyUwQSUyMCUyMCUyMnRpbWVzdGVwX3NwYWNpbmclMjIlM0ElMjAlMjJsZWFkaW5nJTIyJTJDJTBBJTIwJTIwJTIydHJhaW5lZF9iZXRhcyUyMiUzQSUyMG51bGwlMEElN0Q=",highlighted:`pipeline.scheduler
PNDMScheduler {
  <span class="hljs-string">&quot;_class_name&quot;</span>: <span class="hljs-string">&quot;PNDMScheduler&quot;</span>,
  <span class="hljs-string">&quot;_diffusers_version&quot;</span>: <span class="hljs-string">&quot;0.21.4&quot;</span>,
  <span class="hljs-string">&quot;beta_end&quot;</span>: <span class="hljs-number">0.012</span>,
  <span class="hljs-string">&quot;beta_schedule&quot;</span>: <span class="hljs-string">&quot;scaled_linear&quot;</span>,
  <span class="hljs-string">&quot;beta_start&quot;</span>: <span class="hljs-number">0.00085</span>,
  <span class="hljs-string">&quot;clip_sample&quot;</span>: false,
  <span class="hljs-string">&quot;num_train_timesteps&quot;</span>: <span class="hljs-number">1000</span>,
  <span class="hljs-string">&quot;set_alpha_to_one&quot;</span>: false,
  <span class="hljs-string">&quot;skip_prk_steps&quot;</span>: true,
  <span class="hljs-string">&quot;steps_offset&quot;</span>: <span class="hljs-number">1</span>,
  <span class="hljs-string">&quot;timestep_spacing&quot;</span>: <span class="hljs-string">&quot;leading&quot;</span>,
  <span class="hljs-string">&quot;trained_betas&quot;</span>: null
}`,wrap:!1}}),B=new ce({props:{title:"Load a scheduler",local:"load-a-scheduler",headingTag:"h2"}}),E=new $({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMERESU1TY2hlZHVsZXIlMkMlMjBEaWZmdXNpb25QaXBlbGluZSUwQSUwQWRkaW0lMjAlM0QlMjBERElNU2NoZWR1bGVyLmZyb21fcHJldHJhaW5lZCglMjJzdGFibGUtZGlmZnVzaW9uLXYxLTUlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTUlMjIlMkMlMjBzdWJmb2xkZXIlM0QlMjJzY2hlZHVsZXIlMjIp",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> DDIMScheduler, DiffusionPipeline

ddim = DDIMScheduler.from_pretrained(<span class="hljs-string">&quot;stable-diffusion-v1-5/stable-diffusion-v1-5&quot;</span>, subfolder=<span class="hljs-string">&quot;scheduler&quot;</span>)`,wrap:!1}}),H=new $({props:{code:"cGlwZWxpbmUlMjAlM0QlMjBEaWZmdXNpb25QaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIyc3RhYmxlLWRpZmZ1c2lvbi12MS01JTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTIyJTJDJTIwc2NoZWR1bGVyJTNEZGRpbSUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQxNiUyQyUyMHVzZV9zYWZldGVuc29ycyUzRFRydWUlMEEpLnRvKCUyMmN1ZGElMjIp",highlighted:`pipeline = DiffusionPipeline.from_pretrained(
    <span class="hljs-string">&quot;stable-diffusion-v1-5/stable-diffusion-v1-5&quot;</span>, scheduler=ddim, torch_dtype=torch.float16, use_safetensors=<span class="hljs-literal">True</span>
).to(<span class="hljs-string">&quot;cuda&quot;</span>)`,wrap:!1}}),N=new ce({props:{title:"Compare schedulers",local:"compare-schedulers",headingTag:"h2"}}),Q=new $({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwRGlmZnVzaW9uUGlwZWxpbmUlMEElMEFwaXBlbGluZSUyMCUzRCUyMERpZmZ1c2lvblBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJzdGFibGUtZGlmZnVzaW9uLXYxLTUlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTUlMjIlMkMlMjB0b3JjaF9kdHlwZSUzRHRvcmNoLmZsb2F0MTYlMkMlMjB1c2Vfc2FmZXRlbnNvcnMlM0RUcnVlJTBBKS50byglMjJjdWRhJTIyKSUwQSUwQXByb21wdCUyMCUzRCUyMCUyMkElMjBwaG90b2dyYXBoJTIwb2YlMjBhbiUyMGFzdHJvbmF1dCUyMHJpZGluZyUyMGElMjBob3JzZSUyMG9uJTIwTWFycyUyQyUyMGhpZ2glMjByZXNvbHV0aW9uJTJDJTIwaGlnaCUyMGRlZmluaXRpb24uJTIyJTBBZ2VuZXJhdG9yJTIwJTNEJTIwdG9yY2guR2VuZXJhdG9yKGRldmljZSUzRCUyMmN1ZGElMjIpLm1hbnVhbF9zZWVkKDgp",highlighted:`<span class="hljs-keyword">import</span> torch
<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> DiffusionPipeline

pipeline = DiffusionPipeline.from_pretrained(
    <span class="hljs-string">&quot;stable-diffusion-v1-5/stable-diffusion-v1-5&quot;</span>, torch_dtype=torch.float16, use_safetensors=<span class="hljs-literal">True</span>
).to(<span class="hljs-string">&quot;cuda&quot;</span>)

prompt = <span class="hljs-string">&quot;A photograph of an astronaut riding a horse on Mars, high resolution, high definition.&quot;</span>
generator = torch.Generator(device=<span class="hljs-string">&quot;cuda&quot;</span>).manual_seed(<span class="hljs-number">8</span>)`,wrap:!1}}),G=new Us({props:{id:"schedulers",options:["LMSDiscreteScheduler","EulerDiscreteScheduler","EulerAncestralDiscreteScheduler","DPMSolverMultistepScheduler"],$$slots:{default:[Gs]},$$scope:{ctx:T}}}),Y=new ce({props:{title:"Flax schedulers",local:"flax-schedulers",headingTag:"h3"}}),V=new ws({props:{warning:!0,$$slots:{default:[_s]},$$scope:{ctx:T}}}),A=new $({props:{code:"aW1wb3J0JTIwamF4JTBBaW1wb3J0JTIwbnVtcHklMjBhcyUyMG5wJTBBZnJvbSUyMGZsYXguamF4X3V0aWxzJTIwaW1wb3J0JTIwcmVwbGljYXRlJTBBZnJvbSUyMGZsYXgudHJhaW5pbmcuY29tbW9uX3V0aWxzJTIwaW1wb3J0JTIwc2hhcmQlMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwRmxheFN0YWJsZURpZmZ1c2lvblBpcGVsaW5lJTJDJTIwRmxheERQTVNvbHZlck11bHRpc3RlcFNjaGVkdWxlciUwQSUwQXNjaGVkdWxlciUyQyUyMHNjaGVkdWxlcl9zdGF0ZSUyMCUzRCUyMEZsYXhEUE1Tb2x2ZXJNdWx0aXN0ZXBTY2hlZHVsZXIuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCUyMnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyMiUyQyUwQSUyMCUyMCUyMCUyMHN1YmZvbGRlciUzRCUyMnNjaGVkdWxlciUyMiUwQSklMEFwaXBlbGluZSUyQyUyMHBhcmFtcyUyMCUzRCUyMEZsYXhTdGFibGVEaWZmdXNpb25QaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIyc3RhYmxlLWRpZmZ1c2lvbi12MS01JTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTIyJTJDJTBBJTIwJTIwJTIwJTIwc2NoZWR1bGVyJTNEc2NoZWR1bGVyJTJDJTBBJTIwJTIwJTIwJTIwdmFyaWFudCUzRCUyMmJmMTYlMjIlMkMlMEElMjAlMjAlMjAlMjBkdHlwZSUzRGpheC5udW1weS5iZmxvYXQxNiUyQyUwQSklMEFwYXJhbXMlNUIlMjJzY2hlZHVsZXIlMjIlNUQlMjAlM0QlMjBzY2hlZHVsZXJfc3RhdGU=",highlighted:`<span class="hljs-keyword">import</span> jax
<span class="hljs-keyword">import</span> numpy <span class="hljs-keyword">as</span> np
<span class="hljs-keyword">from</span> flax.jax_utils <span class="hljs-keyword">import</span> replicate
<span class="hljs-keyword">from</span> flax.training.common_utils <span class="hljs-keyword">import</span> shard
<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> FlaxStableDiffusionPipeline, FlaxDPMSolverMultistepScheduler

scheduler, scheduler_state = FlaxDPMSolverMultistepScheduler.from_pretrained(
    <span class="hljs-string">&quot;stable-diffusion-v1-5/stable-diffusion-v1-5&quot;</span>,
    subfolder=<span class="hljs-string">&quot;scheduler&quot;</span>
)
pipeline, params = FlaxStableDiffusionPipeline.from_pretrained(
    <span class="hljs-string">&quot;stable-diffusion-v1-5/stable-diffusion-v1-5&quot;</span>,
    scheduler=scheduler,
    variant=<span class="hljs-string">&quot;bf16&quot;</span>,
    dtype=jax.numpy.bfloat16,
)
params[<span class="hljs-string">&quot;scheduler&quot;</span>] = scheduler_state`,wrap:!1}}),O=new $({props:{code:"JTIzJTIwR2VuZXJhdGUlMjAxJTIwaW1hZ2UlMjBwZXIlMjBwYXJhbGxlbCUyMGRldmljZSUyMCg4JTIwb24lMjBUUFV2Mi04JTIwb3IlMjBUUFV2My04KSUwQXByb21wdCUyMCUzRCUyMCUyMkElMjBwaG90b2dyYXBoJTIwb2YlMjBhbiUyMGFzdHJvbmF1dCUyMHJpZGluZyUyMGElMjBob3JzZSUyMG9uJTIwTWFycyUyQyUyMGhpZ2glMjByZXNvbHV0aW9uJTJDJTIwaGlnaCUyMGRlZmluaXRpb24uJTIyJTBBbnVtX3NhbXBsZXMlMjAlM0QlMjBqYXguZGV2aWNlX2NvdW50KCklMEFwcm9tcHRfaWRzJTIwJTNEJTIwcGlwZWxpbmUucHJlcGFyZV9pbnB1dHMoJTVCcHJvbXB0JTVEJTIwKiUyMG51bV9zYW1wbGVzKSUwQSUwQXBybmdfc2VlZCUyMCUzRCUyMGpheC5yYW5kb20uUFJOR0tleSgwKSUwQW51bV9pbmZlcmVuY2Vfc3RlcHMlMjAlM0QlMjAyNSUwQSUwQSUyMyUyMHNoYXJkJTIwaW5wdXRzJTIwYW5kJTIwcm5nJTBBcGFyYW1zJTIwJTNEJTIwcmVwbGljYXRlKHBhcmFtcyklMEFwcm5nX3NlZWQlMjAlM0QlMjBqYXgucmFuZG9tLnNwbGl0KHBybmdfc2VlZCUyQyUyMGpheC5kZXZpY2VfY291bnQoKSklMEFwcm9tcHRfaWRzJTIwJTNEJTIwc2hhcmQocHJvbXB0X2lkcyklMEElMEFpbWFnZXMlMjAlM0QlMjBwaXBlbGluZShwcm9tcHRfaWRzJTJDJTIwcGFyYW1zJTJDJTIwcHJuZ19zZWVkJTJDJTIwbnVtX2luZmVyZW5jZV9zdGVwcyUyQyUyMGppdCUzRFRydWUpLmltYWdlcyUwQWltYWdlcyUyMCUzRCUyMHBpcGVsaW5lLm51bXB5X3RvX3BpbChucC5hc2FycmF5KGltYWdlcy5yZXNoYXBlKChudW1fc2FtcGxlcyUyQyklMjAlMkIlMjBpbWFnZXMuc2hhcGUlNUItMyUzQSU1RCkpKQ==",highlighted:`<span class="hljs-comment"># Generate 1 image per parallel device (8 on TPUv2-8 or TPUv3-8)</span>
prompt = <span class="hljs-string">&quot;A photograph of an astronaut riding a horse on Mars, high resolution, high definition.&quot;</span>
num_samples = jax.device_count()
prompt_ids = pipeline.prepare_inputs([prompt] * num_samples)

prng_seed = jax.random.PRNGKey(<span class="hljs-number">0</span>)
num_inference_steps = <span class="hljs-number">25</span>

<span class="hljs-comment"># shard inputs and rng</span>
params = replicate(params)
prng_seed = jax.random.split(prng_seed, jax.device_count())
prompt_ids = shard(prompt_ids)

images = pipeline(prompt_ids, params, prng_seed, num_inference_steps, jit=<span class="hljs-literal">True</span>).images
images = pipeline.numpy_to_pil(np.asarray(images.reshape((num_samples,) + images.shape[-<span class="hljs-number">3</span>:])))`,wrap:!1}}),ee=new ce({props:{title:"Models",local:"models",headingTag:"h2"}}),te=new $({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFVOZXQyRENvbmRpdGlvbk1vZGVsJTBBJTBBdW5ldCUyMCUzRCUyMFVOZXQyRENvbmRpdGlvbk1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJzdGFibGUtZGlmZnVzaW9uLXYxLTUlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTUlMjIlMkMlMjBzdWJmb2xkZXIlM0QlMjJ1bmV0JTIyJTJDJTIwdXNlX3NhZmV0ZW5zb3JzJTNEVHJ1ZSk=",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> UNet2DConditionModel

unet = UNet2DConditionModel.from_pretrained(<span class="hljs-string">&quot;stable-diffusion-v1-5/stable-diffusion-v1-5&quot;</span>, subfolder=<span class="hljs-string">&quot;unet&quot;</span>, use_safetensors=<span class="hljs-literal">True</span>)`,wrap:!1}}),ne=new $({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFVOZXQyRE1vZGVsJTBBJTBBdW5ldCUyMCUzRCUyMFVOZXQyRE1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJnb29nbGUlMkZkZHBtLWNpZmFyMTAtMzIlMjIlMkMlMjB1c2Vfc2FmZXRlbnNvcnMlM0RUcnVlKQ==",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> UNet2DModel

unet = UNet2DModel.from_pretrained(<span class="hljs-string">&quot;google/ddpm-cifar10-32&quot;</span>, use_safetensors=<span class="hljs-literal">True</span>)`,wrap:!1}}),re=new $({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFVOZXQyRENvbmRpdGlvbk1vZGVsJTBBJTBBdW5ldCUyMCUzRCUyMFVOZXQyRENvbmRpdGlvbk1vZGVsLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJzdGFibGUtZGlmZnVzaW9uLXYxLTUlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTUlMjIlMkMlMjBzdWJmb2xkZXIlM0QlMjJ1bmV0JTIyJTJDJTIwdmFyaWFudCUzRCUyMm5vbl9lbWElMjIlMkMlMjB1c2Vfc2FmZXRlbnNvcnMlM0RUcnVlJTBBKSUwQXVuZXQuc2F2ZV9wcmV0cmFpbmVkKCUyMi4lMkZsb2NhbC11bmV0JTIyJTJDJTIwdmFyaWFudCUzRCUyMm5vbl9lbWElMjIp",highlighted:`<span class="hljs-keyword">from</span> diffusers <span class="hljs-keyword">import</span> UNet2DConditionModel

unet = UNet2DConditionModel.from_pretrained(
    <span class="hljs-string">&quot;stable-diffusion-v1-5/stable-diffusion-v1-5&quot;</span>, subfolder=<span class="hljs-string">&quot;unet&quot;</span>, variant=<span class="hljs-string">&quot;non_ema&quot;</span>, use_safetensors=<span class="hljs-literal">True</span>
)
unet.save_pretrained(<span class="hljs-string">&quot;./local-unet&quot;</span>, variant=<span class="hljs-string">&quot;non_ema&quot;</span>)`,wrap:!1}}),pe=new Zs({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/using-diffusers/schedulers.md"}}),{c(){n=g("meta"),J=i(),u=g("p"),o=i(),f(c.$$.fragment),a=i(),f(d.$$.fragment),v=i(),p=g("p"),p.textContent=U,S=i(),j=g("p"),j.innerHTML=oe,k=i(),f(I.$$.fragment),fe=i(),x=g("p"),x.innerHTML=Ye,me=i(),f(R.$$.fragment),he=i(),f(B.$$.fragment),Me=i(),C=g("p"),C.innerHTML=Pe,ye=i(),X=g("p"),X.innerHTML=Ae,be=i(),f(E.$$.fragment),ge=i(),F=g("p"),F.textContent=Ke,we=i(),f(H.$$.fragment),Je=i(),f(N.$$.fragment),Ze=i(),z=g("p"),z.innerHTML=Oe,Ue=i(),L=g("p"),L.innerHTML=es,Te=i(),f(Q.$$.fragment),$e=i(),D=g("p"),D.innerHTML=ss,je=i(),f(G.$$.fragment),ve=i(),_=g("div"),_.innerHTML=ls,Ge=i(),W=g("div"),W.innerHTML=ts,_e=i(),q=g("p"),q.textContent=as,We=i(),f(Y.$$.fragment),Ve=i(),P=g("p"),P.innerHTML=ns,Se=i(),f(V.$$.fragment),ke=i(),f(A.$$.fragment),Ie=i(),K=g("p"),K.textContent=is,xe=i(),f(O.$$.fragment),Re=i(),f(ee.$$.fragment),Be=i(),se=g("p"),se.innerHTML=rs,Ce=i(),le=g("p"),le.innerHTML=ps,Xe=i(),f(te.$$.fragment),Ee=i(),ae=g("p"),ae.innerHTML=os,Fe=i(),f(ne.$$.fragment),He=i(),ie=g("p"),ie.innerHTML=us,Ne=i(),f(re.$$.fragment),ze=i(),f(pe.$$.fragment),Le=i(),ue=g("p"),this.h()},l(e){const s=bs("svelte-u9bgzb",document.head);n=w(s,"META",{name:!0,content:!0}),s.forEach(l),J=r(e),u=w(e,"P",{}),fs(u).forEach(l),o=r(e),m(c.$$.fragment,e),a=r(e),m(d.$$.fragment,e),v=r(e),p=w(e,"P",{"data-svelte-h":!0}),Z(p)!=="svelte-147f8qd"&&(p.textContent=U),S=r(e),j=w(e,"P",{"data-svelte-h":!0}),Z(j)!=="svelte-1vfyhb5"&&(j.innerHTML=oe),k=r(e),m(I.$$.fragment,e),fe=r(e),x=w(e,"P",{"data-svelte-h":!0}),Z(x)!=="svelte-bntjs"&&(x.innerHTML=Ye),me=r(e),m(R.$$.fragment,e),he=r(e),m(B.$$.fragment,e),Me=r(e),C=w(e,"P",{"data-svelte-h":!0}),Z(C)!=="svelte-1og0yok"&&(C.innerHTML=Pe),ye=r(e),X=w(e,"P",{"data-svelte-h":!0}),Z(X)!=="svelte-cobfak"&&(X.innerHTML=Ae),be=r(e),m(E.$$.fragment,e),ge=r(e),F=w(e,"P",{"data-svelte-h":!0}),Z(F)!=="svelte-1gk96nj"&&(F.textContent=Ke),we=r(e),m(H.$$.fragment,e),Je=r(e),m(N.$$.fragment,e),Ze=r(e),z=w(e,"P",{"data-svelte-h":!0}),Z(z)!=="svelte-gbqn3x"&&(z.innerHTML=Oe),Ue=r(e),L=w(e,"P",{"data-svelte-h":!0}),Z(L)!=="svelte-1fugocp"&&(L.innerHTML=es),Te=r(e),m(Q.$$.fragment,e),$e=r(e),D=w(e,"P",{"data-svelte-h":!0}),Z(D)!=="svelte-1cyn3z2"&&(D.innerHTML=ss),je=r(e),m(G.$$.fragment,e),ve=r(e),_=w(e,"DIV",{class:!0,"data-svelte-h":!0}),Z(_)!=="svelte-k6zsrl"&&(_.innerHTML=ls),Ge=r(e),W=w(e,"DIV",{class:!0,"data-svelte-h":!0}),Z(W)!=="svelte-8ii4fv"&&(W.innerHTML=ts),_e=r(e),q=w(e,"P",{"data-svelte-h":!0}),Z(q)!=="svelte-95mtrv"&&(q.textContent=as),We=r(e),m(Y.$$.fragment,e),Ve=r(e),P=w(e,"P",{"data-svelte-h":!0}),Z(P)!=="svelte-1ci0su8"&&(P.innerHTML=ns),Se=r(e),m(V.$$.fragment,e),ke=r(e),m(A.$$.fragment,e),Ie=r(e),K=w(e,"P",{"data-svelte-h":!0}),Z(K)!=="svelte-cu42wu"&&(K.textContent=is),xe=r(e),m(O.$$.fragment,e),Re=r(e),m(ee.$$.fragment,e),Be=r(e),se=w(e,"P",{"data-svelte-h":!0}),Z(se)!=="svelte-1eidpaw"&&(se.innerHTML=rs),Ce=r(e),le=w(e,"P",{"data-svelte-h":!0}),Z(le)!=="svelte-mll1yp"&&(le.innerHTML=ps),Xe=r(e),m(te.$$.fragment,e),Ee=r(e),ae=w(e,"P",{"data-svelte-h":!0}),Z(ae)!=="svelte-1r8gmv0"&&(ae.innerHTML=os),Fe=r(e),m(ne.$$.fragment,e),He=r(e),ie=w(e,"P",{"data-svelte-h":!0}),Z(ie)!=="svelte-9drs9z"&&(ie.innerHTML=us),Ne=r(e),m(re.$$.fragment,e),ze=r(e),m(pe.$$.fragment,e),Le=r(e),ue=w(e,"P",{}),fs(ue).forEach(l),this.h()},h(){De(n,"name","hf:doc:metadata"),De(n,"content",Vs),De(_,"class","flex gap-4"),De(W,"class","flex gap-4")},m(e,s){gs(document.head,n),t(e,J,s),t(e,u,s),t(e,o,s),h(c,e,s),t(e,a,s),h(d,e,s),t(e,v,s),t(e,p,s),t(e,S,s),t(e,j,s),t(e,k,s),h(I,e,s),t(e,fe,s),t(e,x,s),t(e,me,s),h(R,e,s),t(e,he,s),h(B,e,s),t(e,Me,s),t(e,C,s),t(e,ye,s),t(e,X,s),t(e,be,s),h(E,e,s),t(e,ge,s),t(e,F,s),t(e,we,s),h(H,e,s),t(e,Je,s),h(N,e,s),t(e,Ze,s),t(e,z,s),t(e,Ue,s),t(e,L,s),t(e,Te,s),h(Q,e,s),t(e,$e,s),t(e,D,s),t(e,je,s),h(G,e,s),t(e,ve,s),t(e,_,s),t(e,Ge,s),t(e,W,s),t(e,_e,s),t(e,q,s),t(e,We,s),h(Y,e,s),t(e,Ve,s),t(e,P,s),t(e,Se,s),h(V,e,s),t(e,ke,s),h(A,e,s),t(e,Ie,s),t(e,K,s),t(e,xe,s),h(O,e,s),t(e,Re,s),h(ee,e,s),t(e,Be,s),t(e,se,s),t(e,Ce,s),t(e,le,s),t(e,Xe,s),h(te,e,s),t(e,Ee,s),t(e,ae,s),t(e,Fe,s),h(ne,e,s),t(e,He,s),t(e,ie,s),t(e,Ne,s),h(re,e,s),t(e,ze,s),h(pe,e,s),t(e,Le,s),t(e,ue,s),Qe=!0},p(e,[s]){const cs={};s&2&&(cs.$$scope={dirty:s,ctx:e}),G.$set(cs);const ds={};s&2&&(ds.$$scope={dirty:s,ctx:e}),V.$set(ds)},i(e){Qe||(M(c.$$.fragment,e),M(d.$$.fragment,e),M(I.$$.fragment,e),M(R.$$.fragment,e),M(B.$$.fragment,e),M(E.$$.fragment,e),M(H.$$.fragment,e),M(N.$$.fragment,e),M(Q.$$.fragment,e),M(G.$$.fragment,e),M(Y.$$.fragment,e),M(V.$$.fragment,e),M(A.$$.fragment,e),M(O.$$.fragment,e),M(ee.$$.fragment,e),M(te.$$.fragment,e),M(ne.$$.fragment,e),M(re.$$.fragment,e),M(pe.$$.fragment,e),Qe=!0)},o(e){y(c.$$.fragment,e),y(d.$$.fragment,e),y(I.$$.fragment,e),y(R.$$.fragment,e),y(B.$$.fragment,e),y(E.$$.fragment,e),y(H.$$.fragment,e),y(N.$$.fragment,e),y(Q.$$.fragment,e),y(G.$$.fragment,e),y(Y.$$.fragment,e),y(V.$$.fragment,e),y(A.$$.fragment,e),y(O.$$.fragment,e),y(ee.$$.fragment,e),y(te.$$.fragment,e),y(ne.$$.fragment,e),y(re.$$.fragment,e),y(pe.$$.fragment,e),Qe=!1},d(e){e&&(l(J),l(u),l(o),l(a),l(v),l(p),l(S),l(j),l(k),l(fe),l(x),l(me),l(he),l(Me),l(C),l(ye),l(X),l(be),l(ge),l(F),l(we),l(Je),l(Ze),l(z),l(Ue),l(L),l(Te),l($e),l(D),l(je),l(ve),l(_),l(Ge),l(W),l(_e),l(q),l(We),l(Ve),l(P),l(Se),l(ke),l(Ie),l(K),l(xe),l(Re),l(Be),l(se),l(Ce),l(le),l(Xe),l(Ee),l(ae),l(Fe),l(He),l(ie),l(Ne),l(ze),l(Le),l(ue)),l(n),b(c,e),b(d,e),b(I,e),b(R,e),b(B,e),b(E,e),b(H,e),b(N,e),b(Q,e),b(G,e),b(Y,e),b(V,e),b(A,e),b(O,e),b(ee,e),b(te,e),b(ne,e),b(re,e),b(pe,e)}}}const Vs='{"title":"Load schedulers and models","local":"load-schedulers-and-models","sections":[{"title":"Load a scheduler","local":"load-a-scheduler","sections":[],"depth":2},{"title":"Compare schedulers","local":"compare-schedulers","sections":[{"title":"Flax schedulers","local":"flax-schedulers","sections":[],"depth":3}],"depth":2},{"title":"Models","local":"models","sections":[],"depth":2}],"depth":1}';function Ss(T){return hs(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Es extends Ms{constructor(n){super(),ys(this,n,Ss,Ws,ms,{})}}export{Es as component};
