import{s as Je,o as Ce,n as we}from"../chunks/scheduler.9bc65507.js";import{S as me,i as ue,g as M,s as n,r as o,A as Ae,h as i,f as e,c as a,j as Ue,u as j,x as p,k as Te,y as de,a as s,v as c,d as y,t as U,w as T}from"../chunks/index.707bf1b6.js";import{T as he}from"../chunks/Tip.c2ecdbf4.js";import{C as w}from"../chunks/CodeBlock.54a9f38d.js";import{H as J}from"../chunks/Heading.342b1fa6.js";function Ie(fl){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:we,d(h){h&&e(r)}}}function fe(fl){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:we,d(h){h&&e(r)}}}function be(fl){let r,C,h,m,d,gl,I,xt=`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>.`,vl,f,Bl,b,St='<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,Zt="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",_l,v,Et='Check more detailed information for <a href="https://github.com/intel/torch-ccl" rel="nofollow">oneccl_bind_pt</a>.',xl,B,Sl,$,kt="Wheel files are available for the following Python versions:",Zl,_,Rt='<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>',El,x,kl,S,Gt=`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.`,Rl,u,Gl,Z,Vl,E,Vt="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.",Wl,k,Wt="oneccl_bindings_for_pytorch is installed along with the MPI tool set. Need to source the environment before using it.",Ll,R,Lt="for Intel® oneCCL >= 1.12.0",Hl,G,Nl,V,Ht="for Intel® oneCCL whose version < 1.12.0",Pl,W,Xl,L,Yl,H,Nt='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).',Ql,N,Pt="The following “Usage in Trainer” takes mpirun in Intel® MPI library as an example.",Fl,P,zl,X,Xt="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.",ql,Y,Yt='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>',Dl,Q,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.",Ol,F,Kl,z,Ft="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.",lt,q,zt="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.",tt,D,et,O,qt="Now, run the following command in node0 and <strong>4DDP</strong> will be enabled in node0 and node1 with BF16 auto mixed precision:",st,K,nt,ll,at,tl,Dt=`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>.`,Mt,el,it,sl,Ot="This example assumes that you have:",pt,nl,Kt=`<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>`,rt,al,le=`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:`,ot,Ml,jt,il,te=`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.`,ct,pl,yt,rl,ee=`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:`,Ut,ol,se="<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>",Tt,jl,ne=`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.`,ht,cl,ae=`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>.`,wt,yl,Jt,Ul,Me="To run this example, update the yaml based on your training script and the nodes in your cluster.",Ct,A,mt,Tl,ut,hl,ie=`After the PyTorchJob spec has been updated with values appropriate for your cluster and training job, it can be deployed
to the cluster using:`,At,wl,dt,Jl,pe=`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”.`,It,Cl,ft,ml,re="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:",bt,ul,gt,Al,oe=`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>.`,vt,dl,Bt,Il,je=`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.`,$t,bl,_t;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"}}),x=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 he({props:{warning:!0,$$slots:{default:[Ie]},$$scope:{ctx:fl}}}),Z=new J({props:{title:"Intel® MPI library",local:"intel-mpi-library",headingTag:"h2"}}),G=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}}),W=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}}),L=new J({props:{title:"Intel® Extension for PyTorch installation",local:"intel-extension-for-pytorch-installation",headingTag:"h4"}}),P=new J({props:{title:"Usage in Trainer",local:"usage-in-trainer",headingTag:"h2"}}),F=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}}),D=new w({props:{code:"JTIwY2F0JTIwaG9zdGZpbGUlMEElMjB4eHgueHh4Lnh4eC54eHglMjAlMjNub2RlMCUyMGlwJTBBJTIweHh4Lnh4eC54eHgueHh4JTIwJTIzbm9kZTElMjBpcA==",highlighted:` cat hostfile
 xxx.xxx.xxx.xxx #node0 ip
 xxx.xxx.xxx.xxx #node1 ip`,wrap:!1}}),K=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}}),ll=new J({props:{title:"Usage with Kubernetes",local:"usage-with-kubernetes",headingTag:"h2"}}),el=new J({props:{title:"Setup",local:"setup",headingTag:"h3"}}),Ml=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}}),pl=new J({props:{title:"PyTorchJob Specification File",local:"pytorchjob-specification-file",headingTag:"h3"}}),yl=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 he({props:{$$slots:{default:[fe]},$$scope:{ctx:fl}}}),Tl=new J({props:{title:"Deploy",local:"deploy",headingTag:"h3"}}),wl=new w({props:{code:"a3ViZWN0bCUyMGNyZWF0ZSUyMC1mJTIwcHl0b3JjaGpvYi55YW1s",highlighted:'kubectl <span class="hljs-keyword">create</span> -f pytorchjob.yaml',wrap:!1}}),Cl=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}}),ul=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}}),dl=new J({props:{title:"Summary",local:"summary",headingTag:"h2"}}),{c(){r=M("meta"),C=n(),h=M("p"),m=n(),o(d.$$.fragment),gl=n(),I=M("p"),I.innerHTML=xt,vl=n(),o(f.$$.fragment),Bl=n(),b=M("p"),b.innerHTML=St,$l=n(),g=M("p"),g.innerHTML=Zt,_l=n(),v=M("p"),v.innerHTML=Et,xl=n(),o(B.$$.fragment),Sl=n(),$=M("p"),$.textContent=kt,Zl=n(),_=M("table"),_.innerHTML=Rt,El=n(),o(x.$$.fragment),kl=n(),S=M("p"),S.innerHTML=Gt,Rl=n(),o(u.$$.fragment),Gl=n(),o(Z.$$.fragment),Vl=n(),E=M("p"),E.textContent=Vt,Wl=n(),k=M("p"),k.textContent=Wt,Ll=n(),R=M("p"),R.textContent=Lt,Hl=n(),o(G.$$.fragment),Nl=n(),V=M("p"),V.textContent=Ht,Pl=n(),o(W.$$.fragment),Xl=n(),o(L.$$.fragment),Yl=n(),H=M("p"),H.innerHTML=Nt,Ql=n(),N=M("p"),N.textContent=Pt,Fl=n(),o(P.$$.fragment),zl=n(),X=M("p"),X.innerHTML=Xt,ql=n(),Y=M("p"),Y.innerHTML=Yt,Dl=n(),Q=M("p"),Q.textContent=Qt,Ol=n(),o(F.$$.fragment),Kl=n(),z=M("p"),z.textContent=Ft,lt=n(),q=M("p"),q.textContent=zt,tt=n(),o(D.$$.fragment),et=n(),O=M("p"),O.innerHTML=qt,st=n(),o(K.$$.fragment),nt=n(),o(ll.$$.fragment),at=n(),tl=M("p"),tl.innerHTML=Dt,Mt=n(),o(el.$$.fragment),it=n(),sl=M("p"),sl.textContent=Ot,pt=n(),nl=M("ul"),nl.innerHTML=Kt,rt=n(),al=M("p"),al.innerHTML=le,ot=n(),o(Ml.$$.fragment),jt=n(),il=M("p"),il.textContent=te,ct=n(),o(pl.$$.fragment),yt=n(),rl=M("p"),rl.innerHTML=ee,Ut=n(),ol=M("ul"),ol.innerHTML=se,Tt=n(),jl=M("p"),jl.textContent=ne,ht=n(),cl=M("p"),cl.innerHTML=ae,wt=n(),o(yl.$$.fragment),Jt=n(),Ul=M("p"),Ul.textContent=Me,Ct=n(),o(A.$$.fragment),mt=n(),o(Tl.$$.fragment),ut=n(),hl=M("p"),hl.textContent=ie,At=n(),o(wl.$$.fragment),dt=n(),Jl=M("p"),Jl.innerHTML=pe,It=n(),o(Cl.$$.fragment),ft=n(),ml=M("p"),ml.innerHTML=re,bt=n(),o(ul.$$.fragment),gt=n(),Al=M("p"),Al.innerHTML=oe,vt=n(),o(dl.$$.fragment),Bt=n(),Il=M("p"),Il.textContent=je,$t=n(),bl=M("p"),this.h()},l(l){const t=Ae("svelte-u9bgzb",document.head);r=i(t,"META",{name:!0,content:!0}),t.forEach(e),C=a(l),h=i(l,"P",{}),Ue(h).forEach(e),m=a(l),j(d.$$.fragment,l),gl=a(l),I=i(l,"P",{"data-svelte-h":!0}),p(I)!=="svelte-k7boah"&&(I.innerHTML=xt),vl=a(l),j(f.$$.fragment,l),Bl=a(l),b=i(l,"P",{"data-svelte-h":!0}),p(b)!=="svelte-bivv3w"&&(b.innerHTML=St),$l=a(l),g=i(l,"P",{"data-svelte-h":!0}),p(g)!=="svelte-5o21pv"&&(g.innerHTML=Zt),_l=a(l),v=i(l,"P",{"data-svelte-h":!0}),p(v)!=="svelte-1qrzsug"&&(v.innerHTML=Et),xl=a(l),j(B.$$.fragment,l),Sl=a(l),$=i(l,"P",{"data-svelte-h":!0}),p($)!=="svelte-7vxiqb"&&($.textContent=kt),Zl=a(l),_=i(l,"TABLE",{"data-svelte-h":!0}),p(_)!=="svelte-1yk106u"&&(_.innerHTML=Rt),El=a(l),j(x.$$.fragment,l),kl=a(l),S=i(l,"P",{"data-svelte-h":!0}),p(S)!=="svelte-gwf101"&&(S.innerHTML=Gt),Rl=a(l),j(u.$$.fragment,l),Gl=a(l),j(Z.$$.fragment,l),Vl=a(l),E=i(l,"P",{"data-svelte-h":!0}),p(E)!=="svelte-1hu54a3"&&(E.textContent=Vt),Wl=a(l),k=i(l,"P",{"data-svelte-h":!0}),p(k)!=="svelte-1nteuhh"&&(k.textContent=Wt),Ll=a(l),R=i(l,"P",{"data-svelte-h":!0}),p(R)!=="svelte-324hiy"&&(R.textContent=Lt),Hl=a(l),j(G.$$.fragment,l),Nl=a(l),V=i(l,"P",{"data-svelte-h":!0}),p(V)!=="svelte-1x3l803"&&(V.textContent=Ht),Pl=a(l),j(W.$$.fragment,l),Xl=a(l),j(L.$$.fragment,l),Yl=a(l),H=i(l,"P",{"data-svelte-h":!0}),p(H)!=="svelte-12dw1vq"&&(H.innerHTML=Nt),Ql=a(l),N=i(l,"P",{"data-svelte-h":!0}),p(N)!=="svelte-1w8k00"&&(N.textContent=Pt),Fl=a(l),j(P.$$.fragment,l),zl=a(l),X=i(l,"P",{"data-svelte-h":!0}),p(X)!=="svelte-k782b4"&&(X.innerHTML=Xt),ql=a(l),Y=i(l,"P",{"data-svelte-h":!0}),p(Y)!=="svelte-kvcz06"&&(Y.innerHTML=Yt),Dl=a(l),Q=i(l,"P",{"data-svelte-h":!0}),p(Q)!=="svelte-m6wzyw"&&(Q.textContent=Qt),Ol=a(l),j(F.$$.fragment,l),Kl=a(l),z=i(l,"P",{"data-svelte-h":!0}),p(z)!=="svelte-cyuir"&&(z.textContent=Ft),lt=a(l),q=i(l,"P",{"data-svelte-h":!0}),p(q)!=="svelte-dlvz8o"&&(q.textContent=zt),tt=a(l),j(D.$$.fragment,l),et=a(l),O=i(l,"P",{"data-svelte-h":!0}),p(O)!=="svelte-1vsu09v"&&(O.innerHTML=qt),st=a(l),j(K.$$.fragment,l),nt=a(l),j(ll.$$.fragment,l),at=a(l),tl=i(l,"P",{"data-svelte-h":!0}),p(tl)!=="svelte-lwry78"&&(tl.innerHTML=Dt),Mt=a(l),j(el.$$.fragment,l),it=a(l),sl=i(l,"P",{"data-svelte-h":!0}),p(sl)!=="svelte-1p9mop9"&&(sl.textContent=Ot),pt=a(l),nl=i(l,"UL",{"data-svelte-h":!0}),p(nl)!=="svelte-4w2oti"&&(nl.innerHTML=Kt),rt=a(l),al=i(l,"P",{"data-svelte-h":!0}),p(al)!=="svelte-vaz613"&&(al.innerHTML=le),ot=a(l),j(Ml.$$.fragment,l),jt=a(l),il=i(l,"P",{"data-svelte-h":!0}),p(il)!=="svelte-1ra1dus"&&(il.textContent=te),ct=a(l),j(pl.$$.fragment,l),yt=a(l),rl=i(l,"P",{"data-svelte-h":!0}),p(rl)!=="svelte-ceey14"&&(rl.innerHTML=ee),Ut=a(l),ol=i(l,"UL",{"data-svelte-h":!0}),p(ol)!=="svelte-1w74v7u"&&(ol.innerHTML=se),Tt=a(l),jl=i(l,"P",{"data-svelte-h":!0}),p(jl)!=="svelte-1rtua9k"&&(jl.textContent=ne),ht=a(l),cl=i(l,"P",{"data-svelte-h":!0}),p(cl)!=="svelte-1sen8je"&&(cl.innerHTML=ae),wt=a(l),j(yl.$$.fragment,l),Jt=a(l),Ul=i(l,"P",{"data-svelte-h":!0}),p(Ul)!=="svelte-l1jsdc"&&(Ul.textContent=Me),Ct=a(l),j(A.$$.fragment,l),mt=a(l),j(Tl.$$.fragment,l),ut=a(l),hl=i(l,"P",{"data-svelte-h":!0}),p(hl)!=="svelte-w0q5hc"&&(hl.textContent=ie),At=a(l),j(wl.$$.fragment,l),dt=a(l),Jl=i(l,"P",{"data-svelte-h":!0}),p(Jl)!=="svelte-m28e4v"&&(Jl.innerHTML=pe),It=a(l),j(Cl.$$.fragment,l),ft=a(l),ml=i(l,"P",{"data-svelte-h":!0}),p(ml)!=="svelte-16sv8wu"&&(ml.innerHTML=re),bt=a(l),j(ul.$$.fragment,l),gt=a(l),Al=i(l,"P",{"data-svelte-h":!0}),p(Al)!=="svelte-ey1892"&&(Al.innerHTML=oe),vt=a(l),j(dl.$$.fragment,l),Bt=a(l),Il=i(l,"P",{"data-svelte-h":!0}),p(Il)!=="svelte-prt8yq"&&(Il.textContent=je),$t=a(l),bl=i(l,"P",{}),Ue(bl).forEach(e),this.h()},h(){Te(r,"name","hf:doc:metadata"),Te(r,"content",ge)},m(l,t){de(document.head,r),s(l,C,t),s(l,h,t),s(l,m,t),c(d,l,t),s(l,gl,t),s(l,I,t),s(l,vl,t),c(f,l,t),s(l,Bl,t),s(l,b,t),s(l,$l,t),s(l,g,t),s(l,_l,t),s(l,v,t),s(l,xl,t),c(B,l,t),s(l,Sl,t),s(l,$,t),s(l,Zl,t),s(l,_,t),s(l,El,t),c(x,l,t),s(l,kl,t),s(l,S,t),s(l,Rl,t),c(u,l,t),s(l,Gl,t),c(Z,l,t),s(l,Vl,t),s(l,E,t),s(l,Wl,t),s(l,k,t),s(l,Ll,t),s(l,R,t),s(l,Hl,t),c(G,l,t),s(l,Nl,t),s(l,V,t),s(l,Pl,t),c(W,l,t),s(l,Xl,t),c(L,l,t),s(l,Yl,t),s(l,H,t),s(l,Ql,t),s(l,N,t),s(l,Fl,t),c(P,l,t),s(l,zl,t),s(l,X,t),s(l,ql,t),s(l,Y,t),s(l,Dl,t),s(l,Q,t),s(l,Ol,t),c(F,l,t),s(l,Kl,t),s(l,z,t),s(l,lt,t),s(l,q,t),s(l,tt,t),c(D,l,t),s(l,et,t),s(l,O,t),s(l,st,t),c(K,l,t),s(l,nt,t),c(ll,l,t),s(l,at,t),s(l,tl,t),s(l,Mt,t),c(el,l,t),s(l,it,t),s(l,sl,t),s(l,pt,t),s(l,nl,t),s(l,rt,t),s(l,al,t),s(l,ot,t),c(Ml,l,t),s(l,jt,t),s(l,il,t),s(l,ct,t),c(pl,l,t),s(l,yt,t),s(l,rl,t),s(l,Ut,t),s(l,ol,t),s(l,Tt,t),s(l,jl,t),s(l,ht,t),s(l,cl,t),s(l,wt,t),c(yl,l,t),s(l,Jt,t),s(l,Ul,t),s(l,Ct,t),c(A,l,t),s(l,mt,t),c(Tl,l,t),s(l,ut,t),s(l,hl,t),s(l,At,t),c(wl,l,t),s(l,dt,t),s(l,Jl,t),s(l,It,t),c(Cl,l,t),s(l,ft,t),s(l,ml,t),s(l,bt,t),c(ul,l,t),s(l,gt,t),s(l,Al,t),s(l,vt,t),c(dl,l,t),s(l,Bt,t),s(l,Il,t),s(l,$t,t),s(l,bl,t),_t=!0},p(l,[t]){const ce={};t&2&&(ce.$$scope={dirty:t,ctx:l}),u.$set(ce);const ye={};t&2&&(ye.$$scope={dirty:t,ctx:l}),A.$set(ye)},i(l){_t||(y(d.$$.fragment,l),y(f.$$.fragment,l),y(B.$$.fragment,l),y(x.$$.fragment,l),y(u.$$.fragment,l),y(Z.$$.fragment,l),y(G.$$.fragment,l),y(W.$$.fragment,l),y(L.$$.fragment,l),y(P.$$.fragment,l),y(F.$$.fragment,l),y(D.$$.fragment,l),y(K.$$.fragment,l),y(ll.$$.fragment,l),y(el.$$.fragment,l),y(Ml.$$.fragment,l),y(pl.$$.fragment,l),y(yl.$$.fragment,l),y(A.$$.fragment,l),y(Tl.$$.fragment,l),y(wl.$$.fragment,l),y(Cl.$$.fragment,l),y(ul.$$.fragment,l),y(dl.$$.fragment,l),_t=!0)},o(l){U(d.$$.fragment,l),U(f.$$.fragment,l),U(B.$$.fragment,l),U(x.$$.fragment,l),U(u.$$.fragment,l),U(Z.$$.fragment,l),U(G.$$.fragment,l),U(W.$$.fragment,l),U(L.$$.fragment,l),U(P.$$.fragment,l),U(F.$$.fragment,l),U(D.$$.fragment,l),U(K.$$.fragment,l),U(ll.$$.fragment,l),U(el.$$.fragment,l),U(Ml.$$.fragment,l),U(pl.$$.fragment,l),U(yl.$$.fragment,l),U(A.$$.fragment,l),U(Tl.$$.fragment,l),U(wl.$$.fragment,l),U(Cl.$$.fragment,l),U(ul.$$.fragment,l),U(dl.$$.fragment,l),_t=!1},d(l){l&&(e(C),e(h),e(m),e(gl),e(I),e(vl),e(Bl),e(b),e($l),e(g),e(_l),e(v),e(xl),e(Sl),e($),e(Zl),e(_),e(El),e(kl),e(S),e(Rl),e(Gl),e(Vl),e(E),e(Wl),e(k),e(Ll),e(R),e(Hl),e(Nl),e(V),e(Pl),e(Xl),e(Yl),e(H),e(Ql),e(N),e(Fl),e(zl),e(X),e(ql),e(Y),e(Dl),e(Q),e(Ol),e(Kl),e(z),e(lt),e(q),e(tt),e(et),e(O),e(st),e(nt),e(at),e(tl),e(Mt),e(it),e(sl),e(pt),e(nl),e(rt),e(al),e(ot),e(jt),e(il),e(ct),e(yt),e(rl),e(Ut),e(ol),e(Tt),e(jl),e(ht),e(cl),e(wt),e(Jt),e(Ul),e(Ct),e(mt),e(ut),e(hl),e(At),e(dt),e(Jl),e(It),e(ft),e(ml),e(bt),e(gt),e(Al),e(vt),e(Bt),e(Il),e($t),e(bl)),e(r),T(d,l),T(f,l),T(B,l),T(x,l),T(u,l),T(Z,l),T(G,l),T(W,l),T(L,l),T(P,l),T(F,l),T(D,l),T(K,l),T(ll,l),T(el,l),T(Ml,l),T(pl,l),T(yl,l),T(A,l),T(Tl,l),T(wl,l),T(Cl,l),T(ul,l),T(dl,l)}}}const ge='{"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 ve(fl){return Ce(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ze extends me{constructor(r){super(),ue(this,r,ve,be,Je,{})}}export{Ze as component};
