Buckets:
| import{s as E,n as W,o as F}from"../chunks/scheduler.a2b4ca8e.js";import{S as U,i as Y,g as o,s as l,r as j,A as I,h as s,f as a,c as r,j as q,u as N,x as w,k as z,y as R,a as n,v as B,d as D,t as G,w as J}from"../chunks/index.d2f673cc.js";import{H as K}from"../chunks/index.35ef470e.js";function O(P){let i,x,g,_,m,T,u,y="Training on AWS Trainium is as simple as in Transformers:",v,c,M='<li>You need to replace the Transformers’ <a href="https://huggingface.co/docs/transformers/main_classes/trainer" rel="nofollow"><code>Trainer</code></a> class with the <a href="https://huggingface.co/docs/optimum/neuron/package_reference/trainer" rel="nofollow"><code>NeuronTrainer</code></a> class.</li>',b,f,S="You can find several examples in the official repository for the following tasks:",C,p,k='<li><a href="https://github.com/huggingface/optimum-neuron/tree/main/examples/language-modeling" rel="nofollow">language modeling</a>,</li> <li><a href="https://github.com/huggingface/optimum-neuron/tree/main/examples/question-answering" rel="nofollow">question answering</a>,</li> <li><a href="https://github.com/huggingface/optimum-neuron/tree/main/examples/summarization" rel="nofollow">summarization</a>,</li> <li><a href="https://github.com/huggingface/optimum-neuron/tree/main/examples/text-classification" rel="nofollow">text classification</a>,</li> <li><a href="https://github.com/huggingface/optimum-neuron/tree/main/examples/translation" rel="nofollow">translation</a>,</li> <li><a href="https://github.com/huggingface/optimum-neuron/tree/main/examples/image-classification" rel="nofollow">image classification</a>,</li> <li><a href="https://github.com/huggingface/optimum-neuron/tree/main/examples/audio-classification" rel="nofollow">audio classification</a>,</li> <li><a href="https://github.com/huggingface/optimum-neuron/tree/main/examples/speech-recognition" rel="nofollow">speech recognition</a>,</li> <li><a href="https://github.com/huggingface/optimum-neuron/tree/main/examples/contrastive-image-text" rel="nofollow">contrastive image-text training</a>.</li>',$,h,A='If you want go through an step-by-step example check out the <a href="../tutorials/fine_tune_bert">getting started with AWS Trainium and Hugging Face Transformers</a> guide.',H,d,L;return m=new K({props:{title:"Fine-tune Transformers with AWS Trainium",local:"fine-tune-transformers-with-aws-trainium",headingTag:"h1"}}),{c(){i=o("meta"),x=l(),g=o("p"),_=l(),j(m.$$.fragment),T=l(),u=o("p"),u.textContent=y,v=l(),c=o("ul"),c.innerHTML=M,b=l(),f=o("p"),f.textContent=S,C=l(),p=o("ul"),p.innerHTML=k,$=l(),h=o("p"),h.innerHTML=A,H=l(),d=o("p"),this.h()},l(e){const t=I("svelte-u9bgzb",document.head);i=s(t,"META",{name:!0,content:!0}),t.forEach(a),x=r(e),g=s(e,"P",{}),q(g).forEach(a),_=r(e),N(m.$$.fragment,e),T=r(e),u=s(e,"P",{"data-svelte-h":!0}),w(u)!=="svelte-10bekyk"&&(u.textContent=y),v=r(e),c=s(e,"UL",{"data-svelte-h":!0}),w(c)!=="svelte-1zbxl6"&&(c.innerHTML=M),b=r(e),f=s(e,"P",{"data-svelte-h":!0}),w(f)!=="svelte-13p59sv"&&(f.textContent=S),C=r(e),p=s(e,"UL",{"data-svelte-h":!0}),w(p)!=="svelte-q7t6pp"&&(p.innerHTML=k),$=r(e),h=s(e,"P",{"data-svelte-h":!0}),w(h)!=="svelte-1c72r03"&&(h.innerHTML=A),H=r(e),d=s(e,"P",{}),q(d).forEach(a),this.h()},h(){z(i,"name","hf:doc:metadata"),z(i,"content",Q)},m(e,t){R(document.head,i),n(e,x,t),n(e,g,t),n(e,_,t),B(m,e,t),n(e,T,t),n(e,u,t),n(e,v,t),n(e,c,t),n(e,b,t),n(e,f,t),n(e,C,t),n(e,p,t),n(e,$,t),n(e,h,t),n(e,H,t),n(e,d,t),L=!0},p:W,i(e){L||(D(m.$$.fragment,e),L=!0)},o(e){G(m.$$.fragment,e),L=!1},d(e){e&&(a(x),a(g),a(_),a(T),a(u),a(v),a(c),a(b),a(f),a(C),a(p),a($),a(h),a(H),a(d)),a(i),J(m,e)}}}const Q='{"title":"Fine-tune Transformers with AWS Trainium","local":"fine-tune-transformers-with-aws-trainium","sections":[],"depth":1}';function V(P){return F(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class te extends U{constructor(i){super(),Y(this,i,V,O,E,{})}}export{te as component}; | |
Xet Storage Details
- Size:
- 3.95 kB
- Xet hash:
- 6caaac8a691c016b571e0c5b24112f3a521d2dbf156b2920b9198eaae91a0129
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.