import{s as ue,o as Ae,n as me}from"../chunks/scheduler.9bc65507.js";import{S as de,i as Ie,g as M,s as n,r as o,A as fe,h as i,f as e,c as a,j as we,u as j,x as p,k as Je,y as be,a as s,v as c,d as y,t as U,w as T}from"../chunks/index.707bf1b6.js";import{T as Ce}from"../chunks/Tip.c2ecdbf4.js";import{C as w}from"../chunks/CodeBlock.54a9f38d.js";import{H as J}from"../chunks/Heading.342b1fa6.js";function ge(bl){let r,C=`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=C},l(h){r=i(h,"P",{"data-svelte-h":!0}),p(r)!=="svelte-is6c7w"&&(r.textContent=C)},m(h,m){s(h,r,m)},p:me,d(h){h&&e(r)}}}function ve(bl){let r,C=`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=C},l(h){r=i(h,"P",{"data-svelte-h":!0}),p(r)!=="svelte-1nu8lil"&&(r.innerHTML=C)},m(h,m){s(h,r,m)},p:me,d(h){h&&e(r)}}}function Be(bl){let r,C,h,m,d,vl,I,Zt=`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>.`,Bl,f,$l,b,Et='<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>.',_l,g,kt="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",xl,v,Rt='Check more detailed information for <a href="https://github.com/intel/torch-ccl" rel="nofollow">oneccl_bind_pt</a>.',Sl,B,Zl,$,Gt="Wheel files are available for the following Python versions:",El,_,Vt='<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>',kl,x,Wt="Please run <code>pip list | grep torch</code> to get your <code>pytorch_version</code>.",Rl,S,Gl,Z,Lt=`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.`,Vl,u,Wl,E,Ll,k,Ht="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.",Hl,R,Pt="oneccl_bindings_for_pytorch is installed along with the MPI tool set. Need to source the environment before using it.",Pl,G,Nt="for Intel® oneCCL >= 1.12.0",Nl,V,Xl,W,Xt="for Intel® oneCCL whose version < 1.12.0",Yl,L,Ql,H,Fl,P,Yt='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).',zl,N,Qt="The following “Usage in Trainer” takes mpirun in Intel® MPI library as an example.",ql,X,Dl,Y,Ft="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.",Ol,Q,zt='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>',Kl,F,qt="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.",lt,z,tt,q,Dt="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.",et,D,Ot="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.",st,O,nt,K,Kt="Now, run the following command in node0 and <strong>4DDP</strong> will be enabled in node0 and node1 with BF16 auto mixed precision:",at,ll,Mt,tl,it,el,le=`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>.`,pt,sl,rt,nl,te="This example assumes that you have:",ot,al,ee=`<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>`,jt,Ml,se=`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:`,ct,il,yt,pl,ne=`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.`,Ut,rl,Tt,ol,ae=`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:`,ht,jl,Me="<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>",wt,cl,ie=`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.`,Jt,yl,pe=`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>.`,Ct,Ul,mt,Tl,re="To run this example, update the yaml based on your training script and the nodes in your cluster.",ut,A,At,hl,dt,wl,oe=`After the PyTorchJob spec has been updated with values appropriate for your cluster and training job, it can be deployed
to the cluster using:`,It,Jl,ft,Cl,je=`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”.`,bt,ml,gt,ul,ce="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:",vt,Al,Bt,dl,ye=`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>.`,$t,Il,_t,fl,Ue=`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.`,xt,gl,St;return d=new J({props:{title:"Efficient Training on Multiple CPUs",local:"efficient-training-on-multiple-cpus",headingTag:"h1"}}),f=new J({props:{title:"Intel® oneCCL Bindings for PyTorch",local:"intel-oneccl-bindings-for-pytorch",headingTag:"h2"}}),B=new J({props:{title:"Intel® oneCCL Bindings for PyTorch installation",local:"intel-oneccl-bindings-for-pytorch-installation",headingTag:"h3"}}),S=new w({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',wrap:!1}}),u=new Ce({props:{warning:!0,$$slots:{default:[ge]},$$scope:{ctx:bl}}}),E=new J({props:{title:"Intel® MPI library",local:"intel-mpi-library",headingTag:"h2"}}),V=new w({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`,wrap:!1}}),L=new w({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`,wrap:!1}}),H=new J({props:{title:"Intel® Extension for PyTorch installation",local:"intel-extension-for-pytorch-installation",headingTag:"h4"}}),X=new J({props:{title:"Usage in Trainer",local:"usage-in-trainer",headingTag:"h2"}}),z=new w({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`,wrap:!1}}),O=new w({props:{code:"JTIwY2F0JTIwaG9zdGZpbGUlMEElMjB4eHgueHh4Lnh4eC54eHglMjAlMjNub2RlMCUyMGlwJTBBJTIweHh4Lnh4eC54eHgueHh4JTIwJTIzbm9kZTElMjBpcA==",highlighted:` cat hostfile
 xxx.xxx.xxx.xxx #node0 ip
 xxx.xxx.xxx.xxx #node1 ip`,wrap:!1}}),ll=new w({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`,wrap:!1}}),tl=new J({props:{title:"Usage with Kubernetes",local:"usage-with-kubernetes",headingTag:"h2"}}),sl=new J({props:{title:"Setup",local:"setup",headingTag:"h3"}}),il=new w({props:{code:"RlJPTSUyMGludGVsJTJGYWktd29ya2Zsb3dzJTNBdG9yY2gtMi4wLjEtaHVnZ2luZ2ZhY2UtbXVsdGlub2RlLXB5My45JTBBJTBBV09SS0RJUiUyMCUyRndvcmtzcGFjZSUwQSUwQSUyMyUyMERvd25sb2FkJTIwYW5kJTIwZXh0cmFjdCUyMHRoZSUyMHRyYW5zZm9ybWVycyUyMGNvZGUlMEFBUkclMjBIRl9UUkFOU0ZPUk1FUlNfVkVSJTNEJTIyNC4zNS4yJTIyJTBBUlVOJTIwbWtkaXIlMjB0cmFuc2Zvcm1lcnMlMjAlMjYlMjYlMjAlNUMlMEElMjAlMjAlMjAlMjBjdXJsJTIwLXNTTCUyMC0tcmV0cnklMjA1JTIwaHR0cHMlM0ElMkYlMkZnaXRodWIuY29tJTJGaHVnZ2luZ2ZhY2UlMkZ0cmFuc2Zvcm1lcnMlMkZhcmNoaXZlJTJGcmVmcyUyRnRhZ3MlMkZ2JTI0JTdCSEZfVFJBTlNGT1JNRVJTX1ZFUiU3RC50YXIuZ3olMjAlN0MlMjB0YXIlMjAtQyUyMHRyYW5zZm9ybWVycyUyMC0tc3RyaXAtY29tcG9uZW50cyUzRDElMjAteHpmJTIwLQ==",highlighted:`FROM 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>

WORKDIR /workspace

<span class="hljs-comment"># Download and extract the transformers code</span>
ARG HF_TRANSFORMERS_VER=<span class="hljs-string">&quot;4.35.2&quot;</span>
RUN mkdir transformers &amp;&amp; \\
    curl -sSL --retry <span class="hljs-number">5</span> https:<span class="hljs-regexp">//gi</span>thub.com<span class="hljs-regexp">/huggingface/</span>transformers<span class="hljs-regexp">/archive/</span>refs<span class="hljs-regexp">/tags/</span>v<span class="hljs-variable">\${HF_TRANSFORMERS_VER}</span>.tar.gz | tar -C transformers --strip-components=<span class="hljs-number">1</span> -xzf -`,wrap:!1}}),rl=new J({props:{title:"PyTorchJob Specification File",local:"pytorchjob-specification-file",headingTag:"h3"}}),Ul=new w({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;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}}),A=new Ce({props:{$$slots:{default:[ve]},$$scope:{ctx:bl}}}),hl=new J({props:{title:"Deploy",local:"deploy",headingTag:"h3"}}),Jl=new w({props:{code:"a3ViZWN0bCUyMGNyZWF0ZSUyMC1mJTIwcHl0b3JjaGpvYi55YW1s",highlighted:'kubectl <span class="hljs-keyword">create</span> -f pytorchjob.yaml',wrap:!1}}),ml=new w({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}}),Al=new w({props:{code:"a3ViZWN0bCUyMGxvZ3MlMjAtbiUyMGt1YmVmbG93JTIwdHJhbnNmb3JtZXJzLXB5dG9yY2hqb2Itd29ya2VyLTAlMjAtZg==",highlighted:'<span class="hljs-attribute">kubectl</span> logs -n kubeflow transformers-pytorchjob-worker-<span class="hljs-number">0</span> -f',wrap:!1}}),Il=new J({props:{title:"Summary",local:"summary",headingTag:"h2"}}),{c(){r=M("meta"),C=n(),h=M("p"),m=n(),o(d.$$.fragment),vl=n(),I=M("p"),I.innerHTML=Zt,Bl=n(),o(f.$$.fragment),$l=n(),b=M("p"),b.innerHTML=Et,_l=n(),g=M("p"),g.innerHTML=kt,xl=n(),v=M("p"),v.innerHTML=Rt,Sl=n(),o(B.$$.fragment),Zl=n(),$=M("p"),$.textContent=Gt,El=n(),_=M("table"),_.innerHTML=Vt,kl=n(),x=M("p"),x.innerHTML=Wt,Rl=n(),o(S.$$.fragment),Gl=n(),Z=M("p"),Z.innerHTML=Lt,Vl=n(),o(u.$$.fragment),Wl=n(),o(E.$$.fragment),Ll=n(),k=M("p"),k.textContent=Ht,Hl=n(),R=M("p"),R.textContent=Pt,Pl=n(),G=M("p"),G.textContent=Nt,Nl=n(),o(V.$$.fragment),Xl=n(),W=M("p"),W.textContent=Xt,Yl=n(),o(L.$$.fragment),Ql=n(),o(H.$$.fragment),Fl=n(),P=M("p"),P.innerHTML=Yt,zl=n(),N=M("p"),N.textContent=Qt,ql=n(),o(X.$$.fragment),Dl=n(),Y=M("p"),Y.innerHTML=Ft,Ol=n(),Q=M("p"),Q.innerHTML=zt,Kl=n(),F=M("p"),F.textContent=qt,lt=n(),o(z.$$.fragment),tt=n(),q=M("p"),q.textContent=Dt,et=n(),D=M("p"),D.textContent=Ot,st=n(),o(O.$$.fragment),nt=n(),K=M("p"),K.innerHTML=Kt,at=n(),o(ll.$$.fragment),Mt=n(),o(tl.$$.fragment),it=n(),el=M("p"),el.innerHTML=le,pt=n(),o(sl.$$.fragment),rt=n(),nl=M("p"),nl.textContent=te,ot=n(),al=M("ul"),al.innerHTML=ee,jt=n(),Ml=M("p"),Ml.innerHTML=se,ct=n(),o(il.$$.fragment),yt=n(),pl=M("p"),pl.textContent=ne,Ut=n(),o(rl.$$.fragment),Tt=n(),ol=M("p"),ol.innerHTML=ae,ht=n(),jl=M("ul"),jl.innerHTML=Me,wt=n(),cl=M("p"),cl.textContent=ie,Jt=n(),yl=M("p"),yl.innerHTML=pe,Ct=n(),o(Ul.$$.fragment),mt=n(),Tl=M("p"),Tl.textContent=re,ut=n(),o(A.$$.fragment),At=n(),o(hl.$$.fragment),dt=n(),wl=M("p"),wl.textContent=oe,It=n(),o(Jl.$$.fragment),ft=n(),Cl=M("p"),Cl.innerHTML=je,bt=n(),o(ml.$$.fragment),gt=n(),ul=M("p"),ul.innerHTML=ce,vt=n(),o(Al.$$.fragment),Bt=n(),dl=M("p"),dl.innerHTML=ye,$t=n(),o(Il.$$.fragment),_t=n(),fl=M("p"),fl.textContent=Ue,xt=n(),gl=M("p"),this.h()},l(l){const t=fe("svelte-u9bgzb",document.head);r=i(t,"META",{name:!0,content:!0}),t.forEach(e),C=a(l),h=i(l,"P",{}),we(h).forEach(e),m=a(l),j(d.$$.fragment,l),vl=a(l),I=i(l,"P",{"data-svelte-h":!0}),p(I)!=="svelte-k7boah"&&(I.innerHTML=Zt),Bl=a(l),j(f.$$.fragment,l),$l=a(l),b=i(l,"P",{"data-svelte-h":!0}),p(b)!=="svelte-bivv3w"&&(b.innerHTML=Et),_l=a(l),g=i(l,"P",{"data-svelte-h":!0}),p(g)!=="svelte-5o21pv"&&(g.innerHTML=kt),xl=a(l),v=i(l,"P",{"data-svelte-h":!0}),p(v)!=="svelte-1qrzsug"&&(v.innerHTML=Rt),Sl=a(l),j(B.$$.fragment,l),Zl=a(l),$=i(l,"P",{"data-svelte-h":!0}),p($)!=="svelte-7vxiqb"&&($.textContent=Gt),El=a(l),_=i(l,"TABLE",{"data-svelte-h":!0}),p(_)!=="svelte-19gn9co"&&(_.innerHTML=Vt),kl=a(l),x=i(l,"P",{"data-svelte-h":!0}),p(x)!=="svelte-21jzz8"&&(x.innerHTML=Wt),Rl=a(l),j(S.$$.fragment,l),Gl=a(l),Z=i(l,"P",{"data-svelte-h":!0}),p(Z)!=="svelte-oc1h4j"&&(Z.innerHTML=Lt),Vl=a(l),j(u.$$.fragment,l),Wl=a(l),j(E.$$.fragment,l),Ll=a(l),k=i(l,"P",{"data-svelte-h":!0}),p(k)!=="svelte-1hu54a3"&&(k.textContent=Ht),Hl=a(l),R=i(l,"P",{"data-svelte-h":!0}),p(R)!=="svelte-1nteuhh"&&(R.textContent=Pt),Pl=a(l),G=i(l,"P",{"data-svelte-h":!0}),p(G)!=="svelte-324hiy"&&(G.textContent=Nt),Nl=a(l),j(V.$$.fragment,l),Xl=a(l),W=i(l,"P",{"data-svelte-h":!0}),p(W)!=="svelte-1x3l803"&&(W.textContent=Xt),Yl=a(l),j(L.$$.fragment,l),Ql=a(l),j(H.$$.fragment,l),Fl=a(l),P=i(l,"P",{"data-svelte-h":!0}),p(P)!=="svelte-12dw1vq"&&(P.innerHTML=Yt),zl=a(l),N=i(l,"P",{"data-svelte-h":!0}),p(N)!=="svelte-1w8k00"&&(N.textContent=Qt),ql=a(l),j(X.$$.fragment,l),Dl=a(l),Y=i(l,"P",{"data-svelte-h":!0}),p(Y)!=="svelte-k782b4"&&(Y.innerHTML=Ft),Ol=a(l),Q=i(l,"P",{"data-svelte-h":!0}),p(Q)!=="svelte-kvcz06"&&(Q.innerHTML=zt),Kl=a(l),F=i(l,"P",{"data-svelte-h":!0}),p(F)!=="svelte-m6wzyw"&&(F.textContent=qt),lt=a(l),j(z.$$.fragment,l),tt=a(l),q=i(l,"P",{"data-svelte-h":!0}),p(q)!=="svelte-cyuir"&&(q.textContent=Dt),et=a(l),D=i(l,"P",{"data-svelte-h":!0}),p(D)!=="svelte-dlvz8o"&&(D.textContent=Ot),st=a(l),j(O.$$.fragment,l),nt=a(l),K=i(l,"P",{"data-svelte-h":!0}),p(K)!=="svelte-1vsu09v"&&(K.innerHTML=Kt),at=a(l),j(ll.$$.fragment,l),Mt=a(l),j(tl.$$.fragment,l),it=a(l),el=i(l,"P",{"data-svelte-h":!0}),p(el)!=="svelte-lwry78"&&(el.innerHTML=le),pt=a(l),j(sl.$$.fragment,l),rt=a(l),nl=i(l,"P",{"data-svelte-h":!0}),p(nl)!=="svelte-1p9mop9"&&(nl.textContent=te),ot=a(l),al=i(l,"UL",{"data-svelte-h":!0}),p(al)!=="svelte-4w2oti"&&(al.innerHTML=ee),jt=a(l),Ml=i(l,"P",{"data-svelte-h":!0}),p(Ml)!=="svelte-vaz613"&&(Ml.innerHTML=se),ct=a(l),j(il.$$.fragment,l),yt=a(l),pl=i(l,"P",{"data-svelte-h":!0}),p(pl)!=="svelte-1ra1dus"&&(pl.textContent=ne),Ut=a(l),j(rl.$$.fragment,l),Tt=a(l),ol=i(l,"P",{"data-svelte-h":!0}),p(ol)!=="svelte-ceey14"&&(ol.innerHTML=ae),ht=a(l),jl=i(l,"UL",{"data-svelte-h":!0}),p(jl)!=="svelte-1w74v7u"&&(jl.innerHTML=Me),wt=a(l),cl=i(l,"P",{"data-svelte-h":!0}),p(cl)!=="svelte-1rtua9k"&&(cl.textContent=ie),Jt=a(l),yl=i(l,"P",{"data-svelte-h":!0}),p(yl)!=="svelte-1sen8je"&&(yl.innerHTML=pe),Ct=a(l),j(Ul.$$.fragment,l),mt=a(l),Tl=i(l,"P",{"data-svelte-h":!0}),p(Tl)!=="svelte-l1jsdc"&&(Tl.textContent=re),ut=a(l),j(A.$$.fragment,l),At=a(l),j(hl.$$.fragment,l),dt=a(l),wl=i(l,"P",{"data-svelte-h":!0}),p(wl)!=="svelte-w0q5hc"&&(wl.textContent=oe),It=a(l),j(Jl.$$.fragment,l),ft=a(l),Cl=i(l,"P",{"data-svelte-h":!0}),p(Cl)!=="svelte-m28e4v"&&(Cl.innerHTML=je),bt=a(l),j(ml.$$.fragment,l),gt=a(l),ul=i(l,"P",{"data-svelte-h":!0}),p(ul)!=="svelte-16sv8wu"&&(ul.innerHTML=ce),vt=a(l),j(Al.$$.fragment,l),Bt=a(l),dl=i(l,"P",{"data-svelte-h":!0}),p(dl)!=="svelte-ey1892"&&(dl.innerHTML=ye),$t=a(l),j(Il.$$.fragment,l),_t=a(l),fl=i(l,"P",{"data-svelte-h":!0}),p(fl)!=="svelte-prt8yq"&&(fl.textContent=Ue),xt=a(l),gl=i(l,"P",{}),we(gl).forEach(e),this.h()},h(){Je(r,"name","hf:doc:metadata"),Je(r,"content",$e)},m(l,t){be(document.head,r),s(l,C,t),s(l,h,t),s(l,m,t),c(d,l,t),s(l,vl,t),s(l,I,t),s(l,Bl,t),c(f,l,t),s(l,$l,t),s(l,b,t),s(l,_l,t),s(l,g,t),s(l,xl,t),s(l,v,t),s(l,Sl,t),c(B,l,t),s(l,Zl,t),s(l,$,t),s(l,El,t),s(l,_,t),s(l,kl,t),s(l,x,t),s(l,Rl,t),c(S,l,t),s(l,Gl,t),s(l,Z,t),s(l,Vl,t),c(u,l,t),s(l,Wl,t),c(E,l,t),s(l,Ll,t),s(l,k,t),s(l,Hl,t),s(l,R,t),s(l,Pl,t),s(l,G,t),s(l,Nl,t),c(V,l,t),s(l,Xl,t),s(l,W,t),s(l,Yl,t),c(L,l,t),s(l,Ql,t),c(H,l,t),s(l,Fl,t),s(l,P,t),s(l,zl,t),s(l,N,t),s(l,ql,t),c(X,l,t),s(l,Dl,t),s(l,Y,t),s(l,Ol,t),s(l,Q,t),s(l,Kl,t),s(l,F,t),s(l,lt,t),c(z,l,t),s(l,tt,t),s(l,q,t),s(l,et,t),s(l,D,t),s(l,st,t),c(O,l,t),s(l,nt,t),s(l,K,t),s(l,at,t),c(ll,l,t),s(l,Mt,t),c(tl,l,t),s(l,it,t),s(l,el,t),s(l,pt,t),c(sl,l,t),s(l,rt,t),s(l,nl,t),s(l,ot,t),s(l,al,t),s(l,jt,t),s(l,Ml,t),s(l,ct,t),c(il,l,t),s(l,yt,t),s(l,pl,t),s(l,Ut,t),c(rl,l,t),s(l,Tt,t),s(l,ol,t),s(l,ht,t),s(l,jl,t),s(l,wt,t),s(l,cl,t),s(l,Jt,t),s(l,yl,t),s(l,Ct,t),c(Ul,l,t),s(l,mt,t),s(l,Tl,t),s(l,ut,t),c(A,l,t),s(l,At,t),c(hl,l,t),s(l,dt,t),s(l,wl,t),s(l,It,t),c(Jl,l,t),s(l,ft,t),s(l,Cl,t),s(l,bt,t),c(ml,l,t),s(l,gt,t),s(l,ul,t),s(l,vt,t),c(Al,l,t),s(l,Bt,t),s(l,dl,t),s(l,$t,t),c(Il,l,t),s(l,_t,t),s(l,fl,t),s(l,xt,t),s(l,gl,t),St=!0},p(l,[t]){const Te={};t&2&&(Te.$$scope={dirty:t,ctx:l}),u.$set(Te);const he={};t&2&&(he.$$scope={dirty:t,ctx:l}),A.$set(he)},i(l){St||(y(d.$$.fragment,l),y(f.$$.fragment,l),y(B.$$.fragment,l),y(S.$$.fragment,l),y(u.$$.fragment,l),y(E.$$.fragment,l),y(V.$$.fragment,l),y(L.$$.fragment,l),y(H.$$.fragment,l),y(X.$$.fragment,l),y(z.$$.fragment,l),y(O.$$.fragment,l),y(ll.$$.fragment,l),y(tl.$$.fragment,l),y(sl.$$.fragment,l),y(il.$$.fragment,l),y(rl.$$.fragment,l),y(Ul.$$.fragment,l),y(A.$$.fragment,l),y(hl.$$.fragment,l),y(Jl.$$.fragment,l),y(ml.$$.fragment,l),y(Al.$$.fragment,l),y(Il.$$.fragment,l),St=!0)},o(l){U(d.$$.fragment,l),U(f.$$.fragment,l),U(B.$$.fragment,l),U(S.$$.fragment,l),U(u.$$.fragment,l),U(E.$$.fragment,l),U(V.$$.fragment,l),U(L.$$.fragment,l),U(H.$$.fragment,l),U(X.$$.fragment,l),U(z.$$.fragment,l),U(O.$$.fragment,l),U(ll.$$.fragment,l),U(tl.$$.fragment,l),U(sl.$$.fragment,l),U(il.$$.fragment,l),U(rl.$$.fragment,l),U(Ul.$$.fragment,l),U(A.$$.fragment,l),U(hl.$$.fragment,l),U(Jl.$$.fragment,l),U(ml.$$.fragment,l),U(Al.$$.fragment,l),U(Il.$$.fragment,l),St=!1},d(l){l&&(e(C),e(h),e(m),e(vl),e(I),e(Bl),e($l),e(b),e(_l),e(g),e(xl),e(v),e(Sl),e(Zl),e($),e(El),e(_),e(kl),e(x),e(Rl),e(Gl),e(Z),e(Vl),e(Wl),e(Ll),e(k),e(Hl),e(R),e(Pl),e(G),e(Nl),e(Xl),e(W),e(Yl),e(Ql),e(Fl),e(P),e(zl),e(N),e(ql),e(Dl),e(Y),e(Ol),e(Q),e(Kl),e(F),e(lt),e(tt),e(q),e(et),e(D),e(st),e(nt),e(K),e(at),e(Mt),e(it),e(el),e(pt),e(rt),e(nl),e(ot),e(al),e(jt),e(Ml),e(ct),e(yt),e(pl),e(Ut),e(Tt),e(ol),e(ht),e(jl),e(wt),e(cl),e(Jt),e(yl),e(Ct),e(mt),e(Tl),e(ut),e(At),e(dt),e(wl),e(It),e(ft),e(Cl),e(bt),e(gt),e(ul),e(vt),e(Bt),e(dl),e($t),e(_t),e(fl),e(xt),e(gl)),e(r),T(d,l),T(f,l),T(B,l),T(S,l),T(u,l),T(E,l),T(V,l),T(L,l),T(H,l),T(X,l),T(z,l),T(O,l),T(ll,l),T(tl,l),T(sl,l),T(il,l),T(rl,l),T(Ul,l),T(A,l),T(hl,l),T(Jl,l),T(ml,l),T(Al,l),T(Il,l)}}}const $e='{"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 _e(bl){return Ae(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Re extends de{constructor(r){super(),Ie(this,r,_e,Be,ue,{})}}export{Re as component};
