import{s as Et,n as St,o as zt}from"../chunks/scheduler.eb244325.js";import{S as kt,i as Ut,e as o,s as l,c as u,h as jt,a as s,d as n,b as a,f as Pt,g,j as r,k as At,l as qt,m as i,n as f,t as p,o as m,p as c}from"../chunks/index.661680a1.js";import{C as Ft,H as d,E as It}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.338b442f.js";function Wt(Qe){let h,se,ae,re,v,ue,$,ge,y,Xe=`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.`,fe,C,pe,w,et="In the top left you can:",me,x,tt="<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>",ce,T,nt='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/configuration/1-name-org-model.png" alt="name-org-model"/>',de,b,he,L,it=`The Hardware Configuration section allows you to choose the compute backend used to host the model.
You can select from three major cloud providers:`,ve,H,lt="<li>Amazon Web Services (AWS)</li> <li>Microsoft Azure</li> <li>Google Cloud Platform</li>",$e,M,at='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/configuration/2-hardware.png" alt="hardware"/>',ye,_,ot="You must also choose an accelerator type:",Ce,P,st="<li>CPU</li> <li>GPU</li> <li>INF2 (AWS Inferentia)</li>",we,A,rt=`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:`,xe,E,ut="<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>",Te,S,gt=`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.`,be,z,Le,k,ft="This section determines who can access your deployed endpoint. Available options are:",He,U,pt="<li><strong>Protected (default)</strong>: Accessible only to members of your Hugging Face organization using personal access tokens. The endpoint is secured with TLS/SSL.</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 a personal Hugging Face Token generated from their account.</li>",Me,j,mt="Additionally, if you deploy your Inference Endpoint in AWS, you can use <strong>AWS Private Link</strong> for an intra-region secured connection to your AWS VPN.",_e,q,ct='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/configuration/3-security.png" alt="security"/>',Pe,F,Ae,I,dt=`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>.`,Ee,W,ht='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/configuration/4-autoscaling.png" alt="autoscaling"/>',Se,D,vt=`<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>`,ze,G,ke,R,$t=`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"/>`,Ue,N,je,O,yt=`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"/>`,qe,Y,Fe,V,Ct="Environment variables can be provided to customize container behavior or pass secrets.",Ie,B,wt="<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>",We,K,xt="Each section allows you to add multiple entries using the Add button.",De,Z,Tt='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/configuration/5-env-vars.png" alt="env-vars"/>',Ge,J,Re,Q,bt=`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.`,Ne,X,Lt='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/configuration/6-tags.png" alt="tags"/>',Oe,ee,Ye,te,Ht="Advanced Settings offer more fine-grained control over deployment.",Ve,ne,Mt='<img src="https://raw.githubusercontent.com/huggingface/hf-endpoints-documentation/main/assets/configuration/7-advanced.png" alt="advanced"/>',Be,ie,_t=`<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>`,Ke,le,Ze,oe,Je;return v=new Ft({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"}}),z=new d({props:{title:"Security Level",local:"security-level",headingTag:"h2"}}),F=new d({props:{title:"Autoscaling",local:"autoscaling",headingTag:"h2"}}),G=new d({props:{title:"Inference Engine Configuration",local:"inference-engine-configuration",headingTag:"h2"}}),N=new d({props:{title:"Container Configuration",local:"container-configuration",headingTag:"h2"}}),Y=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:"Advanced Settings",local:"advanced-settings",headingTag:"h2"}}),le=new It({props:{source:"https://github.com/huggingface/hf-endpoints-documentation/blob/main/docs/source/guides/configuration.md"}}),{c(){h=o("meta"),se=l(),ae=o("p"),re=l(),u(v.$$.fragment),ue=l(),u($.$$.fragment),ge=l(),y=o("p"),y.textContent=Xe,fe=l(),u(C.$$.fragment),pe=l(),w=o("p"),w.textContent=et,me=l(),x=o("ul"),x.innerHTML=tt,ce=l(),T=o("p"),T.innerHTML=nt,de=l(),u(b.$$.fragment),he=l(),L=o("p"),L.textContent=it,ve=l(),H=o("ul"),H.innerHTML=lt,$e=l(),M=o("p"),M.innerHTML=at,ye=l(),_=o("p"),_.textContent=ot,Ce=l(),P=o("ul"),P.innerHTML=st,we=l(),A=o("p"),A.textContent=rt,xe=l(),E=o("ul"),E.innerHTML=ut,Te=l(),S=o("p"),S.textContent=gt,be=l(),u(z.$$.fragment),Le=l(),k=o("p"),k.textContent=ft,He=l(),U=o("ul"),U.innerHTML=pt,Me=l(),j=o("p"),j.innerHTML=mt,_e=l(),q=o("p"),q.innerHTML=ct,Pe=l(),u(F.$$.fragment),Ae=l(),I=o("p"),I.innerHTML=dt,Ee=l(),W=o("p"),W.innerHTML=ht,Se=l(),D=o("ul"),D.innerHTML=vt,ze=l(),u(G.$$.fragment),ke=l(),R=o("p"),R.innerHTML=$t,Ue=l(),u(N.$$.fragment),je=l(),O=o("p"),O.innerHTML=yt,qe=l(),u(Y.$$.fragment),Fe=l(),V=o("p"),V.textContent=Ct,Ie=l(),B=o("ul"),B.innerHTML=wt,We=l(),K=o("p"),K.textContent=xt,De=l(),Z=o("p"),Z.innerHTML=Tt,Ge=l(),u(J.$$.fragment),Re=l(),Q=o("p"),Q.textContent=bt,Ne=l(),X=o("p"),X.innerHTML=Lt,Oe=l(),u(ee.$$.fragment),Ye=l(),te=o("p"),te.textContent=Ht,Ve=l(),ne=o("p"),ne.innerHTML=Mt,Be=l(),ie=o("ul"),ie.innerHTML=_t,Ke=l(),u(le.$$.fragment),Ze=l(),oe=o("p"),this.h()},l(e){const t=jt("svelte-u9bgzb",document.head);h=s(t,"META",{name:!0,content:!0}),t.forEach(n),se=a(e),ae=s(e,"P",{}),Pt(ae).forEach(n),re=a(e),g(v.$$.fragment,e),ue=a(e),g($.$$.fragment,e),ge=a(e),y=s(e,"P",{"data-svelte-h":!0}),r(y)!=="svelte-1iggp98"&&(y.textContent=Xe),fe=a(e),g(C.$$.fragment,e),pe=a(e),w=s(e,"P",{"data-svelte-h":!0}),r(w)!=="svelte-1sd4j0z"&&(w.textContent=et),me=a(e),x=s(e,"UL",{"data-svelte-h":!0}),r(x)!=="svelte-1qy89hk"&&(x.innerHTML=tt),ce=a(e),T=s(e,"P",{"data-svelte-h":!0}),r(T)!=="svelte-8t663c"&&(T.innerHTML=nt),de=a(e),g(b.$$.fragment,e),he=a(e),L=s(e,"P",{"data-svelte-h":!0}),r(L)!=="svelte-1o9wtbi"&&(L.textContent=it),ve=a(e),H=s(e,"UL",{"data-svelte-h":!0}),r(H)!=="svelte-1nit8px"&&(H.innerHTML=lt),$e=a(e),M=s(e,"P",{"data-svelte-h":!0}),r(M)!=="svelte-171jvsn"&&(M.innerHTML=at),ye=a(e),_=s(e,"P",{"data-svelte-h":!0}),r(_)!=="svelte-a5xv7a"&&(_.textContent=ot),Ce=a(e),P=s(e,"UL",{"data-svelte-h":!0}),r(P)!=="svelte-1c8pe9h"&&(P.innerHTML=st),we=a(e),A=s(e,"P",{"data-svelte-h":!0}),r(A)!=="svelte-14px1ty"&&(A.textContent=rt),xe=a(e),E=s(e,"UL",{"data-svelte-h":!0}),r(E)!=="svelte-8x219j"&&(E.innerHTML=ut),Te=a(e),S=s(e,"P",{"data-svelte-h":!0}),r(S)!=="svelte-tqi8q5"&&(S.textContent=gt),be=a(e),g(z.$$.fragment,e),Le=a(e),k=s(e,"P",{"data-svelte-h":!0}),r(k)!=="svelte-1j8fq6y"&&(k.textContent=ft),He=a(e),U=s(e,"UL",{"data-svelte-h":!0}),r(U)!=="svelte-6geyzf"&&(U.innerHTML=pt),Me=a(e),j=s(e,"P",{"data-svelte-h":!0}),r(j)!=="svelte-rsj048"&&(j.innerHTML=mt),_e=a(e),q=s(e,"P",{"data-svelte-h":!0}),r(q)!=="svelte-1bsri9e"&&(q.innerHTML=ct),Pe=a(e),g(F.$$.fragment,e),Ae=a(e),I=s(e,"P",{"data-svelte-h":!0}),r(I)!=="svelte-t69vok"&&(I.innerHTML=dt),Ee=a(e),W=s(e,"P",{"data-svelte-h":!0}),r(W)!=="svelte-11k9llv"&&(W.innerHTML=ht),Se=a(e),D=s(e,"UL",{"data-svelte-h":!0}),r(D)!=="svelte-cis8v9"&&(D.innerHTML=vt),ze=a(e),g(G.$$.fragment,e),ke=a(e),R=s(e,"P",{"data-svelte-h":!0}),r(R)!=="svelte-1iyhirj"&&(R.innerHTML=$t),Ue=a(e),g(N.$$.fragment,e),je=a(e),O=s(e,"P",{"data-svelte-h":!0}),r(O)!=="svelte-qhhi7y"&&(O.innerHTML=yt),qe=a(e),g(Y.$$.fragment,e),Fe=a(e),V=s(e,"P",{"data-svelte-h":!0}),r(V)!=="svelte-1pyc3um"&&(V.textContent=Ct),Ie=a(e),B=s(e,"UL",{"data-svelte-h":!0}),r(B)!=="svelte-1352j3g"&&(B.innerHTML=wt),We=a(e),K=s(e,"P",{"data-svelte-h":!0}),r(K)!=="svelte-bqywcv"&&(K.textContent=xt),De=a(e),Z=s(e,"P",{"data-svelte-h":!0}),r(Z)!=="svelte-1ikgxv8"&&(Z.innerHTML=Tt),Ge=a(e),g(J.$$.fragment,e),Re=a(e),Q=s(e,"P",{"data-svelte-h":!0}),r(Q)!=="svelte-x7p47v"&&(Q.textContent=bt),Ne=a(e),X=s(e,"P",{"data-svelte-h":!0}),r(X)!=="svelte-1gtrisl"&&(X.innerHTML=Lt),Oe=a(e),g(ee.$$.fragment,e),Ye=a(e),te=s(e,"P",{"data-svelte-h":!0}),r(te)!=="svelte-1u5ppiv"&&(te.textContent=Ht),Ve=a(e),ne=s(e,"P",{"data-svelte-h":!0}),r(ne)!=="svelte-1khxjze"&&(ne.innerHTML=Mt),Be=a(e),ie=s(e,"UL",{"data-svelte-h":!0}),r(ie)!=="svelte-1fwagwe"&&(ie.innerHTML=_t),Ke=a(e),g(le.$$.fragment,e),Ze=a(e),oe=s(e,"P",{}),Pt(oe).forEach(n),this.h()},h(){At(h,"name","hf:doc:metadata"),At(h,"content",Dt)},m(e,t){qt(document.head,h),i(e,se,t),i(e,ae,t),i(e,re,t),f(v,e,t),i(e,ue,t),f($,e,t),i(e,ge,t),i(e,y,t),i(e,fe,t),f(C,e,t),i(e,pe,t),i(e,w,t),i(e,me,t),i(e,x,t),i(e,ce,t),i(e,T,t),i(e,de,t),f(b,e,t),i(e,he,t),i(e,L,t),i(e,ve,t),i(e,H,t),i(e,$e,t),i(e,M,t),i(e,ye,t),i(e,_,t),i(e,Ce,t),i(e,P,t),i(e,we,t),i(e,A,t),i(e,xe,t),i(e,E,t),i(e,Te,t),i(e,S,t),i(e,be,t),f(z,e,t),i(e,Le,t),i(e,k,t),i(e,He,t),i(e,U,t),i(e,Me,t),i(e,j,t),i(e,_e,t),i(e,q,t),i(e,Pe,t),f(F,e,t),i(e,Ae,t),i(e,I,t),i(e,Ee,t),i(e,W,t),i(e,Se,t),i(e,D,t),i(e,ze,t),f(G,e,t),i(e,ke,t),i(e,R,t),i(e,Ue,t),f(N,e,t),i(e,je,t),i(e,O,t),i(e,qe,t),f(Y,e,t),i(e,Fe,t),i(e,V,t),i(e,Ie,t),i(e,B,t),i(e,We,t),i(e,K,t),i(e,De,t),i(e,Z,t),i(e,Ge,t),f(J,e,t),i(e,Re,t),i(e,Q,t),i(e,Ne,t),i(e,X,t),i(e,Oe,t),f(ee,e,t),i(e,Ye,t),i(e,te,t),i(e,Ve,t),i(e,ne,t),i(e,Be,t),i(e,ie,t),i(e,Ke,t),f(le,e,t),i(e,Ze,t),i(e,oe,t),Je=!0},p:St,i(e){Je||(p(v.$$.fragment,e),p($.$$.fragment,e),p(C.$$.fragment,e),p(b.$$.fragment,e),p(z.$$.fragment,e),p(F.$$.fragment,e),p(G.$$.fragment,e),p(N.$$.fragment,e),p(Y.$$.fragment,e),p(J.$$.fragment,e),p(ee.$$.fragment,e),p(le.$$.fragment,e),Je=!0)},o(e){m(v.$$.fragment,e),m($.$$.fragment,e),m(C.$$.fragment,e),m(b.$$.fragment,e),m(z.$$.fragment,e),m(F.$$.fragment,e),m(G.$$.fragment,e),m(N.$$.fragment,e),m(Y.$$.fragment,e),m(J.$$.fragment,e),m(ee.$$.fragment,e),m(le.$$.fragment,e),Je=!1},d(e){e&&(n(se),n(ae),n(re),n(ue),n(ge),n(y),n(fe),n(pe),n(w),n(me),n(x),n(ce),n(T),n(de),n(he),n(L),n(ve),n(H),n($e),n(M),n(ye),n(_),n(Ce),n(P),n(we),n(A),n(xe),n(E),n(Te),n(S),n(be),n(Le),n(k),n(He),n(U),n(Me),n(j),n(_e),n(q),n(Pe),n(Ae),n(I),n(Ee),n(W),n(Se),n(D),n(ze),n(ke),n(R),n(Ue),n(je),n(O),n(qe),n(Fe),n(V),n(Ie),n(B),n(We),n(K),n(De),n(Z),n(Ge),n(Re),n(Q),n(Ne),n(X),n(Oe),n(Ye),n(te),n(Ve),n(ne),n(Be),n(ie),n(Ke),n(Ze),n(oe)),n(h),c(v,e),c($,e),c(C,e),c(b,e),c(z,e),c(F,e),c(G,e),c(N,e),c(Y,e),c(J,e),c(ee,e),c(le,e)}}}const Dt='{"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":"Security Level","local":"security-level","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":"Advanced Settings","local":"advanced-settings","sections":[],"depth":2}],"depth":1}';function Gt(Qe){return zt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Yt extends kt{constructor(h){super(),Ut(this,h,Gt,Wt,Et,{})}}export{Yt as component};
