import{s as Z,n as q,o as F}from"../chunks/scheduler.56725da7.js";import{S as O,i as Q,e as f,s as r,c as j,h as D,a as g,d as n,b as i,f as E,g as W,j as I,k as N,l as K,m as a,n as L,t as z,o as H,p as P}from"../chunks/index.18a26576.js";import{C as Y}from"../chunks/CopyLLMTxtMenu.f644b58a.js";import{C as X}from"../chunks/CodeBlock.a5342303.js";import{H as R}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.401933eb.js";function ee(B){let o,w,y,$,s,T,l,_,m,J=`We provide pre-built Optimum Neuron containers for Amazon SageMaker. These containers come with all of the Hugging Face libraries and dependencies pre-installed, so you can start using them right away.
We have containers for training and inference, and optimized text generation containers with TGI. The table is up to date and only includes the latest versions of each container. You can find older versions in the <a href="https://github.com/aws/deep-learning-containers/releases?q=hf-neuronx&amp;expanded=true" rel="nofollow">Deep Learning Container Release Notes</a>`,x,u,G="We include the function <code>image_uri</code> to retrieve the image URI for the container you want to use. The result is the same as the one retrieved by the <code>sagemaker</code> Python SDK, but the image URI retrieved can be newer than the one reported by the <code>sagemaker</code> Python SDK.",M,p,v,c,U,d,V="<thead><tr><th>Type</th> <th>Optimum Version</th> <th>Image URI</th></tr></thead> <tbody><tr><td>Training</td> <td>0.0.25</td> <td><code>763104351884.dkr.ecr.us-west-2.amazonaws.com/huggingface-pytorch-training-neuronx:2.1.2-transformers4.48.1-neuronx-py310-sdk2.20.0-ubuntu20.04</code></td></tr> <tr><td>Inference</td> <td>0.0.25</td> <td><code>763104351884.dkr.ecr.us-west-2.amazonaws.com/huggingface-pytorch-inference-neuronx:2.1.2-transformers4.43.2-neuronx-py310-sdk2.20.0-ubuntu20.04</code></td></tr> <tr><td>Text Generation Inference</td> <td>0.2.0</td> <td><code>763104351884.dkr.ecr.us-west-2.amazonaws.com/huggingface-pytorch-tgi-inference:2.5.1-optimum3.3.4-neuronx-py310-ubuntu22.04</code></td></tr></tbody>",k,h,A='Please replace <code>763104351884</code> with the correct <a href="https://github.com/aws/sagemaker-python-sdk/blob/master/src/sagemaker/image_uri_config/huggingface-neuronx.json" rel="nofollow">AWS account ID</a> and <code>region</code> with the AWS region you are working in.',S,b,C;return s=new Y({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),l=new R({props:{title:"Optimum Neuron Container",local:"optimum-neuron-container",headingTag:"h1"}}),p=new X({props:{code:"ZnJvbSUyMG9wdGltdW0ubmV1cm9uLnV0aWxzJTIwaW1wb3J0JTIwZWNyJTBBJTBBJTIzJTIwcmV0cmlldmUlMjB0aGUlMjBsbG0lMjBpbWFnZSUyMHVyaSUwQWxsbV9pbWFnZSUyMCUzRCUyMGVjci5pbWFnZV91cmkoJTIydGdpJTIyKSUwQSUwQXByaW50KGYlMjJsbG0lMjBpbWFnZSUyMHVyaSUzQSUyMCU3QmxsbV9pbWFnZSU3RCUyMiklMEE=",highlighted:`<span class="hljs-keyword">from</span> optimum.neuron.utils <span class="hljs-keyword">import</span> ecr

<span class="hljs-comment"># retrieve the llm image uri</span>
llm_image = ecr.image_uri(<span class="hljs-string">&quot;tgi&quot;</span>)

<span class="hljs-built_in">print</span>(<span class="hljs-string">f&quot;llm image uri: <span class="hljs-subst">{llm_image}</span>&quot;</span>)
`,wrap:!1}}),c=new R({props:{title:"Available Optimum Neuron Containers",local:"available-optimum-neuron-containers",headingTag:"h2"}}),{c(){o=f("meta"),w=r(),y=f("p"),$=r(),j(s.$$.fragment),T=r(),j(l.$$.fragment),_=r(),m=f("p"),m.innerHTML=J,x=r(),u=f("p"),u.innerHTML=G,M=r(),j(p.$$.fragment),v=r(),j(c.$$.fragment),U=r(),d=f("table"),d.innerHTML=V,k=r(),h=f("p"),h.innerHTML=A,S=r(),b=f("p"),this.h()},l(e){const t=D("svelte-u9bgzb",document.head);o=g(t,"META",{name:!0,content:!0}),t.forEach(n),w=i(e),y=g(e,"P",{}),E(y).forEach(n),$=i(e),W(s.$$.fragment,e),T=i(e),W(l.$$.fragment,e),_=i(e),m=g(e,"P",{"data-svelte-h":!0}),I(m)!=="svelte-1igdzgs"&&(m.innerHTML=J),x=i(e),u=g(e,"P",{"data-svelte-h":!0}),I(u)!=="svelte-1871z4t"&&(u.innerHTML=G),M=i(e),W(p.$$.fragment,e),v=i(e),W(c.$$.fragment,e),U=i(e),d=g(e,"TABLE",{"data-svelte-h":!0}),I(d)!=="svelte-15rme05"&&(d.innerHTML=V),k=i(e),h=g(e,"P",{"data-svelte-h":!0}),I(h)!=="svelte-87fx8j"&&(h.innerHTML=A),S=i(e),b=g(e,"P",{}),E(b).forEach(n),this.h()},h(){N(o,"name","hf:doc:metadata"),N(o,"content",te)},m(e,t){K(document.head,o),a(e,w,t),a(e,y,t),a(e,$,t),L(s,e,t),a(e,T,t),L(l,e,t),a(e,_,t),a(e,m,t),a(e,x,t),a(e,u,t),a(e,M,t),L(p,e,t),a(e,v,t),L(c,e,t),a(e,U,t),a(e,d,t),a(e,k,t),a(e,h,t),a(e,S,t),a(e,b,t),C=!0},p:q,i(e){C||(z(s.$$.fragment,e),z(l.$$.fragment,e),z(p.$$.fragment,e),z(c.$$.fragment,e),C=!0)},o(e){H(s.$$.fragment,e),H(l.$$.fragment,e),H(p.$$.fragment,e),H(c.$$.fragment,e),C=!1},d(e){e&&(n(w),n(y),n($),n(T),n(_),n(m),n(x),n(u),n(M),n(v),n(U),n(d),n(k),n(h),n(S),n(b)),n(o),P(s,e),P(l,e),P(p,e),P(c,e)}}}const te='{"title":"Optimum Neuron Container","local":"optimum-neuron-container","sections":[{"title":"Available Optimum Neuron Containers","local":"available-optimum-neuron-containers","sections":[],"depth":2}],"depth":1}';function ne(B){return F(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class le extends O{constructor(o){super(),Q(this,o,ne,ee,Z,{})}}export{le as component};
