import{s as Il,o as fl,n as dl}from"../chunks/scheduler.9bc65507.js";import{S as bl,i as Al,g as M,s as n,r as o,A as gl,h as i,f as l,c as a,j as Jl,u as y,x as p,k as ml,y as vl,a as s,v as U,d as c,t as T,w}from"../chunks/index.707bf1b6.js";import{T as ul}from"../chunks/Tip.c2ecdbf4.js";import{C}from"../chunks/CodeBlock.54a9f38d.js";import{H as h,E as $l}from"../chunks/EditOnGithub.922df6ba.js";function _l(gt){let r,J=`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(){r=M("p"),r.textContent=J},l(j){r=i(j,"P",{"data-svelte-h":!0}),p(r)!=="svelte-is6c7w"&&(r.textContent=J)},m(j,m){s(j,r,m)},p:dl,d(j){j&&l(r)}}}function Bl(gt){let r,J=`The CPU resource limits/requests in the yaml are defined in <a href="https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu" rel="nofollow">cpu units</a>
where 1 CPU unit is equivalent to 1 physical CPU core or 1 virtual core (depending on whether the node is a physical
host or a VM). The amount of CPU and memory limits/requests defined in the yaml should be less than the amount of
available CPU/memory capacity on a single machine. It is usually a good idea to not use the entire machine’s capacity in
order to leave some resources for the kubelet and OS. In order to get <a href="https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#guaranteed" rel="nofollow">“guaranteed”</a> <a href="https://kubernetes.io/docs/tasks/configure-pod-container/quality-service-pod/" rel="nofollow">quality of service</a> for the worker pods,
set the same CPU and memory amounts for both the resource limits and requests.`;return{c(){r=M("p"),r.innerHTML=J},l(j){r=i(j,"P",{"data-svelte-h":!0}),p(r)!=="svelte-1nu8lil"&&(r.innerHTML=J)},m(j,m){s(j,r,m)},p:dl,d(j){j&&l(r)}}}function xl(gt){let r,J,j,m,I,$t,f,Re=`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 on <a href="#usage-in-trainer">bare metal</a> and <a href="#usage-with-kubernetes">Kubernetes</a>.`,_t,b,Bt,A,Ge='<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>.',xt,g,ke="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",St,v,We='Check more detailed information for <a href="https://github.com/intel/torch-ccl" rel="nofollow">oneccl_bind_pt</a>.',Zt,$,Et,_,Ne="Wheel files are available for the following Python versions:",Rt,B,Le='<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">2.1.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">2.0.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.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></tbody>',Gt,x,Ve="Please run <code>pip list | grep torch</code> to get your <code>pytorch_version</code>.",kt,S,Wt,Z,Pe=`where <code>{pytorch_version}</code> should be your PyTorch version, for instance 2.1.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.`,Nt,u,Lt,E,Vt,R,Xe="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.",Pt,G,He="oneccl_bindings_for_pytorch is installed along with the MPI tool set. Need to source the environment before using it.",Xt,k,Qe="for Intel® oneCCL >= 1.12.0",Ht,W,Qt,N,Fe="for Intel® oneCCL whose version < 1.12.0",Ft,L,Yt,V,zt,P,Ye='Intel Extension for PyTorch (IPEX) provides performance optimizations for CPU training with both Float32 and BFloat16 (refer to the <a href="./perf_train_cpu">single CPU section</a> to learn more).',qt,X,ze="The following “Usage in Trainer” takes mpirun in Intel® MPI library as an example.",Dt,H,Ot,Q,qe="To enable multi CPU distributed training in the Trainer with the ccl backend, users should add <strong><code>--ddp_backend ccl</code></strong> in the command arguments.",Kt,F,De='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>',te,Y,Oe="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.",ee,z,le,q,Ke="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.",se,D,tl="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.",ne,O,ae,K,el="Now, run the following command in node0 and <strong>4DDP</strong> will be enabled in node0 and node1 with BF16 auto mixed precision:",Me,tt,ie,et,pe,lt,ll=`The same distributed training job from the previous section can be deployed to a Kubernetes cluster using the
<a href="https://www.kubeflow.org/docs/components/training/pytorch/" rel="nofollow">Kubeflow PyTorchJob training operator</a>.`,re,st,oe,nt,sl="This example assumes that you have:",ye,at,nl=`<li>Access to a Kubernetes cluster with <a href="https://www.kubeflow.org/docs/started/installing-kubeflow/" rel="nofollow">Kubeflow installed</a></li> <li><a href="https://kubernetes.io/docs/tasks/tools/" rel="nofollow"><code>kubectl</code></a> installed and configured to access the Kubernetes cluster</li> <li>A <a href="https://kubernetes.io/docs/concepts/storage/persistent-volumes/" rel="nofollow">Persistent Volume Claim (PVC)</a> that can be used
to store datasets and model files. There are multiple options for setting up the PVC including using an NFS
<a href="https://kubernetes.io/docs/concepts/storage/storage-classes/" rel="nofollow">storage class</a> or a cloud storage bucket.</li> <li>A Docker container that includes your model training script and all the dependencies needed to run the script. For
distributed CPU training jobs, this typically includes PyTorch, Transformers, Intel Extension for PyTorch, Intel
oneCCL Bindings for PyTorch, and OpenSSH to communicate between the containers.</li>`,Ue,Mt,al=`The snippet below is an example of a Dockerfile that uses a base image that supports distributed CPU training and then
extracts a Transformers release to the <code>/workspace</code> directory, so that the example scripts are included in the image:`,ce,it,Te,pt,Ml=`The image needs to be built and copied to the cluster’s nodes or pushed to a container registry prior to deploying the
PyTorchJob to the cluster.`,we,rt,je,ot,il=`The <a href="https://www.kubeflow.org/docs/components/training/pytorch/" rel="nofollow">Kubeflow PyTorchJob</a> is used to run the distributed
training job on the cluster. The yaml file for the PyTorchJob defines parameters such as:`,Ce,yt,pl="<li>The name of the PyTorchJob</li> <li>The number of replicas (workers)</li> <li>The python script and it’s parameters that will be used to run the training job</li> <li>The types of resources (node selector, memory, and CPU) needed for each worker</li> <li>The image/tag for the Docker container to use</li> <li>Environment variables</li> <li>A volume mount for the PVC</li>",he,Ut,rl=`The volume mount defines a path where the PVC will be mounted in the container for each worker pod. This location can be
used for the dataset, checkpoint files, and the saved model after training completes.`,Je,ct,ol=`The snippet below is an example of a yaml file for a PyTorchJob with 4 workers running the
<a href="https://github.com/huggingface/transformers/tree/main/examples/pytorch/question-answering" rel="nofollow">question-answering example</a>.`,me,Tt,ue,wt,yl="To run this example, update the yaml based on your training script and the nodes in your cluster.",de,d,Ie,jt,fe,Ct,Ul=`After the PyTorchJob spec has been updated with values appropriate for your cluster and training job, it can be deployed
to the cluster using:`,be,ht,Ae,Jt,cl=`The <code>kubectl get pods -n kubeflow</code> command can then be used to list the pods in the <code>kubeflow</code> namespace. You should see
the worker pods for the PyTorchJob that was just deployed. At first, they will probably have a status of “Pending” as
the containers get pulled and created, then the status should change to “Running”.`,ge,mt,ve,ut,Tl="The logs for worker can be viewed using <code>kubectl logs -n kubeflow &lt;pod name&gt;</code>. Add <code>-f</code> to stream the logs, for example:",$e,dt,_e,It,wl=`After the training job completes, the trained model can be copied from the PVC or storage location. When you are done
with the job, the PyTorchJob resource can be deleted from the cluster using <code>kubectl delete -f pytorchjob.yaml</code>.`,Be,ft,xe,bt,jl=`This guide covered running distributed PyTorch training jobs using multiple CPUs on bare metal and on a Kubernetes
cluster. Both cases utilize Intel Extension for PyTorch and Intel oneCCL Bindings for PyTorch for optimal training
performance, and can be used as a template to run your own workload on multiple nodes.`,Se,At,Ze,vt,Ee;return I=new h({props:{title:"Efficient Training on Multiple CPUs",local:"efficient-training-on-multiple-cpus",headingTag:"h1"}}),b=new h({props:{title:"Intel® oneCCL Bindings for PyTorch",local:"intel-oneccl-bindings-for-pytorch",headingTag:"h2"}}),$=new h({props:{title:"Intel® oneCCL Bindings for PyTorch installation",local:"intel-oneccl-bindings-for-pytorch-installation",headingTag:"h3"}}),S=new C({props:{code:"cGlwJTIwaW5zdGFsbCUyMG9uZWNjbF9iaW5kX3B0JTNEJTNEJTdCcHl0b3JjaF92ZXJzaW9uJTdEJTIwLWYlMjBodHRwcyUzQSUyRiUyRmRldmVsb3Blci5pbnRlbC5jb20lMkZpcGV4LXdobC1zdGFibGUtY3B1",highlighted:"pip install oneccl_bind_pt=={pytorch_version} -f https://developer.intel.com/ipex-whl-stable-cpu",wrap:!1}}),u=new ul({props:{warning:!0,$$slots:{default:[_l]},$$scope:{ctx:gt}}}),E=new h({props:{title:"Intel® MPI library",local:"intel-mpi-library",headingTag:"h2"}}),W=new C({props:{code:"b25lY2NsX2JpbmRpbmdzX2Zvcl9weXRvcmNoX3BhdGglM0QlMjQocHl0aG9uJTIwLWMlMjAlMjJmcm9tJTIwb25lY2NsX2JpbmRpbmdzX2Zvcl9weXRvcmNoJTIwaW1wb3J0JTIwY3dkJTNCJTIwcHJpbnQoY3dkKSUyMiklMEFzb3VyY2UlMjAlMjRvbmVjY2xfYmluZGluZ3NfZm9yX3B5dG9yY2hfcGF0aCUyRmVudiUyRnNldHZhcnMuc2g=",highlighted:`oneccl_bindings_for_pytorch_path=$(python -c <span class="hljs-string">&quot;from oneccl_bindings_for_pytorch import cwd; print(cwd)&quot;</span>)
<span class="hljs-built_in">source</span> <span class="hljs-variable">$oneccl_bindings_for_pytorch_path</span>/env/setvars.sh`,wrap:!1}}),L=new C({props:{code:"dG9yY2hfY2NsX3BhdGglM0QlMjQocHl0aG9uJTIwLWMlMjAlMjJpbXBvcnQlMjB0b3JjaCUzQiUyMGltcG9ydCUyMHRvcmNoX2NjbCUzQiUyMGltcG9ydCUyMG9zJTNCJTIwJTIwcHJpbnQob3MucGF0aC5hYnNwYXRoKG9zLnBhdGguZGlybmFtZSh0b3JjaF9jY2wuX19maWxlX18pKSklMjIpJTBBc291cmNlJTIwJTI0dG9yY2hfY2NsX3BhdGglMkZlbnYlMkZzZXR2YXJzLnNo",highlighted:`torch_ccl_path=$(python -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-built_in">source</span> <span class="hljs-variable">$torch_ccl_path</span>/env/setvars.sh`,wrap:!1}}),V=new h({props:{title:"Intel® Extension for PyTorch installation",local:"intel-extension-for-pytorch-installation",headingTag:"h4"}}),H=new h({props:{title:"Usage in Trainer",local:"usage-in-trainer",headingTag:"h2"}}),z=new C({props:{code:"JTIwZXhwb3J0JTIwQ0NMX1dPUktFUl9DT1VOVCUzRDElMEElMjBleHBvcnQlMjBNQVNURVJfQUREUiUzRDEyNy4wLjAuMSUwQSUyMG1waXJ1biUyMC1uJTIwMiUyMC1nZW52JTIwT01QX05VTV9USFJFQURTJTNEMjMlMjAlNUMlMEElMjBweXRob24zJTIwcnVuX3FhLnB5JTIwJTVDJTBBJTIwLS1tb2RlbF9uYW1lX29yX3BhdGglMjBnb29nbGUtYmVydCUyRmJlcnQtbGFyZ2UtdW5jYXNlZCUyMCU1QyUwQSUyMC0tZGF0YXNldF9uYW1lJTIwc3F1YWQlMjAlNUMlMEElMjAtLWRvX3RyYWluJTIwJTVDJTBBJTIwLS1kb19ldmFsJTIwJTVDJTBBJTIwLS1wZXJfZGV2aWNlX3RyYWluX2JhdGNoX3NpemUlMjAxMiUyMCUyMCU1QyUwQSUyMC0tbGVhcm5pbmdfcmF0ZSUyMDNlLTUlMjAlMjAlNUMlMEElMjAtLW51bV90cmFpbl9lcG9jaHMlMjAyJTIwJTIwJTVDJTBBJTIwLS1tYXhfc2VxX2xlbmd0aCUyMDM4NCUyMCU1QyUwQSUyMC0tZG9jX3N0cmlkZSUyMDEyOCUyMCUyMCU1QyUwQSUyMC0tb3V0cHV0X2RpciUyMCUyRnRtcCUyRmRlYnVnX3NxdWFkJTJGJTIwJTVDJTBBJTIwLS1ub19jdWRhJTIwJTVDJTBBJTIwLS1kZHBfYmFja2VuZCUyMGNjbCUyMCU1QyUwQSUyMC0tdXNlX2lwZXg=",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 google-bert/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`,wrap:!1}}),O=new C({props:{code:"JTIwY2F0JTIwaG9zdGZpbGUlMEElMjB4eHgueHh4Lnh4eC54eHglMjAlMjNub2RlMCUyMGlwJTBBJTIweHh4Lnh4eC54eHgueHh4JTIwJTIzbm9kZTElMjBpcA==",highlighted:` cat hostfile
 xxx.xxx.xxx.xxx #node0 ip
 xxx.xxx.xxx.xxx #node1 ip`,wrap:!1}}),tt=new C({props:{code:"JTIwZXhwb3J0JTIwQ0NMX1dPUktFUl9DT1VOVCUzRDElMEElMjBleHBvcnQlMjBNQVNURVJfQUREUiUzRHh4eC54eHgueHh4Lnh4eCUyMCUyM25vZGUwJTIwaXAlMEElMjBtcGlydW4lMjAtZiUyMGhvc3RmaWxlJTIwLW4lMjA0JTIwLXBwbiUyMDIlMjAlNUMlMEElMjAtZ2VudiUyME9NUF9OVU1fVEhSRUFEUyUzRDIzJTIwJTVDJTBBJTIwcHl0aG9uMyUyMHJ1bl9xYS5weSUyMCU1QyUwQSUyMC0tbW9kZWxfbmFtZV9vcl9wYXRoJTIwZ29vZ2xlLWJlcnQlMkZiZXJ0LWxhcmdlLXVuY2FzZWQlMjAlNUMlMEElMjAtLWRhdGFzZXRfbmFtZSUyMHNxdWFkJTIwJTVDJTBBJTIwLS1kb190cmFpbiUyMCU1QyUwQSUyMC0tZG9fZXZhbCUyMCU1QyUwQSUyMC0tcGVyX2RldmljZV90cmFpbl9iYXRjaF9zaXplJTIwMTIlMjAlMjAlNUMlMEElMjAtLWxlYXJuaW5nX3JhdGUlMjAzZS01JTIwJTIwJTVDJTBBJTIwLS1udW1fdHJhaW5fZXBvY2hzJTIwMiUyMCUyMCU1QyUwQSUyMC0tbWF4X3NlcV9sZW5ndGglMjAzODQlMjAlNUMlMEElMjAtLWRvY19zdHJpZGUlMjAxMjglMjAlMjAlNUMlMEElMjAtLW91dHB1dF9kaXIlMjAlMkZ0bXAlMkZkZWJ1Z19zcXVhZCUyRiUyMCU1QyUwQSUyMC0tbm9fY3VkYSUyMCU1QyUwQSUyMC0tZGRwX2JhY2tlbmQlMjBjY2wlMjAlNUMlMEElMjAtLXVzZV9pcGV4JTIwJTVDJTBBJTIwLS1iZjE2",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 google-bert/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`,wrap:!1}}),et=new h({props:{title:"Usage with Kubernetes",local:"usage-with-kubernetes",headingTag:"h2"}}),st=new h({props:{title:"Setup",local:"setup",headingTag:"h3"}}),it=new C({props:{code:"RlJPTSUyMGludGVsJTJGYWktd29ya2Zsb3dzJTNBdG9yY2gtMi4wLjEtaHVnZ2luZ2ZhY2UtbXVsdGlub2RlLXB5My45JTBBJTBBV09SS0RJUiUyMCUyRndvcmtzcGFjZSUwQSUwQSUyMyUyMERvd25sb2FkJTIwYW5kJTIwZXh0cmFjdCUyMHRoZSUyMHRyYW5zZm9ybWVycyUyMGNvZGUlMEFBUkclMjBIRl9UUkFOU0ZPUk1FUlNfVkVSJTNEJTIyNC4zNS4yJTIyJTBBUlVOJTIwbWtkaXIlMjB0cmFuc2Zvcm1lcnMlMjAlMjYlMjYlMjAlNUMlMEElMjAlMjAlMjAlMjBjdXJsJTIwLXNTTCUyMC0tcmV0cnklMjA1JTIwaHR0cHMlM0ElMkYlMkZnaXRodWIuY29tJTJGaHVnZ2luZ2ZhY2UlMkZ0cmFuc2Zvcm1lcnMlMkZhcmNoaXZlJTJGcmVmcyUyRnRhZ3MlMkZ2JTI0JTdCSEZfVFJBTlNGT1JNRVJTX1ZFUiU3RC50YXIuZ3olMjAlN0MlMjB0YXIlMjAtQyUyMHRyYW5zZm9ybWVycyUyMC0tc3RyaXAtY29tcG9uZW50cyUzRDElMjAteHpmJTIwLQ==",highlighted:`<span class="hljs-keyword">FROM</span> intel/ai-workflows:torch-<span class="hljs-number">2.0</span>.<span class="hljs-number">1</span>-huggingface-multinode-py3.<span class="hljs-number">9</span>

<span class="hljs-keyword">WORKDIR</span><span class="language-bash"> /workspace</span>

<span class="hljs-comment"># Download and extract the transformers code</span>
<span class="hljs-keyword">ARG</span> HF_TRANSFORMERS_VER=<span class="hljs-string">&quot;4.35.2&quot;</span>
<span class="hljs-keyword">RUN</span><span class="language-bash"> <span class="hljs-built_in">mkdir</span> transformers &amp;&amp; \\
    curl -sSL --retry 5 https://github.com/huggingface/transformers/archive/refs/tags/v<span class="hljs-variable">\${HF_TRANSFORMERS_VER}</span>.tar.gz | tar -C transformers --strip-components=1 -xzf -</span>`,wrap:!1}}),rt=new h({props:{title:"PyTorchJob Specification File",local:"pytorchjob-specification-file",headingTag:"h3"}}),Tt=new C({props:{code:" ",highlighted:`<span class="hljs-attr">apiVersion:</span> <span class="hljs-string">&quot;kubeflow.org/v1&quot;</span>
<span class="hljs-attr">kind:</span> <span class="hljs-string">PyTorchJob</span>
<span class="hljs-attr">metadata:</span>
  <span class="hljs-attr">name:</span> <span class="hljs-string">transformers-pytorchjob</span>
  <span class="hljs-attr">namespace:</span> <span class="hljs-string">kubeflow</span>
<span class="hljs-attr">spec:</span>
  <span class="hljs-attr">elasticPolicy:</span>
    <span class="hljs-attr">rdzvBackend:</span> <span class="hljs-string">c10d</span>
    <span class="hljs-attr">minReplicas:</span> <span class="hljs-number">1</span>
    <span class="hljs-attr">maxReplicas:</span> <span class="hljs-number">4</span>
    <span class="hljs-attr">maxRestarts:</span> <span class="hljs-number">10</span>
  <span class="hljs-attr">pytorchReplicaSpecs:</span>
    <span class="hljs-attr">Worker:</span>
      <span class="hljs-attr">replicas:</span> <span class="hljs-number">4</span>  <span class="hljs-comment"># The number of worker pods</span>
      <span class="hljs-attr">restartPolicy:</span> <span class="hljs-string">OnFailure</span>
      <span class="hljs-attr">template:</span>
        <span class="hljs-attr">spec:</span>
          <span class="hljs-attr">containers:</span>
            <span class="hljs-bullet">-</span> <span class="hljs-attr">name:</span> <span class="hljs-string">pytorch</span>
              <span class="hljs-attr">image:</span> <span class="hljs-string">&lt;image</span> <span class="hljs-string">name&gt;:&lt;tag&gt;</span>  <span class="hljs-comment"># Specify the docker image to use for the worker pods</span>
              <span class="hljs-attr">imagePullPolicy:</span> <span class="hljs-string">IfNotPresent</span>
              <span class="hljs-attr">command:</span>
                <span class="hljs-bullet">-</span> <span class="hljs-string">torchrun</span>
                <span class="hljs-bullet">-</span> <span class="hljs-string">/workspace/transformers/examples/pytorch/question-answering/run_qa.py</span>
                <span class="hljs-bullet">-</span> <span class="hljs-string">--model_name_or_path</span>
                <span class="hljs-bullet">-</span> <span class="hljs-string">&quot;google-bert/bert-large-uncased&quot;</span>
                <span class="hljs-bullet">-</span> <span class="hljs-string">--dataset_name</span>
                <span class="hljs-bullet">-</span> <span class="hljs-string">&quot;squad&quot;</span>
                <span class="hljs-bullet">-</span> <span class="hljs-string">--do_train</span>
                <span class="hljs-bullet">-</span> <span class="hljs-string">--do_eval</span>
                <span class="hljs-bullet">-</span> <span class="hljs-string">--per_device_train_batch_size</span>
                <span class="hljs-bullet">-</span> <span class="hljs-string">&quot;12&quot;</span>
                <span class="hljs-bullet">-</span> <span class="hljs-string">--learning_rate</span>
                <span class="hljs-bullet">-</span> <span class="hljs-string">&quot;3e-5&quot;</span>
                <span class="hljs-bullet">-</span> <span class="hljs-string">--num_train_epochs</span>
                <span class="hljs-bullet">-</span> <span class="hljs-string">&quot;2&quot;</span>
                <span class="hljs-bullet">-</span> <span class="hljs-string">--max_seq_length</span>
                <span class="hljs-bullet">-</span> <span class="hljs-string">&quot;384&quot;</span>
                <span class="hljs-bullet">-</span> <span class="hljs-string">--doc_stride</span>
                <span class="hljs-bullet">-</span> <span class="hljs-string">&quot;128&quot;</span>
                <span class="hljs-bullet">-</span> <span class="hljs-string">--output_dir</span>
                <span class="hljs-bullet">-</span> <span class="hljs-string">&quot;/tmp/pvc-mount/output&quot;</span>
                <span class="hljs-bullet">-</span> <span class="hljs-string">--no_cuda</span>
                <span class="hljs-bullet">-</span> <span class="hljs-string">--ddp_backend</span>
                <span class="hljs-bullet">-</span> <span class="hljs-string">&quot;ccl&quot;</span>
                <span class="hljs-bullet">-</span> <span class="hljs-string">--use_ipex</span>
                <span class="hljs-bullet">-</span> <span class="hljs-string">--bf16</span>  <span class="hljs-comment"># Specify --bf16 if your hardware supports bfloat16</span>
              <span class="hljs-attr">env:</span>
              <span class="hljs-bullet">-</span> <span class="hljs-attr">name:</span> <span class="hljs-string">LD_PRELOAD</span>
                <span class="hljs-attr">value:</span> <span class="hljs-string">&quot;/usr/lib/x86_64-linux-gnu/libtcmalloc.so.4.5.9:/usr/local/lib/libiomp5.so&quot;</span>
              <span class="hljs-bullet">-</span> <span class="hljs-attr">name:</span> <span class="hljs-string">TRANSFORMERS_CACHE</span>
                <span class="hljs-attr">value:</span> <span class="hljs-string">&quot;/tmp/pvc-mount/transformers_cache&quot;</span>
              <span class="hljs-bullet">-</span> <span class="hljs-attr">name:</span> <span class="hljs-string">HF_DATASETS_CACHE</span>
                <span class="hljs-attr">value:</span> <span class="hljs-string">&quot;/tmp/pvc-mount/hf_datasets_cache&quot;</span>
              <span class="hljs-bullet">-</span> <span class="hljs-attr">name:</span> <span class="hljs-string">LOGLEVEL</span>
                <span class="hljs-attr">value:</span> <span class="hljs-string">&quot;INFO&quot;</span>
              <span class="hljs-bullet">-</span> <span class="hljs-attr">name:</span> <span class="hljs-string">CCL_WORKER_COUNT</span>
                <span class="hljs-attr">value:</span> <span class="hljs-string">&quot;1&quot;</span>
              <span class="hljs-bullet">-</span> <span class="hljs-attr">name:</span> <span class="hljs-string">OMP_NUM_THREADS</span>  <span class="hljs-comment"># Can be tuned for optimal performance</span>
<span class="hljs-bullet">-</span>                <span class="hljs-attr">value:</span> <span class="hljs-string">&quot;56&quot;</span>
              <span class="hljs-attr">resources:</span>
                <span class="hljs-attr">limits:</span>
                  <span class="hljs-attr">cpu:</span> <span class="hljs-number">200</span>  <span class="hljs-comment"># Update the CPU and memory limit values based on your nodes</span>
                  <span class="hljs-attr">memory:</span> <span class="hljs-string">128Gi</span>
                <span class="hljs-attr">requests:</span>
                  <span class="hljs-attr">cpu:</span> <span class="hljs-number">200</span>  <span class="hljs-comment"># Update the CPU and memory request values based on your nodes</span>
                  <span class="hljs-attr">memory:</span> <span class="hljs-string">128Gi</span>
              <span class="hljs-attr">volumeMounts:</span>
              <span class="hljs-bullet">-</span> <span class="hljs-attr">name:</span> <span class="hljs-string">pvc-volume</span>
                <span class="hljs-attr">mountPath:</span> <span class="hljs-string">/tmp/pvc-mount</span>
              <span class="hljs-bullet">-</span> <span class="hljs-attr">mountPath:</span> <span class="hljs-string">/dev/shm</span>
                <span class="hljs-attr">name:</span> <span class="hljs-string">dshm</span>
          <span class="hljs-attr">restartPolicy:</span> <span class="hljs-string">Never</span>
          <span class="hljs-attr">nodeSelector:</span>  <span class="hljs-comment">#  Optionally use the node selector to specify what types of nodes to use for the workers</span>
            <span class="hljs-attr">node-type:</span> <span class="hljs-string">spr</span>
          <span class="hljs-attr">volumes:</span>
          <span class="hljs-bullet">-</span> <span class="hljs-attr">name:</span> <span class="hljs-string">pvc-volume</span>
            <span class="hljs-attr">persistentVolumeClaim:</span>
              <span class="hljs-attr">claimName:</span> <span class="hljs-string">transformers-pvc</span>
          <span class="hljs-bullet">-</span> <span class="hljs-attr">name:</span> <span class="hljs-string">dshm</span>
            <span class="hljs-attr">emptyDir:</span>
              <span class="hljs-attr">medium:</span> <span class="hljs-string">Memory</span>`,wrap:!1}}),d=new ul({props:{$$slots:{default:[Bl]},$$scope:{ctx:gt}}}),jt=new h({props:{title:"Deploy",local:"deploy",headingTag:"h3"}}),ht=new C({props:{code:"a3ViZWN0bCUyMGNyZWF0ZSUyMC1mJTIwcHl0b3JjaGpvYi55YW1s",highlighted:"kubectl create -f pytorchjob.yaml",wrap:!1}}),mt=new C({props:{code:"",highlighted:`NAME                                                     READY   STATUS                  RESTARTS          AGE
<span class="hljs-meta prompt_">...</span>
transformers-pytorchjob-worker-0                         1/1     Running                 0                 7m37s
transformers-pytorchjob-worker-1                         1/1     Running                 0                 7m37s
transformers-pytorchjob-worker-2                         1/1     Running                 0                 7m37s
transformers-pytorchjob-worker-3                         1/1     Running                 0                 7m37s
<span class="hljs-meta prompt_">...</span>`,wrap:!1}}),dt=new C({props:{code:"a3ViZWN0bCUyMGxvZ3MlMjAtbiUyMGt1YmVmbG93JTIwdHJhbnNmb3JtZXJzLXB5dG9yY2hqb2Itd29ya2VyLTAlMjAtZg==",highlighted:"kubectl logs -n kubeflow transformers-pytorchjob-worker-0 -f",wrap:!1}}),ft=new h({props:{title:"Summary",local:"summary",headingTag:"h2"}}),At=new $l({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/en/perf_train_cpu_many.md"}}),{c(){r=M("meta"),J=n(),j=M("p"),m=n(),o(I.$$.fragment),$t=n(),f=M("p"),f.innerHTML=Re,_t=n(),o(b.$$.fragment),Bt=n(),A=M("p"),A.innerHTML=Ge,xt=n(),g=M("p"),g.innerHTML=ke,St=n(),v=M("p"),v.innerHTML=We,Zt=n(),o($.$$.fragment),Et=n(),_=M("p"),_.textContent=Ne,Rt=n(),B=M("table"),B.innerHTML=Le,Gt=n(),x=M("p"),x.innerHTML=Ve,kt=n(),o(S.$$.fragment),Wt=n(),Z=M("p"),Z.innerHTML=Pe,Nt=n(),o(u.$$.fragment),Lt=n(),o(E.$$.fragment),Vt=n(),R=M("p"),R.textContent=Xe,Pt=n(),G=M("p"),G.textContent=He,Xt=n(),k=M("p"),k.textContent=Qe,Ht=n(),o(W.$$.fragment),Qt=n(),N=M("p"),N.textContent=Fe,Ft=n(),o(L.$$.fragment),Yt=n(),o(V.$$.fragment),zt=n(),P=M("p"),P.innerHTML=Ye,qt=n(),X=M("p"),X.textContent=ze,Dt=n(),o(H.$$.fragment),Ot=n(),Q=M("p"),Q.innerHTML=qe,Kt=n(),F=M("p"),F.innerHTML=De,te=n(),Y=M("p"),Y.textContent=Oe,ee=n(),o(z.$$.fragment),le=n(),q=M("p"),q.textContent=Ke,se=n(),D=M("p"),D.textContent=tl,ne=n(),o(O.$$.fragment),ae=n(),K=M("p"),K.innerHTML=el,Me=n(),o(tt.$$.fragment),ie=n(),o(et.$$.fragment),pe=n(),lt=M("p"),lt.innerHTML=ll,re=n(),o(st.$$.fragment),oe=n(),nt=M("p"),nt.textContent=sl,ye=n(),at=M("ul"),at.innerHTML=nl,Ue=n(),Mt=M("p"),Mt.innerHTML=al,ce=n(),o(it.$$.fragment),Te=n(),pt=M("p"),pt.textContent=Ml,we=n(),o(rt.$$.fragment),je=n(),ot=M("p"),ot.innerHTML=il,Ce=n(),yt=M("ul"),yt.innerHTML=pl,he=n(),Ut=M("p"),Ut.textContent=rl,Je=n(),ct=M("p"),ct.innerHTML=ol,me=n(),o(Tt.$$.fragment),ue=n(),wt=M("p"),wt.textContent=yl,de=n(),o(d.$$.fragment),Ie=n(),o(jt.$$.fragment),fe=n(),Ct=M("p"),Ct.textContent=Ul,be=n(),o(ht.$$.fragment),Ae=n(),Jt=M("p"),Jt.innerHTML=cl,ge=n(),o(mt.$$.fragment),ve=n(),ut=M("p"),ut.innerHTML=Tl,$e=n(),o(dt.$$.fragment),_e=n(),It=M("p"),It.innerHTML=wl,Be=n(),o(ft.$$.fragment),xe=n(),bt=M("p"),bt.textContent=jl,Se=n(),o(At.$$.fragment),Ze=n(),vt=M("p"),this.h()},l(t){const e=gl("svelte-u9bgzb",document.head);r=i(e,"META",{name:!0,content:!0}),e.forEach(l),J=a(t),j=i(t,"P",{}),Jl(j).forEach(l),m=a(t),y(I.$$.fragment,t),$t=a(t),f=i(t,"P",{"data-svelte-h":!0}),p(f)!=="svelte-k7boah"&&(f.innerHTML=Re),_t=a(t),y(b.$$.fragment,t),Bt=a(t),A=i(t,"P",{"data-svelte-h":!0}),p(A)!=="svelte-bivv3w"&&(A.innerHTML=Ge),xt=a(t),g=i(t,"P",{"data-svelte-h":!0}),p(g)!=="svelte-5o21pv"&&(g.innerHTML=ke),St=a(t),v=i(t,"P",{"data-svelte-h":!0}),p(v)!=="svelte-1qrzsug"&&(v.innerHTML=We),Zt=a(t),y($.$$.fragment,t),Et=a(t),_=i(t,"P",{"data-svelte-h":!0}),p(_)!=="svelte-7vxiqb"&&(_.textContent=Ne),Rt=a(t),B=i(t,"TABLE",{"data-svelte-h":!0}),p(B)!=="svelte-19gn9co"&&(B.innerHTML=Le),Gt=a(t),x=i(t,"P",{"data-svelte-h":!0}),p(x)!=="svelte-21jzz8"&&(x.innerHTML=Ve),kt=a(t),y(S.$$.fragment,t),Wt=a(t),Z=i(t,"P",{"data-svelte-h":!0}),p(Z)!=="svelte-oc1h4j"&&(Z.innerHTML=Pe),Nt=a(t),y(u.$$.fragment,t),Lt=a(t),y(E.$$.fragment,t),Vt=a(t),R=i(t,"P",{"data-svelte-h":!0}),p(R)!=="svelte-1hu54a3"&&(R.textContent=Xe),Pt=a(t),G=i(t,"P",{"data-svelte-h":!0}),p(G)!=="svelte-1nteuhh"&&(G.textContent=He),Xt=a(t),k=i(t,"P",{"data-svelte-h":!0}),p(k)!=="svelte-324hiy"&&(k.textContent=Qe),Ht=a(t),y(W.$$.fragment,t),Qt=a(t),N=i(t,"P",{"data-svelte-h":!0}),p(N)!=="svelte-1x3l803"&&(N.textContent=Fe),Ft=a(t),y(L.$$.fragment,t),Yt=a(t),y(V.$$.fragment,t),zt=a(t),P=i(t,"P",{"data-svelte-h":!0}),p(P)!=="svelte-12dw1vq"&&(P.innerHTML=Ye),qt=a(t),X=i(t,"P",{"data-svelte-h":!0}),p(X)!=="svelte-1w8k00"&&(X.textContent=ze),Dt=a(t),y(H.$$.fragment,t),Ot=a(t),Q=i(t,"P",{"data-svelte-h":!0}),p(Q)!=="svelte-k782b4"&&(Q.innerHTML=qe),Kt=a(t),F=i(t,"P",{"data-svelte-h":!0}),p(F)!=="svelte-kvcz06"&&(F.innerHTML=De),te=a(t),Y=i(t,"P",{"data-svelte-h":!0}),p(Y)!=="svelte-m6wzyw"&&(Y.textContent=Oe),ee=a(t),y(z.$$.fragment,t),le=a(t),q=i(t,"P",{"data-svelte-h":!0}),p(q)!=="svelte-cyuir"&&(q.textContent=Ke),se=a(t),D=i(t,"P",{"data-svelte-h":!0}),p(D)!=="svelte-dlvz8o"&&(D.textContent=tl),ne=a(t),y(O.$$.fragment,t),ae=a(t),K=i(t,"P",{"data-svelte-h":!0}),p(K)!=="svelte-1vsu09v"&&(K.innerHTML=el),Me=a(t),y(tt.$$.fragment,t),ie=a(t),y(et.$$.fragment,t),pe=a(t),lt=i(t,"P",{"data-svelte-h":!0}),p(lt)!=="svelte-lwry78"&&(lt.innerHTML=ll),re=a(t),y(st.$$.fragment,t),oe=a(t),nt=i(t,"P",{"data-svelte-h":!0}),p(nt)!=="svelte-1p9mop9"&&(nt.textContent=sl),ye=a(t),at=i(t,"UL",{"data-svelte-h":!0}),p(at)!=="svelte-4w2oti"&&(at.innerHTML=nl),Ue=a(t),Mt=i(t,"P",{"data-svelte-h":!0}),p(Mt)!=="svelte-vaz613"&&(Mt.innerHTML=al),ce=a(t),y(it.$$.fragment,t),Te=a(t),pt=i(t,"P",{"data-svelte-h":!0}),p(pt)!=="svelte-1ra1dus"&&(pt.textContent=Ml),we=a(t),y(rt.$$.fragment,t),je=a(t),ot=i(t,"P",{"data-svelte-h":!0}),p(ot)!=="svelte-ceey14"&&(ot.innerHTML=il),Ce=a(t),yt=i(t,"UL",{"data-svelte-h":!0}),p(yt)!=="svelte-1w74v7u"&&(yt.innerHTML=pl),he=a(t),Ut=i(t,"P",{"data-svelte-h":!0}),p(Ut)!=="svelte-1rtua9k"&&(Ut.textContent=rl),Je=a(t),ct=i(t,"P",{"data-svelte-h":!0}),p(ct)!=="svelte-1sen8je"&&(ct.innerHTML=ol),me=a(t),y(Tt.$$.fragment,t),ue=a(t),wt=i(t,"P",{"data-svelte-h":!0}),p(wt)!=="svelte-l1jsdc"&&(wt.textContent=yl),de=a(t),y(d.$$.fragment,t),Ie=a(t),y(jt.$$.fragment,t),fe=a(t),Ct=i(t,"P",{"data-svelte-h":!0}),p(Ct)!=="svelte-w0q5hc"&&(Ct.textContent=Ul),be=a(t),y(ht.$$.fragment,t),Ae=a(t),Jt=i(t,"P",{"data-svelte-h":!0}),p(Jt)!=="svelte-m28e4v"&&(Jt.innerHTML=cl),ge=a(t),y(mt.$$.fragment,t),ve=a(t),ut=i(t,"P",{"data-svelte-h":!0}),p(ut)!=="svelte-16sv8wu"&&(ut.innerHTML=Tl),$e=a(t),y(dt.$$.fragment,t),_e=a(t),It=i(t,"P",{"data-svelte-h":!0}),p(It)!=="svelte-ey1892"&&(It.innerHTML=wl),Be=a(t),y(ft.$$.fragment,t),xe=a(t),bt=i(t,"P",{"data-svelte-h":!0}),p(bt)!=="svelte-prt8yq"&&(bt.textContent=jl),Se=a(t),y(At.$$.fragment,t),Ze=a(t),vt=i(t,"P",{}),Jl(vt).forEach(l),this.h()},h(){ml(r,"name","hf:doc:metadata"),ml(r,"content",Sl)},m(t,e){vl(document.head,r),s(t,J,e),s(t,j,e),s(t,m,e),U(I,t,e),s(t,$t,e),s(t,f,e),s(t,_t,e),U(b,t,e),s(t,Bt,e),s(t,A,e),s(t,xt,e),s(t,g,e),s(t,St,e),s(t,v,e),s(t,Zt,e),U($,t,e),s(t,Et,e),s(t,_,e),s(t,Rt,e),s(t,B,e),s(t,Gt,e),s(t,x,e),s(t,kt,e),U(S,t,e),s(t,Wt,e),s(t,Z,e),s(t,Nt,e),U(u,t,e),s(t,Lt,e),U(E,t,e),s(t,Vt,e),s(t,R,e),s(t,Pt,e),s(t,G,e),s(t,Xt,e),s(t,k,e),s(t,Ht,e),U(W,t,e),s(t,Qt,e),s(t,N,e),s(t,Ft,e),U(L,t,e),s(t,Yt,e),U(V,t,e),s(t,zt,e),s(t,P,e),s(t,qt,e),s(t,X,e),s(t,Dt,e),U(H,t,e),s(t,Ot,e),s(t,Q,e),s(t,Kt,e),s(t,F,e),s(t,te,e),s(t,Y,e),s(t,ee,e),U(z,t,e),s(t,le,e),s(t,q,e),s(t,se,e),s(t,D,e),s(t,ne,e),U(O,t,e),s(t,ae,e),s(t,K,e),s(t,Me,e),U(tt,t,e),s(t,ie,e),U(et,t,e),s(t,pe,e),s(t,lt,e),s(t,re,e),U(st,t,e),s(t,oe,e),s(t,nt,e),s(t,ye,e),s(t,at,e),s(t,Ue,e),s(t,Mt,e),s(t,ce,e),U(it,t,e),s(t,Te,e),s(t,pt,e),s(t,we,e),U(rt,t,e),s(t,je,e),s(t,ot,e),s(t,Ce,e),s(t,yt,e),s(t,he,e),s(t,Ut,e),s(t,Je,e),s(t,ct,e),s(t,me,e),U(Tt,t,e),s(t,ue,e),s(t,wt,e),s(t,de,e),U(d,t,e),s(t,Ie,e),U(jt,t,e),s(t,fe,e),s(t,Ct,e),s(t,be,e),U(ht,t,e),s(t,Ae,e),s(t,Jt,e),s(t,ge,e),U(mt,t,e),s(t,ve,e),s(t,ut,e),s(t,$e,e),U(dt,t,e),s(t,_e,e),s(t,It,e),s(t,Be,e),U(ft,t,e),s(t,xe,e),s(t,bt,e),s(t,Se,e),U(At,t,e),s(t,Ze,e),s(t,vt,e),Ee=!0},p(t,[e]){const Cl={};e&2&&(Cl.$$scope={dirty:e,ctx:t}),u.$set(Cl);const hl={};e&2&&(hl.$$scope={dirty:e,ctx:t}),d.$set(hl)},i(t){Ee||(c(I.$$.fragment,t),c(b.$$.fragment,t),c($.$$.fragment,t),c(S.$$.fragment,t),c(u.$$.fragment,t),c(E.$$.fragment,t),c(W.$$.fragment,t),c(L.$$.fragment,t),c(V.$$.fragment,t),c(H.$$.fragment,t),c(z.$$.fragment,t),c(O.$$.fragment,t),c(tt.$$.fragment,t),c(et.$$.fragment,t),c(st.$$.fragment,t),c(it.$$.fragment,t),c(rt.$$.fragment,t),c(Tt.$$.fragment,t),c(d.$$.fragment,t),c(jt.$$.fragment,t),c(ht.$$.fragment,t),c(mt.$$.fragment,t),c(dt.$$.fragment,t),c(ft.$$.fragment,t),c(At.$$.fragment,t),Ee=!0)},o(t){T(I.$$.fragment,t),T(b.$$.fragment,t),T($.$$.fragment,t),T(S.$$.fragment,t),T(u.$$.fragment,t),T(E.$$.fragment,t),T(W.$$.fragment,t),T(L.$$.fragment,t),T(V.$$.fragment,t),T(H.$$.fragment,t),T(z.$$.fragment,t),T(O.$$.fragment,t),T(tt.$$.fragment,t),T(et.$$.fragment,t),T(st.$$.fragment,t),T(it.$$.fragment,t),T(rt.$$.fragment,t),T(Tt.$$.fragment,t),T(d.$$.fragment,t),T(jt.$$.fragment,t),T(ht.$$.fragment,t),T(mt.$$.fragment,t),T(dt.$$.fragment,t),T(ft.$$.fragment,t),T(At.$$.fragment,t),Ee=!1},d(t){t&&(l(J),l(j),l(m),l($t),l(f),l(_t),l(Bt),l(A),l(xt),l(g),l(St),l(v),l(Zt),l(Et),l(_),l(Rt),l(B),l(Gt),l(x),l(kt),l(Wt),l(Z),l(Nt),l(Lt),l(Vt),l(R),l(Pt),l(G),l(Xt),l(k),l(Ht),l(Qt),l(N),l(Ft),l(Yt),l(zt),l(P),l(qt),l(X),l(Dt),l(Ot),l(Q),l(Kt),l(F),l(te),l(Y),l(ee),l(le),l(q),l(se),l(D),l(ne),l(ae),l(K),l(Me),l(ie),l(pe),l(lt),l(re),l(oe),l(nt),l(ye),l(at),l(Ue),l(Mt),l(ce),l(Te),l(pt),l(we),l(je),l(ot),l(Ce),l(yt),l(he),l(Ut),l(Je),l(ct),l(me),l(ue),l(wt),l(de),l(Ie),l(fe),l(Ct),l(be),l(Ae),l(Jt),l(ge),l(ve),l(ut),l($e),l(_e),l(It),l(Be),l(xe),l(bt),l(Se),l(Ze),l(vt)),l(r),w(I,t),w(b,t),w($,t),w(S,t),w(u,t),w(E,t),w(W,t),w(L,t),w(V,t),w(H,t),w(z,t),w(O,t),w(tt,t),w(et,t),w(st,t),w(it,t),w(rt,t),w(Tt,t),w(d,t),w(jt,t),w(ht,t),w(mt,t),w(dt,t),w(ft,t),w(At,t)}}}const Sl='{"title":"Efficient Training on Multiple CPUs","local":"efficient-training-on-multiple-cpus","sections":[{"title":"Intel® oneCCL Bindings for PyTorch","local":"intel-oneccl-bindings-for-pytorch","sections":[{"title":"Intel® oneCCL Bindings for PyTorch installation","local":"intel-oneccl-bindings-for-pytorch-installation","sections":[],"depth":3}],"depth":2},{"title":"Intel® MPI library","local":"intel-mpi-library","sections":[{"title":"Intel® Extension for PyTorch installation","local":"intel-extension-for-pytorch-installation","sections":[],"depth":4}],"depth":2},{"title":"Usage in Trainer","local":"usage-in-trainer","sections":[],"depth":2},{"title":"Usage with Kubernetes","local":"usage-with-kubernetes","sections":[{"title":"Setup","local":"setup","sections":[],"depth":3},{"title":"PyTorchJob Specification File","local":"pytorchjob-specification-file","sections":[],"depth":3},{"title":"Deploy","local":"deploy","sections":[],"depth":3}],"depth":2},{"title":"Summary","local":"summary","sections":[],"depth":2}],"depth":1}';function Zl(gt){return fl(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Nl extends bl{constructor(r){super(),Al(this,r,Zl,xl,Il,{})}}export{Nl as component};
