import{s as ee,n as te,o as ie}from"../chunks/scheduler.53228c21.js";import{S as ne,i as se,e as l,s,c as I,h as ae,a as r,d as i,b as a,f as X,j as w,g as q,k as O,l as le,m as n,n as G,t as R,o as U,p as F}from"../chunks/index.100fac89.js";import{C as re}from"../chunks/CopyLLMTxtMenu.999d3d86.js";import{H as Z,E as fe}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.d27ae4df.js";function oe(Y){let f,x,_,L,o,B='<br/> <img src="https://raw.githubusercontent.com/huggingface/diffusers/77aadfee6a891ab9fcfb780f87c693f7a5beeb8e/docs/source/imgs/diffusers_library.jpg" width="400" style="border: none;"/> <br/>',C,u,M,m,P,p,J="Diffusers is a library of state-of-the-art pretrained diffusion models for generating videos, images, and audio.",T,d,K='The library revolves around the <a href="/docs/diffusers/main/en/api/pipelines/overview#diffusers.DiffusionPipeline">DiffusionPipeline</a>, an API designed for:',H,c,N="<li>easy inference with only a few lines of code</li> <li>flexibility to mix-and-match pipeline components (models, schedulers)</li> <li>loading and using adapters like LoRA</li>",D,h,Q="Diffusers also comes with optimizations - such as offloading and quantization - to ensure even the largest models are accessible on memory-constrained devices. If memory is not an issue, Diffusers supports torch.compile to boost inference speed.",E,g,V='Get started right away with a Diffusers model on the <a href="https://huggingface.co/models?library=diffusers&amp;sort=trending" rel="nofollow">Hub</a> today!',j,$,z,b,W='If you’re a beginner, we recommend starting with the <a href="https://huggingface.co/learn/diffusion-course/unit0/1" rel="nofollow">Hugging Face Diffusion Models Course</a>. You’ll learn the theory behind diffusion models, and learn how to use the Diffusers library to generate images, fine-tune your own models, and more.',S,v,k,y,A;return u=new re({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),m=new Z({props:{title:"Diffusers",local:"diffusers",headingTag:"h1"}}),$=new Z({props:{title:"Learn",local:"learn",headingTag:"h2"}}),v=new fe({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/index.md"}}),{c(){f=l("meta"),x=s(),_=l("p"),L=s(),o=l("p"),o.innerHTML=B,C=s(),I(u.$$.fragment),M=s(),I(m.$$.fragment),P=s(),p=l("p"),p.textContent=J,T=s(),d=l("p"),d.innerHTML=K,H=s(),c=l("ul"),c.innerHTML=N,D=s(),h=l("p"),h.textContent=Q,E=s(),g=l("p"),g.innerHTML=V,j=s(),I($.$$.fragment),z=s(),b=l("p"),b.innerHTML=W,S=s(),I(v.$$.fragment),k=s(),y=l("p"),this.h()},l(e){const t=ae("svelte-u9bgzb",document.head);f=r(t,"META",{name:!0,content:!0}),t.forEach(i),x=a(e),_=r(e,"P",{}),X(_).forEach(i),L=a(e),o=r(e,"P",{align:!0,"data-svelte-h":!0}),w(o)!=="svelte-16r58op"&&(o.innerHTML=B),C=a(e),q(u.$$.fragment,e),M=a(e),q(m.$$.fragment,e),P=a(e),p=r(e,"P",{"data-svelte-h":!0}),w(p)!=="svelte-11jchwu"&&(p.textContent=J),T=a(e),d=r(e,"P",{"data-svelte-h":!0}),w(d)!=="svelte-1srcjvv"&&(d.innerHTML=K),H=a(e),c=r(e,"UL",{"data-svelte-h":!0}),w(c)!=="svelte-1aulr9j"&&(c.innerHTML=N),D=a(e),h=r(e,"P",{"data-svelte-h":!0}),w(h)!=="svelte-f2gta2"&&(h.textContent=Q),E=a(e),g=r(e,"P",{"data-svelte-h":!0}),w(g)!=="svelte-1mn1ntk"&&(g.innerHTML=V),j=a(e),q($.$$.fragment,e),z=a(e),b=r(e,"P",{"data-svelte-h":!0}),w(b)!=="svelte-w1mmt9"&&(b.innerHTML=W),S=a(e),q(v.$$.fragment,e),k=a(e),y=r(e,"P",{}),X(y).forEach(i),this.h()},h(){O(f,"name","hf:doc:metadata"),O(f,"content",ue),O(o,"align","center")},m(e,t){le(document.head,f),n(e,x,t),n(e,_,t),n(e,L,t),n(e,o,t),n(e,C,t),G(u,e,t),n(e,M,t),G(m,e,t),n(e,P,t),n(e,p,t),n(e,T,t),n(e,d,t),n(e,H,t),n(e,c,t),n(e,D,t),n(e,h,t),n(e,E,t),n(e,g,t),n(e,j,t),G($,e,t),n(e,z,t),n(e,b,t),n(e,S,t),G(v,e,t),n(e,k,t),n(e,y,t),A=!0},p:te,i(e){A||(R(u.$$.fragment,e),R(m.$$.fragment,e),R($.$$.fragment,e),R(v.$$.fragment,e),A=!0)},o(e){U(u.$$.fragment,e),U(m.$$.fragment,e),U($.$$.fragment,e),U(v.$$.fragment,e),A=!1},d(e){e&&(i(x),i(_),i(L),i(o),i(C),i(M),i(P),i(p),i(T),i(d),i(H),i(c),i(D),i(h),i(E),i(g),i(j),i(z),i(b),i(S),i(k),i(y)),i(f),F(u,e),F(m,e),F($,e),F(v,e)}}}const ue='{"title":"Diffusers","local":"diffusers","sections":[{"title":"Learn","local":"learn","sections":[],"depth":2}],"depth":1}';function me(Y){return ie(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ge extends ne{constructor(f){super(),se(this,f,me,oe,ee,{})}}export{ge as component};
