import{s as X,n as Z,o as ee}from"../chunks/scheduler.8c3d61f6.js";import{S as te,i as ie,g as l,s,r as z,A as ne,h as r,f as i,c as a,j as V,x as $,u as I,k as S,y as se,a as n,v as q,d as G,t as R,w as U}from"../chunks/index.da70eac4.js";import{H as W,E as ae}from"../chunks/getInferenceSnippets.cb466318.js";function le(F){let o,y,w,x,f,O='<br/> <img src="https://raw.githubusercontent.com/huggingface/diffusers/77aadfee6a891ab9fcfb780f87c693f7a5beeb8e/docs/source/imgs/diffusers_library.jpg" width="400" style="border: none;"/> <br/>',L,u,P,m,Y="Diffusers is a library of state-of-the-art pretrained diffusion models for generating videos, images, and audio.",H,p,B='The library revolves around the <a href="/docs/diffusers/main/en/api/pipelines/overview#diffusers.DiffusionPipeline">DiffusionPipeline</a>, an API designed for:',T,d,J="<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>",C,c,K="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.",M,h,N='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!',D,g,E,v,Q='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.',j,b,A,_,k;return u=new W({props:{title:"Diffusers",local:"diffusers",headingTag:"h1"}}),g=new W({props:{title:"Learn",local:"learn",headingTag:"h2"}}),b=new ae({props:{source:"https://github.com/huggingface/diffusers/blob/main/docs/source/en/index.md"}}),{c(){o=l("meta"),y=s(),w=l("p"),x=s(),f=l("p"),f.innerHTML=O,L=s(),z(u.$$.fragment),P=s(),m=l("p"),m.textContent=Y,H=s(),p=l("p"),p.innerHTML=B,T=s(),d=l("ul"),d.innerHTML=J,C=s(),c=l("p"),c.textContent=K,M=s(),h=l("p"),h.innerHTML=N,D=s(),z(g.$$.fragment),E=s(),v=l("p"),v.innerHTML=Q,j=s(),z(b.$$.fragment),A=s(),_=l("p"),this.h()},l(e){const t=ne("svelte-u9bgzb",document.head);o=r(t,"META",{name:!0,content:!0}),t.forEach(i),y=a(e),w=r(e,"P",{}),V(w).forEach(i),x=a(e),f=r(e,"P",{align:!0,"data-svelte-h":!0}),$(f)!=="svelte-16r58op"&&(f.innerHTML=O),L=a(e),I(u.$$.fragment,e),P=a(e),m=r(e,"P",{"data-svelte-h":!0}),$(m)!=="svelte-11jchwu"&&(m.textContent=Y),H=a(e),p=r(e,"P",{"data-svelte-h":!0}),$(p)!=="svelte-1srcjvv"&&(p.innerHTML=B),T=a(e),d=r(e,"UL",{"data-svelte-h":!0}),$(d)!=="svelte-1aulr9j"&&(d.innerHTML=J),C=a(e),c=r(e,"P",{"data-svelte-h":!0}),$(c)!=="svelte-f2gta2"&&(c.textContent=K),M=a(e),h=r(e,"P",{"data-svelte-h":!0}),$(h)!=="svelte-1mn1ntk"&&(h.innerHTML=N),D=a(e),I(g.$$.fragment,e),E=a(e),v=r(e,"P",{"data-svelte-h":!0}),$(v)!=="svelte-w1mmt9"&&(v.innerHTML=Q),j=a(e),I(b.$$.fragment,e),A=a(e),_=r(e,"P",{}),V(_).forEach(i),this.h()},h(){S(o,"name","hf:doc:metadata"),S(o,"content",re),S(f,"align","center")},m(e,t){se(document.head,o),n(e,y,t),n(e,w,t),n(e,x,t),n(e,f,t),n(e,L,t),q(u,e,t),n(e,P,t),n(e,m,t),n(e,H,t),n(e,p,t),n(e,T,t),n(e,d,t),n(e,C,t),n(e,c,t),n(e,M,t),n(e,h,t),n(e,D,t),q(g,e,t),n(e,E,t),n(e,v,t),n(e,j,t),q(b,e,t),n(e,A,t),n(e,_,t),k=!0},p:Z,i(e){k||(G(u.$$.fragment,e),G(g.$$.fragment,e),G(b.$$.fragment,e),k=!0)},o(e){R(u.$$.fragment,e),R(g.$$.fragment,e),R(b.$$.fragment,e),k=!1},d(e){e&&(i(y),i(w),i(x),i(f),i(L),i(P),i(m),i(H),i(p),i(T),i(d),i(C),i(c),i(M),i(h),i(D),i(E),i(v),i(j),i(A),i(_)),i(o),U(u,e),U(g,e),U(b,e)}}}const re='{"title":"Diffusers","local":"diffusers","sections":[{"title":"Learn","local":"learn","sections":[],"depth":2}],"depth":1}';function oe(F){return ee(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class pe extends te{constructor(o){super(),ie(this,o,oe,le,X,{})}}export{pe as component};
