import{S as br,i as _r,s as gr,e as i,k as h,w as Pe,t as o,M as vr,c as r,d as a,m as f,a as l,x as qe,h as s,b as n,G as e,g as p,y as xe,L as Er,q as Ie,o as Le,B as ze,v as wr}from"../../chunks/vendor-hf-doc-builder.js";import{I as Mt}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as mr}from"../../chunks/CodeBlock-hf-doc-builder.js";function yr(bi){let b,rt,_,S,Oe,j,Rt,je,Ct,lt,k,Ft,M,Nt,Bt,ot,g,A,Me,R,Ut,Re,Yt,st,P,C,Wt,F,Jt,Kt,Qt,Ce,Vt,nt,v,q,Fe,N,Xt,Ne,Zt,ht,le,ea,ft,x,E,ta,B,Be,aa,ia,Ue,ra,la,oa,U,sa,Y,Ye,na,ha,ut,d,fa,We,ua,pa,Je,da,ca,Ke,ma,ba,W,_a,ga,J,va,Ea,pt,K,dt,oe,wa,ct,Q,mt,m,ya,V,Da,Ta,X,$a,Ha,bt,w,I,Qe,Z,Ga,Ve,Sa,_t,L,ka,ee,Aa,Pa,gt,se,ne,te,qa,xa,vt,z,Xe,y,Et,Ia,he,La,za,fe,Oa,ja,ae,D,Ze,Ma,Ra,ue,Ca,Fa,pe,Na,Ba,T,et,Ua,Ya,de,Wa,Ja,ce,Ka,wt,me,be,ie,Qa,Va,yt,O,tt,$,Dt,Xa,_e,Za,ei,ge,ti,ai,re,H,at,ii,ri,ve,li,oi,Ee,si,ni,G,it,hi,fi,we,ui,pi,ye,di,Tt;return j=new Mt({}),R=new Mt({}),N=new Mt({}),K=new mr({props:{code:`from optimum.habana import GaudiConfig
from optimum.habana.diffusers import GaudiDDIMScheduler, GaudiStableDiffusionPipeline

model_name = "stabilityai/stable-diffusion-2-base"
scheduler = GaudiDDIMScheduler.from_pretrained(model_name, subfolder="scheduler")
pipeline = GaudiStableDiffusionPipeline.from_pretrained(
    model_name,
    scheduler=scheduler,
    use_habana=True,
    use_hpu_graphs=True,
    gaudi_config="Habana/stable-diffusion",
)`,highlighted:`<span class="hljs-keyword">from</span> optimum.habana <span class="hljs-keyword">import</span> GaudiConfig
<span class="hljs-keyword">from</span> optimum.habana.diffusers <span class="hljs-keyword">import</span> GaudiDDIMScheduler, GaudiStableDiffusionPipeline

model_name = <span class="hljs-string">&quot;stabilityai/stable-diffusion-2-base&quot;</span>
scheduler = GaudiDDIMScheduler.from_pretrained(model_name, subfolder=<span class="hljs-string">&quot;scheduler&quot;</span>)
pipeline = GaudiStableDiffusionPipeline.from_pretrained(
    model_name,
    scheduler=scheduler,
    use_habana=<span class="hljs-literal">True</span>,
    use_hpu_graphs=<span class="hljs-literal">True</span>,
    gaudi_config=<span class="hljs-string">&quot;Habana/stable-diffusion&quot;</span>,
)`}}),Q=new mr({props:{code:`outputs = pipeline(
    prompt=[
        "High quality photo of an astronaut riding a horse in space",
        "Face of a yellow cat, high resolution, sitting on a park bench",
    ],
    num_images_per_prompt=10,
    batch_size=4,
)`,highlighted:`outputs = pipeline(
    prompt=[
        <span class="hljs-string">&quot;High quality photo of an astronaut riding a horse in space&quot;</span>,
        <span class="hljs-string">&quot;Face of a yellow cat, high resolution, sitting on a park bench&quot;</span>,
    ],
    num_images_per_prompt=<span class="hljs-number">10</span>,
    batch_size=<span class="hljs-number">4</span>,
)`}}),Z=new Mt({}),{c(){b=i("meta"),rt=h(),_=i("h1"),S=i("a"),Oe=i("span"),Pe(j.$$.fragment),Rt=h(),je=i("span"),Ct=o("How to use Stable Diffusion on Habana Gaudi"),lt=h(),k=i("p"),Ft=o("\u{1F917} Diffusers is compatible with Habana Gaudi through \u{1F917} "),M=i("a"),Nt=o("Optimum Habana"),Bt=o("."),ot=h(),g=i("h2"),A=i("a"),Me=i("span"),Pe(R.$$.fragment),Ut=h(),Re=i("span"),Yt=o("Requirements"),st=h(),P=i("ul"),C=i("li"),Wt=o("Optimum Habana 1.5 or later, "),F=i("a"),Jt=o("here"),Kt=o(" is how to install it."),Qt=h(),Ce=i("li"),Vt=o("SynapseAI 1.9."),nt=h(),v=i("h2"),q=i("a"),Fe=i("span"),Pe(N.$$.fragment),Xt=h(),Ne=i("span"),Zt=o("Inference Pipeline"),ht=h(),le=i("p"),ea=o("To generate images with Stable Diffusion 1 and 2 on Gaudi, you need to instantiate two instances:"),ft=h(),x=i("ul"),E=i("li"),ta=o("A pipeline with "),B=i("a"),Be=i("code"),aa=o("GaudiStableDiffusionPipeline"),ia=o(". This pipeline supports "),Ue=i("em"),ra=o("text-to-image generation"),la=o("."),oa=h(),U=i("li"),sa=o("A scheduler with "),Y=i("a"),Ye=i("code"),na=o("GaudiDDIMScheduler"),ha=o(". This scheduler has been optimized for Habana Gaudi."),ut=h(),d=i("p"),fa=o("When initializing the pipeline, you have to specify "),We=i("code"),ua=o("use_habana=True"),pa=o(` to deploy it on HPUs.
Furthermore, in order to get the fastest possible generations you should enable `),Je=i("strong"),da=o("HPU graphs"),ca=o(" with "),Ke=i("code"),ma=o("use_hpu_graphs=True"),ba=o(`.
Finally, you will need to specify a `),W=i("a"),_a=o("Gaudi configuration"),ga=o(" which can be downloaded from the "),J=i("a"),va=o("Hugging Face Hub"),Ea=o("."),pt=h(),Pe(K.$$.fragment),dt=h(),oe=i("p"),wa=o("You can then call the pipeline to generate images by batches from one or several prompts:"),ct=h(),Pe(Q.$$.fragment),mt=h(),m=i("p"),ya=o("For more information, check out Optimum Habana\u2019s "),V=i("a"),Da=o("documentation"),Ta=o(" and the "),X=i("a"),$a=o("example"),Ha=o(" provided in the official Github repository."),bt=h(),w=i("h2"),I=i("a"),Qe=i("span"),Pe(Z.$$.fragment),Ga=h(),Ve=i("span"),Sa=o("Benchmark"),_t=h(),L=i("p"),ka=o("Here are the latencies for Habana first-generation Gaudi and Gaudi2 with the "),ee=i("a"),Aa=o("Habana/stable-diffusion"),Pa=o(" Gaudi configuration (mixed precision bf16/fp32):"),gt=h(),se=i("ul"),ne=i("li"),te=i("a"),qa=o("Stable Diffusion v1.5"),xa=o(" (512x512 resolution):"),vt=h(),z=i("table"),Xe=i("thead"),y=i("tr"),Et=i("th"),Ia=h(),he=i("th"),La=o("Latency (batch size = 1)"),za=h(),fe=i("th"),Oa=o("Throughput (batch size = 8)"),ja=h(),ae=i("tbody"),D=i("tr"),Ze=i("td"),Ma=o("first-generation Gaudi"),Ra=h(),ue=i("td"),Ca=o("4.22s"),Fa=h(),pe=i("td"),Na=o("0.29 images/s"),Ba=h(),T=i("tr"),et=i("td"),Ua=o("Gaudi2"),Ya=h(),de=i("td"),Wa=o("1.70s"),Ja=h(),ce=i("td"),Ka=o("0.925 images/s"),wt=h(),me=i("ul"),be=i("li"),ie=i("a"),Qa=o("Stable Diffusion v2.1"),Va=o(" (768x768 resolution):"),yt=h(),O=i("table"),tt=i("thead"),$=i("tr"),Dt=i("th"),Xa=h(),_e=i("th"),Za=o("Latency (batch size = 1)"),ei=h(),ge=i("th"),ti=o("Throughput"),ai=h(),re=i("tbody"),H=i("tr"),at=i("td"),ii=o("first-generation Gaudi"),ri=h(),ve=i("td"),li=o("23.3s"),oi=h(),Ee=i("td"),si=o("0.045 images/s (batch size = 2)"),ni=h(),G=i("tr"),it=i("td"),hi=o("Gaudi2"),fi=h(),we=i("td"),ui=o("7.75s"),pi=h(),ye=i("td"),di=o("0.14 images/s (batch size = 5)"),this.h()},l(t){const u=vr('[data-svelte="svelte-1phssyn"]',document.head);b=r(u,"META",{name:!0,content:!0}),u.forEach(a),rt=f(t),_=r(t,"H1",{class:!0});var $t=l(_);S=r($t,"A",{id:!0,class:!0,href:!0});var _i=l(S);Oe=r(_i,"SPAN",{});var gi=l(Oe);qe(j.$$.fragment,gi),gi.forEach(a),_i.forEach(a),Rt=f($t),je=r($t,"SPAN",{});var vi=l(je);Ct=s(vi,"How to use Stable Diffusion on Habana Gaudi"),vi.forEach(a),$t.forEach(a),lt=f(t),k=r(t,"P",{});var Ht=l(k);Ft=s(Ht,"\u{1F917} Diffusers is compatible with Habana Gaudi through \u{1F917} "),M=r(Ht,"A",{href:!0,rel:!0});var Ei=l(M);Nt=s(Ei,"Optimum Habana"),Ei.forEach(a),Bt=s(Ht,"."),Ht.forEach(a),ot=f(t),g=r(t,"H2",{class:!0});var Gt=l(g);A=r(Gt,"A",{id:!0,class:!0,href:!0});var wi=l(A);Me=r(wi,"SPAN",{});var yi=l(Me);qe(R.$$.fragment,yi),yi.forEach(a),wi.forEach(a),Ut=f(Gt),Re=r(Gt,"SPAN",{});var Di=l(Re);Yt=s(Di,"Requirements"),Di.forEach(a),Gt.forEach(a),st=f(t),P=r(t,"UL",{});var St=l(P);C=r(St,"LI",{});var kt=l(C);Wt=s(kt,"Optimum Habana 1.5 or later, "),F=r(kt,"A",{href:!0,rel:!0});var Ti=l(F);Jt=s(Ti,"here"),Ti.forEach(a),Kt=s(kt," is how to install it."),kt.forEach(a),Qt=f(St),Ce=r(St,"LI",{});var $i=l(Ce);Vt=s($i,"SynapseAI 1.9."),$i.forEach(a),St.forEach(a),nt=f(t),v=r(t,"H2",{class:!0});var At=l(v);q=r(At,"A",{id:!0,class:!0,href:!0});var Hi=l(q);Fe=r(Hi,"SPAN",{});var Gi=l(Fe);qe(N.$$.fragment,Gi),Gi.forEach(a),Hi.forEach(a),Xt=f(At),Ne=r(At,"SPAN",{});var Si=l(Ne);Zt=s(Si,"Inference Pipeline"),Si.forEach(a),At.forEach(a),ht=f(t),le=r(t,"P",{});var ki=l(le);ea=s(ki,"To generate images with Stable Diffusion 1 and 2 on Gaudi, you need to instantiate two instances:"),ki.forEach(a),ft=f(t),x=r(t,"UL",{});var Pt=l(x);E=r(Pt,"LI",{});var De=l(E);ta=s(De,"A pipeline with "),B=r(De,"A",{href:!0,rel:!0});var Ai=l(B);Be=r(Ai,"CODE",{});var Pi=l(Be);aa=s(Pi,"GaudiStableDiffusionPipeline"),Pi.forEach(a),Ai.forEach(a),ia=s(De,". This pipeline supports "),Ue=r(De,"EM",{});var qi=l(Ue);ra=s(qi,"text-to-image generation"),qi.forEach(a),la=s(De,"."),De.forEach(a),oa=f(Pt),U=r(Pt,"LI",{});var qt=l(U);sa=s(qt,"A scheduler with "),Y=r(qt,"A",{href:!0,rel:!0});var xi=l(Y);Ye=r(xi,"CODE",{});var Ii=l(Ye);na=s(Ii,"GaudiDDIMScheduler"),Ii.forEach(a),xi.forEach(a),ha=s(qt,". This scheduler has been optimized for Habana Gaudi."),qt.forEach(a),Pt.forEach(a),ut=f(t),d=r(t,"P",{});var c=l(d);fa=s(c,"When initializing the pipeline, you have to specify "),We=r(c,"CODE",{});var Li=l(We);ua=s(Li,"use_habana=True"),Li.forEach(a),pa=s(c,` to deploy it on HPUs.
Furthermore, in order to get the fastest possible generations you should enable `),Je=r(c,"STRONG",{});var zi=l(Je);da=s(zi,"HPU graphs"),zi.forEach(a),ca=s(c," with "),Ke=r(c,"CODE",{});var Oi=l(Ke);ma=s(Oi,"use_hpu_graphs=True"),Oi.forEach(a),ba=s(c,`.
Finally, you will need to specify a `),W=r(c,"A",{href:!0,rel:!0});var ji=l(W);_a=s(ji,"Gaudi configuration"),ji.forEach(a),ga=s(c," which can be downloaded from the "),J=r(c,"A",{href:!0,rel:!0});var Mi=l(J);va=s(Mi,"Hugging Face Hub"),Mi.forEach(a),Ea=s(c,"."),c.forEach(a),pt=f(t),qe(K.$$.fragment,t),dt=f(t),oe=r(t,"P",{});var Ri=l(oe);wa=s(Ri,"You can then call the pipeline to generate images by batches from one or several prompts:"),Ri.forEach(a),ct=f(t),qe(Q.$$.fragment,t),mt=f(t),m=r(t,"P",{});var Te=l(m);ya=s(Te,"For more information, check out Optimum Habana\u2019s "),V=r(Te,"A",{href:!0,rel:!0});var Ci=l(V);Da=s(Ci,"documentation"),Ci.forEach(a),Ta=s(Te," and the "),X=r(Te,"A",{href:!0,rel:!0});var Fi=l(X);$a=s(Fi,"example"),Fi.forEach(a),Ha=s(Te," provided in the official Github repository."),Te.forEach(a),bt=f(t),w=r(t,"H2",{class:!0});var xt=l(w);I=r(xt,"A",{id:!0,class:!0,href:!0});var Ni=l(I);Qe=r(Ni,"SPAN",{});var Bi=l(Qe);qe(Z.$$.fragment,Bi),Bi.forEach(a),Ni.forEach(a),Ga=f(xt),Ve=r(xt,"SPAN",{});var Ui=l(Ve);Sa=s(Ui,"Benchmark"),Ui.forEach(a),xt.forEach(a),_t=f(t),L=r(t,"P",{});var It=l(L);ka=s(It,"Here are the latencies for Habana first-generation Gaudi and Gaudi2 with the "),ee=r(It,"A",{href:!0,rel:!0});var Yi=l(ee);Aa=s(Yi,"Habana/stable-diffusion"),Yi.forEach(a),Pa=s(It," Gaudi configuration (mixed precision bf16/fp32):"),It.forEach(a),gt=f(t),se=r(t,"UL",{});var Wi=l(se);ne=r(Wi,"LI",{});var ci=l(ne);te=r(ci,"A",{href:!0,rel:!0});var Ji=l(te);qa=s(Ji,"Stable Diffusion v1.5"),Ji.forEach(a),xa=s(ci," (512x512 resolution):"),ci.forEach(a),Wi.forEach(a),vt=f(t),z=r(t,"TABLE",{});var Lt=l(z);Xe=r(Lt,"THEAD",{});var Ki=l(Xe);y=r(Ki,"TR",{});var $e=l(y);Et=r($e,"TH",{}),l(Et).forEach(a),Ia=f($e),he=r($e,"TH",{align:!0});var Qi=l(he);La=s(Qi,"Latency (batch size = 1)"),Qi.forEach(a),za=f($e),fe=r($e,"TH",{align:!0});var Vi=l(fe);Oa=s(Vi,"Throughput (batch size = 8)"),Vi.forEach(a),$e.forEach(a),Ki.forEach(a),ja=f(Lt),ae=r(Lt,"TBODY",{});var zt=l(ae);D=r(zt,"TR",{});var He=l(D);Ze=r(He,"TD",{});var Xi=l(Ze);Ma=s(Xi,"first-generation Gaudi"),Xi.forEach(a),Ra=f(He),ue=r(He,"TD",{align:!0});var Zi=l(ue);Ca=s(Zi,"4.22s"),Zi.forEach(a),Fa=f(He),pe=r(He,"TD",{align:!0});var er=l(pe);Na=s(er,"0.29 images/s"),er.forEach(a),He.forEach(a),Ba=f(zt),T=r(zt,"TR",{});var Ge=l(T);et=r(Ge,"TD",{});var tr=l(et);Ua=s(tr,"Gaudi2"),tr.forEach(a),Ya=f(Ge),de=r(Ge,"TD",{align:!0});var ar=l(de);Wa=s(ar,"1.70s"),ar.forEach(a),Ja=f(Ge),ce=r(Ge,"TD",{align:!0});var ir=l(ce);Ka=s(ir,"0.925 images/s"),ir.forEach(a),Ge.forEach(a),zt.forEach(a),Lt.forEach(a),wt=f(t),me=r(t,"UL",{});var rr=l(me);be=r(rr,"LI",{});var mi=l(be);ie=r(mi,"A",{href:!0,rel:!0});var lr=l(ie);Qa=s(lr,"Stable Diffusion v2.1"),lr.forEach(a),Va=s(mi," (768x768 resolution):"),mi.forEach(a),rr.forEach(a),yt=f(t),O=r(t,"TABLE",{});var Ot=l(O);tt=r(Ot,"THEAD",{});var or=l(tt);$=r(or,"TR",{});var Se=l($);Dt=r(Se,"TH",{}),l(Dt).forEach(a),Xa=f(Se),_e=r(Se,"TH",{align:!0});var sr=l(_e);Za=s(sr,"Latency (batch size = 1)"),sr.forEach(a),ei=f(Se),ge=r(Se,"TH",{align:!0});var nr=l(ge);ti=s(nr,"Throughput"),nr.forEach(a),Se.forEach(a),or.forEach(a),ai=f(Ot),re=r(Ot,"TBODY",{});var jt=l(re);H=r(jt,"TR",{});var ke=l(H);at=r(ke,"TD",{});var hr=l(at);ii=s(hr,"first-generation Gaudi"),hr.forEach(a),ri=f(ke),ve=r(ke,"TD",{align:!0});var fr=l(ve);li=s(fr,"23.3s"),fr.forEach(a),oi=f(ke),Ee=r(ke,"TD",{align:!0});var ur=l(Ee);si=s(ur,"0.045 images/s (batch size = 2)"),ur.forEach(a),ke.forEach(a),ni=f(jt),G=r(jt,"TR",{});var Ae=l(G);it=r(Ae,"TD",{});var pr=l(it);hi=s(pr,"Gaudi2"),pr.forEach(a),fi=f(Ae),we=r(Ae,"TD",{align:!0});var dr=l(we);ui=s(dr,"7.75s"),dr.forEach(a),pi=f(Ae),ye=r(Ae,"TD",{align:!0});var cr=l(ye);di=s(cr,"0.14 images/s (batch size = 5)"),cr.forEach(a),Ae.forEach(a),jt.forEach(a),Ot.forEach(a),this.h()},h(){n(b,"name","hf:doc:metadata"),n(b,"content",JSON.stringify(Dr)),n(S,"id","how-to-use-stable-diffusion-on-habana-gaudi"),n(S,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),n(S,"href","#how-to-use-stable-diffusion-on-habana-gaudi"),n(_,"class","relative group"),n(M,"href","https://huggingface.co/docs/optimum/habana/usage_guides/stable_diffusion"),n(M,"rel","nofollow"),n(A,"id","requirements"),n(A,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),n(A,"href","#requirements"),n(g,"class","relative group"),n(F,"href","https://huggingface.co/docs/optimum/habana/installation"),n(F,"rel","nofollow"),n(q,"id","inference-pipeline"),n(q,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),n(q,"href","#inference-pipeline"),n(v,"class","relative group"),n(B,"href","https://huggingface.co/docs/optimum/habana/package_reference/stable_diffusion_pipeline"),n(B,"rel","nofollow"),n(Y,"href","https://huggingface.co/docs/optimum/habana/package_reference/stable_diffusion_pipeline#optimum.habana.diffusers.GaudiDDIMScheduler"),n(Y,"rel","nofollow"),n(W,"href","https://huggingface.co/docs/optimum/habana/package_reference/gaudi_config"),n(W,"rel","nofollow"),n(J,"href","https://huggingface.co/Habana"),n(J,"rel","nofollow"),n(V,"href","https://huggingface.co/docs/optimum/habana/usage_guides/stable_diffusion"),n(V,"rel","nofollow"),n(X,"href","https://github.com/huggingface/optimum-habana/tree/main/examples/stable-diffusion"),n(X,"rel","nofollow"),n(I,"id","benchmark"),n(I,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),n(I,"href","#benchmark"),n(w,"class","relative group"),n(ee,"href","https://huggingface.co/Habana/stable-diffusion"),n(ee,"rel","nofollow"),n(te,"href","https://huggingface.co/runwayml/stable-diffusion-v1-5"),n(te,"rel","nofollow"),n(he,"align","center"),n(fe,"align","center"),n(ue,"align","center"),n(pe,"align","center"),n(de,"align","center"),n(ce,"align","center"),n(ie,"href","https://huggingface.co/stabilityai/stable-diffusion-2-1"),n(ie,"rel","nofollow"),n(_e,"align","center"),n(ge,"align","center"),n(ve,"align","center"),n(Ee,"align","center"),n(we,"align","center"),n(ye,"align","center")},m(t,u){e(document.head,b),p(t,rt,u),p(t,_,u),e(_,S),e(S,Oe),xe(j,Oe,null),e(_,Rt),e(_,je),e(je,Ct),p(t,lt,u),p(t,k,u),e(k,Ft),e(k,M),e(M,Nt),e(k,Bt),p(t,ot,u),p(t,g,u),e(g,A),e(A,Me),xe(R,Me,null),e(g,Ut),e(g,Re),e(Re,Yt),p(t,st,u),p(t,P,u),e(P,C),e(C,Wt),e(C,F),e(F,Jt),e(C,Kt),e(P,Qt),e(P,Ce),e(Ce,Vt),p(t,nt,u),p(t,v,u),e(v,q),e(q,Fe),xe(N,Fe,null),e(v,Xt),e(v,Ne),e(Ne,Zt),p(t,ht,u),p(t,le,u),e(le,ea),p(t,ft,u),p(t,x,u),e(x,E),e(E,ta),e(E,B),e(B,Be),e(Be,aa),e(E,ia),e(E,Ue),e(Ue,ra),e(E,la),e(x,oa),e(x,U),e(U,sa),e(U,Y),e(Y,Ye),e(Ye,na),e(U,ha),p(t,ut,u),p(t,d,u),e(d,fa),e(d,We),e(We,ua),e(d,pa),e(d,Je),e(Je,da),e(d,ca),e(d,Ke),e(Ke,ma),e(d,ba),e(d,W),e(W,_a),e(d,ga),e(d,J),e(J,va),e(d,Ea),p(t,pt,u),xe(K,t,u),p(t,dt,u),p(t,oe,u),e(oe,wa),p(t,ct,u),xe(Q,t,u),p(t,mt,u),p(t,m,u),e(m,ya),e(m,V),e(V,Da),e(m,Ta),e(m,X),e(X,$a),e(m,Ha),p(t,bt,u),p(t,w,u),e(w,I),e(I,Qe),xe(Z,Qe,null),e(w,Ga),e(w,Ve),e(Ve,Sa),p(t,_t,u),p(t,L,u),e(L,ka),e(L,ee),e(ee,Aa),e(L,Pa),p(t,gt,u),p(t,se,u),e(se,ne),e(ne,te),e(te,qa),e(ne,xa),p(t,vt,u),p(t,z,u),e(z,Xe),e(Xe,y),e(y,Et),e(y,Ia),e(y,he),e(he,La),e(y,za),e(y,fe),e(fe,Oa),e(z,ja),e(z,ae),e(ae,D),e(D,Ze),e(Ze,Ma),e(D,Ra),e(D,ue),e(ue,Ca),e(D,Fa),e(D,pe),e(pe,Na),e(ae,Ba),e(ae,T),e(T,et),e(et,Ua),e(T,Ya),e(T,de),e(de,Wa),e(T,Ja),e(T,ce),e(ce,Ka),p(t,wt,u),p(t,me,u),e(me,be),e(be,ie),e(ie,Qa),e(be,Va),p(t,yt,u),p(t,O,u),e(O,tt),e(tt,$),e($,Dt),e($,Xa),e($,_e),e(_e,Za),e($,ei),e($,ge),e(ge,ti),e(O,ai),e(O,re),e(re,H),e(H,at),e(at,ii),e(H,ri),e(H,ve),e(ve,li),e(H,oi),e(H,Ee),e(Ee,si),e(re,ni),e(re,G),e(G,it),e(it,hi),e(G,fi),e(G,we),e(we,ui),e(G,pi),e(G,ye),e(ye,di),Tt=!0},p:Er,i(t){Tt||(Ie(j.$$.fragment,t),Ie(R.$$.fragment,t),Ie(N.$$.fragment,t),Ie(K.$$.fragment,t),Ie(Q.$$.fragment,t),Ie(Z.$$.fragment,t),Tt=!0)},o(t){Le(j.$$.fragment,t),Le(R.$$.fragment,t),Le(N.$$.fragment,t),Le(K.$$.fragment,t),Le(Q.$$.fragment,t),Le(Z.$$.fragment,t),Tt=!1},d(t){a(b),t&&a(rt),t&&a(_),ze(j),t&&a(lt),t&&a(k),t&&a(ot),t&&a(g),ze(R),t&&a(st),t&&a(P),t&&a(nt),t&&a(v),ze(N),t&&a(ht),t&&a(le),t&&a(ft),t&&a(x),t&&a(ut),t&&a(d),t&&a(pt),ze(K,t),t&&a(dt),t&&a(oe),t&&a(ct),ze(Q,t),t&&a(mt),t&&a(m),t&&a(bt),t&&a(w),ze(Z),t&&a(_t),t&&a(L),t&&a(gt),t&&a(se),t&&a(vt),t&&a(z),t&&a(wt),t&&a(me),t&&a(yt),t&&a(O)}}}const Dr={local:"how-to-use-stable-diffusion-on-habana-gaudi",sections:[{local:"requirements",title:"Requirements"},{local:"inference-pipeline",title:"Inference Pipeline"},{local:"benchmark",title:"Benchmark"}],title:"How to use Stable Diffusion on Habana Gaudi"};function Tr(bi){return wr(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Sr extends br{constructor(b){super();_r(this,b,Tr,yr,gr,{})}}export{Sr as default,Dr as metadata};
