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