import{S as kt,i as Et,s as At,e as r,k as f,w as G,t as u,M as Pt,c as o,d as t,m as c,a as l,x as J,h,b as n,G as a,g as s,y as O,L as It,q as U,o as j,B as z,v as St}from"../chunks/vendor-hf-doc-builder.js";import{I as D}from"../chunks/IconCopyLink-hf-doc-builder.js";function xt(Xe){let m,ie,d,_,K,x,Ie,Q,Se,se,v,$,V,N,xe,X,Ne,ue,B,Re,he,y,k,Z,R,qe,ee,He,fe,E,Te,q,Fe,Me,ce,g,A,te,H,We,ae,Ye,pe,L,Be,me,w,P,re,T,Le,oe,Ce,de,I,Ge,F,Je,Oe,ve,b,S,ne,M,Ue,le,je,ye,p,ze,W,De,Ke,Y,Qe,Ve,ge;return x=new D({}),N=new D({}),R=new D({}),H=new D({}),T=new D({}),M=new D({}),{c(){m=r("meta"),ie=f(),d=r("h1"),_=r("a"),K=r("span"),G(x.$$.fragment),Ie=f(),Q=r("span"),Se=u("More information about the API"),se=f(),v=r("h2"),$=r("a"),V=r("span"),G(N.$$.fragment),xe=f(),X=r("span"),Ne=u("Rate limits"),ue=f(),B=r("p"),Re=u(`The free Inference API may be rate limited for heavy use cases. We try to balance the loads evenly between all our
available resources, and favoring steady flows of requests. If your account suddenly sends 10k requests then you\u2019re
likely to receive 503 errors saying models are loading. In order to prevent that, you should instead try to start
running queries smoothly from 0 to 10k over the course of a few minutes.`),he=f(),y=r("h2"),k=r("a"),Z=r("span"),G(R.$$.fragment),qe=f(),ee=r("span"),He=u("Running private models"),fe=f(),E=r("p"),Te=u(`You can run private models by default ! If you don\u2019t see them on your
`),q=r("a"),Fe=u("Hugging Face"),Me=u(` page please make sure you are
logged in. Within the API make sure you include your token, otherwise
your model will be declared as non existent.`),ce=f(),g=r("h2"),A=r("a"),te=r("span"),G(H.$$.fragment),We=f(),ae=r("span"),Ye=u("Running a public model that I do not own"),pe=f(),L=r("p"),Be=u(`You can. Please check the model card for any licensing issue that might
arise, but most public models are delivered by researchers and are
usable within commercial products. But please double check.`),me=f(),w=r("h2"),P=r("a"),re=r("span"),G(T.$$.fragment),Le=f(),oe=r("span"),Ce=u("Finetuning a public model"),de=f(),I=r("p"),Ge=u("To automatically finetune a model on your data, please try "),F=r("a"),Je=u("AutoTrain"),Oe=u(`. It\u2019s a
hands-free solution for automatically training and deploying a model; all you have to do is upload your data!`),ve=f(),b=r("h2"),S=r("a"),ne=r("span"),G(M.$$.fragment),Ue=f(),le=r("span"),je=u("Running the inference on my infrastructure"),ye=f(),p=r("p"),ze=u("To run on premise inference on your own infrastructure, please contact our team to "),W=r("a"),De=u(`request a
demo`),Ke=u(" for more information about our "),Y=r("a"),Qe=u(`Private
Hub`),Ve=u("."),this.h()},l(e){const i=Pt('[data-svelte="svelte-1phssyn"]',document.head);m=o(i,"META",{name:!0,content:!0}),i.forEach(t),ie=c(e),d=o(e,"H1",{class:!0});var we=l(d);_=o(we,"A",{id:!0,class:!0,href:!0});var Ze=l(_);K=o(Ze,"SPAN",{});var et=l(K);J(x.$$.fragment,et),et.forEach(t),Ze.forEach(t),Ie=c(we),Q=o(we,"SPAN",{});var tt=l(Q);Se=h(tt,"More information about the API"),tt.forEach(t),we.forEach(t),se=c(e),v=o(e,"H2",{class:!0});var be=l(v);$=o(be,"A",{id:!0,class:!0,href:!0});var at=l($);V=o(at,"SPAN",{});var rt=l(V);J(N.$$.fragment,rt),rt.forEach(t),at.forEach(t),xe=c(be),X=o(be,"SPAN",{});var ot=l(X);Ne=h(ot,"Rate limits"),ot.forEach(t),be.forEach(t),ue=c(e),B=o(e,"P",{});var nt=l(B);Re=h(nt,`The free Inference API may be rate limited for heavy use cases. We try to balance the loads evenly between all our
available resources, and favoring steady flows of requests. If your account suddenly sends 10k requests then you\u2019re
likely to receive 503 errors saying models are loading. In order to prevent that, you should instead try to start
running queries smoothly from 0 to 10k over the course of a few minutes.`),nt.forEach(t),he=c(e),y=o(e,"H2",{class:!0});var _e=l(y);k=o(_e,"A",{id:!0,class:!0,href:!0});var lt=l(k);Z=o(lt,"SPAN",{});var it=l(Z);J(R.$$.fragment,it),it.forEach(t),lt.forEach(t),qe=c(_e),ee=o(_e,"SPAN",{});var st=l(ee);He=h(st,"Running private models"),st.forEach(t),_e.forEach(t),fe=c(e),E=o(e,"P",{});var $e=l(E);Te=h($e,`You can run private models by default ! If you don\u2019t see them on your
`),q=o($e,"A",{href:!0,rel:!0});var ut=l(q);Fe=h(ut,"Hugging Face"),ut.forEach(t),Me=h($e,` page please make sure you are
logged in. Within the API make sure you include your token, otherwise
your model will be declared as non existent.`),$e.forEach(t),ce=c(e),g=o(e,"H2",{class:!0});var ke=l(g);A=o(ke,"A",{id:!0,class:!0,href:!0});var ht=l(A);te=o(ht,"SPAN",{});var ft=l(te);J(H.$$.fragment,ft),ft.forEach(t),ht.forEach(t),We=c(ke),ae=o(ke,"SPAN",{});var ct=l(ae);Ye=h(ct,"Running a public model that I do not own"),ct.forEach(t),ke.forEach(t),pe=c(e),L=o(e,"P",{});var pt=l(L);Be=h(pt,`You can. Please check the model card for any licensing issue that might
arise, but most public models are delivered by researchers and are
usable within commercial products. But please double check.`),pt.forEach(t),me=c(e),w=o(e,"H2",{class:!0});var Ee=l(w);P=o(Ee,"A",{id:!0,class:!0,href:!0});var mt=l(P);re=o(mt,"SPAN",{});var dt=l(re);J(T.$$.fragment,dt),dt.forEach(t),mt.forEach(t),Le=c(Ee),oe=o(Ee,"SPAN",{});var vt=l(oe);Ce=h(vt,"Finetuning a public model"),vt.forEach(t),Ee.forEach(t),de=c(e),I=o(e,"P",{});var Ae=l(I);Ge=h(Ae,"To automatically finetune a model on your data, please try "),F=o(Ae,"A",{href:!0,rel:!0});var yt=l(F);Je=h(yt,"AutoTrain"),yt.forEach(t),Oe=h(Ae,`. It\u2019s a
hands-free solution for automatically training and deploying a model; all you have to do is upload your data!`),Ae.forEach(t),ve=c(e),b=o(e,"H2",{class:!0});var Pe=l(b);S=o(Pe,"A",{id:!0,class:!0,href:!0});var gt=l(S);ne=o(gt,"SPAN",{});var wt=l(ne);J(M.$$.fragment,wt),wt.forEach(t),gt.forEach(t),Ue=c(Pe),le=o(Pe,"SPAN",{});var bt=l(le);je=h(bt,"Running the inference on my infrastructure"),bt.forEach(t),Pe.forEach(t),ye=c(e),p=o(e,"P",{});var C=l(p);ze=h(C,"To run on premise inference on your own infrastructure, please contact our team to "),W=o(C,"A",{href:!0,rel:!0});var _t=l(W);De=h(_t,`request a
demo`),_t.forEach(t),Ke=h(C," for more information about our "),Y=o(C,"A",{href:!0,rel:!0});var $t=l(Y);Qe=h($t,`Private
Hub`),$t.forEach(t),Ve=h(C,"."),C.forEach(t),this.h()},h(){n(m,"name","hf:doc:metadata"),n(m,"content",JSON.stringify(Nt)),n(_,"id","more-information-about-the-api"),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","#more-information-about-the-api"),n(d,"class","relative group"),n($,"id","rate-limits"),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","#rate-limits"),n(v,"class","relative group"),n(k,"id","running-private-models"),n(k,"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(k,"href","#running-private-models"),n(y,"class","relative group"),n(q,"href","https://huggingface.co"),n(q,"rel","nofollow"),n(A,"id","running-a-public-model-that-i-do-not-own"),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","#running-a-public-model-that-i-do-not-own"),n(g,"class","relative group"),n(P,"id","finetuning-a-public-model"),n(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"),n(P,"href","#finetuning-a-public-model"),n(w,"class","relative group"),n(F,"href","https://huggingface.co/autotrain"),n(F,"rel","nofollow"),n(S,"id","running-the-inference-on-my-infrastructure"),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","#running-the-inference-on-my-infrastructure"),n(b,"class","relative group"),n(W,"href","https://huggingface.co/platform#form"),n(W,"rel","nofollow"),n(Y,"href","https://huggingface.co/platform"),n(Y,"rel","nofollow")},m(e,i){a(document.head,m),s(e,ie,i),s(e,d,i),a(d,_),a(_,K),O(x,K,null),a(d,Ie),a(d,Q),a(Q,Se),s(e,se,i),s(e,v,i),a(v,$),a($,V),O(N,V,null),a(v,xe),a(v,X),a(X,Ne),s(e,ue,i),s(e,B,i),a(B,Re),s(e,he,i),s(e,y,i),a(y,k),a(k,Z),O(R,Z,null),a(y,qe),a(y,ee),a(ee,He),s(e,fe,i),s(e,E,i),a(E,Te),a(E,q),a(q,Fe),a(E,Me),s(e,ce,i),s(e,g,i),a(g,A),a(A,te),O(H,te,null),a(g,We),a(g,ae),a(ae,Ye),s(e,pe,i),s(e,L,i),a(L,Be),s(e,me,i),s(e,w,i),a(w,P),a(P,re),O(T,re,null),a(w,Le),a(w,oe),a(oe,Ce),s(e,de,i),s(e,I,i),a(I,Ge),a(I,F),a(F,Je),a(I,Oe),s(e,ve,i),s(e,b,i),a(b,S),a(S,ne),O(M,ne,null),a(b,Ue),a(b,le),a(le,je),s(e,ye,i),s(e,p,i),a(p,ze),a(p,W),a(W,De),a(p,Ke),a(p,Y),a(Y,Qe),a(p,Ve),ge=!0},p:It,i(e){ge||(U(x.$$.fragment,e),U(N.$$.fragment,e),U(R.$$.fragment,e),U(H.$$.fragment,e),U(T.$$.fragment,e),U(M.$$.fragment,e),ge=!0)},o(e){j(x.$$.fragment,e),j(N.$$.fragment,e),j(R.$$.fragment,e),j(H.$$.fragment,e),j(T.$$.fragment,e),j(M.$$.fragment,e),ge=!1},d(e){t(m),e&&t(ie),e&&t(d),z(x),e&&t(se),e&&t(v),z(N),e&&t(ue),e&&t(B),e&&t(he),e&&t(y),z(R),e&&t(fe),e&&t(E),e&&t(ce),e&&t(g),z(H),e&&t(pe),e&&t(L),e&&t(me),e&&t(w),z(T),e&&t(de),e&&t(I),e&&t(ve),e&&t(b),z(M),e&&t(ye),e&&t(p)}}}const Nt={local:"more-information-about-the-api",sections:[{local:"rate-limits",title:"Rate limits"},{local:"running-private-models",title:"Running private models"},{local:"running-a-public-model-that-i-do-not-own",title:"Running a public model that I do not own"},{local:"finetuning-a-public-model",title:"Finetuning a public model"},{local:"running-the-inference-on-my-infrastructure",title:"Running the inference on my infrastructure"}],title:"More information about the API"};function Rt(Xe){return St(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Tt extends kt{constructor(m){super();Et(this,m,Rt,xt,At,{})}}export{Tt as default,Nt as metadata};
