import{s as J,o as O,n as R}from"../chunks/scheduler.9bc65507.js";import{S as B,i as D,g as s,s as $,u as N,A as F,h as l,f as a,c as g,j as P,v as U,y as z,k as v,o as y,a as o,w as q,d as G,t as I,x as j}from"../chunks/index.78c82d43.js";import{T as K}from"../chunks/Tip.87d55b76.js";import{I as Q}from"../chunks/IconCopyLink.bedaa44d.js";function V(C){let t,h='Note: Most of the strategies introduced in the <a href="perf_train_gpu_one">single GPU section</a> (such as mixed precision training or gradient accumulation) and <a href="perf_train_gpu_many">multi-GPU section</a> are generic and apply to training models in general so make sure to have a look at it before diving into this section.';return{c(){t=s("p"),t.innerHTML=h},l(i){t=l(i,"P",{"data-svelte-h":!0}),z(t)!=="svelte-1abfqa9"&&(t.innerHTML=h)},m(i,u){o(i,t,u)},p:R,d(i){i&&a(t)}}}function W(C){let t,h,i,u,r,c,w,m,b,_,A="Training on Specialized Hardware",S,p,T,f,H="This document will be completed soon with information on how to train on specialized hardware.",k,x,E;return m=new Q({}),p=new K({props:{$$slots:{default:[V]},$$scope:{ctx:C}}}),{c(){t=s("meta"),h=$(),i=s("p"),u=$(),r=s("h1"),c=s("a"),w=s("span"),N(m.$$.fragment),b=$(),_=s("span"),_.textContent=A,S=$(),N(p.$$.fragment),T=$(),f=s("p"),f.textContent=H,k=$(),x=s("p"),this.h()},l(e){const n=F("svelte-1phssyn",document.head);t=l(n,"META",{name:!0,content:!0}),n.forEach(a),h=g(e),i=l(e,"P",{}),P(i).forEach(a),u=g(e),r=l(e,"H1",{class:!0});var d=P(r);c=l(d,"A",{id:!0,class:!0,href:!0});var M=P(c);w=l(M,"SPAN",{});var L=P(w);U(m.$$.fragment,L),L.forEach(a),M.forEach(a),b=g(d),_=l(d,"SPAN",{"data-svelte-h":!0}),z(_)!=="svelte-lab48f"&&(_.textContent=A),d.forEach(a),S=g(e),U(p.$$.fragment,e),T=g(e),f=l(e,"P",{"data-svelte-h":!0}),z(f)!=="svelte-1scr206"&&(f.textContent=H),k=g(e),x=l(e,"P",{}),P(x).forEach(a),this.h()},h(){v(t,"name","hf:doc:metadata"),v(t,"content",JSON.stringify(X)),v(c,"id","training-on-specialized-hardware"),v(c,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),v(c,"href","#training-on-specialized-hardware"),v(r,"class","relative group")},m(e,n){y(document.head,t),o(e,h,n),o(e,i,n),o(e,u,n),o(e,r,n),y(r,c),y(c,w),q(m,w,null),y(r,b),y(r,_),o(e,S,n),q(p,e,n),o(e,T,n),o(e,f,n),o(e,k,n),o(e,x,n),E=!0},p(e,[n]){const d={};n&2&&(d.$$scope={dirty:n,ctx:e}),p.$set(d)},i(e){E||(G(m.$$.fragment,e),G(p.$$.fragment,e),E=!0)},o(e){I(m.$$.fragment,e),I(p.$$.fragment,e),E=!1},d(e){e&&(a(h),a(i),a(u),a(r),a(S),a(T),a(f),a(k),a(x)),a(t),j(m),j(p,e)}}}const X={local:"training-on-specialized-hardware",title:"Training on Specialized Hardware"};function Y(C){return O(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ne extends B{constructor(t){super(),D(this,t,Y,W,J,{})}}export{ne as component};
