import{s as O,n as I,o as C}from"../chunks/scheduler.56725da7.js";import{S as z,i as E,e as p,s as d,c as S,h as D,a as f,d as a,b as m,f as A,g as W,j as P,k as _,l as R,m as n,n as H,t as L,o as M,p as N}from"../chunks/index.18a26576.js";import{C as j}from"../chunks/CopyLLMTxtMenu.f4001e5e.js";import{H as q}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.d7e7b6b3.js";function B($){let r,g,u,h,i,b,l,w,s,T=`🤗 Optimum Neuron is the interface between the 🤗 Transformers library and AWS Accelerators including <a href="https://aws.amazon.com/machine-learning/trainium/?nc1=h_ls" rel="nofollow">AWS Trainium</a> and <a href="https://aws.amazon.com/machine-learning/inferentia/?nc1=h_ls" rel="nofollow">AWS Inferentia</a>.
It provides a set of tools enabling easy model loading, training and inference on single- and multi-Accelerator settings for different downstream tasks.
The list of officially validated models and tasks is available <a href="https://huggingface.co/docs/optimum-neuron/package_reference/configuration#supported-architectures" rel="nofollow">here</a>.`,x,o,k=`<div class="w-full flex flex-col space-y-4 md:space-y-0 md:grid md:grid-cols-2 md:gap-y-4 md:gap-x-5"><a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./tutorials/fine_tune_bert"><div class="w-full text-center bg-gradient-to-br from-blue-400 to-blue-500 rounded-lg py-1.5 font-semibold mb-5 text-white text-lg leading-relaxed">Tutorials</div> <p class="text-gray-700">Learn the basics and become familiar with training &amp; deploying transformers on AWS Trainium and AWS Inferentia.
        Start here if you are using 🤗 Optimum Neuron for the first time!</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./guides/setup_aws_instance"><div class="w-full text-center bg-gradient-to-br from-indigo-400 to-indigo-500 rounded-lg py-1.5 font-semibold mb-5 text-white text-lg leading-relaxed">How-to guides</div> <p class="text-gray-700">Practical guides to help you achieve a specific goal. Take a look at these guides to learn how to use 🤗 Optimum
        Neuron to solve real-world problems.</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" href="./package_reference/trainer"><div class="w-full text-center bg-gradient-to-br from-purple-400 to-purple-500 rounded-lg py-1.5 font-semibold mb-5 text-white text-lg leading-relaxed">Reference</div> <p class="text-gray-700">Technical descriptions of how the classes and methods of 🤗 Optimum Neuron work.</p></a> <a class="!no-underline border dark:border-gray-700 p-5 rounded-lg shadow hover:shadow-lg" onclick="event.preventDefault(); window.open(&#39;https://huggingface.co/datasets/sanhitsa/AWS-White-Papers-and-Blogs/resolve/main/Whitepaper-Scale-production-AI-with-Hugging-Face-Optimum-Neuron-and-AWS-Trainium-and-Inferentia.pdf&#39;, &#39;_blank&#39;);"><div class="w-full text-center bg-gradient-to-br from-red-600 to-red-600 rounded-lg py-1.5 font-semibold mb-5 text-white text-lg leading-relaxed">White Paper</div> <p class="text-gray-700">To learn more about how Optimum Neuron and AWS Inferentia and Trainium are being used by companies, read the White Paper.</p></a></div>`,v,c,y;return i=new j({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),l=new q({props:{title:"🤗 Optimum Neuron",local:"-optimum-neuron",headingTag:"h1"}}),{c(){r=p("meta"),g=d(),u=p("p"),h=d(),S(i.$$.fragment),b=d(),S(l.$$.fragment),w=d(),s=p("p"),s.innerHTML=T,x=d(),o=p("div"),o.innerHTML=k,v=d(),c=p("p"),this.h()},l(e){const t=D("svelte-u9bgzb",document.head);r=f(t,"META",{name:!0,content:!0}),t.forEach(a),g=m(e),u=f(e,"P",{}),A(u).forEach(a),h=m(e),W(i.$$.fragment,e),b=m(e),W(l.$$.fragment,e),w=m(e),s=f(e,"P",{"data-svelte-h":!0}),P(s)!=="svelte-1go5006"&&(s.innerHTML=T),x=m(e),o=f(e,"DIV",{class:!0,"data-svelte-h":!0}),P(o)!=="svelte-dmdxni"&&(o.innerHTML=k),v=m(e),c=f(e,"P",{}),A(c).forEach(a),this.h()},h(){_(r,"name","hf:doc:metadata"),_(r,"content",F),_(o,"class","mt-10")},m(e,t){R(document.head,r),n(e,g,t),n(e,u,t),n(e,h,t),H(i,e,t),n(e,b,t),H(l,e,t),n(e,w,t),n(e,s,t),n(e,x,t),n(e,o,t),n(e,v,t),n(e,c,t),y=!0},p:I,i(e){y||(L(i.$$.fragment,e),L(l.$$.fragment,e),y=!0)},o(e){M(i.$$.fragment,e),M(l.$$.fragment,e),y=!1},d(e){e&&(a(g),a(u),a(h),a(b),a(w),a(s),a(x),a(o),a(v),a(c)),a(r),N(i,e),N(l,e)}}}const F='{"title":"🤗 Optimum Neuron","local":"-optimum-neuron","sections":[],"depth":1}';function U($){return C(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Q extends z{constructor(r){super(),E(this,r,U,B,O,{})}}export{Q as component};
