import{S as bi,i as vi,s as yi,e as l,k as h,w as De,t as o,M as _i,c as i,d as a,m as f,a as r,x as $e,h as s,b as n,G as e,g as c,y as ke,L as wi,q as Ce,o as Ae,B as Ze,v as gi}from"../../chunks/vendor-hf-doc-builder.js";import{I as Bt}from"../../chunks/IconCopyLink-hf-doc-builder.js";import{C as mi}from"../../chunks/CodeBlock-hf-doc-builder.js";function Ei(bl){let b,it,v,H,We,j,Nt,je,Rt,rt,I,xt,B,Pt,Ft,ot,y,S,Be,N,Qt,Ne,zt,st,D,R,Vt,x,Yt,Lt,qt,Re,Xt,nt,_,$,xe,P,Ot,Pe,Kt,ht,re,ea,ft,k,w,ta,F,Fe,aa,la,Qe,ia,ra,oa,Q,sa,z,ze,na,ha,ut,d,fa,Ve,ua,ca,Ye,da,pa,Le,ma,ba,V,va,ya,Y,_a,wa,ct,L,dt,oe,ga,pt,q,mt,m,Ea,X,Ta,Ma,O,Ua,Ga,bt,g,C,qe,K,Ja,Xe,Ha,vt,A,Ia,ee,Sa,Da,yt,se,ne,te,$a,ka,_t,Z,Oe,E,wt,Ca,he,Aa,Za,fe,Wa,ja,ae,T,Ke,Ba,Na,ue,Ra,xa,ce,Pa,Fa,M,et,Qa,za,de,Va,Ya,pe,La,gt,me,be,le,qa,Xa,Et,W,tt,U,Tt,Oa,ve,Ka,el,ye,tl,al,ie,G,at,ll,il,_e,rl,ol,we,sl,nl,J,lt,hl,fl,ge,ul,cl,Ee,dl,Mt;return j=new Bt({}),N=new Bt({}),P=new Bt({}),L=new mi({props:{code:"ZnJvbSUyMG9wdGltdW0uaGFiYW5hJTIwaW1wb3J0JTIwR2F1ZGlDb25maWclMEFmcm9tJTIwb3B0aW11bS5oYWJhbmEuZGlmZnVzZXJzJTIwaW1wb3J0JTIwR2F1ZGlERElNU2NoZWR1bGVyJTJDJTIwR2F1ZGlTdGFibGVEaWZmdXNpb25QaXBlbGluZSUwQSUwQW1vZGVsX25hbWUlMjAlM0QlMjAlMjJzdGFiaWxpdHlhaSUyRnN0YWJsZS1kaWZmdXNpb24tMi1iYXNlJTIyJTBBc2NoZWR1bGVyJTIwJTNEJTIwR2F1ZGlERElNU2NoZWR1bGVyLmZyb21fcHJldHJhaW5lZChtb2RlbF9uYW1lJTJDJTIwc3ViZm9sZGVyJTNEJTIyc2NoZWR1bGVyJTIyKSUwQXBpcGVsaW5lJTIwJTNEJTIwR2F1ZGlTdGFibGVEaWZmdXNpb25QaXBlbGluZS5mcm9tX3ByZXRyYWluZWQoJTBBJTIwJTIwJTIwJTIwbW9kZWxfbmFtZSUyQyUwQSUyMCUyMCUyMCUyMHNjaGVkdWxlciUzRHNjaGVkdWxlciUyQyUwQSUyMCUyMCUyMCUyMHVzZV9oYWJhbmElM0RUcnVlJTJDJTBBJTIwJTIwJTIwJTIwdXNlX2hwdV9ncmFwaHMlM0RUcnVlJTJDJTBBJTIwJTIwJTIwJTIwZ2F1ZGlfY29uZmlnJTNEJTIySGFiYW5hJTJGc3RhYmxlLWRpZmZ1c2lvbiUyMiUyQyUwQSk=",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 mi({props:{code:"b3V0cHV0cyUyMCUzRCUyMHBpcGVsaW5lKCUwQSUyMCUyMCUyMCUyMHByb21wdCUzRCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMkhpZ2glMjBxdWFsaXR5JTIwcGhvdG8lMjBvZiUyMGFuJTIwYXN0cm9uYXV0JTIwcmlkaW5nJTIwYSUyMGhvcnNlJTIwaW4lMjBzcGFjZSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMkZhY2UlMjBvZiUyMGElMjB5ZWxsb3clMjBjYXQlMkMlMjBoaWdoJTIwcmVzb2x1dGlvbiUyQyUyMHNpdHRpbmclMjBvbiUyMGElMjBwYXJrJTIwYmVuY2glMjIlMkMlMEElMjAlMjAlMjAlMjAlNUQlMkMlMEElMjAlMjAlMjAlMjBudW1faW1hZ2VzX3Blcl9wcm9tcHQlM0QxMCUyQyUwQSUyMCUyMCUyMCUyMGJhdGNoX3NpemUlM0Q0JTJDJTBBKQ==",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>,
)`}}),K=new Bt({}),{c(){b=l("meta"),it=h(),v=l("h1"),H=l("a"),We=l("span"),De(j.$$.fragment),Nt=h(),je=l("span"),Rt=o("How to use Stable Diffusion on Habana Gaudi"),rt=h(),I=l("p"),xt=o("\u{1F917} Diffusers is compatible with Habana Gaudi through \u{1F917} "),B=l("a"),Pt=o("Optimum Habana"),Ft=o("."),ot=h(),y=l("h2"),S=l("a"),Be=l("span"),De(N.$$.fragment),Qt=h(),Ne=l("span"),zt=o("Requirements"),st=h(),D=l("ul"),R=l("li"),Vt=o("Optimum Habana 1.5 or later, "),x=l("a"),Yt=o("here"),Lt=o(" is how to install it."),qt=h(),Re=l("li"),Xt=o("SynapseAI 1.9."),nt=h(),_=l("h2"),$=l("a"),xe=l("span"),De(P.$$.fragment),Ot=h(),Pe=l("span"),Kt=o("Inference Pipeline"),ht=h(),re=l("p"),ea=o("To generate images with Stable Diffusion 1 and 2 on Gaudi, you need to instantiate two instances:"),ft=h(),k=l("ul"),w=l("li"),ta=o("A pipeline with "),F=l("a"),Fe=l("code"),aa=o("GaudiStableDiffusionPipeline"),la=o(". This pipeline supports "),Qe=l("em"),ia=o("text-to-image generation"),ra=o("."),oa=h(),Q=l("li"),sa=o("A scheduler with "),z=l("a"),ze=l("code"),na=o("GaudiDDIMScheduler"),ha=o(". This scheduler has been optimized for Habana Gaudi."),ut=h(),d=l("p"),fa=o("When initializing the pipeline, you have to specify "),Ve=l("code"),ua=o("use_habana=True"),ca=o(` to deploy it on HPUs.
Furthermore, in order to get the fastest possible generations you should enable `),Ye=l("strong"),da=o("HPU graphs"),pa=o(" with "),Le=l("code"),ma=o("use_hpu_graphs=True"),ba=o(`.
Finally, you will need to specify a `),V=l("a"),va=o("Gaudi configuration"),ya=o(" which can be downloaded from the "),Y=l("a"),_a=o("Hugging Face Hub"),wa=o("."),ct=h(),De(L.$$.fragment),dt=h(),oe=l("p"),ga=o("You can then call the pipeline to generate images by batches from one or several prompts:"),pt=h(),De(q.$$.fragment),mt=h(),m=l("p"),Ea=o("For more information, check out Optimum Habana\u2019s "),X=l("a"),Ta=o("documentation"),Ma=o(" and the "),O=l("a"),Ua=o("example"),Ga=o(" provided in the official Github repository."),bt=h(),g=l("h2"),C=l("a"),qe=l("span"),De(K.$$.fragment),Ja=h(),Xe=l("span"),Ha=o("Benchmark"),vt=h(),A=l("p"),Ia=o("Here are the latencies for Habana first-generation Gaudi and Gaudi2 with the "),ee=l("a"),Sa=o("Habana/stable-diffusion"),Da=o(" Gaudi configuration (mixed precision bf16/fp32):"),yt=h(),se=l("ul"),ne=l("li"),te=l("a"),$a=o("Stable Diffusion v1.5"),ka=o(" (512x512 resolution):"),_t=h(),Z=l("table"),Oe=l("thead"),E=l("tr"),wt=l("th"),Ca=h(),he=l("th"),Aa=o("Latency (batch size = 1)"),Za=h(),fe=l("th"),Wa=o("Throughput (batch size = 8)"),ja=h(),ae=l("tbody"),T=l("tr"),Ke=l("td"),Ba=o("first-generation Gaudi"),Na=h(),ue=l("td"),Ra=o("4.22s"),xa=h(),ce=l("td"),Pa=o("0.29 images/s"),Fa=h(),M=l("tr"),et=l("td"),Qa=o("Gaudi2"),za=h(),de=l("td"),Va=o("1.70s"),Ya=h(),pe=l("td"),La=o("0.925 images/s"),gt=h(),me=l("ul"),be=l("li"),le=l("a"),qa=o("Stable Diffusion v2.1"),Xa=o(" (768x768 resolution):"),Et=h(),W=l("table"),tt=l("thead"),U=l("tr"),Tt=l("th"),Oa=h(),ve=l("th"),Ka=o("Latency (batch size = 1)"),el=h(),ye=l("th"),tl=o("Throughput"),al=h(),ie=l("tbody"),G=l("tr"),at=l("td"),ll=o("first-generation Gaudi"),il=h(),_e=l("td"),rl=o("23.3s"),ol=h(),we=l("td"),sl=o("0.045 images/s (batch size = 2)"),nl=h(),J=l("tr"),lt=l("td"),hl=o("Gaudi2"),fl=h(),ge=l("td"),ul=o("7.75s"),cl=h(),Ee=l("td"),dl=o("0.14 images/s (batch size = 5)"),this.h()},l(t){const u=_i('[data-svelte="svelte-1phssyn"]',document.head);b=i(u,"META",{name:!0,content:!0}),u.forEach(a),it=f(t),v=i(t,"H1",{class:!0});var Ut=r(v);H=i(Ut,"A",{id:!0,class:!0,href:!0});var vl=r(H);We=i(vl,"SPAN",{});var yl=r(We);$e(j.$$.fragment,yl),yl.forEach(a),vl.forEach(a),Nt=f(Ut),je=i(Ut,"SPAN",{});var _l=r(je);Rt=s(_l,"How to use Stable Diffusion on Habana Gaudi"),_l.forEach(a),Ut.forEach(a),rt=f(t),I=i(t,"P",{});var Gt=r(I);xt=s(Gt,"\u{1F917} Diffusers is compatible with Habana Gaudi through \u{1F917} "),B=i(Gt,"A",{href:!0,rel:!0});var wl=r(B);Pt=s(wl,"Optimum Habana"),wl.forEach(a),Ft=s(Gt,"."),Gt.forEach(a),ot=f(t),y=i(t,"H2",{class:!0});var Jt=r(y);S=i(Jt,"A",{id:!0,class:!0,href:!0});var gl=r(S);Be=i(gl,"SPAN",{});var El=r(Be);$e(N.$$.fragment,El),El.forEach(a),gl.forEach(a),Qt=f(Jt),Ne=i(Jt,"SPAN",{});var Tl=r(Ne);zt=s(Tl,"Requirements"),Tl.forEach(a),Jt.forEach(a),st=f(t),D=i(t,"UL",{});var Ht=r(D);R=i(Ht,"LI",{});var It=r(R);Vt=s(It,"Optimum Habana 1.5 or later, "),x=i(It,"A",{href:!0,rel:!0});var Ml=r(x);Yt=s(Ml,"here"),Ml.forEach(a),Lt=s(It," is how to install it."),It.forEach(a),qt=f(Ht),Re=i(Ht,"LI",{});var Ul=r(Re);Xt=s(Ul,"SynapseAI 1.9."),Ul.forEach(a),Ht.forEach(a),nt=f(t),_=i(t,"H2",{class:!0});var St=r(_);$=i(St,"A",{id:!0,class:!0,href:!0});var Gl=r($);xe=i(Gl,"SPAN",{});var Jl=r(xe);$e(P.$$.fragment,Jl),Jl.forEach(a),Gl.forEach(a),Ot=f(St),Pe=i(St,"SPAN",{});var Hl=r(Pe);Kt=s(Hl,"Inference Pipeline"),Hl.forEach(a),St.forEach(a),ht=f(t),re=i(t,"P",{});var Il=r(re);ea=s(Il,"To generate images with Stable Diffusion 1 and 2 on Gaudi, you need to instantiate two instances:"),Il.forEach(a),ft=f(t),k=i(t,"UL",{});var Dt=r(k);w=i(Dt,"LI",{});var Te=r(w);ta=s(Te,"A pipeline with "),F=i(Te,"A",{href:!0,rel:!0});var Sl=r(F);Fe=i(Sl,"CODE",{});var Dl=r(Fe);aa=s(Dl,"GaudiStableDiffusionPipeline"),Dl.forEach(a),Sl.forEach(a),la=s(Te,". This pipeline supports "),Qe=i(Te,"EM",{});var $l=r(Qe);ia=s($l,"text-to-image generation"),$l.forEach(a),ra=s(Te,"."),Te.forEach(a),oa=f(Dt),Q=i(Dt,"LI",{});var $t=r(Q);sa=s($t,"A scheduler with "),z=i($t,"A",{href:!0,rel:!0});var kl=r(z);ze=i(kl,"CODE",{});var Cl=r(ze);na=s(Cl,"GaudiDDIMScheduler"),Cl.forEach(a),kl.forEach(a),ha=s($t,". This scheduler has been optimized for Habana Gaudi."),$t.forEach(a),Dt.forEach(a),ut=f(t),d=i(t,"P",{});var p=r(d);fa=s(p,"When initializing the pipeline, you have to specify "),Ve=i(p,"CODE",{});var Al=r(Ve);ua=s(Al,"use_habana=True"),Al.forEach(a),ca=s(p,` to deploy it on HPUs.
Furthermore, in order to get the fastest possible generations you should enable `),Ye=i(p,"STRONG",{});var Zl=r(Ye);da=s(Zl,"HPU graphs"),Zl.forEach(a),pa=s(p," with "),Le=i(p,"CODE",{});var Wl=r(Le);ma=s(Wl,"use_hpu_graphs=True"),Wl.forEach(a),ba=s(p,`.
Finally, you will need to specify a `),V=i(p,"A",{href:!0,rel:!0});var jl=r(V);va=s(jl,"Gaudi configuration"),jl.forEach(a),ya=s(p," which can be downloaded from the "),Y=i(p,"A",{href:!0,rel:!0});var Bl=r(Y);_a=s(Bl,"Hugging Face Hub"),Bl.forEach(a),wa=s(p,"."),p.forEach(a),ct=f(t),$e(L.$$.fragment,t),dt=f(t),oe=i(t,"P",{});var Nl=r(oe);ga=s(Nl,"You can then call the pipeline to generate images by batches from one or several prompts:"),Nl.forEach(a),pt=f(t),$e(q.$$.fragment,t),mt=f(t),m=i(t,"P",{});var Me=r(m);Ea=s(Me,"For more information, check out Optimum Habana\u2019s "),X=i(Me,"A",{href:!0,rel:!0});var Rl=r(X);Ta=s(Rl,"documentation"),Rl.forEach(a),Ma=s(Me," and the "),O=i(Me,"A",{href:!0,rel:!0});var xl=r(O);Ua=s(xl,"example"),xl.forEach(a),Ga=s(Me," provided in the official Github repository."),Me.forEach(a),bt=f(t),g=i(t,"H2",{class:!0});var kt=r(g);C=i(kt,"A",{id:!0,class:!0,href:!0});var Pl=r(C);qe=i(Pl,"SPAN",{});var Fl=r(qe);$e(K.$$.fragment,Fl),Fl.forEach(a),Pl.forEach(a),Ja=f(kt),Xe=i(kt,"SPAN",{});var Ql=r(Xe);Ha=s(Ql,"Benchmark"),Ql.forEach(a),kt.forEach(a),vt=f(t),A=i(t,"P",{});var Ct=r(A);Ia=s(Ct,"Here are the latencies for Habana first-generation Gaudi and Gaudi2 with the "),ee=i(Ct,"A",{href:!0,rel:!0});var zl=r(ee);Sa=s(zl,"Habana/stable-diffusion"),zl.forEach(a),Da=s(Ct," Gaudi configuration (mixed precision bf16/fp32):"),Ct.forEach(a),yt=f(t),se=i(t,"UL",{});var Vl=r(se);ne=i(Vl,"LI",{});var pl=r(ne);te=i(pl,"A",{href:!0,rel:!0});var Yl=r(te);$a=s(Yl,"Stable Diffusion v1.5"),Yl.forEach(a),ka=s(pl," (512x512 resolution):"),pl.forEach(a),Vl.forEach(a),_t=f(t),Z=i(t,"TABLE",{});var At=r(Z);Oe=i(At,"THEAD",{});var Ll=r(Oe);E=i(Ll,"TR",{});var Ue=r(E);wt=i(Ue,"TH",{}),r(wt).forEach(a),Ca=f(Ue),he=i(Ue,"TH",{align:!0});var ql=r(he);Aa=s(ql,"Latency (batch size = 1)"),ql.forEach(a),Za=f(Ue),fe=i(Ue,"TH",{align:!0});var Xl=r(fe);Wa=s(Xl,"Throughput (batch size = 8)"),Xl.forEach(a),Ue.forEach(a),Ll.forEach(a),ja=f(At),ae=i(At,"TBODY",{});var Zt=r(ae);T=i(Zt,"TR",{});var Ge=r(T);Ke=i(Ge,"TD",{});var Ol=r(Ke);Ba=s(Ol,"first-generation Gaudi"),Ol.forEach(a),Na=f(Ge),ue=i(Ge,"TD",{align:!0});var Kl=r(ue);Ra=s(Kl,"4.22s"),Kl.forEach(a),xa=f(Ge),ce=i(Ge,"TD",{align:!0});var ei=r(ce);Pa=s(ei,"0.29 images/s"),ei.forEach(a),Ge.forEach(a),Fa=f(Zt),M=i(Zt,"TR",{});var Je=r(M);et=i(Je,"TD",{});var ti=r(et);Qa=s(ti,"Gaudi2"),ti.forEach(a),za=f(Je),de=i(Je,"TD",{align:!0});var ai=r(de);Va=s(ai,"1.70s"),ai.forEach(a),Ya=f(Je),pe=i(Je,"TD",{align:!0});var li=r(pe);La=s(li,"0.925 images/s"),li.forEach(a),Je.forEach(a),Zt.forEach(a),At.forEach(a),gt=f(t),me=i(t,"UL",{});var ii=r(me);be=i(ii,"LI",{});var ml=r(be);le=i(ml,"A",{href:!0,rel:!0});var ri=r(le);qa=s(ri,"Stable Diffusion v2.1"),ri.forEach(a),Xa=s(ml," (768x768 resolution):"),ml.forEach(a),ii.forEach(a),Et=f(t),W=i(t,"TABLE",{});var Wt=r(W);tt=i(Wt,"THEAD",{});var oi=r(tt);U=i(oi,"TR",{});var He=r(U);Tt=i(He,"TH",{}),r(Tt).forEach(a),Oa=f(He),ve=i(He,"TH",{align:!0});var si=r(ve);Ka=s(si,"Latency (batch size = 1)"),si.forEach(a),el=f(He),ye=i(He,"TH",{align:!0});var ni=r(ye);tl=s(ni,"Throughput"),ni.forEach(a),He.forEach(a),oi.forEach(a),al=f(Wt),ie=i(Wt,"TBODY",{});var jt=r(ie);G=i(jt,"TR",{});var Ie=r(G);at=i(Ie,"TD",{});var hi=r(at);ll=s(hi,"first-generation Gaudi"),hi.forEach(a),il=f(Ie),_e=i(Ie,"TD",{align:!0});var fi=r(_e);rl=s(fi,"23.3s"),fi.forEach(a),ol=f(Ie),we=i(Ie,"TD",{align:!0});var ui=r(we);sl=s(ui,"0.045 images/s (batch size = 2)"),ui.forEach(a),Ie.forEach(a),nl=f(jt),J=i(jt,"TR",{});var Se=r(J);lt=i(Se,"TD",{});var ci=r(lt);hl=s(ci,"Gaudi2"),ci.forEach(a),fl=f(Se),ge=i(Se,"TD",{align:!0});var di=r(ge);ul=s(di,"7.75s"),di.forEach(a),cl=f(Se),Ee=i(Se,"TD",{align:!0});var pi=r(Ee);dl=s(pi,"0.14 images/s (batch size = 5)"),pi.forEach(a),Se.forEach(a),jt.forEach(a),Wt.forEach(a),this.h()},h(){n(b,"name","hf:doc:metadata"),n(b,"content",JSON.stringify(Ti)),n(H,"id","how-to-use-stable-diffusion-on-habana-gaudi"),n(H,"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(H,"href","#how-to-use-stable-diffusion-on-habana-gaudi"),n(v,"class","relative group"),n(B,"href","https://huggingface.co/docs/optimum/habana/usage_guides/stable_diffusion"),n(B,"rel","nofollow"),n(S,"id","requirements"),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","#requirements"),n(y,"class","relative group"),n(x,"href","https://huggingface.co/docs/optimum/habana/installation"),n(x,"rel","nofollow"),n($,"id","inference-pipeline"),n($,"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($,"href","#inference-pipeline"),n(_,"class","relative group"),n(F,"href","https://huggingface.co/docs/optimum/habana/package_reference/stable_diffusion_pipeline"),n(F,"rel","nofollow"),n(z,"href","https://huggingface.co/docs/optimum/habana/package_reference/stable_diffusion_pipeline#optimum.habana.diffusers.GaudiDDIMScheduler"),n(z,"rel","nofollow"),n(V,"href","https://huggingface.co/docs/optimum/habana/package_reference/gaudi_config"),n(V,"rel","nofollow"),n(Y,"href","https://huggingface.co/Habana"),n(Y,"rel","nofollow"),n(X,"href","https://huggingface.co/docs/optimum/habana/usage_guides/stable_diffusion"),n(X,"rel","nofollow"),n(O,"href","https://github.com/huggingface/optimum-habana/tree/main/examples/stable-diffusion"),n(O,"rel","nofollow"),n(C,"id","benchmark"),n(C,"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(C,"href","#benchmark"),n(g,"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(ce,"align","center"),n(de,"align","center"),n(pe,"align","center"),n(le,"href","https://huggingface.co/stabilityai/stable-diffusion-2-1"),n(le,"rel","nofollow"),n(ve,"align","center"),n(ye,"align","center"),n(_e,"align","center"),n(we,"align","center"),n(ge,"align","center"),n(Ee,"align","center")},m(t,u){e(document.head,b),c(t,it,u),c(t,v,u),e(v,H),e(H,We),ke(j,We,null),e(v,Nt),e(v,je),e(je,Rt),c(t,rt,u),c(t,I,u),e(I,xt),e(I,B),e(B,Pt),e(I,Ft),c(t,ot,u),c(t,y,u),e(y,S),e(S,Be),ke(N,Be,null),e(y,Qt),e(y,Ne),e(Ne,zt),c(t,st,u),c(t,D,u),e(D,R),e(R,Vt),e(R,x),e(x,Yt),e(R,Lt),e(D,qt),e(D,Re),e(Re,Xt),c(t,nt,u),c(t,_,u),e(_,$),e($,xe),ke(P,xe,null),e(_,Ot),e(_,Pe),e(Pe,Kt),c(t,ht,u),c(t,re,u),e(re,ea),c(t,ft,u),c(t,k,u),e(k,w),e(w,ta),e(w,F),e(F,Fe),e(Fe,aa),e(w,la),e(w,Qe),e(Qe,ia),e(w,ra),e(k,oa),e(k,Q),e(Q,sa),e(Q,z),e(z,ze),e(ze,na),e(Q,ha),c(t,ut,u),c(t,d,u),e(d,fa),e(d,Ve),e(Ve,ua),e(d,ca),e(d,Ye),e(Ye,da),e(d,pa),e(d,Le),e(Le,ma),e(d,ba),e(d,V),e(V,va),e(d,ya),e(d,Y),e(Y,_a),e(d,wa),c(t,ct,u),ke(L,t,u),c(t,dt,u),c(t,oe,u),e(oe,ga),c(t,pt,u),ke(q,t,u),c(t,mt,u),c(t,m,u),e(m,Ea),e(m,X),e(X,Ta),e(m,Ma),e(m,O),e(O,Ua),e(m,Ga),c(t,bt,u),c(t,g,u),e(g,C),e(C,qe),ke(K,qe,null),e(g,Ja),e(g,Xe),e(Xe,Ha),c(t,vt,u),c(t,A,u),e(A,Ia),e(A,ee),e(ee,Sa),e(A,Da),c(t,yt,u),c(t,se,u),e(se,ne),e(ne,te),e(te,$a),e(ne,ka),c(t,_t,u),c(t,Z,u),e(Z,Oe),e(Oe,E),e(E,wt),e(E,Ca),e(E,he),e(he,Aa),e(E,Za),e(E,fe),e(fe,Wa),e(Z,ja),e(Z,ae),e(ae,T),e(T,Ke),e(Ke,Ba),e(T,Na),e(T,ue),e(ue,Ra),e(T,xa),e(T,ce),e(ce,Pa),e(ae,Fa),e(ae,M),e(M,et),e(et,Qa),e(M,za),e(M,de),e(de,Va),e(M,Ya),e(M,pe),e(pe,La),c(t,gt,u),c(t,me,u),e(me,be),e(be,le),e(le,qa),e(be,Xa),c(t,Et,u),c(t,W,u),e(W,tt),e(tt,U),e(U,Tt),e(U,Oa),e(U,ve),e(ve,Ka),e(U,el),e(U,ye),e(ye,tl),e(W,al),e(W,ie),e(ie,G),e(G,at),e(at,ll),e(G,il),e(G,_e),e(_e,rl),e(G,ol),e(G,we),e(we,sl),e(ie,nl),e(ie,J),e(J,lt),e(lt,hl),e(J,fl),e(J,ge),e(ge,ul),e(J,cl),e(J,Ee),e(Ee,dl),Mt=!0},p:wi,i(t){Mt||(Ce(j.$$.fragment,t),Ce(N.$$.fragment,t),Ce(P.$$.fragment,t),Ce(L.$$.fragment,t),Ce(q.$$.fragment,t),Ce(K.$$.fragment,t),Mt=!0)},o(t){Ae(j.$$.fragment,t),Ae(N.$$.fragment,t),Ae(P.$$.fragment,t),Ae(L.$$.fragment,t),Ae(q.$$.fragment,t),Ae(K.$$.fragment,t),Mt=!1},d(t){a(b),t&&a(it),t&&a(v),Ze(j),t&&a(rt),t&&a(I),t&&a(ot),t&&a(y),Ze(N),t&&a(st),t&&a(D),t&&a(nt),t&&a(_),Ze(P),t&&a(ht),t&&a(re),t&&a(ft),t&&a(k),t&&a(ut),t&&a(d),t&&a(ct),Ze(L,t),t&&a(dt),t&&a(oe),t&&a(pt),Ze(q,t),t&&a(mt),t&&a(m),t&&a(bt),t&&a(g),Ze(K),t&&a(vt),t&&a(A),t&&a(yt),t&&a(se),t&&a(_t),t&&a(Z),t&&a(gt),t&&a(me),t&&a(Et),t&&a(W)}}}const Ti={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 Mi(bl){return gi(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Hi extends bi{constructor(b){super();vi(this,b,Mi,Ei,yi,{})}}export{Hi as default,Ti as metadata};
