import{s as ms,o as hs,n as de}from"../chunks/scheduler.8c3d61f6.js";import{S as ys,i as Ms,g as w,s as i,r as f,A as bs,h as g,f as l,c as r,j as fs,u as m,x as J,k as De,y as ws,a as t,v as h,d as y,t as M,w as b}from"../chunks/index.589a98e8.js";import{T as gs}from"../chunks/Tip.42aa8582.js";import{C as Z}from"../chunks/CodeBlock.36627b28.js";import{D as Us}from"../chunks/DocNotebookDropdown.108e4998.js";import{H as ue,E as Js}from"../chunks/EditOnGithub.e5a8d9cb.js";import{H as Ts,a as ze}from"../chunks/HfOption.9804ab8b.js";function $s($){let n,U='<a href="/docs/diffusers/pr_8489/en/api/schedulers/lms_discrete#diffusers.LMSDiscreteScheduler">LMSDiscreteScheduler</a> typically generates higher quality images than the default scheduler.',c,o,u;return o=new Z({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=w("p"),n.innerHTML=U,c=i(),f(o.$$.fragment)},l(a){n=g(a,"P",{"data-svelte-h":!0}),J(n)!=="svelte-1cbvbue"&&(n.innerHTML=U),c=r(a),m(o.$$.fragment,a)},m(a,d){t(a,n,d),t(a,c,d),h(o,a,d),u=!0},p:de,i(a){u||(y(o.$$.fragment,a),u=!0)},o(a){M(o.$$.fragment,a),u=!1},d(a){a&&(l(n),l(c)),b(o,a)}}}function Zs($){let n,U='<a href="/docs/diffusers/pr_8489/en/api/schedulers/euler#diffusers.EulerDiscreteScheduler">EulerDiscreteScheduler</a> can generate higher quality images in just 30 steps.',c,o,u;return o=new Z({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=w("p"),n.innerHTML=U,c=i(),f(o.$$.fragment)},l(a){n=g(a,"P",{"data-svelte-h":!0}),J(n)!=="svelte-18sejxc"&&(n.innerHTML=U),c=r(a),m(o.$$.fragment,a)},m(a,d){t(a,n,d),t(a,c,d),h(o,a,d),u=!0},p:de,i(a){u||(y(o.$$.fragment,a),u=!0)},o(a){M(o.$$.fragment,a),u=!1},d(a){a&&(l(n),l(c)),b(o,a)}}}function js($){let n,U='<a href="/docs/diffusers/pr_8489/en/api/schedulers/euler_ancestral#diffusers.EulerAncestralDiscreteScheduler">EulerAncestralDiscreteScheduler</a> can generate higher quality images in just 30 steps.',c,o,u;return o=new Z({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=w("p"),n.innerHTML=U,c=i(),f(o.$$.fragment)},l(a){n=g(a,"P",{"data-svelte-h":!0}),J(n)!=="svelte-1imqqea"&&(n.innerHTML=U),c=r(a),m(o.$$.fragment,a)},m(a,d){t(a,n,d),t(a,c,d),h(o,a,d),u=!0},p:de,i(a){u||(y(o.$$.fragment,a),u=!0)},o(a){M(o.$$.fragment,a),u=!1},d(a){a&&(l(n),l(c)),b(o,a)}}}function vs($){let n,U='<a href="/docs/diffusers/pr_8489/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.',c,o,u;return o=new Z({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=w("p"),n.innerHTML=U,c=i(),f(o.$$.fragment)},l(a){n=g(a,"P",{"data-svelte-h":!0}),J(n)!=="svelte-1dbf6gc"&&(n.innerHTML=U),c=r(a),m(o.$$.fragment,a)},m(a,d){t(a,n,d),t(a,c,d),h(o,a,d),u=!0},p:de,i(a){u||(y(o.$$.fragment,a),u=!0)},o(a){M(o.$$.fragment,a),u=!1},d(a){a&&(l(n),l(c)),b(o,a)}}}function Ws($){let n,U,c,o,u,a,d,v;return n=new ze({props:{id:"schedulers",option:"LMSDiscreteScheduler",$$slots:{default:[$s]},$$scope:{ctx:$}}}),c=new ze({props:{id:"schedulers",option:"EulerDiscreteScheduler",$$slots:{default:[Zs]},$$scope:{ctx:$}}}),u=new ze({props:{id:"schedulers",option:"EulerAncestralDiscreteScheduler",$$slots:{default:[js]},$$scope:{ctx:$}}}),d=new ze({props:{id:"schedulers",option:"DPMSolverMultistepScheduler",$$slots:{default:[vs]},$$scope:{ctx:$}}}),{c(){f(n.$$.fragment),U=i(),f(c.$$.fragment),o=i(),f(u.$$.fragment),a=i(),f(d.$$.fragment)},l(p){m(n.$$.fragment,p),U=r(p),m(c.$$.fragment,p),o=r(p),m(u.$$.fragment,p),a=r(p),m(d.$$.fragment,p)},m(p,T){h(n,p,T),t(p,U,T),h(c,p,T),t(p,o,T),h(u,p,T),t(p,a,T),h(d,p,T),v=!0},p(p,T){const V={};T&2&&(V.$$scope={dirty:T,ctx:p}),n.$set(V);const j={};T&2&&(j.$$scope={dirty:T,ctx:p}),c.$set(j);const oe={};T&2&&(oe.$$scope={dirty:T,ctx:p}),u.$set(oe);const k={};T&2&&(k.$$scope={dirty:T,ctx:p}),d.$set(k)},i(p){v||(y(n.$$.fragment,p),y(c.$$.fragment,p),y(u.$$.fragment,p),y(d.$$.fragment,p),v=!0)},o(p){M(n.$$.fragment,p),M(c.$$.fragment,p),M(u.$$.fragment,p),M(d.$$.fragment,p),v=!1},d(p){p&&(l(U),l(o),l(a)),b(n,p),b(c,p),b(u,p),b(d,p)}}}function Gs($){let n,U='The <code>FlaxLMSDiscreteScheduler</code> and <code>FlaxDDPMScheduler</code> are not compatible with the <a href="/docs/diffusers/pr_8489/en/api/pipelines/stable_diffusion/text2img#diffusers.FlaxStableDiffusionPipeline">FlaxStableDiffusionPipeline</a> yet.';return{c(){n=w("p"),n.innerHTML=U},l(c){n=g(c,"P",{"data-svelte-h":!0}),J(n)!=="svelte-1uix22q"&&(n.innerHTML=U)},m(c,o){t(c,n,o)},p:de,d(c){c&&l(n)}}}function _s($){let n,U,c,o,u,a,d,v,p,T="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.",V,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/runwayml/stable-diffusion-v1-5" rel="nofollow">runwayml/stable-diffusion-v1-5</a> checkpoint throughout this guide, so let’s load it first.',k,C,fe,x,Le="You can see what scheduler this pipeline uses with the <code>pipeline.scheduler</code> attribute.",me,I,he,R,ye,B,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_8489/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.',Me,N,Ae='For example, to load the <a href="/docs/diffusers/pr_8489/en/api/schedulers/ddim#diffusers.DDIMScheduler">DDIMScheduler</a>:',be,X,we,E,Ke="Then you can pass the newly loaded scheduler to the pipeline.",ge,H,Ue,F,Je,Q,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.",Te,Y,es='Let’s compare the <a href="/docs/diffusers/pr_8489/en/api/schedulers/lms_discrete#diffusers.LMSDiscreteScheduler">LMSDiscreteScheduler</a>, <a href="/docs/diffusers/pr_8489/en/api/schedulers/euler#diffusers.EulerDiscreteScheduler">EulerDiscreteScheduler</a>, <a href="/docs/diffusers/pr_8489/en/api/schedulers/euler_ancestral#diffusers.EulerAncestralDiscreteScheduler">EulerAncestralDiscreteScheduler</a>, and the <a href="/docs/diffusers/pr_8489/en/api/schedulers/multistep_dpm_solver#diffusers.DPMSolverMultistepScheduler">DPMSolverMultistepScheduler</a> on the following prompt and seed.',$e,q,Ze,D,ss='To change the pipelines scheduler, use the <a href="/docs/diffusers/pr_8489/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,W,ve,G,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>',We,_,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>',Ge,z,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.",_e,L,Se,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_8489/en/api/pipelines/stable_diffusion/text2img#diffusers.FlaxStableDiffusionPipeline">FlaxStableDiffusionPipeline</a> to use the super fast <code>FlaxDPMSolverMultistepScheduler</code>.',Ve,S,ke,A,Ce,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,Ie,ee,Re,se,rs='Models are loaded from the <a href="/docs/diffusers/pr_8489/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_8489/en/api/models/overview#diffusers.ModelMixin.from_pretrained">from_pretrained()</a> reuses files in the cache instead of re-downloading them.',Be,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/runwayml/stable-diffusion-v1-5" rel="nofollow">runwayml/stable-diffusion-v1-5</a> are stored in the <a href="https://hf.co/runwayml/stable-diffusion-v1-5/tree/main/unet" rel="nofollow">unet</a> subfolder.',Ne,te,Xe,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>.',Ee,ne,He,ie,cs='To load and save model variants, specify the <code>variant</code> argument in <a href="/docs/diffusers/pr_8489/en/api/models/overview#diffusers.ModelMixin.from_pretrained">ModelMixin.from_pretrained()</a> and <a href="/docs/diffusers/pr_8489/en/api/models/overview#diffusers.ModelMixin.save_pretrained">ModelMixin.save_pretrained()</a>.',Fe,re,Qe,pe,Ye,ce,qe;return u=new ue({props:{title:"Load schedulers and models",local:"load-schedulers-and-models",headingTag:"h1"}}),d=new Us({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"}]}}),C=new Z({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwRGlmZnVzaW9uUGlwZWxpbmUlMEElMEFwaXBlbGluZSUyMCUzRCUyMERpZmZ1c2lvblBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJydW53YXltbCUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyMiUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQxNiUyQyUyMHVzZV9zYWZldGVuc29ycyUzRFRydWUlMEEpLnRvKCUyMmN1ZGElMjIp",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;runwayml/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}}),I=new Z({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}}),R=new ue({props:{title:"Load a scheduler",local:"load-a-scheduler",headingTag:"h2"}}),X=new Z({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMERESU1TY2hlZHVsZXIlMkMlMjBEaWZmdXNpb25QaXBlbGluZSUwQSUwQWRkaW0lMjAlM0QlMjBERElNU2NoZWR1bGVyLmZyb21fcHJldHJhaW5lZCglMjJydW53YXltbCUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyMiUyQyUyMHN1YmZvbGRlciUzRCUyMnNjaGVkdWxlciUyMik=",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;runwayml/stable-diffusion-v1-5&quot;</span>, subfolder=<span class="hljs-string">&quot;scheduler&quot;</span>)`,wrap:!1}}),H=new Z({props:{code:"cGlwZWxpbmUlMjAlM0QlMjBEaWZmdXNpb25QaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwJTIycnVud2F5bWwlMkZzdGFibGUtZGlmZnVzaW9uLXYxLTUlMjIlMkMlMjBzY2hlZHVsZXIlM0RkZGltJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5mbG9hdDE2JTJDJTIwdXNlX3NhZmV0ZW5zb3JzJTNEVHJ1ZSUwQSkudG8oJTIyY3VkYSUyMik=",highlighted:`pipeline = DiffusionPipeline.from_pretrained(
    <span class="hljs-string">&quot;runwayml/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}}),F=new ue({props:{title:"Compare schedulers",local:"compare-schedulers",headingTag:"h2"}}),q=new Z({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwRGlmZnVzaW9uUGlwZWxpbmUlMEElMEFwaXBlbGluZSUyMCUzRCUyMERpZmZ1c2lvblBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJydW53YXltbCUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyMiUyQyUyMHRvcmNoX2R0eXBlJTNEdG9yY2guZmxvYXQxNiUyQyUyMHVzZV9zYWZldGVuc29ycyUzRFRydWUlMEEpLnRvKCUyMmN1ZGElMjIpJTBBJTBBcHJvbXB0JTIwJTNEJTIwJTIyQSUyMHBob3RvZ3JhcGglMjBvZiUyMGFuJTIwYXN0cm9uYXV0JTIwcmlkaW5nJTIwYSUyMGhvcnNlJTIwb24lMjBNYXJzJTJDJTIwaGlnaCUyMHJlc29sdXRpb24lMkMlMjBoaWdoJTIwZGVmaW5pdGlvbi4lMjIlMEFnZW5lcmF0b3IlMjAlM0QlMjB0b3JjaC5HZW5lcmF0b3IoZGV2aWNlJTNEJTIyY3VkYSUyMikubWFudWFsX3NlZWQoOCk=",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;runwayml/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}}),W=new Ts({props:{id:"schedulers",options:["LMSDiscreteScheduler","EulerDiscreteScheduler","EulerAncestralDiscreteScheduler","DPMSolverMultistepScheduler"],$$slots:{default:[Ws]},$$scope:{ctx:$}}}),L=new ue({props:{title:"Flax schedulers",local:"flax-schedulers",headingTag:"h3"}}),S=new gs({props:{warning:!0,$$slots:{default:[Gs]},$$scope:{ctx:$}}}),A=new Z({props:{code:"aW1wb3J0JTIwamF4JTBBaW1wb3J0JTIwbnVtcHklMjBhcyUyMG5wJTBBZnJvbSUyMGZsYXguamF4X3V0aWxzJTIwaW1wb3J0JTIwcmVwbGljYXRlJTBBZnJvbSUyMGZsYXgudHJhaW5pbmcuY29tbW9uX3V0aWxzJTIwaW1wb3J0JTIwc2hhcmQlMEFmcm9tJTIwZGlmZnVzZXJzJTIwaW1wb3J0JTIwRmxheFN0YWJsZURpZmZ1c2lvblBpcGVsaW5lJTJDJTIwRmxheERQTVNvbHZlck11bHRpc3RlcFNjaGVkdWxlciUwQSUwQXNjaGVkdWxlciUyQyUyMHNjaGVkdWxlcl9zdGF0ZSUyMCUzRCUyMEZsYXhEUE1Tb2x2ZXJNdWx0aXN0ZXBTY2hlZHVsZXIuZnJvbV9wcmV0cmFpbmVkKCUwQSUyMCUyMCUyMCUyMCUyMnJ1bndheW1sJTJGc3RhYmxlLWRpZmZ1c2lvbi12MS01JTIyJTJDJTBBJTIwJTIwJTIwJTIwc3ViZm9sZGVyJTNEJTIyc2NoZWR1bGVyJTIyJTBBKSUwQXBpcGVsaW5lJTJDJTIwcGFyYW1zJTIwJTNEJTIwRmxheFN0YWJsZURpZmZ1c2lvblBpcGVsaW5lLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJydW53YXltbCUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyMiUyQyUwQSUyMCUyMCUyMCUyMHNjaGVkdWxlciUzRHNjaGVkdWxlciUyQyUwQSUyMCUyMCUyMCUyMHJldmlzaW9uJTNEJTIyYmYxNiUyMiUyQyUwQSUyMCUyMCUyMCUyMGR0eXBlJTNEamF4Lm51bXB5LmJmbG9hdDE2JTJDJTBBKSUwQXBhcmFtcyU1QiUyMnNjaGVkdWxlciUyMiU1RCUyMCUzRCUyMHNjaGVkdWxlcl9zdGF0ZQ==",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;runwayml/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;runwayml/stable-diffusion-v1-5&quot;</span>,
    scheduler=scheduler,
    revision=<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 Z({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 ue({props:{title:"Models",local:"models",headingTag:"h2"}}),te=new Z({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFVOZXQyRENvbmRpdGlvbk1vZGVsJTBBJTBBdW5ldCUyMCUzRCUyMFVOZXQyRENvbmRpdGlvbk1vZGVsLmZyb21fcHJldHJhaW5lZCglMjJydW53YXltbCUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyMiUyQyUyMHN1YmZvbGRlciUzRCUyMnVuZXQlMjIlMkMlMjB1c2Vfc2FmZXRlbnNvcnMlM0RUcnVlKQ==",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>, use_safetensors=<span class="hljs-literal">True</span>)`,wrap:!1}}),ne=new Z({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 Z({props:{code:"ZnJvbSUyMGRpZmZ1c2VycyUyMGltcG9ydCUyMFVOZXQyRENvbmRpdGlvbk1vZGVsJTBBJTBBdW5ldCUyMCUzRCUyMFVOZXQyRENvbmRpdGlvbk1vZGVsLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjJydW53YXltbCUyRnN0YWJsZS1kaWZmdXNpb24tdjEtNSUyMiUyQyUyMHN1YmZvbGRlciUzRCUyMnVuZXQlMjIlMkMlMjB2YXJpYW50JTNEJTIybm9uX2VtYSUyMiUyQyUyMHVzZV9zYWZldGVuc29ycyUzRFRydWUlMEEpJTBBdW5ldC5zYXZlX3ByZXRyYWluZWQoJTIyLiUyRmxvY2FsLXVuZXQlMjIlMkMlMjB2YXJpYW50JTNEJTIybm9uX2VtYSUyMik=",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>, 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 Js({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/using-diffusers/schedulers.md"}}),{c(){n=w("meta"),U=i(),c=w("p"),o=i(),f(u.$$.fragment),a=i(),f(d.$$.fragment),v=i(),p=w("p"),p.textContent=T,V=i(),j=w("p"),j.innerHTML=oe,k=i(),f(C.$$.fragment),fe=i(),x=w("p"),x.innerHTML=Le,me=i(),f(I.$$.fragment),he=i(),f(R.$$.fragment),ye=i(),B=w("p"),B.innerHTML=Pe,Me=i(),N=w("p"),N.innerHTML=Ae,be=i(),f(X.$$.fragment),we=i(),E=w("p"),E.textContent=Ke,ge=i(),f(H.$$.fragment),Ue=i(),f(F.$$.fragment),Je=i(),Q=w("p"),Q.innerHTML=Oe,Te=i(),Y=w("p"),Y.innerHTML=es,$e=i(),f(q.$$.fragment),Ze=i(),D=w("p"),D.innerHTML=ss,je=i(),f(W.$$.fragment),ve=i(),G=w("div"),G.innerHTML=ls,We=i(),_=w("div"),_.innerHTML=ts,Ge=i(),z=w("p"),z.textContent=as,_e=i(),f(L.$$.fragment),Se=i(),P=w("p"),P.innerHTML=ns,Ve=i(),f(S.$$.fragment),ke=i(),f(A.$$.fragment),Ce=i(),K=w("p"),K.textContent=is,xe=i(),f(O.$$.fragment),Ie=i(),f(ee.$$.fragment),Re=i(),se=w("p"),se.innerHTML=rs,Be=i(),le=w("p"),le.innerHTML=ps,Ne=i(),f(te.$$.fragment),Xe=i(),ae=w("p"),ae.innerHTML=os,Ee=i(),f(ne.$$.fragment),He=i(),ie=w("p"),ie.innerHTML=cs,Fe=i(),f(re.$$.fragment),Qe=i(),f(pe.$$.fragment),Ye=i(),ce=w("p"),this.h()},l(e){const s=bs("svelte-u9bgzb",document.head);n=g(s,"META",{name:!0,content:!0}),s.forEach(l),U=r(e),c=g(e,"P",{}),fs(c).forEach(l),o=r(e),m(u.$$.fragment,e),a=r(e),m(d.$$.fragment,e),v=r(e),p=g(e,"P",{"data-svelte-h":!0}),J(p)!=="svelte-147f8qd"&&(p.textContent=T),V=r(e),j=g(e,"P",{"data-svelte-h":!0}),J(j)!=="svelte-yswnun"&&(j.innerHTML=oe),k=r(e),m(C.$$.fragment,e),fe=r(e),x=g(e,"P",{"data-svelte-h":!0}),J(x)!=="svelte-bntjs"&&(x.innerHTML=Le),me=r(e),m(I.$$.fragment,e),he=r(e),m(R.$$.fragment,e),ye=r(e),B=g(e,"P",{"data-svelte-h":!0}),J(B)!=="svelte-p69yb4"&&(B.innerHTML=Pe),Me=r(e),N=g(e,"P",{"data-svelte-h":!0}),J(N)!=="svelte-mzv88u"&&(N.innerHTML=Ae),be=r(e),m(X.$$.fragment,e),we=r(e),E=g(e,"P",{"data-svelte-h":!0}),J(E)!=="svelte-1gk96nj"&&(E.textContent=Ke),ge=r(e),m(H.$$.fragment,e),Ue=r(e),m(F.$$.fragment,e),Je=r(e),Q=g(e,"P",{"data-svelte-h":!0}),J(Q)!=="svelte-gbqn3x"&&(Q.innerHTML=Oe),Te=r(e),Y=g(e,"P",{"data-svelte-h":!0}),J(Y)!=="svelte-7ylruz"&&(Y.innerHTML=es),$e=r(e),m(q.$$.fragment,e),Ze=r(e),D=g(e,"P",{"data-svelte-h":!0}),J(D)!=="svelte-8oz1l2"&&(D.innerHTML=ss),je=r(e),m(W.$$.fragment,e),ve=r(e),G=g(e,"DIV",{class:!0,"data-svelte-h":!0}),J(G)!=="svelte-k6zsrl"&&(G.innerHTML=ls),We=r(e),_=g(e,"DIV",{class:!0,"data-svelte-h":!0}),J(_)!=="svelte-8ii4fv"&&(_.innerHTML=ts),Ge=r(e),z=g(e,"P",{"data-svelte-h":!0}),J(z)!=="svelte-95mtrv"&&(z.textContent=as),_e=r(e),m(L.$$.fragment,e),Se=r(e),P=g(e,"P",{"data-svelte-h":!0}),J(P)!=="svelte-nxo8v8"&&(P.innerHTML=ns),Ve=r(e),m(S.$$.fragment,e),ke=r(e),m(A.$$.fragment,e),Ce=r(e),K=g(e,"P",{"data-svelte-h":!0}),J(K)!=="svelte-cu42wu"&&(K.textContent=is),xe=r(e),m(O.$$.fragment,e),Ie=r(e),m(ee.$$.fragment,e),Re=r(e),se=g(e,"P",{"data-svelte-h":!0}),J(se)!=="svelte-ndnbh4"&&(se.innerHTML=rs),Be=r(e),le=g(e,"P",{"data-svelte-h":!0}),J(le)!=="svelte-12b8wvr"&&(le.innerHTML=ps),Ne=r(e),m(te.$$.fragment,e),Xe=r(e),ae=g(e,"P",{"data-svelte-h":!0}),J(ae)!=="svelte-1r8gmv0"&&(ae.innerHTML=os),Ee=r(e),m(ne.$$.fragment,e),He=r(e),ie=g(e,"P",{"data-svelte-h":!0}),J(ie)!=="svelte-zyne8j"&&(ie.innerHTML=cs),Fe=r(e),m(re.$$.fragment,e),Qe=r(e),m(pe.$$.fragment,e),Ye=r(e),ce=g(e,"P",{}),fs(ce).forEach(l),this.h()},h(){De(n,"name","hf:doc:metadata"),De(n,"content",Ss),De(G,"class","flex gap-4"),De(_,"class","flex gap-4")},m(e,s){ws(document.head,n),t(e,U,s),t(e,c,s),t(e,o,s),h(u,e,s),t(e,a,s),h(d,e,s),t(e,v,s),t(e,p,s),t(e,V,s),t(e,j,s),t(e,k,s),h(C,e,s),t(e,fe,s),t(e,x,s),t(e,me,s),h(I,e,s),t(e,he,s),h(R,e,s),t(e,ye,s),t(e,B,s),t(e,Me,s),t(e,N,s),t(e,be,s),h(X,e,s),t(e,we,s),t(e,E,s),t(e,ge,s),h(H,e,s),t(e,Ue,s),h(F,e,s),t(e,Je,s),t(e,Q,s),t(e,Te,s),t(e,Y,s),t(e,$e,s),h(q,e,s),t(e,Ze,s),t(e,D,s),t(e,je,s),h(W,e,s),t(e,ve,s),t(e,G,s),t(e,We,s),t(e,_,s),t(e,Ge,s),t(e,z,s),t(e,_e,s),h(L,e,s),t(e,Se,s),t(e,P,s),t(e,Ve,s),h(S,e,s),t(e,ke,s),h(A,e,s),t(e,Ce,s),t(e,K,s),t(e,xe,s),h(O,e,s),t(e,Ie,s),h(ee,e,s),t(e,Re,s),t(e,se,s),t(e,Be,s),t(e,le,s),t(e,Ne,s),h(te,e,s),t(e,Xe,s),t(e,ae,s),t(e,Ee,s),h(ne,e,s),t(e,He,s),t(e,ie,s),t(e,Fe,s),h(re,e,s),t(e,Qe,s),h(pe,e,s),t(e,Ye,s),t(e,ce,s),qe=!0},p(e,[s]){const us={};s&2&&(us.$$scope={dirty:s,ctx:e}),W.$set(us);const ds={};s&2&&(ds.$$scope={dirty:s,ctx:e}),S.$set(ds)},i(e){qe||(y(u.$$.fragment,e),y(d.$$.fragment,e),y(C.$$.fragment,e),y(I.$$.fragment,e),y(R.$$.fragment,e),y(X.$$.fragment,e),y(H.$$.fragment,e),y(F.$$.fragment,e),y(q.$$.fragment,e),y(W.$$.fragment,e),y(L.$$.fragment,e),y(S.$$.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=!0)},o(e){M(u.$$.fragment,e),M(d.$$.fragment,e),M(C.$$.fragment,e),M(I.$$.fragment,e),M(R.$$.fragment,e),M(X.$$.fragment,e),M(H.$$.fragment,e),M(F.$$.fragment,e),M(q.$$.fragment,e),M(W.$$.fragment,e),M(L.$$.fragment,e),M(S.$$.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=!1},d(e){e&&(l(U),l(c),l(o),l(a),l(v),l(p),l(V),l(j),l(k),l(fe),l(x),l(me),l(he),l(ye),l(B),l(Me),l(N),l(be),l(we),l(E),l(ge),l(Ue),l(Je),l(Q),l(Te),l(Y),l($e),l(Ze),l(D),l(je),l(ve),l(G),l(We),l(_),l(Ge),l(z),l(_e),l(Se),l(P),l(Ve),l(ke),l(Ce),l(K),l(xe),l(Ie),l(Re),l(se),l(Be),l(le),l(Ne),l(Xe),l(ae),l(Ee),l(He),l(ie),l(Fe),l(Qe),l(Ye),l(ce)),l(n),b(u,e),b(d,e),b(C,e),b(I,e),b(R,e),b(X,e),b(H,e),b(F,e),b(q,e),b(W,e),b(L,e),b(S,e),b(A,e),b(O,e),b(ee,e),b(te,e),b(ne,e),b(re,e),b(pe,e)}}}const Ss='{"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 Vs($){return hs(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Xs extends ys{constructor(n){super(),Ms(this,n,Vs,_s,ms,{})}}export{Xs as component};
