import{S as es,i as ts,s as ls,e as i,k as p,w as m,t as a,M as os,c as s,d as t,m as u,a as r,x as v,h as n,b as h,G as l,g as f,y,q as $,o as w,B as E,v as is}from"../chunks/vendor-hf-doc-builder.js";import{T as ss}from"../chunks/Tip-hf-doc-builder.js";import{I as vt}from"../chunks/IconCopyLink-hf-doc-builder.js";import{C as T}from"../chunks/CodeBlock-hf-doc-builder.js";function rs(yt){let c,N,_,P,S;return{c(){c=i("p"),N=a("You must keep the "),_=i("code"),P=a("diffusers"),S=a(" folder if you want to keep using the library.")},l(g){c=s(g,"P",{});var x=r(c);N=n(x,"You must keep the "),_=s(x,"CODE",{});var j=r(_);P=n(j,"diffusers"),j.forEach(t),S=n(x," folder if you want to keep using the library."),x.forEach(t)},m(g,x){f(g,c,x),l(c,N),l(c,_),l(_,P),l(c,S)},d(g){g&&t(c)}}}function as(yt){let c,N,_,P,S,g,x,j,$l,$t,_e,wl,wt,be,El,Et,Y,ge,Q,_l,bl,gl,Pe,V,Pl,kl,_t,O,q,He,X,Dl,Me,Tl,bt,A,xl,Z,Al,Il,ee,Sl,Ol,gt,ke,Cl,Pt,te,kt,De,Fl,Dt,le,Tt,Te,Ll,xt,xe,Re,Nl,At,oe,It,Ae,Be,jl,St,ie,Ot,C,H,We,se,Yl,Ge,ql,Ct,k,Hl,Ue,Ml,Rl,ze,Bl,Wl,Je,Gl,Ul,Ft,D,zl,Ke,Jl,Kl,Qe,Ql,Vl,re,Xl,Zl,Lt,ae,eo,Ve,to,Nt,ne,jt,Ie,lo,Yt,fe,qt,d,oo,Xe,io,so,Ze,ro,ao,et,no,fo,tt,po,uo,lt,ho,co,pe,mo,vo,Ht,F,M,ot,ue,yo,it,$o,Mt,Se,wo,Rt,R,he,Eo,st,_o,bo,go,rt,Po,Bt,Oe,ko,Wt,ce,Gt,Ce,at,Do,Ut,de,zt,Fe,nt,To,Jt,me,Kt,I,xo,ft,Ao,Io,pt,So,Oo,Qt,B,Vt,Le,Co,Xt,ve,Zt,W,Fo,ut,Lo,No,el,L,G,ht,ye,jo,ct,Yo,tl,U,qo,dt,Ho,Mo,ll,z,Ro,mt,Bo,Wo,ol,Ne,Go,il,$e,sl,je,Uo,rl,we,al;return g=new vt({}),X=new vt({}),te=new T({props:{code:"python -m venv .env",highlighted:'python -m venv .<span class="hljs-built_in">env</span>'}}),le=new T({props:{code:"source .env/bin/activate",highlighted:'<span class="hljs-built_in">source</span> .<span class="hljs-built_in">env</span>/bin/activate'}}),oe=new T({props:{code:'pip install diffusers["torch"]',highlighted:'pip install diffusers[<span class="hljs-string">&quot;torch&quot;</span>]'}}),ie=new T({props:{code:'pip install diffusers["flax"]',highlighted:'pip install diffusers[<span class="hljs-string">&quot;flax&quot;</span>]'}}),se=new vt({}),ne=new T({props:{code:"pip install accelerate",highlighted:"pip install accelerate"}}),fe=new T({props:{code:"pip install git+https://github.com/huggingface/diffusers",highlighted:"pip install git+https://github.com/huggingface/diffusers"}}),ue=new vt({}),ce=new T({props:{code:`git clone https://github.com/huggingface/diffusers.git
cd diffusers`,highlighted:`git <span class="hljs-built_in">clone</span> https://github.com/huggingface/diffusers.git
<span class="hljs-built_in">cd</span> diffusers`}}),de=new T({props:{code:'pip install -e ".[torch]"',highlighted:'pip <span class="hljs-keyword">install</span> -e <span class="hljs-string">&quot;.[torch]&quot;</span>'}}),me=new T({props:{code:'pip install -e ".[flax]"',highlighted:'pip <span class="hljs-keyword">install</span> -e <span class="hljs-string">&quot;.[flax]&quot;</span>'}}),B=new ss({props:{warning:!0,$$slots:{default:[rs]},$$scope:{ctx:yt}}}),ve=new T({props:{code:`cd ~/diffusers/
git pull`,highlighted:`<span class="hljs-built_in">cd</span> ~/diffusers/
git pull`}}),ye=new vt({}),$e=new T({props:{code:"export DISABLE_TELEMETRY=YES",highlighted:'<span class="hljs-built_in">export</span> DISABLE_TELEMETRY=YES'}}),we=new T({props:{code:"set DISABLE_TELEMETRY=YES",highlighted:'<span class="hljs-built_in">set</span> DISABLE_TELEMETRY=YES'}}),{c(){c=i("meta"),N=p(),_=i("h1"),P=i("a"),S=i("span"),m(g.$$.fragment),x=p(),j=i("span"),$l=a("Installation"),$t=p(),_e=i("p"),wl=a("Install \u{1F917} Diffusers for whichever deep learning library you\u2019re working with."),wt=p(),be=i("p"),El=a("\u{1F917} Diffusers is tested on Python 3.7+, PyTorch 1.7.0+ and flax. Follow the installation instructions below for the deep learning library you are using:"),Et=p(),Y=i("ul"),ge=i("li"),Q=i("a"),_l=a("PyTorch"),bl=a(" installation instructions."),gl=p(),Pe=i("li"),V=i("a"),Pl=a("Flax"),kl=a(" installation instructions."),_t=p(),O=i("h2"),q=i("a"),He=i("span"),m(X.$$.fragment),Dl=p(),Me=i("span"),Tl=a("Install with pip"),bt=p(),A=i("p"),xl=a("You should install \u{1F917} Diffusers in a "),Z=i("a"),Al=a("virtual environment"),Il=a(`.
If you\u2019re unfamiliar with Python virtual environments, take a look at this `),ee=i("a"),Sl=a("guide"),Ol=a(`.
A virtual environment makes it easier to manage different projects, and avoid compatibility issues between dependencies.`),gt=p(),ke=i("p"),Cl=a("Start by creating a virtual environment in your project directory:"),Pt=p(),m(te.$$.fragment),kt=p(),De=i("p"),Fl=a("Activate the virtual environment:"),Dt=p(),m(le.$$.fragment),Tt=p(),Te=i("p"),Ll=a("Now you\u2019re ready to install \u{1F917} Diffusers with the following command:"),xt=p(),xe=i("p"),Re=i("strong"),Nl=a("For PyTorch"),At=p(),m(oe.$$.fragment),It=p(),Ae=i("p"),Be=i("strong"),jl=a("For Flax"),St=p(),m(ie.$$.fragment),Ot=p(),C=i("h2"),H=i("a"),We=i("span"),m(se.$$.fragment),Yl=p(),Ge=i("span"),ql=a("Install from source"),Ct=p(),k=i("p"),Hl=a("Before intsalling "),Ue=i("code"),Ml=a("diffusers"),Rl=a(" from source, make sure you have "),ze=i("code"),Bl=a("torch"),Wl=a(" and "),Je=i("code"),Gl=a("accelerate"),Ul=a(" installed."),Ft=p(),D=i("p"),zl=a("For "),Ke=i("code"),Jl=a("torch"),Kl=a(" installation refer to the "),Qe=i("code"),Ql=a("torch"),Vl=p(),re=i("a"),Xl=a("docs"),Zl=a("."),Lt=p(),ae=i("p"),eo=a("To install "),Ve=i("code"),to=a("accelerate"),Nt=p(),m(ne.$$.fragment),jt=p(),Ie=i("p"),lo=a("Install \u{1F917} Diffusers from source with the following command:"),Yt=p(),m(fe.$$.fragment),qt=p(),d=i("p"),oo=a("This command installs the bleeding edge "),Xe=i("code"),io=a("main"),so=a(" version rather than the latest "),Ze=i("code"),ro=a("stable"),ao=a(` version.
The `),et=i("code"),no=a("main"),fo=a(` version is useful for staying up-to-date with the latest developments.
For instance, if a bug has been fixed since the last official release but a new release hasn\u2019t been rolled out yet.
However, this means the `),tt=i("code"),po=a("main"),uo=a(` version may not always be stable.
We strive to keep the `),lt=i("code"),ho=a("main"),co=a(` version operational, and most issues are usually resolved within a few hours or a day.
If you run into a problem, please open an `),pe=i("a"),mo=a("Issue"),vo=a(", so we can fix it even sooner!"),Ht=p(),F=i("h2"),M=i("a"),ot=i("span"),m(ue.$$.fragment),yo=p(),it=i("span"),$o=a("Editable install"),Mt=p(),Se=i("p"),wo=a("You will need an editable install if you\u2019d like to:"),Rt=p(),R=i("ul"),he=i("li"),Eo=a("Use the "),st=i("code"),_o=a("main"),bo=a(" version of the source code."),go=p(),rt=i("li"),Po=a("Contribute to \u{1F917} Diffusers and need to test changes in the code."),Bt=p(),Oe=i("p"),ko=a("Clone the repository and install \u{1F917} Diffusers with the following commands:"),Wt=p(),m(ce.$$.fragment),Gt=p(),Ce=i("p"),at=i("strong"),Do=a("For PyTorch"),Ut=p(),m(de.$$.fragment),zt=p(),Fe=i("p"),nt=i("strong"),To=a("For Flax"),Jt=p(),m(me.$$.fragment),Kt=p(),I=i("p"),xo=a(`These commands will link the folder you cloned the repository to and your Python library paths.
Python will now look inside the folder you cloned to in addition to the normal library paths.
For example, if your Python packages are typically installed in `),ft=i("code"),Ao=a("~/anaconda3/envs/main/lib/python3.7/site-packages/"),Io=a(", Python will also search the folder you cloned to: "),pt=i("code"),So=a("~/diffusers/"),Oo=a("."),Qt=p(),m(B.$$.fragment),Vt=p(),Le=i("p"),Co=a("Now you can easily update your clone to the latest version of \u{1F917} Diffusers with the following command:"),Xt=p(),m(ve.$$.fragment),Zt=p(),W=i("p"),Fo=a("Your Python environment will find the "),ut=i("code"),Lo=a("main"),No=a(" version of \u{1F917} Diffusers on the next run."),el=p(),L=i("h2"),G=i("a"),ht=i("span"),m(ye.$$.fragment),jo=p(),ct=i("span"),Yo=a("Notice on telemetry logging"),tl=p(),U=i("p"),qo=a("Our library gathers telemetry information during "),dt=i("code"),Ho=a("from_pretrained()"),Mo=a(` requests.
This data includes the version of Diffusers and PyTorch/Flax, the requested model or pipeline class,
and the path to a pretrained checkpoint if it is hosted on the Hub.
This usage data helps us debug issues and prioritize new features.
Telemetry is only sent when loading models and pipelines from the HuggingFace Hub,
and is not collected during local usage.`),ll=p(),z=i("p"),Ro=a(`We understand that not everyone wants to share additional information, and we respect your privacy,
so you can disable telemetry collection by setting the `),mt=i("code"),Bo=a("DISABLE_TELEMETRY"),Wo=a(" environment variable from your terminal:"),ol=p(),Ne=i("p"),Go=a("On Linux/MacOS:"),il=p(),m($e.$$.fragment),sl=p(),je=i("p"),Uo=a("On Windows:"),rl=p(),m(we.$$.fragment),this.h()},l(e){const o=os('[data-svelte="svelte-1phssyn"]',document.head);c=s(o,"META",{name:!0,content:!0}),o.forEach(t),N=u(e),_=s(e,"H1",{class:!0});var Ee=r(_);P=s(Ee,"A",{id:!0,class:!0,href:!0});var Qo=r(P);S=s(Qo,"SPAN",{});var Vo=r(S);v(g.$$.fragment,Vo),Vo.forEach(t),Qo.forEach(t),x=u(Ee),j=s(Ee,"SPAN",{});var Xo=r(j);$l=n(Xo,"Installation"),Xo.forEach(t),Ee.forEach(t),$t=u(e),_e=s(e,"P",{});var Zo=r(_e);wl=n(Zo,"Install \u{1F917} Diffusers for whichever deep learning library you\u2019re working with."),Zo.forEach(t),wt=u(e),be=s(e,"P",{});var ei=r(be);El=n(ei,"\u{1F917} Diffusers is tested on Python 3.7+, PyTorch 1.7.0+ and flax. Follow the installation instructions below for the deep learning library you are using:"),ei.forEach(t),Et=u(e),Y=s(e,"UL",{});var nl=r(Y);ge=s(nl,"LI",{});var zo=r(ge);Q=s(zo,"A",{href:!0,rel:!0});var ti=r(Q);_l=n(ti,"PyTorch"),ti.forEach(t),bl=n(zo," installation instructions."),zo.forEach(t),gl=u(nl),Pe=s(nl,"LI",{});var Jo=r(Pe);V=s(Jo,"A",{href:!0,rel:!0});var li=r(V);Pl=n(li,"Flax"),li.forEach(t),kl=n(Jo," installation instructions."),Jo.forEach(t),nl.forEach(t),_t=u(e),O=s(e,"H2",{class:!0});var fl=r(O);q=s(fl,"A",{id:!0,class:!0,href:!0});var oi=r(q);He=s(oi,"SPAN",{});var ii=r(He);v(X.$$.fragment,ii),ii.forEach(t),oi.forEach(t),Dl=u(fl),Me=s(fl,"SPAN",{});var si=r(Me);Tl=n(si,"Install with pip"),si.forEach(t),fl.forEach(t),bt=u(e),A=s(e,"P",{});var Ye=r(A);xl=n(Ye,"You should install \u{1F917} Diffusers in a "),Z=s(Ye,"A",{href:!0,rel:!0});var ri=r(Z);Al=n(ri,"virtual environment"),ri.forEach(t),Il=n(Ye,`.
If you\u2019re unfamiliar with Python virtual environments, take a look at this `),ee=s(Ye,"A",{href:!0,rel:!0});var ai=r(ee);Sl=n(ai,"guide"),ai.forEach(t),Ol=n(Ye,`.
A virtual environment makes it easier to manage different projects, and avoid compatibility issues between dependencies.`),Ye.forEach(t),gt=u(e),ke=s(e,"P",{});var ni=r(ke);Cl=n(ni,"Start by creating a virtual environment in your project directory:"),ni.forEach(t),Pt=u(e),v(te.$$.fragment,e),kt=u(e),De=s(e,"P",{});var fi=r(De);Fl=n(fi,"Activate the virtual environment:"),fi.forEach(t),Dt=u(e),v(le.$$.fragment,e),Tt=u(e),Te=s(e,"P",{});var pi=r(Te);Ll=n(pi,"Now you\u2019re ready to install \u{1F917} Diffusers with the following command:"),pi.forEach(t),xt=u(e),xe=s(e,"P",{});var ui=r(xe);Re=s(ui,"STRONG",{});var hi=r(Re);Nl=n(hi,"For PyTorch"),hi.forEach(t),ui.forEach(t),At=u(e),v(oe.$$.fragment,e),It=u(e),Ae=s(e,"P",{});var ci=r(Ae);Be=s(ci,"STRONG",{});var di=r(Be);jl=n(di,"For Flax"),di.forEach(t),ci.forEach(t),St=u(e),v(ie.$$.fragment,e),Ot=u(e),C=s(e,"H2",{class:!0});var pl=r(C);H=s(pl,"A",{id:!0,class:!0,href:!0});var mi=r(H);We=s(mi,"SPAN",{});var vi=r(We);v(se.$$.fragment,vi),vi.forEach(t),mi.forEach(t),Yl=u(pl),Ge=s(pl,"SPAN",{});var yi=r(Ge);ql=n(yi,"Install from source"),yi.forEach(t),pl.forEach(t),Ct=u(e),k=s(e,"P",{});var J=r(k);Hl=n(J,"Before intsalling "),Ue=s(J,"CODE",{});var $i=r(Ue);Ml=n($i,"diffusers"),$i.forEach(t),Rl=n(J," from source, make sure you have "),ze=s(J,"CODE",{});var wi=r(ze);Bl=n(wi,"torch"),wi.forEach(t),Wl=n(J," and "),Je=s(J,"CODE",{});var Ei=r(Je);Gl=n(Ei,"accelerate"),Ei.forEach(t),Ul=n(J," installed."),J.forEach(t),Ft=u(e),D=s(e,"P",{});var K=r(D);zl=n(K,"For "),Ke=s(K,"CODE",{});var _i=r(Ke);Jl=n(_i,"torch"),_i.forEach(t),Kl=n(K," installation refer to the "),Qe=s(K,"CODE",{});var bi=r(Qe);Ql=n(bi,"torch"),bi.forEach(t),Vl=u(K),re=s(K,"A",{href:!0,rel:!0});var gi=r(re);Xl=n(gi,"docs"),gi.forEach(t),Zl=n(K,"."),K.forEach(t),Lt=u(e),ae=s(e,"P",{});var Ko=r(ae);eo=n(Ko,"To install "),Ve=s(Ko,"CODE",{});var Pi=r(Ve);to=n(Pi,"accelerate"),Pi.forEach(t),Ko.forEach(t),Nt=u(e),v(ne.$$.fragment,e),jt=u(e),Ie=s(e,"P",{});var ki=r(Ie);lo=n(ki,"Install \u{1F917} Diffusers from source with the following command:"),ki.forEach(t),Yt=u(e),v(fe.$$.fragment,e),qt=u(e),d=s(e,"P",{});var b=r(d);oo=n(b,"This command installs the bleeding edge "),Xe=s(b,"CODE",{});var Di=r(Xe);io=n(Di,"main"),Di.forEach(t),so=n(b," version rather than the latest "),Ze=s(b,"CODE",{});var Ti=r(Ze);ro=n(Ti,"stable"),Ti.forEach(t),ao=n(b,` version.
The `),et=s(b,"CODE",{});var xi=r(et);no=n(xi,"main"),xi.forEach(t),fo=n(b,` version is useful for staying up-to-date with the latest developments.
For instance, if a bug has been fixed since the last official release but a new release hasn\u2019t been rolled out yet.
However, this means the `),tt=s(b,"CODE",{});var Ai=r(tt);po=n(Ai,"main"),Ai.forEach(t),uo=n(b,` version may not always be stable.
We strive to keep the `),lt=s(b,"CODE",{});var Ii=r(lt);ho=n(Ii,"main"),Ii.forEach(t),co=n(b,` version operational, and most issues are usually resolved within a few hours or a day.
If you run into a problem, please open an `),pe=s(b,"A",{href:!0,rel:!0});var Si=r(pe);mo=n(Si,"Issue"),Si.forEach(t),vo=n(b,", so we can fix it even sooner!"),b.forEach(t),Ht=u(e),F=s(e,"H2",{class:!0});var ul=r(F);M=s(ul,"A",{id:!0,class:!0,href:!0});var Oi=r(M);ot=s(Oi,"SPAN",{});var Ci=r(ot);v(ue.$$.fragment,Ci),Ci.forEach(t),Oi.forEach(t),yo=u(ul),it=s(ul,"SPAN",{});var Fi=r(it);$o=n(Fi,"Editable install"),Fi.forEach(t),ul.forEach(t),Mt=u(e),Se=s(e,"P",{});var Li=r(Se);wo=n(Li,"You will need an editable install if you\u2019d like to:"),Li.forEach(t),Rt=u(e),R=s(e,"UL",{});var hl=r(R);he=s(hl,"LI",{});var cl=r(he);Eo=n(cl,"Use the "),st=s(cl,"CODE",{});var Ni=r(st);_o=n(Ni,"main"),Ni.forEach(t),bo=n(cl," version of the source code."),cl.forEach(t),go=u(hl),rt=s(hl,"LI",{});var ji=r(rt);Po=n(ji,"Contribute to \u{1F917} Diffusers and need to test changes in the code."),ji.forEach(t),hl.forEach(t),Bt=u(e),Oe=s(e,"P",{});var Yi=r(Oe);ko=n(Yi,"Clone the repository and install \u{1F917} Diffusers with the following commands:"),Yi.forEach(t),Wt=u(e),v(ce.$$.fragment,e),Gt=u(e),Ce=s(e,"P",{});var qi=r(Ce);at=s(qi,"STRONG",{});var Hi=r(at);Do=n(Hi,"For PyTorch"),Hi.forEach(t),qi.forEach(t),Ut=u(e),v(de.$$.fragment,e),zt=u(e),Fe=s(e,"P",{});var Mi=r(Fe);nt=s(Mi,"STRONG",{});var Ri=r(nt);To=n(Ri,"For Flax"),Ri.forEach(t),Mi.forEach(t),Jt=u(e),v(me.$$.fragment,e),Kt=u(e),I=s(e,"P",{});var qe=r(I);xo=n(qe,`These commands will link the folder you cloned the repository to and your Python library paths.
Python will now look inside the folder you cloned to in addition to the normal library paths.
For example, if your Python packages are typically installed in `),ft=s(qe,"CODE",{});var Bi=r(ft);Ao=n(Bi,"~/anaconda3/envs/main/lib/python3.7/site-packages/"),Bi.forEach(t),Io=n(qe,", Python will also search the folder you cloned to: "),pt=s(qe,"CODE",{});var Wi=r(pt);So=n(Wi,"~/diffusers/"),Wi.forEach(t),Oo=n(qe,"."),qe.forEach(t),Qt=u(e),v(B.$$.fragment,e),Vt=u(e),Le=s(e,"P",{});var Gi=r(Le);Co=n(Gi,"Now you can easily update your clone to the latest version of \u{1F917} Diffusers with the following command:"),Gi.forEach(t),Xt=u(e),v(ve.$$.fragment,e),Zt=u(e),W=s(e,"P",{});var dl=r(W);Fo=n(dl,"Your Python environment will find the "),ut=s(dl,"CODE",{});var Ui=r(ut);Lo=n(Ui,"main"),Ui.forEach(t),No=n(dl," version of \u{1F917} Diffusers on the next run."),dl.forEach(t),el=u(e),L=s(e,"H2",{class:!0});var ml=r(L);G=s(ml,"A",{id:!0,class:!0,href:!0});var zi=r(G);ht=s(zi,"SPAN",{});var Ji=r(ht);v(ye.$$.fragment,Ji),Ji.forEach(t),zi.forEach(t),jo=u(ml),ct=s(ml,"SPAN",{});var Ki=r(ct);Yo=n(Ki,"Notice on telemetry logging"),Ki.forEach(t),ml.forEach(t),tl=u(e),U=s(e,"P",{});var vl=r(U);qo=n(vl,"Our library gathers telemetry information during "),dt=s(vl,"CODE",{});var Qi=r(dt);Ho=n(Qi,"from_pretrained()"),Qi.forEach(t),Mo=n(vl,` requests.
This data includes the version of Diffusers and PyTorch/Flax, the requested model or pipeline class,
and the path to a pretrained checkpoint if it is hosted on the Hub.
This usage data helps us debug issues and prioritize new features.
Telemetry is only sent when loading models and pipelines from the HuggingFace Hub,
and is not collected during local usage.`),vl.forEach(t),ll=u(e),z=s(e,"P",{});var yl=r(z);Ro=n(yl,`We understand that not everyone wants to share additional information, and we respect your privacy,
so you can disable telemetry collection by setting the `),mt=s(yl,"CODE",{});var Vi=r(mt);Bo=n(Vi,"DISABLE_TELEMETRY"),Vi.forEach(t),Wo=n(yl," environment variable from your terminal:"),yl.forEach(t),ol=u(e),Ne=s(e,"P",{});var Xi=r(Ne);Go=n(Xi,"On Linux/MacOS:"),Xi.forEach(t),il=u(e),v($e.$$.fragment,e),sl=u(e),je=s(e,"P",{});var Zi=r(je);Uo=n(Zi,"On Windows:"),Zi.forEach(t),rl=u(e),v(we.$$.fragment,e),this.h()},h(){h(c,"name","hf:doc:metadata"),h(c,"content",JSON.stringify(ns)),h(P,"id","installation"),h(P,"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"),h(P,"href","#installation"),h(_,"class","relative group"),h(Q,"href","https://pytorch.org/get-started/locally/"),h(Q,"rel","nofollow"),h(V,"href","https://flax.readthedocs.io/en/latest/"),h(V,"rel","nofollow"),h(q,"id","install-with-pip"),h(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"),h(q,"href","#install-with-pip"),h(O,"class","relative group"),h(Z,"href","https://docs.python.org/3/library/venv.html"),h(Z,"rel","nofollow"),h(ee,"href","https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/"),h(ee,"rel","nofollow"),h(H,"id","install-from-source"),h(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"),h(H,"href","#install-from-source"),h(C,"class","relative group"),h(re,"href","https://pytorch.org/get-started/locally/#start-locally"),h(re,"rel","nofollow"),h(pe,"href","https://github.com/huggingface/transformers/issues"),h(pe,"rel","nofollow"),h(M,"id","editable-install"),h(M,"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"),h(M,"href","#editable-install"),h(F,"class","relative group"),h(G,"id","notice-on-telemetry-logging"),h(G,"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"),h(G,"href","#notice-on-telemetry-logging"),h(L,"class","relative group")},m(e,o){l(document.head,c),f(e,N,o),f(e,_,o),l(_,P),l(P,S),y(g,S,null),l(_,x),l(_,j),l(j,$l),f(e,$t,o),f(e,_e,o),l(_e,wl),f(e,wt,o),f(e,be,o),l(be,El),f(e,Et,o),f(e,Y,o),l(Y,ge),l(ge,Q),l(Q,_l),l(ge,bl),l(Y,gl),l(Y,Pe),l(Pe,V),l(V,Pl),l(Pe,kl),f(e,_t,o),f(e,O,o),l(O,q),l(q,He),y(X,He,null),l(O,Dl),l(O,Me),l(Me,Tl),f(e,bt,o),f(e,A,o),l(A,xl),l(A,Z),l(Z,Al),l(A,Il),l(A,ee),l(ee,Sl),l(A,Ol),f(e,gt,o),f(e,ke,o),l(ke,Cl),f(e,Pt,o),y(te,e,o),f(e,kt,o),f(e,De,o),l(De,Fl),f(e,Dt,o),y(le,e,o),f(e,Tt,o),f(e,Te,o),l(Te,Ll),f(e,xt,o),f(e,xe,o),l(xe,Re),l(Re,Nl),f(e,At,o),y(oe,e,o),f(e,It,o),f(e,Ae,o),l(Ae,Be),l(Be,jl),f(e,St,o),y(ie,e,o),f(e,Ot,o),f(e,C,o),l(C,H),l(H,We),y(se,We,null),l(C,Yl),l(C,Ge),l(Ge,ql),f(e,Ct,o),f(e,k,o),l(k,Hl),l(k,Ue),l(Ue,Ml),l(k,Rl),l(k,ze),l(ze,Bl),l(k,Wl),l(k,Je),l(Je,Gl),l(k,Ul),f(e,Ft,o),f(e,D,o),l(D,zl),l(D,Ke),l(Ke,Jl),l(D,Kl),l(D,Qe),l(Qe,Ql),l(D,Vl),l(D,re),l(re,Xl),l(D,Zl),f(e,Lt,o),f(e,ae,o),l(ae,eo),l(ae,Ve),l(Ve,to),f(e,Nt,o),y(ne,e,o),f(e,jt,o),f(e,Ie,o),l(Ie,lo),f(e,Yt,o),y(fe,e,o),f(e,qt,o),f(e,d,o),l(d,oo),l(d,Xe),l(Xe,io),l(d,so),l(d,Ze),l(Ze,ro),l(d,ao),l(d,et),l(et,no),l(d,fo),l(d,tt),l(tt,po),l(d,uo),l(d,lt),l(lt,ho),l(d,co),l(d,pe),l(pe,mo),l(d,vo),f(e,Ht,o),f(e,F,o),l(F,M),l(M,ot),y(ue,ot,null),l(F,yo),l(F,it),l(it,$o),f(e,Mt,o),f(e,Se,o),l(Se,wo),f(e,Rt,o),f(e,R,o),l(R,he),l(he,Eo),l(he,st),l(st,_o),l(he,bo),l(R,go),l(R,rt),l(rt,Po),f(e,Bt,o),f(e,Oe,o),l(Oe,ko),f(e,Wt,o),y(ce,e,o),f(e,Gt,o),f(e,Ce,o),l(Ce,at),l(at,Do),f(e,Ut,o),y(de,e,o),f(e,zt,o),f(e,Fe,o),l(Fe,nt),l(nt,To),f(e,Jt,o),y(me,e,o),f(e,Kt,o),f(e,I,o),l(I,xo),l(I,ft),l(ft,Ao),l(I,Io),l(I,pt),l(pt,So),l(I,Oo),f(e,Qt,o),y(B,e,o),f(e,Vt,o),f(e,Le,o),l(Le,Co),f(e,Xt,o),y(ve,e,o),f(e,Zt,o),f(e,W,o),l(W,Fo),l(W,ut),l(ut,Lo),l(W,No),f(e,el,o),f(e,L,o),l(L,G),l(G,ht),y(ye,ht,null),l(L,jo),l(L,ct),l(ct,Yo),f(e,tl,o),f(e,U,o),l(U,qo),l(U,dt),l(dt,Ho),l(U,Mo),f(e,ll,o),f(e,z,o),l(z,Ro),l(z,mt),l(mt,Bo),l(z,Wo),f(e,ol,o),f(e,Ne,o),l(Ne,Go),f(e,il,o),y($e,e,o),f(e,sl,o),f(e,je,o),l(je,Uo),f(e,rl,o),y(we,e,o),al=!0},p(e,[o]){const Ee={};o&2&&(Ee.$$scope={dirty:o,ctx:e}),B.$set(Ee)},i(e){al||($(g.$$.fragment,e),$(X.$$.fragment,e),$(te.$$.fragment,e),$(le.$$.fragment,e),$(oe.$$.fragment,e),$(ie.$$.fragment,e),$(se.$$.fragment,e),$(ne.$$.fragment,e),$(fe.$$.fragment,e),$(ue.$$.fragment,e),$(ce.$$.fragment,e),$(de.$$.fragment,e),$(me.$$.fragment,e),$(B.$$.fragment,e),$(ve.$$.fragment,e),$(ye.$$.fragment,e),$($e.$$.fragment,e),$(we.$$.fragment,e),al=!0)},o(e){w(g.$$.fragment,e),w(X.$$.fragment,e),w(te.$$.fragment,e),w(le.$$.fragment,e),w(oe.$$.fragment,e),w(ie.$$.fragment,e),w(se.$$.fragment,e),w(ne.$$.fragment,e),w(fe.$$.fragment,e),w(ue.$$.fragment,e),w(ce.$$.fragment,e),w(de.$$.fragment,e),w(me.$$.fragment,e),w(B.$$.fragment,e),w(ve.$$.fragment,e),w(ye.$$.fragment,e),w($e.$$.fragment,e),w(we.$$.fragment,e),al=!1},d(e){t(c),e&&t(N),e&&t(_),E(g),e&&t($t),e&&t(_e),e&&t(wt),e&&t(be),e&&t(Et),e&&t(Y),e&&t(_t),e&&t(O),E(X),e&&t(bt),e&&t(A),e&&t(gt),e&&t(ke),e&&t(Pt),E(te,e),e&&t(kt),e&&t(De),e&&t(Dt),E(le,e),e&&t(Tt),e&&t(Te),e&&t(xt),e&&t(xe),e&&t(At),E(oe,e),e&&t(It),e&&t(Ae),e&&t(St),E(ie,e),e&&t(Ot),e&&t(C),E(se),e&&t(Ct),e&&t(k),e&&t(Ft),e&&t(D),e&&t(Lt),e&&t(ae),e&&t(Nt),E(ne,e),e&&t(jt),e&&t(Ie),e&&t(Yt),E(fe,e),e&&t(qt),e&&t(d),e&&t(Ht),e&&t(F),E(ue),e&&t(Mt),e&&t(Se),e&&t(Rt),e&&t(R),e&&t(Bt),e&&t(Oe),e&&t(Wt),E(ce,e),e&&t(Gt),e&&t(Ce),e&&t(Ut),E(de,e),e&&t(zt),e&&t(Fe),e&&t(Jt),E(me,e),e&&t(Kt),e&&t(I),e&&t(Qt),E(B,e),e&&t(Vt),e&&t(Le),e&&t(Xt),E(ve,e),e&&t(Zt),e&&t(W),e&&t(el),e&&t(L),E(ye),e&&t(tl),e&&t(U),e&&t(ll),e&&t(z),e&&t(ol),e&&t(Ne),e&&t(il),E($e,e),e&&t(sl),e&&t(je),e&&t(rl),E(we,e)}}}const ns={local:"installation",sections:[{local:"install-with-pip",title:"Install with pip"},{local:"install-from-source",title:"Install from source"},{local:"editable-install",title:"Editable install"},{local:"notice-on-telemetry-logging",title:"Notice on telemetry logging"}],title:"Installation"};function fs(yt){return is(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ds extends es{constructor(c){super();ts(this,c,fs,as,ls,{})}}export{ds as default,ns as metadata};
