import{s as Oe,o as Ke,n as tn}from"../chunks/scheduler.9bc65507.js";import{S as en,i as nn,g as i,s as o,u as f,m as De,A as ln,h as a,f as e,c as r,j as p,v as u,y as h,n as qe,k as s,o as c,a as l,w as m,d as w,t as M,x as v}from"../chunks/index.78c82d43.js";import{T as an}from"../chunks/Tip.87d55b76.js";import{I as Mt}from"../chunks/IconCopyLink.bedaa44d.js";import{C as vt}from"../chunks/CodeBlock.48618ec2.js";function on(Ut){let d,k=`oneccl_bindings_for_pytorch 1.12.0 prebuilt wheel does not work with PyTorch 1.12.1 (it is for PyTorch 1.12.0)
PyTorch 1.12.1 should work with oneccl_bindings_for_pytorch 1.12.100`;return{c(){d=i("p"),d.textContent=k},l(_){d=a(_,"P",{"data-svelte-h":!0}),h(d)!=="svelte-is6c7w"&&(d.textContent=k)},m(_,ht){l(_,d,ht)},p:tn,d(_){_&&e(d)}}}function rn(Ut){let d,k,_,ht,y,U,_t,N,ce,pt,me="Efficient Training on Multiple CPUs",Jt,A,we="When training on a single CPU is too slow, we can use multiple CPUs. This guide focuses on PyTorch-based DDP enabling distributed CPU training efficiently.",$t,g,J,yt,L,he,dt,Me="Intel® oneCCL Bindings for PyTorch",It,X,ve='<a href="https://github.com/oneapi-src/oneCCL" rel="nofollow">Intel® oneCCL</a> (collective communications library) is a library for efficient distributed deep learning training implementing such collectives like allreduce, allgather, alltoall. For more information on oneCCL, please refer to the <a href="https://spec.oneapi.com/versions/latest/elements/oneCCL/source/index.html" rel="nofollow">oneCCL documentation</a> and <a href="https://spec.oneapi.com/versions/latest/elements/oneCCL/source/index.html" rel="nofollow">oneCCL specification</a>.',Et,R,_e="Module <code>oneccl_bindings_for_pytorch</code> (<code>torch_ccl</code> before version 1.12)  implements PyTorch C10D ProcessGroup API and can be dynamically loaded as external ProcessGroup and only works on Linux platform now",Pt,B,ye='Check more detailed information for <a href="https://github.com/intel/torch-ccl" rel="nofollow">oneccl_bind_pt</a>.',jt,C,$,gt,Z,pe,ft,ge="Intel® oneCCL Bindings for PyTorch installation:",kt,H,Ce="Wheel files are available for the following Python versions:",Nt,S,be='<thead><tr><th align="center">Extension Version</th> <th align="center">Python 3.6</th> <th align="center">Python 3.7</th> <th align="center">Python 3.8</th> <th align="center">Python 3.9</th> <th align="center">Python 3.10</th></tr></thead> <tbody><tr><td align="center">1.13.0</td> <td align="center"></td> <td align="center">√</td> <td align="center">√</td> <td align="center">√</td> <td align="center">√</td></tr> <tr><td align="center">1.12.100</td> <td align="center"></td> <td align="center">√</td> <td align="center">√</td> <td align="center">√</td> <td align="center">√</td></tr> <tr><td align="center">1.12.0</td> <td align="center"></td> <td align="center">√</td> <td align="center">√</td> <td align="center">√</td> <td align="center">√</td></tr> <tr><td align="center">1.11.0</td> <td align="center"></td> <td align="center">√</td> <td align="center">√</td> <td align="center">√</td> <td align="center">√</td></tr> <tr><td align="center">1.10.0</td> <td align="center">√</td> <td align="center">√</td> <td align="center">√</td> <td align="center">√</td> <td align="center"></td></tr></tbody>',At,G,Lt,V,Te=`where <code>{pytorch_version}</code> should be your PyTorch version, for instance 1.13.0.
Check more approaches for <a href="https://github.com/intel/torch-ccl" rel="nofollow">oneccl_bind_pt installation</a>.
Versions of oneCCL and PyTorch must match.`,Xt,I,Rt,b,E,Ct,W,de,ut,xe="Intel® MPI library",Bt,Y,Ue="oneccl_bindings_for_pytorch is installed along with the MPI tool set. Need to source the environment before using it.",Zt,z,Je="for Intel® oneCCL >= 1.12.0",Ht,Q,St,F,$e="for Intel® oneCCL whose version < 1.12.0",Gt,D,Vt,T,P,bt,q,fe,mt,Ie="IPEX installation:",Wt,O,Ee='IPEX provides performance optimizations for CPU training with both Float32 and BFloat16, you could refer <a href="./perf_train_cpu">single CPU section</a>.',Yt,K,Pe="The following “Usage in Trainer” takes mpirun in Intel® MPI library as an example.",zt,x,j,Tt,tt,ue,wt,je="Usage in Trainer",Qt,et,ke='Let’s see an example with the <a href="https://github.com/huggingface/transformers/tree/main/examples/pytorch/question-answering" rel="nofollow">question-answering example</a>',Ft,nt,Ne="The following command enables training with 2 processes on one Xeon node, with one process running per one socket. The variables OMP_NUM_THREADS/CCL_WORKER_COUNT can be tuned for optimal performance.",Dt,lt,qt,it,Ae="The following command enables training with a total of four processes on two Xeons (node0 and node1, taking node0 as the main process), ppn (processes per node) is set to 2, with one process running per one socket. The variables OMP_NUM_THREADS/CCL_WORKER_COUNT can be tuned for optimal performance.",Ot,at,Le="In node0, you need to create a configuration file which contains the IP addresses of each node (for example hostfile) and pass that configuration file path as an argument.",Kt,ot,te,rt,Xe="Now, run the following command in node0 and <strong>4DDP</strong> will be enabled in node0 and node1 with BF16 auto mixed precision:",ee,st,ne,xt,le;return N=new Mt({}),L=new Mt({}),Z=new Mt({}),G=new vt({props:{code:"cGlwJTIwaW5zdGFsbCUyMG9uZWNjbF9iaW5kX3B0JTNEJTNEJTdCcHl0b3JjaF92ZXJzaW9uJTdEJTIwLWYlMjBodHRwcyUzQSUyRiUyRmRldmVsb3Blci5pbnRlbC5jb20lMkZpcGV4LXdobC1zdGFibGUtY3B1",highlighted:'pip install oneccl_bind_pt=={<span class="hljs-attribute">pytorch_version} -f https</span>://developer<span class="hljs-variable">.intel</span><span class="hljs-variable">.com</span>/ipex-whl-stable-cpu'}}),I=new an({props:{warning:!0,$$slots:{default:[on]},$$scope:{ctx:Ut}}}),W=new Mt({}),Q=new vt({props:{code:"b25lY2NsX2JpbmRpbmdzX2Zvcl9weXRvcmNoX3BhdGglM0QlMjQocHl0aG9uJTIwLWMlMjAlMjJmcm9tJTIwb25lY2NsX2JpbmRpbmdzX2Zvcl9weXRvcmNoJTIwaW1wb3J0JTIwY3dkJTNCJTIwcHJpbnQoY3dkKSUyMiklMEFzb3VyY2UlMjAlMjRvbmVjY2xfYmluZGluZ3NfZm9yX3B5dG9yY2hfcGF0aCUyRmVudiUyRnNldHZhcnMuc2g=",highlighted:`oneccl_bindings_for_pytorch_path=$(<span class="hljs-keyword">python</span> -c <span class="hljs-string">&quot;from oneccl_bindings_for_pytorch import cwd; print(cwd)&quot;</span>)
<span class="hljs-keyword">source</span> $oneccl_bindings_for_pytorch_path/<span class="hljs-keyword">env</span>/setvars.sh`}}),D=new vt({props:{code:"dG9yY2hfY2NsX3BhdGglM0QlMjQocHl0aG9uJTIwLWMlMjAlMjJpbXBvcnQlMjB0b3JjaCUzQiUyMGltcG9ydCUyMHRvcmNoX2NjbCUzQiUyMGltcG9ydCUyMG9zJTNCJTIwJTIwcHJpbnQob3MucGF0aC5hYnNwYXRoKG9zLnBhdGguZGlybmFtZSh0b3JjaF9jY2wuX19maWxlX18pKSklMjIpJTBBc291cmNlJTIwJTI0dG9yY2hfY2NsX3BhdGglMkZlbnYlMkZzZXR2YXJzLnNo",highlighted:`torch_ccl_path=$(<span class="hljs-keyword">python</span> -c <span class="hljs-string">&quot;import torch; import torch_ccl; import os;  print(os.path.abspath(os.path.dirname(torch_ccl.__file__)))&quot;</span>)
<span class="hljs-keyword">source</span> $torch_ccl_path/<span class="hljs-keyword">env</span>/setvars.sh`}}),q=new Mt({}),tt=new Mt({}),lt=new vt({props:{code:"JTIwZXhwb3J0JTIwQ0NMX1dPUktFUl9DT1VOVCUzRDElMEElMjBleHBvcnQlMjBNQVNURVJfQUREUiUzRDEyNy4wLjAuMSUwQSUyMG1waXJ1biUyMC1uJTIwMiUyMC1nZW52JTIwT01QX05VTV9USFJFQURTJTNEMjMlMjAlNUMlMEElMjBweXRob24zJTIwcnVuX3FhLnB5JTIwJTVDJTBBJTIwLS1tb2RlbF9uYW1lX29yX3BhdGglMjBiZXJ0LWxhcmdlLXVuY2FzZWQlMjAlNUMlMEElMjAtLWRhdGFzZXRfbmFtZSUyMHNxdWFkJTIwJTVDJTBBJTIwLS1kb190cmFpbiUyMCU1QyUwQSUyMC0tZG9fZXZhbCUyMCU1QyUwQSUyMC0tcGVyX2RldmljZV90cmFpbl9iYXRjaF9zaXplJTIwMTIlMjAlMjAlNUMlMEElMjAtLWxlYXJuaW5nX3JhdGUlMjAzZS01JTIwJTIwJTVDJTBBJTIwLS1udW1fdHJhaW5fZXBvY2hzJTIwMiUyMCUyMCU1QyUwQSUyMC0tbWF4X3NlcV9sZW5ndGglMjAzODQlMjAlNUMlMEElMjAtLWRvY19zdHJpZGUlMjAxMjglMjAlMjAlNUMlMEElMjAtLW91dHB1dF9kaXIlMjAlMkZ0bXAlMkZkZWJ1Z19zcXVhZCUyRiUyMCU1QyUwQSUyMC0tbm9fY3VkYSUyMCU1QyUwQSUyMC0tZGRwX2JhY2tlbmQlMjBjY2wlMjAlNUMlMEElMjAtLXVzZV9pcGV4",highlighted:` export CCL_WORKER_COUNT=1
 export MASTER_ADDR=127.0.0.1
 mpirun -n 2 -genv OMP_NUM_THREADS=23 \\
 python3 run_qa.py \\
 --model_name_or_path bert-large-uncased \\
 --dataset_name squad \\
 --do_train \\
 --do_eval \\
 --per_device_train_batch_size 12  \\
 --learning_rate 3e-5  \\
 --num_train_epochs 2  \\
 --max_seq_length 384 \\
 --doc_stride 128  \\
 --output_dir /tmp/debug_squad/ \\
 --no_cuda \\
 --ddp_backend ccl \\
 --use_ipex`}}),ot=new vt({props:{code:"JTIwY2F0JTIwaG9zdGZpbGUlMEElMjB4eHgueHh4Lnh4eC54eHglMjAlMjNub2RlMCUyMGlwJTBBJTIweHh4Lnh4eC54eHgueHh4JTIwJTIzbm9kZTElMjBpcA==",highlighted:` cat hostfile
 xxx.xxx.xxx.xxx #node0 ip
 xxx.xxx.xxx.xxx #node1 ip`}}),st=new vt({props:{code:"JTIwZXhwb3J0JTIwQ0NMX1dPUktFUl9DT1VOVCUzRDElMEElMjBleHBvcnQlMjBNQVNURVJfQUREUiUzRHh4eC54eHgueHh4Lnh4eCUyMCUyM25vZGUwJTIwaXAlMEElMjBtcGlydW4lMjAtZiUyMGhvc3RmaWxlJTIwLW4lMjA0JTIwLXBwbiUyMDIlMjAlNUMlMEElMjAtZ2VudiUyME9NUF9OVU1fVEhSRUFEUyUzRDIzJTIwJTVDJTBBJTIwcHl0aG9uMyUyMHJ1bl9xYS5weSUyMCU1QyUwQSUyMC0tbW9kZWxfbmFtZV9vcl9wYXRoJTIwYmVydC1sYXJnZS11bmNhc2VkJTIwJTVDJTBBJTIwLS1kYXRhc2V0X25hbWUlMjBzcXVhZCUyMCU1QyUwQSUyMC0tZG9fdHJhaW4lMjAlNUMlMEElMjAtLWRvX2V2YWwlMjAlNUMlMEElMjAtLXBlcl9kZXZpY2VfdHJhaW5fYmF0Y2hfc2l6ZSUyMDEyJTIwJTIwJTVDJTBBJTIwLS1sZWFybmluZ19yYXRlJTIwM2UtNSUyMCUyMCU1QyUwQSUyMC0tbnVtX3RyYWluX2Vwb2NocyUyMDIlMjAlMjAlNUMlMEElMjAtLW1heF9zZXFfbGVuZ3RoJTIwMzg0JTIwJTVDJTBBJTIwLS1kb2Nfc3RyaWRlJTIwMTI4JTIwJTIwJTVDJTBBJTIwLS1vdXRwdXRfZGlyJTIwJTJGdG1wJTJGZGVidWdfc3F1YWQlMkYlMjAlNUMlMEElMjAtLW5vX2N1ZGElMjAlNUMlMEElMjAtLWRkcF9iYWNrZW5kJTIwY2NsJTIwJTVDJTBBJTIwLS11c2VfaXBleCUyMCU1QyUwQSUyMC0tYmYxNg==",highlighted:` export CCL_WORKER_COUNT=1
 export MASTER_ADDR=xxx.xxx.xxx.xxx #node0 ip
 mpirun -f hostfile -n 4 -ppn 2 \\
 -genv OMP_NUM_THREADS=23 \\
 python3 run_qa.py \\
 --model_name_or_path bert-large-uncased \\
 --dataset_name squad \\
 --do_train \\
 --do_eval \\
 --per_device_train_batch_size 12  \\
 --learning_rate 3e-5  \\
 --num_train_epochs 2  \\
 --max_seq_length 384 \\
 --doc_stride 128  \\
 --output_dir /tmp/debug_squad/ \\
 --no_cuda \\
 --ddp_backend ccl \\
 --use_ipex \\
 --bf16`}}),{c(){d=i("meta"),k=o(),_=i("p"),ht=o(),y=i("h1"),U=i("a"),_t=i("span"),f(N.$$.fragment),ce=o(),pt=i("span"),pt.textContent=me,Jt=o(),A=i("p"),A.textContent=we,$t=o(),g=i("h2"),J=i("a"),yt=i("span"),f(L.$$.fragment),he=o(),dt=i("span"),dt.textContent=Me,It=o(),X=i("p"),X.innerHTML=ve,Et=o(),R=i("p"),R.innerHTML=_e,Pt=o(),B=i("p"),B.innerHTML=ye,jt=o(),C=i("h3"),$=i("a"),gt=i("span"),f(Z.$$.fragment),pe=o(),ft=i("span"),ft.textContent=ge,kt=o(),H=i("p"),H.textContent=Ce,Nt=o(),S=i("table"),S.innerHTML=be,At=o(),f(G.$$.fragment),Lt=o(),V=i("p"),V.innerHTML=Te,Xt=o(),f(I.$$.fragment),Rt=o(),b=i("h2"),E=i("a"),Ct=i("span"),f(W.$$.fragment),de=o(),ut=i("span"),ut.textContent=xe,Bt=De(`

Use this standards-based MPI implementation to deliver flexible, efficient, scalable cluster messaging on Intel® architecture. This component is part of the Intel® oneAPI HPC Toolkit.
`),Y=i("p"),Y.textContent=Ue,Zt=o(),z=i("p"),z.textContent=Je,Ht=o(),f(Q.$$.fragment),St=o(),F=i("p"),F.textContent=$e,Gt=o(),f(D.$$.fragment),Vt=o(),T=i("h4"),P=i("a"),bt=i("span"),f(q.$$.fragment),fe=o(),mt=i("span"),mt.textContent=Ie,Wt=o(),O=i("p"),O.innerHTML=Ee,Yt=o(),K=i("p"),K.textContent=Pe,zt=o(),x=i("h2"),j=i("a"),Tt=i("span"),f(tt.$$.fragment),ue=o(),wt=i("span"),wt.textContent=je,Qt=De(`

To enable multi CPU distributed training in the Trainer with the ccl backend, users should add **\`--ddp_backend ccl\`** in the command arguments.
`),et=i("p"),et.innerHTML=ke,Ft=o(),nt=i("p"),nt.textContent=Ne,Dt=o(),f(lt.$$.fragment),qt=o(),it=i("p"),it.textContent=Ae,Ot=o(),at=i("p"),at.textContent=Le,Kt=o(),f(ot.$$.fragment),te=o(),rt=i("p"),rt.innerHTML=Xe,ee=o(),f(st.$$.fragment),ne=o(),xt=i("p"),this.h()},l(t){const n=ln("svelte-1phssyn",document.head);d=a(n,"META",{name:!0,content:!0}),n.forEach(e),k=r(t),_=a(t,"P",{}),p(_).forEach(e),ht=r(t),y=a(t,"H1",{class:!0});var ct=p(y);U=a(ct,"A",{id:!0,class:!0,href:!0});var Re=p(U);_t=a(Re,"SPAN",{});var Be=p(_t);u(N.$$.fragment,Be),Be.forEach(e),Re.forEach(e),ce=r(ct),pt=a(ct,"SPAN",{"data-svelte-h":!0}),h(pt)!=="svelte-p1zvnk"&&(pt.textContent=me),ct.forEach(e),Jt=r(t),A=a(t,"P",{"data-svelte-h":!0}),h(A)!=="svelte-v5mdvi"&&(A.textContent=we),$t=r(t),g=a(t,"H2",{class:!0});var ie=p(g);J=a(ie,"A",{id:!0,class:!0,href:!0});var Ze=p(J);yt=a(Ze,"SPAN",{});var He=p(yt);u(L.$$.fragment,He),He.forEach(e),Ze.forEach(e),he=r(ie),dt=a(ie,"SPAN",{"data-svelte-h":!0}),h(dt)!=="svelte-14guey3"&&(dt.textContent=Me),ie.forEach(e),It=r(t),X=a(t,"P",{"data-svelte-h":!0}),h(X)!=="svelte-bivv3w"&&(X.innerHTML=ve),Et=r(t),R=a(t,"P",{"data-svelte-h":!0}),h(R)!=="svelte-5o21pv"&&(R.innerHTML=_e),Pt=r(t),B=a(t,"P",{"data-svelte-h":!0}),h(B)!=="svelte-1qrzsug"&&(B.innerHTML=ye),jt=r(t),C=a(t,"H3",{class:!0});var ae=p(C);$=a(ae,"A",{id:!0,class:!0,href:!0});var Se=p($);gt=a(Se,"SPAN",{});var Ge=p(gt);u(Z.$$.fragment,Ge),Ge.forEach(e),Se.forEach(e),pe=r(ae),ft=a(ae,"SPAN",{"data-svelte-h":!0}),h(ft)!=="svelte-4pjehh"&&(ft.textContent=ge),ae.forEach(e),kt=r(t),H=a(t,"P",{"data-svelte-h":!0}),h(H)!=="svelte-7vxiqb"&&(H.textContent=Ce),Nt=r(t),S=a(t,"TABLE",{"data-svelte-h":!0}),h(S)!=="svelte-1yk106u"&&(S.innerHTML=be),At=r(t),u(G.$$.fragment,t),Lt=r(t),V=a(t,"P",{"data-svelte-h":!0}),h(V)!=="svelte-gwf101"&&(V.innerHTML=Te),Xt=r(t),u(I.$$.fragment,t),Rt=r(t),b=a(t,"H2",{class:!0});var oe=p(b);E=a(oe,"A",{id:!0,class:!0,href:!0});var Ve=p(E);Ct=a(Ve,"SPAN",{});var We=p(Ct);u(W.$$.fragment,We),We.forEach(e),Ve.forEach(e),de=r(oe),ut=a(oe,"SPAN",{"data-svelte-h":!0}),h(ut)!=="svelte-3o31km"&&(ut.textContent=xe),oe.forEach(e),Bt=qe(t,`

Use this standards-based MPI implementation to deliver flexible, efficient, scalable cluster messaging on Intel® architecture. This component is part of the Intel® oneAPI HPC Toolkit.
`),Y=a(t,"P",{"data-svelte-h":!0}),h(Y)!=="svelte-1nteuhh"&&(Y.textContent=Ue),Zt=r(t),z=a(t,"P",{"data-svelte-h":!0}),h(z)!=="svelte-324hiy"&&(z.textContent=Je),Ht=r(t),u(Q.$$.fragment,t),St=r(t),F=a(t,"P",{"data-svelte-h":!0}),h(F)!=="svelte-1x3l803"&&(F.textContent=$e),Gt=r(t),u(D.$$.fragment,t),Vt=r(t),T=a(t,"H4",{class:!0});var re=p(T);P=a(re,"A",{id:!0,class:!0,href:!0});var Ye=p(P);bt=a(Ye,"SPAN",{});var ze=p(bt);u(q.$$.fragment,ze),ze.forEach(e),Ye.forEach(e),fe=r(re),mt=a(re,"SPAN",{"data-svelte-h":!0}),h(mt)!=="svelte-utfx4z"&&(mt.textContent=Ie),re.forEach(e),Wt=r(t),O=a(t,"P",{"data-svelte-h":!0}),h(O)!=="svelte-r9c6eh"&&(O.innerHTML=Ee),Yt=r(t),K=a(t,"P",{"data-svelte-h":!0}),h(K)!=="svelte-1w8k00"&&(K.textContent=Pe),zt=r(t),x=a(t,"H2",{class:!0});var se=p(x);j=a(se,"A",{id:!0,class:!0,href:!0});var Qe=p(j);Tt=a(Qe,"SPAN",{});var Fe=p(Tt);u(tt.$$.fragment,Fe),Fe.forEach(e),Qe.forEach(e),ue=r(se),wt=a(se,"SPAN",{"data-svelte-h":!0}),h(wt)!=="svelte-czcr4o"&&(wt.textContent=je),se.forEach(e),Qt=qe(t,`

To enable multi CPU distributed training in the Trainer with the ccl backend, users should add **\`--ddp_backend ccl\`** in the command arguments.
`),et=a(t,"P",{"data-svelte-h":!0}),h(et)!=="svelte-kvcz06"&&(et.innerHTML=ke),Ft=r(t),nt=a(t,"P",{"data-svelte-h":!0}),h(nt)!=="svelte-m6wzyw"&&(nt.textContent=Ne),Dt=r(t),u(lt.$$.fragment,t),qt=r(t),it=a(t,"P",{"data-svelte-h":!0}),h(it)!=="svelte-cyuir"&&(it.textContent=Ae),Ot=r(t),at=a(t,"P",{"data-svelte-h":!0}),h(at)!=="svelte-dlvz8o"&&(at.textContent=Le),Kt=r(t),u(ot.$$.fragment,t),te=r(t),rt=a(t,"P",{"data-svelte-h":!0}),h(rt)!=="svelte-1vsu09v"&&(rt.innerHTML=Xe),ee=r(t),u(st.$$.fragment,t),ne=r(t),xt=a(t,"P",{}),p(xt).forEach(e),this.h()},h(){s(d,"name","hf:doc:metadata"),s(d,"content",JSON.stringify(sn)),s(U,"id","efficient-training-on-multiple-cpus"),s(U,"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"),s(U,"href","#efficient-training-on-multiple-cpus"),s(y,"class","relative group"),s(J,"id","intel-oneccl-bindings-for-pytorch"),s(J,"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"),s(J,"href","#intel-oneccl-bindings-for-pytorch"),s(g,"class","relative group"),s($,"id","intel-oneccl-bindings-for-pytorch-installation"),s($,"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"),s($,"href","#intel-oneccl-bindings-for-pytorch-installation"),s(C,"class","relative group"),s(E,"id","intel-mpi-library"),s(E,"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"),s(E,"href","#intel-mpi-library"),s(b,"class","relative group"),s(P,"id","ipex-installation"),s(P,"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"),s(P,"href","#ipex-installation"),s(T,"class","relative group"),s(j,"id","usage-in-trainer"),s(j,"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"),s(j,"href","#usage-in-trainer"),s(x,"class","relative group")},m(t,n){c(document.head,d),l(t,k,n),l(t,_,n),l(t,ht,n),l(t,y,n),c(y,U),c(U,_t),m(N,_t,null),c(y,ce),c(y,pt),l(t,Jt,n),l(t,A,n),l(t,$t,n),l(t,g,n),c(g,J),c(J,yt),m(L,yt,null),c(g,he),c(g,dt),l(t,It,n),l(t,X,n),l(t,Et,n),l(t,R,n),l(t,Pt,n),l(t,B,n),l(t,jt,n),l(t,C,n),c(C,$),c($,gt),m(Z,gt,null),c(C,pe),c(C,ft),l(t,kt,n),l(t,H,n),l(t,Nt,n),l(t,S,n),l(t,At,n),m(G,t,n),l(t,Lt,n),l(t,V,n),l(t,Xt,n),m(I,t,n),l(t,Rt,n),l(t,b,n),c(b,E),c(E,Ct),m(W,Ct,null),c(b,de),c(b,ut),l(t,Bt,n),l(t,Y,n),l(t,Zt,n),l(t,z,n),l(t,Ht,n),m(Q,t,n),l(t,St,n),l(t,F,n),l(t,Gt,n),m(D,t,n),l(t,Vt,n),l(t,T,n),c(T,P),c(P,bt),m(q,bt,null),c(T,fe),c(T,mt),l(t,Wt,n),l(t,O,n),l(t,Yt,n),l(t,K,n),l(t,zt,n),l(t,x,n),c(x,j),c(j,Tt),m(tt,Tt,null),c(x,ue),c(x,wt),l(t,Qt,n),l(t,et,n),l(t,Ft,n),l(t,nt,n),l(t,Dt,n),m(lt,t,n),l(t,qt,n),l(t,it,n),l(t,Ot,n),l(t,at,n),l(t,Kt,n),m(ot,t,n),l(t,te,n),l(t,rt,n),l(t,ee,n),m(st,t,n),l(t,ne,n),l(t,xt,n),le=!0},p(t,[n]){const ct={};n&2&&(ct.$$scope={dirty:n,ctx:t}),I.$set(ct)},i(t){le||(w(N.$$.fragment,t),w(L.$$.fragment,t),w(Z.$$.fragment,t),w(G.$$.fragment,t),w(I.$$.fragment,t),w(W.$$.fragment,t),w(Q.$$.fragment,t),w(D.$$.fragment,t),w(q.$$.fragment,t),w(tt.$$.fragment,t),w(lt.$$.fragment,t),w(ot.$$.fragment,t),w(st.$$.fragment,t),le=!0)},o(t){M(N.$$.fragment,t),M(L.$$.fragment,t),M(Z.$$.fragment,t),M(G.$$.fragment,t),M(I.$$.fragment,t),M(W.$$.fragment,t),M(Q.$$.fragment,t),M(D.$$.fragment,t),M(q.$$.fragment,t),M(tt.$$.fragment,t),M(lt.$$.fragment,t),M(ot.$$.fragment,t),M(st.$$.fragment,t),le=!1},d(t){t&&(e(k),e(_),e(ht),e(y),e(Jt),e(A),e($t),e(g),e(It),e(X),e(Et),e(R),e(Pt),e(B),e(jt),e(C),e(kt),e(H),e(Nt),e(S),e(At),e(Lt),e(V),e(Xt),e(Rt),e(b),e(Bt),e(Y),e(Zt),e(z),e(Ht),e(St),e(F),e(Gt),e(Vt),e(T),e(Wt),e(O),e(Yt),e(K),e(zt),e(x),e(Qt),e(et),e(Ft),e(nt),e(Dt),e(qt),e(it),e(Ot),e(at),e(Kt),e(te),e(rt),e(ee),e(ne),e(xt)),e(d),v(N),v(L),v(Z),v(G,t),v(I,t),v(W),v(Q,t),v(D,t),v(q),v(tt),v(lt,t),v(ot,t),v(st,t)}}}const sn={local:"efficient-training-on-multiple-cpus",sections:[{local:"intel-oneccl-bindings-for-pytorch",sections:[{local:"intel-oneccl-bindings-for-pytorch-installation",title:"Intel® oneCCL Bindings for PyTorch installation:"}],title:"Intel® oneCCL Bindings for PyTorch"},{local:"intel-mpi-library",sections:[{local:"ipex-installation",title:"IPEX installation:"}],title:"Intel® MPI library"},{local:"usage-in-trainer",title:"Usage in Trainer"}],title:"Efficient Training on Multiple CPUs"};function cn(Ut){return Ke(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class mn extends en{constructor(d){super(),nn(this,d,cn,rn,Oe,{})}}export{mn as component};
