import{s as Jt,n as Qt,o as Xt}from"../chunks/scheduler.eb244325.js";import{S as en,i as tn,e as a,s as l,c as u,h as nn,a as s,d as n,b as o,f as Kt,g as p,j as r,k as Zt,l as ln,m as i,n as f,t as m,o as g,p as c}from"../chunks/index.661680a1.js";import{C as on,H as d,E as an}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.bc70bb48.js";function sn(mt){let h,ce,me,de,v,he,$,ve,y,gt=`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.`,$e,C,ye,w,ct="In the top left you can:",Ce,x,dt="<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,ht='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/configuration/1-name-org-model.png" alt="name-org-model"/>',xe,b,Te,L,vt=`The Hardware Configuration section allows you to choose the compute backend used to host the model.
You can select from three major cloud providers:`,be,H,$t="<li>Amazon Web Services (AWS)</li> <li>Microsoft Azure</li> <li>Google Cloud Platform</li>",Le,M,yt='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/configuration/2-hardware.png" alt="hardware"/>',He,P,Ct="You must also choose an accelerator type:",Me,_,wt="<li>CPU</li> <li>GPU</li> <li>INF2 (AWS Inferentia)</li>",Pe,A,xt=`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:`,_e,k,Tt="<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>",Ae,S,bt=`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.`,ke,E,Se,z,Lt="This section determines who can access your deployed endpoint. Available options are:",Ee,U,Ht="<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>HF Restricted</strong>: Anyone with a Hugging Face account can access it, using their personal HF access tokens.</li>",ze,q,Mt="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.",Ue,I,Pt='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/configuration/11-auth.png" alt="auth"/>',qe,j,Ie,F,_t=`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>.`,je,W,At='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/configuration/4-autoscaling.png" alt="autoscaling"/>',Fe,D,kt=`<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>`,We,N,De,O,St=`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"/>`,Ne,G,Oe,R,Et=`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,V,Re,Y,zt="Environment variables can be provided to customize container behavior or pass secrets.",Ve,B,Ut="<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>",Ye,K,qt="Each section allows you to add multiple entries using the Add button.",Be,Z,It='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/configuration/5-env-vars.png" alt="env-vars"/>',Ke,J,Ze,Q,jt=`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.`,Je,X,Ft='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/configuration/6-tags.png" alt="tags"/>',Qe,ee,Xe,te,Wt="This section determines from where your deployed endpoint can be accessed.",et,ne,Dt="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.",tt,ie,Nt="To configure it you need to:",nt,le,Ot="<li>check the box to activate AWS PrivateLink for your endpoint.</li> <li>Add your AWS Account ID: You need to provide the AWS ID of the account that owns the VPC you want to restrict access to.</li>",it,oe,Gt="Optionally you can enable PrivateLink Sharing. This will enable sharing of the same PrivateLink between different endpoints.",lt,ae,Rt='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/configuration/10-network.png" alt="network"/>',ot,se,at,re,Vt="Advanced Settings offer more fine-grained control over deployment.",st,ue,Yt='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/configuration/7-advanced.png" alt="advanced"/>',rt,pe,Bt=`<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>`,ut,fe,pt,ge,ft;return v=new on({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),$=new d({props:{title:"Configuration",local:"configuration",headingTag:"h1"}}),C=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"}}),j=new d({props:{title:"Autoscaling",local:"autoscaling",headingTag:"h2"}}),N=new d({props:{title:"Inference Engine Configuration",local:"inference-engine-configuration",headingTag:"h2"}}),G=new d({props:{title:"Container Configuration",local:"container-configuration",headingTag:"h2"}}),V=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"}}),se=new d({props:{title:"Advanced Settings",local:"advanced-settings",headingTag:"h2"}}),fe=new an({props:{source:"https://github.com/huggingface/hf-endpoints-documentation/blob/main/docs/source/guides/configuration.md"}}),{c(){h=a("meta"),ce=l(),me=a("p"),de=l(),u(v.$$.fragment),he=l(),u($.$$.fragment),ve=l(),y=a("p"),y.textContent=gt,$e=l(),u(C.$$.fragment),ye=l(),w=a("p"),w.textContent=ct,Ce=l(),x=a("ul"),x.innerHTML=dt,we=l(),T=a("p"),T.innerHTML=ht,xe=l(),u(b.$$.fragment),Te=l(),L=a("p"),L.textContent=vt,be=l(),H=a("ul"),H.innerHTML=$t,Le=l(),M=a("p"),M.innerHTML=yt,He=l(),P=a("p"),P.textContent=Ct,Me=l(),_=a("ul"),_.innerHTML=wt,Pe=l(),A=a("p"),A.textContent=xt,_e=l(),k=a("ul"),k.innerHTML=Tt,Ae=l(),S=a("p"),S.textContent=bt,ke=l(),u(E.$$.fragment),Se=l(),z=a("p"),z.textContent=Lt,Ee=l(),U=a("ul"),U.innerHTML=Ht,ze=l(),q=a("p"),q.innerHTML=Mt,Ue=l(),I=a("p"),I.innerHTML=Pt,qe=l(),u(j.$$.fragment),Ie=l(),F=a("p"),F.innerHTML=_t,je=l(),W=a("p"),W.innerHTML=At,Fe=l(),D=a("ul"),D.innerHTML=kt,We=l(),u(N.$$.fragment),De=l(),O=a("p"),O.innerHTML=St,Ne=l(),u(G.$$.fragment),Oe=l(),R=a("p"),R.innerHTML=Et,Ge=l(),u(V.$$.fragment),Re=l(),Y=a("p"),Y.textContent=zt,Ve=l(),B=a("ul"),B.innerHTML=Ut,Ye=l(),K=a("p"),K.textContent=qt,Be=l(),Z=a("p"),Z.innerHTML=It,Ke=l(),u(J.$$.fragment),Ze=l(),Q=a("p"),Q.textContent=jt,Je=l(),X=a("p"),X.innerHTML=Ft,Qe=l(),u(ee.$$.fragment),Xe=l(),te=a("p"),te.textContent=Wt,et=l(),ne=a("p"),ne.textContent=Dt,tt=l(),ie=a("p"),ie.textContent=Nt,nt=l(),le=a("ol"),le.innerHTML=Ot,it=l(),oe=a("p"),oe.textContent=Gt,lt=l(),ae=a("p"),ae.innerHTML=Rt,ot=l(),u(se.$$.fragment),at=l(),re=a("p"),re.textContent=Vt,st=l(),ue=a("p"),ue.innerHTML=Yt,rt=l(),pe=a("ul"),pe.innerHTML=Bt,ut=l(),u(fe.$$.fragment),pt=l(),ge=a("p"),this.h()},l(e){const t=nn("svelte-u9bgzb",document.head);h=s(t,"META",{name:!0,content:!0}),t.forEach(n),ce=o(e),me=s(e,"P",{}),Kt(me).forEach(n),de=o(e),p(v.$$.fragment,e),he=o(e),p($.$$.fragment,e),ve=o(e),y=s(e,"P",{"data-svelte-h":!0}),r(y)!=="svelte-1iggp98"&&(y.textContent=gt),$e=o(e),p(C.$$.fragment,e),ye=o(e),w=s(e,"P",{"data-svelte-h":!0}),r(w)!=="svelte-1sd4j0z"&&(w.textContent=ct),Ce=o(e),x=s(e,"UL",{"data-svelte-h":!0}),r(x)!=="svelte-1qy89hk"&&(x.innerHTML=dt),we=o(e),T=s(e,"P",{"data-svelte-h":!0}),r(T)!=="svelte-8t663c"&&(T.innerHTML=ht),xe=o(e),p(b.$$.fragment,e),Te=o(e),L=s(e,"P",{"data-svelte-h":!0}),r(L)!=="svelte-1o9wtbi"&&(L.textContent=vt),be=o(e),H=s(e,"UL",{"data-svelte-h":!0}),r(H)!=="svelte-1nit8px"&&(H.innerHTML=$t),Le=o(e),M=s(e,"P",{"data-svelte-h":!0}),r(M)!=="svelte-171jvsn"&&(M.innerHTML=yt),He=o(e),P=s(e,"P",{"data-svelte-h":!0}),r(P)!=="svelte-a5xv7a"&&(P.textContent=Ct),Me=o(e),_=s(e,"UL",{"data-svelte-h":!0}),r(_)!=="svelte-1c8pe9h"&&(_.innerHTML=wt),Pe=o(e),A=s(e,"P",{"data-svelte-h":!0}),r(A)!=="svelte-14px1ty"&&(A.textContent=xt),_e=o(e),k=s(e,"UL",{"data-svelte-h":!0}),r(k)!=="svelte-8x219j"&&(k.innerHTML=Tt),Ae=o(e),S=s(e,"P",{"data-svelte-h":!0}),r(S)!=="svelte-tqi8q5"&&(S.textContent=bt),ke=o(e),p(E.$$.fragment,e),Se=o(e),z=s(e,"P",{"data-svelte-h":!0}),r(z)!=="svelte-1j8fq6y"&&(z.textContent=Lt),Ee=o(e),U=s(e,"UL",{"data-svelte-h":!0}),r(U)!=="svelte-15gk3yt"&&(U.innerHTML=Ht),ze=o(e),q=s(e,"P",{"data-svelte-h":!0}),r(q)!=="svelte-16pg7ay"&&(q.innerHTML=Mt),Ue=o(e),I=s(e,"P",{"data-svelte-h":!0}),r(I)!=="svelte-vf6o2r"&&(I.innerHTML=Pt),qe=o(e),p(j.$$.fragment,e),Ie=o(e),F=s(e,"P",{"data-svelte-h":!0}),r(F)!=="svelte-t69vok"&&(F.innerHTML=_t),je=o(e),W=s(e,"P",{"data-svelte-h":!0}),r(W)!=="svelte-11k9llv"&&(W.innerHTML=At),Fe=o(e),D=s(e,"UL",{"data-svelte-h":!0}),r(D)!=="svelte-1mmank1"&&(D.innerHTML=kt),We=o(e),p(N.$$.fragment,e),De=o(e),O=s(e,"P",{"data-svelte-h":!0}),r(O)!=="svelte-1iyhirj"&&(O.innerHTML=St),Ne=o(e),p(G.$$.fragment,e),Oe=o(e),R=s(e,"P",{"data-svelte-h":!0}),r(R)!=="svelte-qhhi7y"&&(R.innerHTML=Et),Ge=o(e),p(V.$$.fragment,e),Re=o(e),Y=s(e,"P",{"data-svelte-h":!0}),r(Y)!=="svelte-1pyc3um"&&(Y.textContent=zt),Ve=o(e),B=s(e,"UL",{"data-svelte-h":!0}),r(B)!=="svelte-1352j3g"&&(B.innerHTML=Ut),Ye=o(e),K=s(e,"P",{"data-svelte-h":!0}),r(K)!=="svelte-bqywcv"&&(K.textContent=qt),Be=o(e),Z=s(e,"P",{"data-svelte-h":!0}),r(Z)!=="svelte-1ikgxv8"&&(Z.innerHTML=It),Ke=o(e),p(J.$$.fragment,e),Ze=o(e),Q=s(e,"P",{"data-svelte-h":!0}),r(Q)!=="svelte-x7p47v"&&(Q.textContent=jt),Je=o(e),X=s(e,"P",{"data-svelte-h":!0}),r(X)!=="svelte-1gtrisl"&&(X.innerHTML=Ft),Qe=o(e),p(ee.$$.fragment,e),Xe=o(e),te=s(e,"P",{"data-svelte-h":!0}),r(te)!=="svelte-wt445i"&&(te.textContent=Wt),et=o(e),ne=s(e,"P",{"data-svelte-h":!0}),r(ne)!=="svelte-wljkcn"&&(ne.textContent=Dt),tt=o(e),ie=s(e,"P",{"data-svelte-h":!0}),r(ie)!=="svelte-z9nvh6"&&(ie.textContent=Nt),nt=o(e),le=s(e,"OL",{"data-svelte-h":!0}),r(le)!=="svelte-esgqhm"&&(le.innerHTML=Ot),it=o(e),oe=s(e,"P",{"data-svelte-h":!0}),r(oe)!=="svelte-1dokgpp"&&(oe.textContent=Gt),lt=o(e),ae=s(e,"P",{"data-svelte-h":!0}),r(ae)!=="svelte-16te9sq"&&(ae.innerHTML=Rt),ot=o(e),p(se.$$.fragment,e),at=o(e),re=s(e,"P",{"data-svelte-h":!0}),r(re)!=="svelte-1u5ppiv"&&(re.textContent=Vt),st=o(e),ue=s(e,"P",{"data-svelte-h":!0}),r(ue)!=="svelte-1khxjze"&&(ue.innerHTML=Yt),rt=o(e),pe=s(e,"UL",{"data-svelte-h":!0}),r(pe)!=="svelte-1fwagwe"&&(pe.innerHTML=Bt),ut=o(e),p(fe.$$.fragment,e),pt=o(e),ge=s(e,"P",{}),Kt(ge).forEach(n),this.h()},h(){Zt(h,"name","hf:doc:metadata"),Zt(h,"content",rn)},m(e,t){ln(document.head,h),i(e,ce,t),i(e,me,t),i(e,de,t),f(v,e,t),i(e,he,t),f($,e,t),i(e,ve,t),i(e,y,t),i(e,$e,t),f(C,e,t),i(e,ye,t),i(e,w,t),i(e,Ce,t),i(e,x,t),i(e,we,t),i(e,T,t),i(e,xe,t),f(b,e,t),i(e,Te,t),i(e,L,t),i(e,be,t),i(e,H,t),i(e,Le,t),i(e,M,t),i(e,He,t),i(e,P,t),i(e,Me,t),i(e,_,t),i(e,Pe,t),i(e,A,t),i(e,_e,t),i(e,k,t),i(e,Ae,t),i(e,S,t),i(e,ke,t),f(E,e,t),i(e,Se,t),i(e,z,t),i(e,Ee,t),i(e,U,t),i(e,ze,t),i(e,q,t),i(e,Ue,t),i(e,I,t),i(e,qe,t),f(j,e,t),i(e,Ie,t),i(e,F,t),i(e,je,t),i(e,W,t),i(e,Fe,t),i(e,D,t),i(e,We,t),f(N,e,t),i(e,De,t),i(e,O,t),i(e,Ne,t),f(G,e,t),i(e,Oe,t),i(e,R,t),i(e,Ge,t),f(V,e,t),i(e,Re,t),i(e,Y,t),i(e,Ve,t),i(e,B,t),i(e,Ye,t),i(e,K,t),i(e,Be,t),i(e,Z,t),i(e,Ke,t),f(J,e,t),i(e,Ze,t),i(e,Q,t),i(e,Je,t),i(e,X,t),i(e,Qe,t),f(ee,e,t),i(e,Xe,t),i(e,te,t),i(e,et,t),i(e,ne,t),i(e,tt,t),i(e,ie,t),i(e,nt,t),i(e,le,t),i(e,it,t),i(e,oe,t),i(e,lt,t),i(e,ae,t),i(e,ot,t),f(se,e,t),i(e,at,t),i(e,re,t),i(e,st,t),i(e,ue,t),i(e,rt,t),i(e,pe,t),i(e,ut,t),f(fe,e,t),i(e,pt,t),i(e,ge,t),ft=!0},p:Qt,i(e){ft||(m(v.$$.fragment,e),m($.$$.fragment,e),m(C.$$.fragment,e),m(b.$$.fragment,e),m(E.$$.fragment,e),m(j.$$.fragment,e),m(N.$$.fragment,e),m(G.$$.fragment,e),m(V.$$.fragment,e),m(J.$$.fragment,e),m(ee.$$.fragment,e),m(se.$$.fragment,e),m(fe.$$.fragment,e),ft=!0)},o(e){g(v.$$.fragment,e),g($.$$.fragment,e),g(C.$$.fragment,e),g(b.$$.fragment,e),g(E.$$.fragment,e),g(j.$$.fragment,e),g(N.$$.fragment,e),g(G.$$.fragment,e),g(V.$$.fragment,e),g(J.$$.fragment,e),g(ee.$$.fragment,e),g(se.$$.fragment,e),g(fe.$$.fragment,e),ft=!1},d(e){e&&(n(ce),n(me),n(de),n(he),n(ve),n(y),n($e),n(ye),n(w),n(Ce),n(x),n(we),n(T),n(xe),n(Te),n(L),n(be),n(H),n(Le),n(M),n(He),n(P),n(Me),n(_),n(Pe),n(A),n(_e),n(k),n(Ae),n(S),n(ke),n(Se),n(z),n(Ee),n(U),n(ze),n(q),n(Ue),n(I),n(qe),n(Ie),n(F),n(je),n(W),n(Fe),n(D),n(We),n(De),n(O),n(Ne),n(Oe),n(R),n(Ge),n(Re),n(Y),n(Ve),n(B),n(Ye),n(K),n(Be),n(Z),n(Ke),n(Ze),n(Q),n(Je),n(X),n(Qe),n(Xe),n(te),n(et),n(ne),n(tt),n(ie),n(nt),n(le),n(it),n(oe),n(lt),n(ae),n(ot),n(at),n(re),n(st),n(ue),n(rt),n(pe),n(ut),n(pt),n(ge)),n(h),c(v,e),c($,e),c(C,e),c(b,e),c(E,e),c(j,e),c(N,e),c(G,e),c(V,e),c(J,e),c(ee,e),c(se,e),c(fe,e)}}}const rn='{"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 un(mt){return Xt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class gn extends en{constructor(h){super(),tn(this,h,un,sn,Jt,{})}}export{gn as component};
