import{s as ul,o as bl,n as Il}from"../chunks/scheduler.25b97de1.js";import{S as fl,i as Al,g as M,s as n,r as p,A as gl,h as i,f as l,c as a,j as hl,u as y,x as r,k as ml,y as Bl,a as s,v as U,d as T,t as c,w as J}from"../chunks/index.d9030fc9.js";import{T as dl}from"../chunks/Tip.baa67368.js";import{C}from"../chunks/CodeBlock.e6cd0d95.js";import{H as j,E as vl}from"../chunks/EditOnGithub.91d95064.js";function $l(gt){let o,h=`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(){o=M("p"),o.textContent=h},l(w){o=i(w,"P",{"data-svelte-h":!0}),r(o)!=="svelte-is6c7w"&&(o.textContent=h)},m(w,m){s(w,o,m)},p:Il,d(w){w&&l(o)}}}function _l(gt){let o,h=`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(){o=M("p"),o.innerHTML=h},l(w){o=i(w,"P",{"data-svelte-h":!0}),r(o)!=="svelte-12hslm2"&&(o.innerHTML=h)},m(w,m){s(w,o,m)},p:Il,d(w){w&&l(o)}}}function xl(gt){let o,h,w,m,u,vt,b,Ne=`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,f,_t,A,Ee='<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,Re="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",Gt,B,ke='Check more detailed information for <a href="https://github.com/intel/torch-ccl" rel="nofollow">oneccl_bind_pt</a>.',Zt,v,St,$,Ve="Wheel files are available for the following Python versions:",Nt,_,We='<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>',Et,x,Xe="Please run <code>pip list | grep torch</code> to get your <code>pytorch_version</code>.",Rt,G,kt,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.`,Vt,d,Wt,S,Xt,N,He="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,E,Le="oneccl_bindings_for_pytorch is installed along with the MPI tool set. Need to source the environment before using it.",Ht,R,Qe="for Intel® oneCCL >= 1.12.0",Lt,k,Qt,V,Ye="for Intel® oneCCL whose version < 1.12.0",Yt,W,Ft,X,zt,P,Fe='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).',Dt,H,ze="The following “Usage in Trainer” takes mpirun in Intel® MPI library as an example.",qt,L,Ot,Q,De="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,Y,qe='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,F,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,D,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,q,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,re,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/user-guides/pytorch" rel="nofollow">Kubeflow PyTorchJob training operator</a>.`,oe,st,pe,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:`,Te,it,ce,rt,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.`,Je,ot,we,pt,il=`The <a href="https://www.kubeflow.org/docs/components/training/user-guides/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,rl="<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>",je,Ut,ol=`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.`,he,Tt,pl=`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,ct,de,Jt,yl="To run this example, update the yaml based on your training script and the nodes in your cluster.",Ie,I,ue,wt,be,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:`,fe,jt,Ae,ht,Tl=`The <code>kubectl get pods -n \${NAMESPACE}</code> command can then be used to list the pods in your 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,Be,dt,cl="The logs for worker can be viewed using <code>kubectl logs &lt;pod name&gt; -n ${NAMESPACE}</code>. Add <code>-f</code> to stream the logs, for example:",ve,It,$e,ut,Jl="After the training job completes, the trained model can be copied from the PVC or storage location. When you are done\nwith the job, the PyTorchJob resource can be deleted from the cluster using <code>kubectl delete -f pytorchjob.yaml -n ${NAMESPACE}</code>.",_e,bt,xe,ft,wl=`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.`,Ge,At,Ze,Bt,Se;return u=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"}}),v=new j({props:{title:"Intel® oneCCL Bindings for PyTorch installation",local:"intel-oneccl-bindings-for-pytorch-installation",headingTag:"h3"}}),G=new C({props:{code:"cGlwJTIwaW5zdGFsbCUyMG9uZWNjbF9iaW5kX3B0JTNEJTNEJTdCcHl0b3JjaF92ZXJzaW9uJTdEJTIwLWYlMjBodHRwcyUzQSUyRiUyRmRldmVsb3Blci5pbnRlbC5jb20lMkZpcGV4LXdobC1zdGFibGUtY3B1",highlighted:"pip install oneccl_bind_pt=={pytorch_version} -f https://developer.intel.com/ipex-whl-stable-cpu",wrap:!1}}),d=new dl({props:{warning:!0,$$slots:{default:[$l]},$$scope:{ctx:gt}}}),S=new j({props:{title:"Intel® MPI library",local:"intel-mpi-library",headingTag:"h2"}}),k=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}}),W=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}}),X=new j({props:{title:"Intel® Extension for PyTorch installation",local:"intel-extension-for-pytorch-installation",headingTag:"h4"}}),L=new j({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 j({props:{title:"Usage with Kubernetes",local:"usage-with-kubernetes",headingTag:"h2"}}),st=new j({props:{title:"Setup",local:"setup",headingTag:"h3"}}),it=new C({props:{code:"RlJPTSUyMGludGVsJTJGaW50ZWwtb3B0aW1pemVkLXB5dG9yY2glM0EyLjMuMC1waXAtbXVsdGlub2RlJTBBJTBBUlVOJTIwYXB0LWdldCUyMHVwZGF0ZSUyMC15JTIwJTI2JTI2JTIwJTVDJTBBJTIwJTIwJTIwJTIwYXB0LWdldCUyMGluc3RhbGwlMjAteSUyMC0tbm8taW5zdGFsbC1yZWNvbW1lbmRzJTIwLS1maXgtbWlzc2luZyUyMCU1QyUwQSUyMCUyMCUyMCUyMGdvb2dsZS1wZXJmdG9vbHMlMjAlNUMlMEElMjAlMjAlMjAlMjBsaWJvbXAtZGV2JTBBJTBBV09SS0RJUiUyMCUyRndvcmtzcGFjZSUwQSUwQSUyMyUyMERvd25sb2FkJTIwYW5kJTIwZXh0cmFjdCUyMHRoZSUyMHRyYW5zZm9ybWVycyUyMGNvZGUlMEFBUkclMjBIRl9UUkFOU0ZPUk1FUlNfVkVSJTNEJTIyNC40NC4wJTIyJTBBUlVOJTIwcGlwJTIwaW5zdGFsbCUyMC0tbm8tY2FjaGUtZGlyJTIwJTVDJTBBJTIwJTIwJTIwJTIwdHJhbnNmb3JtZXJzJTNEJTNEJTI0JTdCSEZfVFJBTlNGT1JNRVJTX1ZFUiU3RCUyMCUyNiUyNiUyMCU1QyUwQSUyMCUyMCUyMCUyMG1rZGlyJTIwdHJhbnNmb3JtZXJzJTIwJTI2JTI2JTIwJTVDJTBBJTIwJTIwJTIwJTIwY3VybCUyMC1zU0wlMjAtLXJldHJ5JTIwNSUyMGh0dHBzJTNBJTJGJTJGZ2l0aHViLmNvbSUyRmh1Z2dpbmdmYWNlJTJGdHJhbnNmb3JtZXJzJTJGYXJjaGl2ZSUyRnJlZnMlMkZ0YWdzJTJGdiUyNCU3QkhGX1RSQU5TRk9STUVSU19WRVIlN0QudGFyLmd6JTIwJTdDJTIwdGFyJTIwLUMlMjB0cmFuc2Zvcm1lcnMlMjAtLXN0cmlwLWNvbXBvbmVudHMlM0QxJTIwLXh6ZiUyMC0=",highlighted:`<span class="hljs-keyword">FROM</span> intel/intel-optimized-pytorch:<span class="hljs-number">2.3</span>.<span class="hljs-number">0</span>-pip-multinode

<span class="hljs-keyword">RUN</span><span class="language-bash"> apt-get update -y &amp;&amp; \\
    apt-get install -y --no-install-recommends --fix-missing \\
    google-perftools \\
    libomp-dev</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.44.0&quot;</span>
<span class="hljs-keyword">RUN</span><span class="language-bash"> pip install --no-cache-dir \\
    transformers==<span class="hljs-variable">\${HF_TRANSFORMERS_VER}</span> &amp;&amp; \\
    <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}}),ot=new j({props:{title:"PyTorchJob Specification File",local:"pytorchjob-specification-file",headingTag:"h3"}}),ct=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">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-string">&quot;/bin/bash&quot;</span>, <span class="hljs-string">&quot;-c&quot;</span>]
              <span class="hljs-attr">args:</span>
                <span class="hljs-bullet">-</span> <span class="hljs-string">&gt;-
                  cd /workspace/transformers;
                  pip install -r /workspace/transformers/examples/pytorch/question-answering/requirements.txt;
                  source /usr/local/lib/python3.10/dist-packages/oneccl_bindings_for_pytorch/env/setvars.sh;
                  torchrun /workspace/transformers/examples/pytorch/question-answering/run_qa.py \\
                    --model_name_or_path distilbert/distilbert-base-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/pvc-mount/output_$(date +%Y%m%d_%H%M%S) \\
                    --no_cuda \\
                    --ddp_backend ccl \\
                    --bf16 \\
                    --use_ipex;
