import{s as j,o as z,n as A}from"../chunks/scheduler.9bc65507.js";import{S as k,i as q,g as _,s as u,r as x,A as O,h,f as a,c,j as G,u as b,x as S,k as L,y as R,a as r,v as E,d as U,t as y,w as C}from"../chunks/index.707bf1b6.js";import{T as B}from"../chunks/Tip.c2ecdbf4.js";import{H as D,E as F}from"../chunks/EditOnGithub.922df6ba.js";function I(d){let n,o='注意: <a href="perf_train_gpu_one">シングルGPUセクション</a>で紹介されているほとんどの戦略（混合精度トレーニングや勾配蓄積など）および<a href="perf_train_gpu_many">マルチGPUセクション</a>は一般的なモデルのトレーニングに適用できますので、このセクションに入る前にそれを確認してください。';return{c(){n=_("p"),n.innerHTML=o},l(s){n=h(s,"P",{"data-svelte-h":!0}),S(n)!=="svelte-1od8uu0"&&(n.innerHTML=o)},m(s,l){r(s,n,l)},p:A,d(s){s&&a(n)}}}function J(d){let n,o,s,l,m,g,i,P,p,H="このドキュメントは、TPUでのトレーニング方法に関する情報をまもなく追加いたします。",T,f,v,$,w;return m=new D({props:{title:"Training on TPUs",local:"training-on-tpus",headingTag:"h1"}}),i=new B({props:{$$slots:{default:[I]},$$scope:{ctx:d}}}),f=new F({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/ja/perf_train_tpu.md"}}),{c(){n=_("meta"),o=u(),s=_("p"),l=u(),x(m.$$.fragment),g=u(),x(i.$$.fragment),P=u(),p=_("p"),p.textContent=H,T=u(),x(f.$$.fragment),v=u(),$=_("p"),this.h()},l(t){const e=O("svelte-u9bgzb",document.head);n=h(e,"META",{name:!0,content:!0}),e.forEach(a),o=c(t),s=h(t,"P",{}),G(s).forEach(a),l=c(t),b(m.$$.fragment,t),g=c(t),b(i.$$.fragment,t),P=c(t),p=h(t,"P",{"data-svelte-h":!0}),S(p)!=="svelte-uyfz5e"&&(p.textContent=H),T=c(t),b(f.$$.fragment,t),v=c(t),$=h(t,"P",{}),G($).forEach(a),this.h()},h(){L(n,"name","hf:doc:metadata"),L(n,"content",K)},m(t,e){R(document.head,n),r(t,o,e),r(t,s,e),r(t,l,e),E(m,t,e),r(t,g,e),E(i,t,e),r(t,P,e),r(t,p,e),r(t,T,e),E(f,t,e),r(t,v,e),r(t,$,e),w=!0},p(t,[e]){const M={};e&2&&(M.$$scope={dirty:e,ctx:t}),i.$set(M)},i(t){w||(U(m.$$.fragment,t),U(i.$$.fragment,t),U(f.$$.fragment,t),w=!0)},o(t){y(m.$$.fragment,t),y(i.$$.fragment,t),y(f.$$.fragment,t),w=!1},d(t){t&&(a(o),a(s),a(l),a(g),a(P),a(p),a(T),a(v),a($)),a(n),C(m,t),C(i,t),C(f,t)}}}const K='{"title":"Training on TPUs","local":"training-on-tpus","sections":[],"depth":1}';function N(d){return z(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Y extends k{constructor(n){super(),q(this,n,N,J,j,{})}}export{Y as component};
