import{s as Bt,n as Kt,o as Zt}from"../chunks/scheduler.eb244325.js";import{S as Jt,i as Qt,e as o,s as l,c as u,h as Xt,a as s,d as n,b as a,f as Ot,g as p,j as r,k as Rt,l as en,m as i,n as f,t as m,o as g,p as c}from"../chunks/index.661680a1.js";import{C as tn,H as d,E as nn}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.c047d438.js";function ln(pt){let h,ge,fe,ce,v,de,$,he,y,ft=`This section describes the configuration options available when creating a new inference endpoint. Each section of
the interface allows fine-grained control over how the model is deployed, accessed, and scaled.`,ve,w,$e,C,mt="In the top left you can:",ye,x,gt="<li>change the name of the inference endpoint</li> <li>verify to which organization you’re deploying this model</li> <li>verify which model you are deploying</li> <li>and which Hugging Face Hub repo you are deploying this model from</li>",we,T,ct='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/configuration/1-name-org-model.png" alt="name-org-model"/>',Ce,b,xe,L,dt=`The Hardware Configuration section allows you to choose the compute backend used to host the model.
You can select from three major cloud providers:`,Te,H,ht="<li>Amazon Web Services (AWS)</li> <li>Microsoft Azure</li> <li>Google Cloud Platform</li>",be,M,vt='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/configuration/2-hardware.png" alt="hardware"/>',Le,P,$t="You must also choose an accelerator type:",He,_,yt="<li>CPU</li> <li>GPU</li> <li>INF2 (AWS Inferentia)</li>",Me,A,wt=`Additionally, you can select the deployment region (e.g., East US) using the dropdown menu. Once the
provider, accelerator, and region are chosen, a list of available instance types is displayed. Each instance tile includes:`,Pe,k,Ct="<li>GPU Type and Count</li> <li>Memory (e.g., 48 GB)</li> <li>vCPUs and RAM</li> <li>Hourly Pricing (e.g., $1.80 / h)</li>",_e,S,xt=`You can select a tile to choose that instance type for your deployment. Instances that are incompatible or unavailable in the
selected region are grayed out and unclickable.`,Ae,E,ke,z,Tt="This section determines who can access your deployed endpoint. Available options are:",Se,U,bt="<li><strong>Private (default)</strong>: Accessible only to you, or members of your Hugging Face organization, using a personal HF access token.</li> <li><strong>Public</strong>: Anyone can access your endpoint, without authentication.</li> <li><strong>Authenticated</strong>: Anyone with a Hugging Face account can access it, using their personal HF access tokens.</li>",Ee,I,Lt="Additionally, if you deploy your Inference Endpoint in AWS, you can use <strong>AWS PrivateLink</strong> for an intra-region secured connection to your AWS VPN.",ze,q,Ht='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/configuration/11-auth.png" alt="auth"/>',Ue,W,Ie,j,Mt=`The Autoscaling section configures how many replicas of your model run and whether the system scales down to zero during periods of inactivity. For more
information we recommend reading the <a href="./autoscaling">in-depth guide on autoscaling</a>.`,qe,F,Pt='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/configuration/4-autoscaling.png" alt="autoscaling"/>',We,D,_t=`<li><strong>Automatic Scale-to-Zero</strong>: A dropdown lets you choose how long the system should wait after the last request before
scaling down to zero. Default is after 1 hour with no activity.</li> <li><strong>Number of Replicas</strong>:
<ul><li>Min: Minimum number of replicas to keep running. Note that enabling automatic scale-to-zero requires setting this to 0.</li> <li>Max: Maximum number of replicas allowed (e.g., 1)</li></ul></li> <li><strong>Autoscaling strategy</strong>:
<ul><li>Based on hardware usage: For example, a scale up will be triggered if the average hardware utilisation (%) exceeds this threshold for more than 20 seconds.</li> <li>Pending requests: A scale up event will be triggered if the average number of pending requests exceeds this threshold for more than 20 seconds.</li></ul></li>`,je,N,Fe,G,At=`This section allows you to specify how the container hosting your model behaves. This setting depends on the selected inference engine.
For configuration details, please read the Inference Engine section.
<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/configuration/9-inference-engine.png" alt="inference-engine"/>`,De,V,Ne,Y,kt=`Here you can edit the container arguments and container command.
<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/configuration/8-container-config.png" alt="container-configs"/>`,Ge,O,Ve,R,St="Environment variables can be provided to customize container behavior or pass secrets.",Ye,B,Et="<li><strong>Default Env</strong>: Key-value pairs passed as plain environment variables.</li> <li><strong>Secret Env</strong>: Key-value pairs stored securely and injected at runtime.</li>",Oe,K,zt="Each section allows you to add multiple entries using the Add button.",Re,Z,Ut='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/configuration/5-env-vars.png" alt="env-vars"/>',Be,J,Ke,Q,It=`You can label endpoints with tags (e.g., for-testing) to help organize and manage deployments across environments or teams. In the dashboard
you will be able to filter and sort endpoints based on these tags.
Tags are plain text labels added via the Add button.`,Ze,X,qt='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/configuration/6-tags.png" alt="tags"/>',Je,ee,Qe,te,Wt="This section determines from where your deployed endpoint can be accessed.",Xe,ne,jt="By default, your endpoint is accessible from the Internet, and secured with TLS/SSL. Endpoints deployed on an AWS instance can use AWS PrivateLink to restrict access to a specific VPC.",et,ie,Ft="The available options are:",tt,le,Dt="<li>Use AWS PrivateLink: check to activate AWS PrivateLink for your endpoint.</li> <li>AWS Account ID: You need to provide the AWS ID of the account that owns the VPC you want to restrict access to.</li> <li>PrivateLink Sharing: check to enable sharing of the same PrivateLink between different endpoints.</li>",nt,ae,Nt='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/configuration/10-network.png" alt="network"/>',it,oe,lt,se,Gt="Advanced Settings offer more fine-grained control over deployment.",at,re,Vt='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/configuration/7-advanced.png" alt="advanced"/>',ot,ue,Yt=`<li><strong>Commit Revision</strong>: Optionally specify a commit hash to which revision of the model repository on the Hugging Face Hub
you want to download the model artifacts from</li> <li><strong>Task</strong>: Defines the type of model task. This is usually inferred from the model repository.</li> <li><strong>Container Arguments</strong>: Pass CLI-style arguments to the container entrypoint.</li> <li><strong>Container Command</strong>: Override the container entrypoint entirely.</li> <li><strong>Download Pattern</strong>: Defines which model files are downloaded.</li>`,st,pe,rt,me,ut;return v=new tn({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),$=new d({props:{title:"Configuration",local:"configuration",headingTag:"h1"}}),w=new d({props:{title:"Endpoint name, model and organization",local:"endpoint-name-model-and-organization",headingTag:"h2"}}),b=new d({props:{title:"Hardware Configuration",local:"hardware-configuration",headingTag:"h2"}}),E=new d({props:{title:"Authentication",local:"authentication",headingTag:"h2"}}),W=new d({props:{title:"Autoscaling",local:"autoscaling",headingTag:"h2"}}),N=new d({props:{title:"Inference Engine Configuration",local:"inference-engine-configuration",headingTag:"h2"}}),V=new d({props:{title:"Container Configuration",local:"container-configuration",headingTag:"h2"}}),O=new d({props:{title:"Environment Variables",local:"environment-variables",headingTag:"h2"}}),J=new d({props:{title:"Endpoint Tags",local:"endpoint-tags",headingTag:"h2"}}),ee=new d({props:{title:"Network",local:"network",headingTag:"h2"}}),oe=new d({props:{title:"Advanced Settings",local:"advanced-settings",headingTag:"h2"}}),pe=new nn({props:{source:"https://github.com/huggingface/hf-endpoints-documentation/blob/main/docs/source/guides/configuration.md"}}),{c(){h=o("meta"),ge=l(),fe=o("p"),ce=l(),u(v.$$.fragment),de=l(),u($.$$.fragment),he=l(),y=o("p"),y.textContent=ft,ve=l(),u(w.$$.fragment),$e=l(),C=o("p"),C.textContent=mt,ye=l(),x=o("ul"),x.innerHTML=gt,we=l(),T=o("p"),T.innerHTML=ct,Ce=l(),u(b.$$.fragment),xe=l(),L=o("p"),L.textContent=dt,Te=l(),H=o("ul"),H.innerHTML=ht,be=l(),M=o("p"),M.innerHTML=vt,Le=l(),P=o("p"),P.textContent=$t,He=l(),_=o("ul"),_.innerHTML=yt,Me=l(),A=o("p"),A.textContent=wt,Pe=l(),k=o("ul"),k.innerHTML=Ct,_e=l(),S=o("p"),S.textContent=xt,Ae=l(),u(E.$$.fragment),ke=l(),z=o("p"),z.textContent=Tt,Se=l(),U=o("ul"),U.innerHTML=bt,Ee=l(),I=o("p"),I.innerHTML=Lt,ze=l(),q=o("p"),q.innerHTML=Ht,Ue=l(),u(W.$$.fragment),Ie=l(),j=o("p"),j.innerHTML=Mt,qe=l(),F=o("p"),F.innerHTML=Pt,We=l(),D=o("ul"),D.innerHTML=_t,je=l(),u(N.$$.fragment),Fe=l(),G=o("p"),G.innerHTML=At,De=l(),u(V.$$.fragment),Ne=l(),Y=o("p"),Y.innerHTML=kt,Ge=l(),u(O.$$.fragment),Ve=l(),R=o("p"),R.textContent=St,Ye=l(),B=o("ul"),B.innerHTML=Et,Oe=l(),K=o("p"),K.textContent=zt,Re=l(),Z=o("p"),Z.innerHTML=Ut,Be=l(),u(J.$$.fragment),Ke=l(),Q=o("p"),Q.textContent=It,Ze=l(),X=o("p"),X.innerHTML=qt,Je=l(),u(ee.$$.fragment),Qe=l(),te=o("p"),te.textContent=Wt,Xe=l(),ne=o("p"),ne.textContent=jt,et=l(),ie=o("p"),ie.textContent=Ft,tt=l(),le=o("ul"),le.innerHTML=Dt,nt=l(),ae=o("p"),ae.innerHTML=Nt,it=l(),u(oe.$$.fragment),lt=l(),se=o("p"),se.textContent=Gt,at=l(),re=o("p"),re.innerHTML=Vt,ot=l(),ue=o("ul"),ue.innerHTML=Yt,st=l(),u(pe.$$.fragment),rt=l(),me=o("p"),this.h()},l(e){const t=Xt("svelte-u9bgzb",document.head);h=s(t,"META",{name:!0,content:!0}),t.forEach(n),ge=a(e),fe=s(e,"P",{}),Ot(fe).forEach(n),ce=a(e),p(v.$$.fragment,e),de=a(e),p($.$$.fragment,e),he=a(e),y=s(e,"P",{"data-svelte-h":!0}),r(y)!=="svelte-1iggp98"&&(y.textContent=ft),ve=a(e),p(w.$$.fragment,e),$e=a(e),C=s(e,"P",{"data-svelte-h":!0}),r(C)!=="svelte-1sd4j0z"&&(C.textContent=mt),ye=a(e),x=s(e,"UL",{"data-svelte-h":!0}),r(x)!=="svelte-1qy89hk"&&(x.innerHTML=gt),we=a(e),T=s(e,"P",{"data-svelte-h":!0}),r(T)!=="svelte-8t663c"&&(T.innerHTML=ct),Ce=a(e),p(b.$$.fragment,e),xe=a(e),L=s(e,"P",{"data-svelte-h":!0}),r(L)!=="svelte-1o9wtbi"&&(L.textContent=dt),Te=a(e),H=s(e,"UL",{"data-svelte-h":!0}),r(H)!=="svelte-1nit8px"&&(H.innerHTML=ht),be=a(e),M=s(e,"P",{"data-svelte-h":!0}),r(M)!=="svelte-171jvsn"&&(M.innerHTML=vt),Le=a(e),P=s(e,"P",{"data-svelte-h":!0}),r(P)!=="svelte-a5xv7a"&&(P.textContent=$t),He=a(e),_=s(e,"UL",{"data-svelte-h":!0}),r(_)!=="svelte-1c8pe9h"&&(_.innerHTML=yt),Me=a(e),A=s(e,"P",{"data-svelte-h":!0}),r(A)!=="svelte-14px1ty"&&(A.textContent=wt),Pe=a(e),k=s(e,"UL",{"data-svelte-h":!0}),r(k)!=="svelte-8x219j"&&(k.innerHTML=Ct),_e=a(e),S=s(e,"P",{"data-svelte-h":!0}),r(S)!=="svelte-tqi8q5"&&(S.textContent=xt),Ae=a(e),p(E.$$.fragment,e),ke=a(e),z=s(e,"P",{"data-svelte-h":!0}),r(z)!=="svelte-1j8fq6y"&&(z.textContent=Tt),Se=a(e),U=s(e,"UL",{"data-svelte-h":!0}),r(U)!=="svelte-zgmog1"&&(U.innerHTML=bt),Ee=a(e),I=s(e,"P",{"data-svelte-h":!0}),r(I)!=="svelte-16pg7ay"&&(I.innerHTML=Lt),ze=a(e),q=s(e,"P",{"data-svelte-h":!0}),r(q)!=="svelte-vf6o2r"&&(q.innerHTML=Ht),Ue=a(e),p(W.$$.fragment,e),Ie=a(e),j=s(e,"P",{"data-svelte-h":!0}),r(j)!=="svelte-t69vok"&&(j.innerHTML=Mt),qe=a(e),F=s(e,"P",{"data-svelte-h":!0}),r(F)!=="svelte-11k9llv"&&(F.innerHTML=Pt),We=a(e),D=s(e,"UL",{"data-svelte-h":!0}),r(D)!=="svelte-1mmank1"&&(D.innerHTML=_t),je=a(e),p(N.$$.fragment,e),Fe=a(e),G=s(e,"P",{"data-svelte-h":!0}),r(G)!=="svelte-1iyhirj"&&(G.innerHTML=At),De=a(e),p(V.$$.fragment,e),Ne=a(e),Y=s(e,"P",{"data-svelte-h":!0}),r(Y)!=="svelte-qhhi7y"&&(Y.innerHTML=kt),Ge=a(e),p(O.$$.fragment,e),Ve=a(e),R=s(e,"P",{"data-svelte-h":!0}),r(R)!=="svelte-1pyc3um"&&(R.textContent=St),Ye=a(e),B=s(e,"UL",{"data-svelte-h":!0}),r(B)!=="svelte-1352j3g"&&(B.innerHTML=Et),Oe=a(e),K=s(e,"P",{"data-svelte-h":!0}),r(K)!=="svelte-bqywcv"&&(K.textContent=zt),Re=a(e),Z=s(e,"P",{"data-svelte-h":!0}),r(Z)!=="svelte-1ikgxv8"&&(Z.innerHTML=Ut),Be=a(e),p(J.$$.fragment,e),Ke=a(e),Q=s(e,"P",{"data-svelte-h":!0}),r(Q)!=="svelte-x7p47v"&&(Q.textContent=It),Ze=a(e),X=s(e,"P",{"data-svelte-h":!0}),r(X)!=="svelte-1gtrisl"&&(X.innerHTML=qt),Je=a(e),p(ee.$$.fragment,e),Qe=a(e),te=s(e,"P",{"data-svelte-h":!0}),r(te)!=="svelte-wt445i"&&(te.textContent=Wt),Xe=a(e),ne=s(e,"P",{"data-svelte-h":!0}),r(ne)!=="svelte-wljkcn"&&(ne.textContent=jt),et=a(e),ie=s(e,"P",{"data-svelte-h":!0}),r(ie)!=="svelte-110l7d6"&&(ie.textContent=Ft),tt=a(e),le=s(e,"UL",{"data-svelte-h":!0}),r(le)!=="svelte-tpl1ov"&&(le.innerHTML=Dt),nt=a(e),ae=s(e,"P",{"data-svelte-h":!0}),r(ae)!=="svelte-16te9sq"&&(ae.innerHTML=Nt),it=a(e),p(oe.$$.fragment,e),lt=a(e),se=s(e,"P",{"data-svelte-h":!0}),r(se)!=="svelte-1u5ppiv"&&(se.textContent=Gt),at=a(e),re=s(e,"P",{"data-svelte-h":!0}),r(re)!=="svelte-1khxjze"&&(re.innerHTML=Vt),ot=a(e),ue=s(e,"UL",{"data-svelte-h":!0}),r(ue)!=="svelte-1fwagwe"&&(ue.innerHTML=Yt),st=a(e),p(pe.$$.fragment,e),rt=a(e),me=s(e,"P",{}),Ot(me).forEach(n),this.h()},h(){Rt(h,"name","hf:doc:metadata"),Rt(h,"content",an)},m(e,t){en(document.head,h),i(e,ge,t),i(e,fe,t),i(e,ce,t),f(v,e,t),i(e,de,t),f($,e,t),i(e,he,t),i(e,y,t),i(e,ve,t),f(w,e,t),i(e,$e,t),i(e,C,t),i(e,ye,t),i(e,x,t),i(e,we,t),i(e,T,t),i(e,Ce,t),f(b,e,t),i(e,xe,t),i(e,L,t),i(e,Te,t),i(e,H,t),i(e,be,t),i(e,M,t),i(e,Le,t),i(e,P,t),i(e,He,t),i(e,_,t),i(e,Me,t),i(e,A,t),i(e,Pe,t),i(e,k,t),i(e,_e,t),i(e,S,t),i(e,Ae,t),f(E,e,t),i(e,ke,t),i(e,z,t),i(e,Se,t),i(e,U,t),i(e,Ee,t),i(e,I,t),i(e,ze,t),i(e,q,t),i(e,Ue,t),f(W,e,t),i(e,Ie,t),i(e,j,t),i(e,qe,t),i(e,F,t),i(e,We,t),i(e,D,t),i(e,je,t),f(N,e,t),i(e,Fe,t),i(e,G,t),i(e,De,t),f(V,e,t),i(e,Ne,t),i(e,Y,t),i(e,Ge,t),f(O,e,t),i(e,Ve,t),i(e,R,t),i(e,Ye,t),i(e,B,t),i(e,Oe,t),i(e,K,t),i(e,Re,t),i(e,Z,t),i(e,Be,t),f(J,e,t),i(e,Ke,t),i(e,Q,t),i(e,Ze,t),i(e,X,t),i(e,Je,t),f(ee,e,t),i(e,Qe,t),i(e,te,t),i(e,Xe,t),i(e,ne,t),i(e,et,t),i(e,ie,t),i(e,tt,t),i(e,le,t),i(e,nt,t),i(e,ae,t),i(e,it,t),f(oe,e,t),i(e,lt,t),i(e,se,t),i(e,at,t),i(e,re,t),i(e,ot,t),i(e,ue,t),i(e,st,t),f(pe,e,t),i(e,rt,t),i(e,me,t),ut=!0},p:Kt,i(e){ut||(m(v.$$.fragment,e),m($.$$.fragment,e),m(w.$$.fragment,e),m(b.$$.fragment,e),m(E.$$.fragment,e),m(W.$$.fragment,e),m(N.$$.fragment,e),m(V.$$.fragment,e),m(O.$$.fragment,e),m(J.$$.fragment,e),m(ee.$$.fragment,e),m(oe.$$.fragment,e),m(pe.$$.fragment,e),ut=!0)},o(e){g(v.$$.fragment,e),g($.$$.fragment,e),g(w.$$.fragment,e),g(b.$$.fragment,e),g(E.$$.fragment,e),g(W.$$.fragment,e),g(N.$$.fragment,e),g(V.$$.fragment,e),g(O.$$.fragment,e),g(J.$$.fragment,e),g(ee.$$.fragment,e),g(oe.$$.fragment,e),g(pe.$$.fragment,e),ut=!1},d(e){e&&(n(ge),n(fe),n(ce),n(de),n(he),n(y),n(ve),n($e),n(C),n(ye),n(x),n(we),n(T),n(Ce),n(xe),n(L),n(Te),n(H),n(be),n(M),n(Le),n(P),n(He),n(_),n(Me),n(A),n(Pe),n(k),n(_e),n(S),n(Ae),n(ke),n(z),n(Se),n(U),n(Ee),n(I),n(ze),n(q),n(Ue),n(Ie),n(j),n(qe),n(F),n(We),n(D),n(je),n(Fe),n(G),n(De),n(Ne),n(Y),n(Ge),n(Ve),n(R),n(Ye),n(B),n(Oe),n(K),n(Re),n(Z),n(Be),n(Ke),n(Q),n(Ze),n(X),n(Je),n(Qe),n(te),n(Xe),n(ne),n(et),n(ie),n(tt),n(le),n(nt),n(ae),n(it),n(lt),n(se),n(at),n(re),n(ot),n(ue),n(st),n(rt),n(me)),n(h),c(v,e),c($,e),c(w,e),c(b,e),c(E,e),c(W,e),c(N,e),c(V,e),c(O,e),c(J,e),c(ee,e),c(oe,e),c(pe,e)}}}const an='{"title":"Configuration","local":"configuration","sections":[{"title":"Endpoint name, model and organization","local":"endpoint-name-model-and-organization","sections":[],"depth":2},{"title":"Hardware Configuration","local":"hardware-configuration","sections":[],"depth":2},{"title":"Authentication","local":"authentication","sections":[],"depth":2},{"title":"Autoscaling","local":"autoscaling","sections":[],"depth":2},{"title":"Inference Engine Configuration","local":"inference-engine-configuration","sections":[],"depth":2},{"title":"Container Configuration","local":"container-configuration","sections":[],"depth":2},{"title":"Environment Variables","local":"environment-variables","sections":[],"depth":2},{"title":"Endpoint Tags","local":"endpoint-tags","sections":[],"depth":2},{"title":"Network","local":"network","sections":[],"depth":2},{"title":"Advanced Settings","local":"advanced-settings","sections":[],"depth":2}],"depth":1}';function on(pt){return Zt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class pn extends Jt{constructor(h){super(),Qt(this,h,on,ln,Bt,{})}}export{pn as component};