</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-attr">value:</span> <span class="hljs-string">&quot;240&quot;</span>
              <span class="hljs-attr">resources:</span>
                <span class="hljs-attr">limits:</span>
                  <span class="hljs-attr">cpu:</span> <span class="hljs-number">240</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">240</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 nodeSelector to match a certain node label for the worker pods</span>
            <span class="hljs-attr">node-type:</span> <span class="hljs-string">gnr</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}}),I=new dl({props:{$$slots:{default:[_l]},$$scope:{ctx:gt}}}),wt=new j({props:{title:"Deploy",local:"deploy",headingTag:"h3"}}),jt=new C({props:{code:"ZXhwb3J0JTIwTkFNRVNQQUNFJTNEJTNDc3BlY2lmeSUyMHlvdXIlMjBuYW1lc3BhY2UlM0UlMEElMEFrdWJlY3RsJTIwY3JlYXRlJTIwLWYlMjBweXRvcmNoam9iLnlhbWwlMjAtbiUyMCUyNCU3Qk5BTUVTUEFDRSU3RA==",highlighted:`<span class="hljs-built_in">export</span> NAMESPACE=&lt;specify your namespace&gt;

kubectl create -f pytorchjob.yaml -n <span class="hljs-variable">\${NAMESPACE}</span>`,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}}),It=new C({props:{code:"a3ViZWN0bCUyMGxvZ3MlMjB0cmFuc2Zvcm1lcnMtcHl0b3JjaGpvYi13b3JrZXItMCUyMC1uJTIwJTI0JTdCTkFNRVNQQUNFJTdEJTIwLWY=",highlighted:'kubectl logs transformers-pytorchjob-worker-0 -n <span class="hljs-variable">${NAMESPACE}</span> -f',wrap:!1}}),bt=new j({props:{title:"Summary",local:"summary",headingTag:"h2"}}),At=new vl({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/en/perf_train_cpu_many.md"}}),{c(){o=M("meta"),h=n(),w=M("p"),m=n(),p(u.$$.fragment),vt=n(),b=M("p"),b.innerHTML=Ne,$t=n(),p(f.$$.fragment),_t=n(),A=M("p"),A.innerHTML=Ee,xt=n(),g=M("p"),g.innerHTML=Re,Gt=n(),B=M("p"),B.innerHTML=ke,Zt=n(),p(v.$$.fragment),St=n(),$=M("p"),$.textContent=Ve,Nt=n(),_=M("table"),_.innerHTML=We,Et=n(),x=M("p"),x.innerHTML=Xe,Rt=n(),p(G.$$.fragment),kt=n(),Z=M("p"),Z.innerHTML=Pe,Vt=n(),p(d.$$.fragment),Wt=n(),p(S.$$.fragment),Xt=n(),N=M("p"),N.textContent=He,Pt=n(),E=M("p"),E.textContent=Le,Ht=n(),R=M("p"),R.textContent=Qe,Lt=n(),p(k.$$.fragment),Qt=n(),V=M("p"),V.textContent=Ye,Yt=n(),p(W.$$.fragment),Ft=n(),p(X.$$.fragment),zt=n(),P=M("p"),P.innerHTML=Fe,Dt=n(),H=M("p"),H.textContent=ze,qt=n(),p(L.$$.fragment),Ot=n(),Q=M("p"),Q.innerHTML=De,Kt=n(),Y=M("p"),Y.innerHTML=qe,te=n(),F=M("p"),F.textContent=Oe,ee=n(),p(z.$$.fragment),le=n(),D=M("p"),D.textContent=Ke,se=n(),q=M("p"),q.textContent=tl,ne=n(),p(O.$$.fragment),ae=n(),K=M("p"),K.innerHTML=el,Me=n(),p(tt.$$.fragment),ie=n(),p(et.$$.fragment),re=n(),lt=M("p"),lt.innerHTML=ll,oe=n(),p(st.$$.fragment),pe=n(),nt=M("p"),nt.textContent=sl,ye=n(),at=M("ul"),at.innerHTML=nl,Ue=n(),Mt=M("p"),Mt.innerHTML=al,Te=n(),p(it.$$.fragment),ce=n(),rt=M("p"),rt.textContent=Ml,Je=n(),p(ot.$$.fragment),we=n(),pt=M("p"),pt.innerHTML=il,Ce=n(),yt=M("ul"),yt.innerHTML=rl,je=n(),Ut=M("p"),Ut.textContent=ol,he=n(),Tt=M("p"),Tt.innerHTML=pl,me=n(),p(ct.$$.fragment),de=n(),Jt=M("p"),Jt.textContent=yl,Ie=n(),p(I.$$.fragment),ue=n(),p(wt.$$.fragment),be=n(),Ct=M("p"),Ct.textContent=Ul,fe=n(),p(jt.$$.fragment),Ae=n(),ht=M("p"),ht.innerHTML=Tl,ge=n(),p(mt.$$.fragment),Be=n(),dt=M("p"),dt.innerHTML=cl,ve=n(),p(It.$$.fragment),$e=n(),ut=M("p"),ut.innerHTML=Jl,_e=n(),p(bt.$$.fragment),xe=n(),ft=M("p"),ft.textContent=wl,Ge=n(),p(At.$$.fragment),Ze=n(),Bt=M("p"),this.h()},l(t){const e=gl("svelte-u9bgzb",document.head);o=i(e,"META",{name:!0,content:!0}),e.forEach(l),h=a(t),w=i(t,"P",{}),hl(w).forEach(l),m=a(t),y(u.$$.fragment,t),vt=a(t),b=i(t,"P",{"data-svelte-h":!0}),r(b)!=="svelte-k7boah"&&(b.innerHTML=Ne),$t=a(t),y(f.$$.fragment,t),_t=a(t),A=i(t,"P",{"data-svelte-h":!0}),r(A)!=="svelte-bivv3w"&&(A.innerHTML=Ee),xt=a(t),g=i(t,"P",{"data-svelte-h":!0}),r(g)!=="svelte-5o21pv"&&(g.innerHTML=Re),Gt=a(t),B=i(t,"P",{"data-svelte-h":!0}),r(B)!=="svelte-1qrzsug"&&(B.innerHTML=ke),Zt=a(t),y(v.$$.fragment,t),St=a(t),$=i(t,"P",{"data-svelte-h":!0}),r($)!=="svelte-7vxiqb"&&($.textContent=Ve),Nt=a(t),_=i(t,"TABLE",{"data-svelte-h":!0}),r(_)!=="svelte-19gn9co"&&(_.innerHTML=We),Et=a(t),x=i(t,"P",{"data-svelte-h":!0}),r(x)!=="svelte-21jzz8"&&(x.innerHTML=Xe),Rt=a(t),y(G.$$.fragment,t),kt=a(t),Z=i(t,"P",{"data-svelte-h":!0}),r(Z)!=="svelte-oc1h4j"&&(Z.innerHTML=Pe),Vt=a(t),y(d.$$.fragment,t),Wt=a(t),y(S.$$.fragment,t),Xt=a(t),N=i(t,"P",{"data-svelte-h":!0}),r(N)!=="svelte-1hu54a3"&&(N.textContent=He),Pt=a(t),E=i(t,"P",{"data-svelte-h":!0}),r(E)!=="svelte-1nteuhh"&&(E.textContent=Le),Ht=a(t),R=i(t,"P",{"data-svelte-h":!0}),r(R)!=="svelte-324hiy"&&(R.textContent=Qe),Lt=a(t),y(k.$$.fragment,t),Qt=a(t),V=i(t,"P",{"data-svelte-h":!0}),r(V)!=="svelte-1x3l803"&&(V.textContent=Ye),Yt=a(t),y(W.$$.fragment,t),Ft=a(t),y(X.$$.fragment,t),zt=a(t),P=i(t,"P",{"data-svelte-h":!0}),r(P)!=="svelte-12dw1vq"&&(P.innerHTML=Fe),Dt=a(t),H=i(t,"P",{"data-svelte-h":!0}),r(H)!=="svelte-1w8k00"&&(H.textContent=ze),qt=a(t),y(L.$$.fragment,t),Ot=a(t),Q=i(t,"P",{"data-svelte-h":!0}),r(Q)!=="svelte-k782b4"&&(Q.innerHTML=De),Kt=a(t),Y=i(t,"P",{"data-svelte-h":!0}),r(Y)!=="svelte-kvcz06"&&(Y.innerHTML=qe),te=a(t),F=i(t,"P",{"data-svelte-h":!0}),r(F)!=="svelte-m6wzyw"&&(F.textContent=Oe),ee=a(t),y(z.$$.fragment,t),le=a(t),D=i(t,"P",{"data-svelte-h":!0}),r(D)!=="svelte-cyuir"&&(D.textContent=Ke),se=a(t),q=i(t,"P",{"data-svelte-h":!0}),r(q)!=="svelte-dlvz8o"&&(q.textContent=tl),ne=a(t),y(O.$$.fragment,t),ae=a(t),K=i(t,"P",{"data-svelte-h":!0}),r(K)!=="svelte-1vsu09v"&&(K.innerHTML=el),Me=a(t),y(tt.$$.fragment,t),ie=a(t),y(et.$$.fragment,t),re=a(t),lt=i(t,"P",{"data-svelte-h":!0}),r(lt)!=="svelte-1nm9ddz"&&(lt.innerHTML=ll),oe=a(t),y(st.$$.fragment,t),pe=a(t),nt=i(t,"P",{"data-svelte-h":!0}),r(nt)!=="svelte-1p9mop9"&&(nt.textContent=sl),ye=a(t),at=i(t,"UL",{"data-svelte-h":!0}),r(at)!=="svelte-16c2erg"&&(at.innerHTML=nl),Ue=a(t),Mt=i(t,"P",{"data-svelte-h":!0}),r(Mt)!=="svelte-vaz613"&&(Mt.innerHTML=al),Te=a(t),y(it.$$.fragment,t),ce=a(t),rt=i(t,"P",{"data-svelte-h":!0}),r(rt)!=="svelte-1ra1dus"&&(rt.textContent=Ml),Je=a(t),y(ot.$$.fragment,t),we=a(t),pt=i(t,"P",{"data-svelte-h":!0}),r(pt)!=="svelte-5578kt"&&(pt.innerHTML=il),Ce=a(t),yt=i(t,"UL",{"data-svelte-h":!0}),r(yt)!=="svelte-1w74v7u"&&(yt.innerHTML=rl),je=a(t),Ut=i(t,"P",{"data-svelte-h":!0}),r(Ut)!=="svelte-1rtua9k"&&(Ut.textContent=ol),he=a(t),Tt=i(t,"P",{"data-svelte-h":!0}),r(Tt)!=="svelte-1sen8je"&&(Tt.innerHTML=pl),me=a(t),y(ct.$$.fragment,t),de=a(t),Jt=i(t,"P",{"data-svelte-h":!0}),r(Jt)!=="svelte-l1jsdc"&&(Jt.textContent=yl),Ie=a(t),y(I.$$.fragment,t),ue=a(t),y(wt.$$.fragment,t),be=a(t),Ct=i(t,"P",{"data-svelte-h":!0}),r(Ct)!=="svelte-w0q5hc"&&(Ct.textContent=Ul),fe=a(t),y(jt.$$.fragment,t),Ae=a(t),ht=i(t,"P",{"data-svelte-h":!0}),r(ht)!=="svelte-1rrjl11"&&(ht.innerHTML=Tl),ge=a(t),y(mt.$$.fragment,t),Be=a(t),dt=i(t,"P",{"data-svelte-h":!0}),r(dt)!=="svelte-6jo9na"&&(dt.innerHTML=cl),ve=a(t),y(It.$$.fragment,t),$e=a(t),ut=i(t,"P",{"data-svelte-h":!0}),r(ut)!=="svelte-1hi6y76"&&(ut.innerHTML=Jl),_e=a(t),y(bt.$$.fragment,t),xe=a(t),ft=i(t,"P",{"data-svelte-h":!0}),r(ft)!=="svelte-prt8yq"&&(ft.textContent=wl),Ge=a(t),y(At.$$.fragment,t),Ze=a(t),Bt=i(t,"P",{}),hl(Bt).forEach(l),this.h()},h(){ml(o,"name","hf:doc:metadata"),ml(o,"content",Gl)},m(t,e){Bl(document.head,o),s(t,h,e),s(t,w,e),s(t,m,e),U(u,t,e),s(t,vt,e),s(t,b,e),s(t,$t,e),U(f,t,e),s(t,_t,e),s(t,A,e),s(t,xt,e),s(t,g,e),s(t,Gt,e),s(t,B,e),s(t,Zt,e),U(v,t,e),s(t,St,e),s(t,$,e),s(t,Nt,e),s(t,_,e),s(t,Et,e),s(t,x,e),s(t,Rt,e),U(G,t,e),s(t,kt,e),s(t,Z,e),s(t,Vt,e),U(d,t,e),s(t,Wt,e),U(S,t,e),s(t,Xt,e),s(t,N,e),s(t,Pt,e),s(t,E,e),s(t,Ht,e),s(t,R,e),s(t,Lt,e),U(k,t,e),s(t,Qt,e),s(t,V,e),s(t,Yt,e),U(W,t,e),s(t,Ft,e),U(X,t,e),s(t,zt,e),s(t,P,e),s(t,Dt,e),s(t,H,e),s(t,qt,e),U(L,t,e),s(t,Ot,e),s(t,Q,e),s(t,Kt,e),s(t,Y,e),s(t,te,e),s(t,F,e),s(t,ee,e),U(z,t,e),s(t,le,e),s(t,D,e),s(t,se,e),s(t,q,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,re,e),s(t,lt,e),s(t,oe,e),U(st,t,e),s(t,pe,e),s(t,nt,e),s(t,ye,e),s(t,at,e),s(t,Ue,e),s(t,Mt,e),s(t,Te,e),U(it,t,e),s(t,ce,e),s(t,rt,e),s(t,Je,e),U(ot,t,e),s(t,we,e),s(t,pt,e),s(t,Ce,e),s(t,yt,e),s(t,je,e),s(t,Ut,e),s(t,he,e),s(t,Tt,e),s(t,me,e),U(ct,t,e),s(t,de,e),s(t,Jt,e),s(t,Ie,e),U(I,t,e),s(t,ue,e),U(wt,t,e),s(t,be,e),s(t,Ct,e),s(t,fe,e),U(jt,t,e),s(t,Ae,e),s(t,ht,e),s(t,ge,e),U(mt,t,e),s(t,Be,e),s(t,dt,e),s(t,ve,e),U(It,t,e),s(t,$e,e),s(t,ut,e),s(t,_e,e),U(bt,t,e),s(t,xe,e),s(t,ft,e),s(t,Ge,e),U(At,t,e),s(t,Ze,e),s(t,Bt,e),Se=!0},p(t,[e]){const Cl={};e&2&&(Cl.$$scope={dirty:e,ctx:t}),d.$set(Cl);const jl={};e&2&&(jl.$$scope={dirty:e,ctx:t}),I.$set(jl)},i(t){Se||(T(u.$$.fragment,t),T(f.$$.fragment,t),T(v.$$.fragment,t),T(G.$$.fragment,t),T(d.$$.fragment,t),T(S.$$.fragment,t),T(k.$$.fragment,t),T(W.$$.fragment,t),T(X.$$.fragment,t),T(L.$$.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(ot.$$.fragment,t),T(ct.$$.fragment,t),T(I.$$.fragment,t),T(wt.$$.fragment,t),T(jt.$$.fragment,t),T(mt.$$.fragment,t),T(It.$$.fragment,t),T(bt.$$.fragment,t),T(At.$$.fragment,t),Se=!0)},o(t){c(u.$$.fragment,t),c(f.$$.fragment,t),c(v.$$.fragment,t),c(G.$$.fragment,t),c(d.$$.fragment,t),c(S.$$.fragment,t),c(k.$$.fragment,t),c(W.$$.fragment,t),c(X.$$.fragment,t),c(L.$$.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(ot.$$.fragment,t),c(ct.$$.fragment,t),c(I.$$.fragment,t),c(wt.$$.fragment,t),c(jt.$$.fragment,t),c(mt.$$.fragment,t),c(It.$$.fragment,t),c(bt.$$.fragment,t),c(At.$$.fragment,t),Se=!1},d(t){t&&(l(h),l(w),l(m),l(vt),l(b),l($t),l(_t),l(A),l(xt),l(g),l(Gt),l(B),l(Zt),l(St),l($),l(Nt),l(_),l(Et),l(x),l(Rt),l(kt),l(Z),l(Vt),l(Wt),l(Xt),l(N),l(Pt),l(E),l(Ht),l(R),l(Lt),l(Qt),l(V),l(Yt),l(Ft),l(zt),l(P),l(Dt),l(H),l(qt),l(Ot),l(Q),l(Kt),l(Y),l(te),l(F),l(ee),l(le),l(D),l(se),l(q),l(ne),l(ae),l(K),l(Me),l(ie),l(re),l(lt),l(oe),l(pe),l(nt),l(ye),l(at),l(Ue),l(Mt),l(Te),l(ce),l(rt),l(Je),l(we),l(pt),l(Ce),l(yt),l(je),l(Ut),l(he),l(Tt),l(me),l(de),l(Jt),l(Ie),l(ue),l(be),l(Ct),l(fe),l(Ae),l(ht),l(ge),l(Be),l(dt),l(ve),l($e),l(ut),l(_e),l(xe),l(ft),l(Ge),l(Ze),l(Bt)),l(o),J(u,t),J(f,t),J(v,t),J(G,t),J(d,t),J(S,t),J(k,t),J(W,t),J(X,t),J(L,t),J(z,t),J(O,t),J(tt,t),J(et,t),J(st,t),J(it,t),J(ot,t),J(ct,t),J(I,t),J(wt,t),J(jt,t),J(mt,t),J(It,t),J(bt,t),J(At,t)}}}const Gl='{"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 bl(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Vl extends fl{constructor(o){super(),Al(this,o,Zl,xl,ul,{})}}export{Vl as component};
