import{s as L,o as S,n as q}from"../chunks/scheduler.9bc65507.js";import{S as A,i as G,g as d,s as f,r as x,A as j,h,f as a,c as u,j as U,u as b,x as k,k as y,y as z,a as i,v as C,d as M,t as E,w as H}from"../chunks/index.707bf1b6.js";import{T as N}from"../chunks/Tip.c2ecdbf4.js";import{H as R}from"../chunks/Heading.342b1fa6.js";function B(_){let e,r='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(){e=d("p"),e.innerHTML=r},l(s){e=h(s,"P",{"data-svelte-h":!0}),k(e)!=="svelte-1abfqa9"&&(e.innerHTML=r)},m(s,p){i(s,e,p)},p:q,d(s){s&&a(e)}}}function D(_){let e,r,s,p,l,$,o,g,m,v="This document will be completed soon with information on how to train on TPUs.",P,c,T;return l=new R({props:{title:"Training on TPUs",local:"training-on-tpus",headingTag:"h1"}}),o=new N({props:{$$slots:{default:[B]},$$scope:{ctx:_}}}),{c(){e=d("meta"),r=f(),s=d("p"),p=f(),x(l.$$.fragment),$=f(),x(o.$$.fragment),g=f(),m=d("p"),m.textContent=v,P=f(),c=d("p"),this.h()},l(t){const n=j("svelte-u9bgzb",document.head);e=h(n,"META",{name:!0,content:!0}),n.forEach(a),r=u(t),s=h(t,"P",{}),U(s).forEach(a),p=u(t),b(l.$$.fragment,t),$=u(t),b(o.$$.fragment,t),g=u(t),m=h(t,"P",{"data-svelte-h":!0}),k(m)!=="svelte-458r7d"&&(m.textContent=v),P=u(t),c=h(t,"P",{}),U(c).forEach(a),this.h()},h(){y(e,"name","hf:doc:metadata"),y(e,"content",F)},m(t,n){z(document.head,e),i(t,r,n),i(t,s,n),i(t,p,n),C(l,t,n),i(t,$,n),C(o,t,n),i(t,g,n),i(t,m,n),i(t,P,n),i(t,c,n),T=!0},p(t,[n]){const w={};n&2&&(w.$$scope={dirty:n,ctx:t}),o.$set(w)},i(t){T||(M(l.$$.fragment,t),M(o.$$.fragment,t),T=!0)},o(t){E(l.$$.fragment,t),E(o.$$.fragment,t),T=!1},d(t){t&&(a(r),a(s),a(p),a($),a(g),a(m),a(P),a(c)),a(e),H(l,t),H(o,t)}}}const F='{"title":"Training on TPUs","local":"training-on-tpus","sections":[],"depth":1}';function I(_){return S(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class V extends A{constructor(e){super(),G(this,e,I,D,L,{})}}export{V as component};
