import{s as zt,n as At,o as Ft}from"../chunks/scheduler.a045fce0.js";import{S as Nt,i as Ut,e as o,s as l,c as st,h as Bt,a as s,d as n,b as a,f as St,g as ut,j as u,k as jt,l as Ot,m as i,n as rt,t as pt,o as ct,p as ft}from"../chunks/index.c7f31426.js";import{H as dt,E as Qt}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.16774317.js";function Rt(mt){let r,j,q,z,p,A,c,ht=`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>.`,F,f,N,d,gt=`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.`,U,m,yt='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/quick_start/1-new-button.png" alt="new-button"/>',B,h,vt=`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.`,O,g,wt='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/quick_start/2-catalog.png" alt="catalog"/>',Q,y,bt=`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.`,R,v,xt='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/quick_start/3-llama.png" alt="llama"/>',Y,w,Ct=`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>.`,G,b,_t=`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.`,D,x,$t="Now all you need to do is click click “Create Endpoint” 🚀",J,C,kt='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/quick_start/4-config.png" alt="config"/>',K,_,Tt=`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.`,V,$,Lt='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/quick_start/5-init.png" alt="init"/>',W,k,X,T,Pt="And then once everything is up and running you’ll be able to see the:",Z,L,Ht="<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>",tt,P,Mt='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/quick_start/6-done.png" alt="done"/>',et,H,It=`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.`,nt,M,Et="Congratulations, you just deployed a production ready AI model in Inference Endpoints 🔥",it,I,qt="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.",lt,E,at,S,ot;return p=new dt({props:{title:"Quick Start",local:"quick-start",headingTag:"h1"}}),f=new dt({props:{title:"Create your endpoint",local:"create-your-endpoint",headingTag:"h2"}}),k=new dt({props:{title:"Test your Inference Endpoint",local:"test-your-inference-endpoint",headingTag:"h2"}}),E=new Qt({props:{source:"https://github.com/huggingface/hf-endpoints-documentation/blob/main/docs/source/quick_start.md"}}),{c(){r=o("meta"),j=l(),q=o("p"),z=l(),st(p.$$.fragment),A=l(),c=o("p"),c.innerHTML=ht,F=l(),st(f.$$.fragment),N=l(),d=o("p"),d.textContent=gt,U=l(),m=o("p"),m.innerHTML=yt,B=l(),h=o("p"),h.textContent=vt,O=l(),g=o("p"),g.innerHTML=wt,Q=l(),y=o("p"),y.innerHTML=bt,R=l(),v=o("p"),v.innerHTML=xt,Y=l(),w=o("p"),w.innerHTML=Ct,G=l(),b=o("p"),b.textContent=_t,D=l(),x=o("p"),x.textContent=$t,J=l(),C=o("p"),C.innerHTML=kt,K=l(),_=o("p"),_.textContent=Tt,V=l(),$=o("p"),$.innerHTML=Lt,W=l(),st(k.$$.fragment),X=l(),T=o("p"),T.textContent=Pt,Z=l(),L=o("ul"),L.innerHTML=Ht,tt=l(),P=o("p"),P.innerHTML=Mt,et=l(),H=o("p"),H.textContent=It,nt=l(),M=o("p"),M.textContent=Et,it=l(),I=o("p"),I.textContent=qt,lt=l(),st(E.$$.fragment),at=l(),S=o("p"),this.h()},l(t){const e=Bt("svelte-u9bgzb",document.head);r=s(e,"META",{name:!0,content:!0}),e.forEach(n),j=a(t),q=s(t,"P",{}),St(q).forEach(n),z=a(t),ut(p.$$.fragment,t),A=a(t),c=s(t,"P",{"data-svelte-h":!0}),u(c)!=="svelte-vku3xj"&&(c.innerHTML=ht),F=a(t),ut(f.$$.fragment,t),N=a(t),d=s(t,"P",{"data-svelte-h":!0}),u(d)!=="svelte-1mtdv9n"&&(d.textContent=gt),U=a(t),m=s(t,"P",{"data-svelte-h":!0}),u(m)!=="svelte-dnyg4"&&(m.innerHTML=yt),B=a(t),h=s(t,"P",{"data-svelte-h":!0}),u(h)!=="svelte-ugol2d"&&(h.textContent=vt),O=a(t),g=s(t,"P",{"data-svelte-h":!0}),u(g)!=="svelte-fxecmn"&&(g.innerHTML=wt),Q=a(t),y=s(t,"P",{"data-svelte-h":!0}),u(y)!=="svelte-arciu6"&&(y.innerHTML=bt),R=a(t),v=s(t,"P",{"data-svelte-h":!0}),u(v)!=="svelte-wb1fz6"&&(v.innerHTML=xt),Y=a(t),w=s(t,"P",{"data-svelte-h":!0}),u(w)!=="svelte-1ekjdqo"&&(w.innerHTML=Ct),G=a(t),b=s(t,"P",{"data-svelte-h":!0}),u(b)!=="svelte-1baa6m9"&&(b.textContent=_t),D=a(t),x=s(t,"P",{"data-svelte-h":!0}),u(x)!=="svelte-uhpblt"&&(x.textContent=$t),J=a(t),C=s(t,"P",{"data-svelte-h":!0}),u(C)!=="svelte-14nerpn"&&(C.innerHTML=kt),K=a(t),_=s(t,"P",{"data-svelte-h":!0}),u(_)!=="svelte-1ujocpz"&&(_.textContent=Tt),V=a(t),$=s(t,"P",{"data-svelte-h":!0}),u($)!=="svelte-1fnidty"&&($.innerHTML=Lt),W=a(t),ut(k.$$.fragment,t),X=a(t),T=s(t,"P",{"data-svelte-h":!0}),u(T)!=="svelte-1tao4jb"&&(T.textContent=Pt),Z=a(t),L=s(t,"UL",{"data-svelte-h":!0}),u(L)!=="svelte-1mzij4w"&&(L.innerHTML=Ht),tt=a(t),P=s(t,"P",{"data-svelte-h":!0}),u(P)!=="svelte-1qqv7r1"&&(P.innerHTML=Mt),et=a(t),H=s(t,"P",{"data-svelte-h":!0}),u(H)!=="svelte-cb7bxg"&&(H.textContent=It),nt=a(t),M=s(t,"P",{"data-svelte-h":!0}),u(M)!=="svelte-1e6r2vm"&&(M.textContent=Et),it=a(t),I=s(t,"P",{"data-svelte-h":!0}),u(I)!=="svelte-13b4e7a"&&(I.textContent=qt),lt=a(t),ut(E.$$.fragment,t),at=a(t),S=s(t,"P",{}),St(S).forEach(n),this.h()},h(){jt(r,"name","hf:doc:metadata"),jt(r,"content",Yt)},m(t,e){Ot(document.head,r),i(t,j,e),i(t,q,e),i(t,z,e),rt(p,t,e),i(t,A,e),i(t,c,e),i(t,F,e),rt(f,t,e),i(t,N,e),i(t,d,e),i(t,U,e),i(t,m,e),i(t,B,e),i(t,h,e),i(t,O,e),i(t,g,e),i(t,Q,e),i(t,y,e),i(t,R,e),i(t,v,e),i(t,Y,e),i(t,w,e),i(t,G,e),i(t,b,e),i(t,D,e),i(t,x,e),i(t,J,e),i(t,C,e),i(t,K,e),i(t,_,e),i(t,V,e),i(t,$,e),i(t,W,e),rt(k,t,e),i(t,X,e),i(t,T,e),i(t,Z,e),i(t,L,e),i(t,tt,e),i(t,P,e),i(t,et,e),i(t,H,e),i(t,nt,e),i(t,M,e),i(t,it,e),i(t,I,e),i(t,lt,e),rt(E,t,e),i(t,at,e),i(t,S,e),ot=!0},p:At,i(t){ot||(pt(p.$$.fragment,t),pt(f.$$.fragment,t),pt(k.$$.fragment,t),pt(E.$$.fragment,t),ot=!0)},o(t){ct(p.$$.fragment,t),ct(f.$$.fragment,t),ct(k.$$.fragment,t),ct(E.$$.fragment,t),ot=!1},d(t){t&&(n(j),n(q),n(z),n(A),n(c),n(F),n(N),n(d),n(U),n(m),n(B),n(h),n(O),n(g),n(Q),n(y),n(R),n(v),n(Y),n(w),n(G),n(b),n(D),n(x),n(J),n(C),n(K),n(_),n(V),n($),n(W),n(X),n(T),n(Z),n(L),n(tt),n(P),n(et),n(H),n(nt),n(M),n(it),n(I),n(lt),n(at),n(S)),n(r),ft(p,t),ft(f,t),ft(k,t),ft(E,t)}}}const Yt='{"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 Gt(mt){return Ft(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Vt extends Nt{constructor(r){super(),Ut(this,r,Gt,Rt,zt,{})}}export{Vt as component};
