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