import{s as Ft,n as Nt,o as Ut}from"../chunks/scheduler.eb244325.js";import{S as Bt,i as Ot,e as o,s as l,c as j,h as Qt,a as s,d as n,b as a,f as jt,g as A,j as u,k as At,l as Rt,m as i,n as F,t as N,o as U,p as B}from"../chunks/index.661680a1.js";import{C as Yt,H as ht,E as Gt}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.338b442f.js";function Dt(gt){let p,O,S,Q,r,R,c,Y,f,yt=`In this guide you’ll deploy a production ready AI model using Inference Endpoints in only a few minutes.
Make sure you’ve been able to log into the <a href="https://endpoints.huggingface.co" rel="nofollow">Inference Endpoints UI</a> with your Hugging Face account, and that you have a payment
method setup. If not, it’s a quick add of valid payment method in your <a href="https://huggingface.co/settings/billing" rel="nofollow">billing settings</a>.`,G,m,D,d,vt=`Start by navigating to the Inference Endpoints UI, and once you’re logged in, you should see a button for creating a new Inference
Endpoint. Click the “New” button.`,J,h,wt='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/quick_start/1-new-button.png" alt="new-button"/>',K,g,xt=`From there you’ll be directed to the catalog. The Model Catalog consists of popular models which have tuned configurations to work in one-click
deploys. You can filter by name, task, hardware price, and much more.`,V,y,bt='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/quick_start/2-catalog.png" alt="catalog"/>',W,v,Ct=`In this example let’s deploy the <a href="https://huggingface.co/meta-llama/Llama-3.2-3B-Instruct" rel="nofollow">meta-llama/Llama-3.2-3B-Instruct</a> model. You can find
it by searching for <code>llama-3.2-3b</code> in the search field and deploy it by clicking the card.`,X,w,_t='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/quick_start/3-llama.png" alt="llama"/>',Z,x,$t=`Next we’ll choose which hardware and deployment settings we’ll go for. Since this is a catalog model, all of the pre-selected options are very good
defaults. So in this case we don’t need to change anything. In case you want a deeper dive on what the different settings mean you can check out
the <a href="./guides/configuration">configuration guide</a>.`,tt,b,kt=`For this model the Nvidia L4 is the recommended choice. It will be perfect for our testing. Performant but still reasonably priced. Also note that by
default the endpoint will scale down to zero, meaning it will become idle after 1h of inactivity.`,et,C,Lt="Now all you need to do is click click “Create Endpoint” 🚀",nt,_,Tt='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/quick_start/4-config.png" alt="config"/>',it,$,Mt=`Now our Inference Endpoint is initializing, which usually takes about 3-5 minutes. If you want to can allow browser notifications which will give you a
ping once the endpoint reaches a running state.`,lt,k,Pt='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/quick_start/5-init.png" alt="init"/>',at,L,ot,T,Ht="And then once everything is up and running you’ll be able to see the:",st,M,It="<li><strong>Endpoint URL</strong>: this is what you use to call your endpoint and send requests to it</li> <li><strong>Playground</strong>: a small visual way of quickly testing that the model works</li>",ut,P,Et='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/quick_start/6-done.png" alt="done"/>',pt,H,qt=`From the side of the playground you can also copy + paste a code snippet for calling the model. By clicking “App Tokens” you’ll be directed to Hugging Face
to configure an access token to be able to call the model. By default, all Inference Endpoints are created as private which require authentication and
all data is encryped in transit using TLS/SSL.`,rt,I,St="Congratulations, you just deployed a production ready AI model in Inference Endpoints 🔥",ct,E,zt="Once you’re happy with the testing you can pause the Inference Endpoint, delete it. Or if you let it be, it will scale to zero after 1 hour.",ft,q,mt,z,dt;return r=new Yt({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),c=new ht({props:{title:"Quick Start",local:"quick-start",headingTag:"h1"}}),m=new ht({props:{title:"Create your endpoint",local:"create-your-endpoint",headingTag:"h2"}}),L=new ht({props:{title:"Test your Inference Endpoint",local:"test-your-inference-endpoint",headingTag:"h2"}}),q=new Gt({props:{source:"https://github.com/huggingface/hf-endpoints-documentation/blob/main/docs/source/quick_start.md"}}),{c(){p=o("meta"),O=l(),S=o("p"),Q=l(),j(r.$$.fragment),R=l(),j(c.$$.fragment),Y=l(),f=o("p"),f.innerHTML=yt,G=l(),j(m.$$.fragment),D=l(),d=o("p"),d.textContent=vt,J=l(),h=o("p"),h.innerHTML=wt,K=l(),g=o("p"),g.textContent=xt,V=l(),y=o("p"),y.innerHTML=bt,W=l(),v=o("p"),v.innerHTML=Ct,X=l(),w=o("p"),w.innerHTML=_t,Z=l(),x=o("p"),x.innerHTML=$t,tt=l(),b=o("p"),b.textContent=kt,et=l(),C=o("p"),C.textContent=Lt,nt=l(),_=o("p"),_.innerHTML=Tt,it=l(),$=o("p"),$.textContent=Mt,lt=l(),k=o("p"),k.innerHTML=Pt,at=l(),j(L.$$.fragment),ot=l(),T=o("p"),T.textContent=Ht,st=l(),M=o("ul"),M.innerHTML=It,ut=l(),P=o("p"),P.innerHTML=Et,pt=l(),H=o("p"),H.textContent=qt,rt=l(),I=o("p"),I.textContent=St,ct=l(),E=o("p"),E.textContent=zt,ft=l(),j(q.$$.fragment),mt=l(),z=o("p"),this.h()},l(t){const e=Qt("svelte-u9bgzb",document.head);p=s(e,"META",{name:!0,content:!0}),e.forEach(n),O=a(t),S=s(t,"P",{}),jt(S).forEach(n),Q=a(t),A(r.$$.fragment,t),R=a(t),A(c.$$.fragment,t),Y=a(t),f=s(t,"P",{"data-svelte-h":!0}),u(f)!=="svelte-vku3xj"&&(f.innerHTML=yt),G=a(t),A(m.$$.fragment,t),D=a(t),d=s(t,"P",{"data-svelte-h":!0}),u(d)!=="svelte-1mtdv9n"&&(d.textContent=vt),J=a(t),h=s(t,"P",{"data-svelte-h":!0}),u(h)!=="svelte-dnyg4"&&(h.innerHTML=wt),K=a(t),g=s(t,"P",{"data-svelte-h":!0}),u(g)!=="svelte-ugol2d"&&(g.textContent=xt),V=a(t),y=s(t,"P",{"data-svelte-h":!0}),u(y)!=="svelte-fxecmn"&&(y.innerHTML=bt),W=a(t),v=s(t,"P",{"data-svelte-h":!0}),u(v)!=="svelte-arciu6"&&(v.innerHTML=Ct),X=a(t),w=s(t,"P",{"data-svelte-h":!0}),u(w)!=="svelte-wb1fz6"&&(w.innerHTML=_t),Z=a(t),x=s(t,"P",{"data-svelte-h":!0}),u(x)!=="svelte-1ekjdqo"&&(x.innerHTML=$t),tt=a(t),b=s(t,"P",{"data-svelte-h":!0}),u(b)!=="svelte-1baa6m9"&&(b.textContent=kt),et=a(t),C=s(t,"P",{"data-svelte-h":!0}),u(C)!=="svelte-uhpblt"&&(C.textContent=Lt),nt=a(t),_=s(t,"P",{"data-svelte-h":!0}),u(_)!=="svelte-14nerpn"&&(_.innerHTML=Tt),it=a(t),$=s(t,"P",{"data-svelte-h":!0}),u($)!=="svelte-1ujocpz"&&($.textContent=Mt),lt=a(t),k=s(t,"P",{"data-svelte-h":!0}),u(k)!=="svelte-1fnidty"&&(k.innerHTML=Pt),at=a(t),A(L.$$.fragment,t),ot=a(t),T=s(t,"P",{"data-svelte-h":!0}),u(T)!=="svelte-1tao4jb"&&(T.textContent=Ht),st=a(t),M=s(t,"UL",{"data-svelte-h":!0}),u(M)!=="svelte-1mzij4w"&&(M.innerHTML=It),ut=a(t),P=s(t,"P",{"data-svelte-h":!0}),u(P)!=="svelte-1qqv7r1"&&(P.innerHTML=Et),pt=a(t),H=s(t,"P",{"data-svelte-h":!0}),u(H)!=="svelte-cb7bxg"&&(H.textContent=qt),rt=a(t),I=s(t,"P",{"data-svelte-h":!0}),u(I)!=="svelte-1e6r2vm"&&(I.textContent=St),ct=a(t),E=s(t,"P",{"data-svelte-h":!0}),u(E)!=="svelte-13b4e7a"&&(E.textContent=zt),ft=a(t),A(q.$$.fragment,t),mt=a(t),z=s(t,"P",{}),jt(z).forEach(n),this.h()},h(){At(p,"name","hf:doc:metadata"),At(p,"content",Jt)},m(t,e){Rt(document.head,p),i(t,O,e),i(t,S,e),i(t,Q,e),F(r,t,e),i(t,R,e),F(c,t,e),i(t,Y,e),i(t,f,e),i(t,G,e),F(m,t,e),i(t,D,e),i(t,d,e),i(t,J,e),i(t,h,e),i(t,K,e),i(t,g,e),i(t,V,e),i(t,y,e),i(t,W,e),i(t,v,e),i(t,X,e),i(t,w,e),i(t,Z,e),i(t,x,e),i(t,tt,e),i(t,b,e),i(t,et,e),i(t,C,e),i(t,nt,e),i(t,_,e),i(t,it,e),i(t,$,e),i(t,lt,e),i(t,k,e),i(t,at,e),F(L,t,e),i(t,ot,e),i(t,T,e),i(t,st,e),i(t,M,e),i(t,ut,e),i(t,P,e),i(t,pt,e),i(t,H,e),i(t,rt,e),i(t,I,e),i(t,ct,e),i(t,E,e),i(t,ft,e),F(q,t,e),i(t,mt,e),i(t,z,e),dt=!0},p:Nt,i(t){dt||(N(r.$$.fragment,t),N(c.$$.fragment,t),N(m.$$.fragment,t),N(L.$$.fragment,t),N(q.$$.fragment,t),dt=!0)},o(t){U(r.$$.fragment,t),U(c.$$.fragment,t),U(m.$$.fragment,t),U(L.$$.fragment,t),U(q.$$.fragment,t),dt=!1},d(t){t&&(n(O),n(S),n(Q),n(R),n(Y),n(f),n(G),n(D),n(d),n(J),n(h),n(K),n(g),n(V),n(y),n(W),n(v),n(X),n(w),n(Z),n(x),n(tt),n(b),n(et),n(C),n(nt),n(_),n(it),n($),n(lt),n(k),n(at),n(ot),n(T),n(st),n(M),n(ut),n(P),n(pt),n(H),n(rt),n(I),n(ct),n(E),n(ft),n(mt),n(z)),n(p),B(r,t),B(c,t),B(m,t),B(L,t),B(q,t)}}}const Jt='{"title":"Quick Start","local":"quick-start","sections":[{"title":"Create your endpoint","local":"create-your-endpoint","sections":[],"depth":2},{"title":"Test your Inference Endpoint","local":"test-your-inference-endpoint","sections":[],"depth":2}],"depth":1}';function Kt(gt){return Ut(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Zt extends Bt{constructor(p){super(),Ot(this,p,Kt,Dt,Ft,{})}}export{Zt as component};
