import{s as Xe,n as Se,o as Re}from"../chunks/scheduler.9991993c.js";import{S as He,i as We,g as M,s,r as U,A as Qe,h as p,f as l,c as i,j as $e,u as w,x as a,k as Le,y as Ye,a as n,v as y,d as C,t as T,w as m}from"../chunks/index.7fc9a5e7.js";import{C as at}from"../chunks/CodeBlock.e11cba92.js";import{H as Ut}from"../chunks/Heading.e3de321f.js";function Fe(ne){let J,wt,Mt,yt,I,Ct,d,se='您用来运行模型训练和推断的硬件可能会对性能产生重大影响。要深入了解 GPU，务必查看 Tim Dettmer 出色的<a href="https://timdettmers.com/2020/09/07/which-gpu-for-deep-learning/" rel="nofollow">博文</a>。',Tt,f,ie="让我们来看一些关于 GPU 配置的实用建议。",mt,j,Jt,o,Me="当你训练更大的模型时，基本上有三种选择：",It,u,pe='<li>更大的 GPU</li> <li>更多的 GPU</li> <li>更多的 CPU 和 NVMe（通过<a href="main_classes/deepspeed#nvme-support">DeepSpeed-Infinity</a>实现）</li>',dt,c,ae="让我们从只有一块GPU的情况开始。",ft,r,jt,x,Ue="如果您购买了昂贵的高端GPU，请确保为其提供正确的供电和足够的散热。",ot,b,we="<strong>供电</strong>：",ut,v,ye="一些高端消费者级GPU卡具有2个，有时甚至3个PCI-E-8针电源插口。请确保将与插口数量相同的独立12V PCI-E-8针线缆插入卡中。不要使用同一根线缆两端的2个分叉（也称为pigtail cable）。也就是说，如果您的GPU上有2个插口，您需要使用2条PCI-E-8针线缆连接电源和卡，而不是使用一条末端有2个PCI-E-8针连接器的线缆！否则，您无法充分发挥卡的性能。",ct,h,Ce="每个PCI-E-8针电源线缆需要插入电源侧的12V轨上，并且可以提供最多150W的功率。",rt,P,Te="其他一些卡可能使用PCI-E-12针连接器，这些连接器可以提供最多500-600W的功率。",xt,B,me="低端卡可能使用6针连接器，这些连接器可提供最多75W的功率。",bt,_,Je="此外，您需要选择具有稳定电压的高端电源。一些质量较低的电源可能无法为卡提供所需的稳定电压以发挥其最大性能。",vt,N,Ie="当然，电源还需要有足够的未使用的瓦数来为卡供电。",ht,k,de="<strong>散热</strong>：",Pt,G,fe="当GPU过热时，它将开始降频，不会提供完整的性能。如果温度过高，可能会缩短GPU的使用寿命。",Bt,V,je="当GPU负载很重时，很难确定最佳温度是多少，但任何低于+80度的温度都是好的，越低越好，也许在70-75度之间是一个非常好的范围。降频可能从大约84-90度开始。但是除了降频外，持续的高温可能会缩短GPU的使用寿命。",_t,A,oe="接下来让我们看一下拥有多个GPU时最重要的方面之一：连接。",Nt,E,kt,Z,ue="如果您使用多个GPU，则卡之间的互连方式可能会对总训练时间产生巨大影响。如果GPU位于同一物理节点上，您可以运行以下代码：",Gt,$,Vt,L,ce="它将告诉您GPU如何互连。在具有双GPU并通过NVLink连接的机器上，您最有可能看到类似以下内容：",At,X,Et,S,re="在不同的机器上，如果没有NVLink，我们可能会看到：",Zt,R,$t,H,xe="这个报告包括了这个输出：",Lt,W,Xt,Q,be="因此，第一个报告<code>NV2</code>告诉我们GPU通过2个NVLink互连，而第二个报告<code>PHB</code>展示了典型的消费者级PCIe+Bridge设置。",St,Y,ve="检查你的设置中具有哪种连接类型。其中一些会使卡之间的通信更快（例如NVLink），而其他则较慢（例如PHB）。",Rt,F,he="根据使用的扩展解决方案的类型，连接速度可能会产生重大或较小的影响。如果GPU很少需要同步，就像在DDP中一样，那么较慢的连接的影响将不那么显著。如果GPU经常需要相互发送消息，就像在ZeRO-DP中一样，那么更快的连接对于实现更快的训练变得非常重要。",Ht,g,Wt,z,Pe='<a href="https://en.wikipedia.org/wiki/NVLink" rel="nofollow">NVLink</a>是由Nvidia开发的一种基于线缆的串行多通道近程通信链接。',Qt,D,Be='每个新一代提供更快的带宽，例如在<a href="https://www.nvidia.com/content/dam/en-zz/Solutions/geforce/ampere/pdf/NVIDIA-ampere-GA102-GPU-Architecture-Whitepaper-V1.pdf" rel="nofollow">Nvidia Ampere GA102 GPU架构</a>中有这样的引述：',Yt,q,_e=`<p>Third-Generation NVLink®
GA102 GPUs utilize NVIDIA’s third-generation NVLink interface, which includes four x4 links,
with each link providing 14.0625 GB/sec bandwidth in each direction between two GPUs. Four
links provide 56.25 GB/sec bandwidth in each direction, and 112.5 GB/sec total bandwidth
between two GPUs. Two RTX 3090 GPUs can be connected together for SLI using NVLink.
(Note that 3-Way and 4-Way SLI configurations are not supported.)</p>`,Ft,O,Ne="所以，在<code>nvidia-smi topo -m</code>输出的<code>NVX</code>报告中获取到的更高的<code>X</code>值意味着更好的性能。生成的结果将取决于您的GPU架构。",gt,K,ke="让我们比较在小样本wikitext上训练gpt2语言模型的执行结果。",zt,tt,Ge="结果是：",Dt,et,Ve='<thead><tr><th>NVlink</th> <th align="right">Time</th></tr></thead> <tbody><tr><td>Y</td> <td align="right">101s</td></tr> <tr><td>N</td> <td align="right">131s</td></tr></tbody>',qt,lt,Ae="可以看到，NVLink使训练速度提高了约23%。在第二个基准测试中，我们使用<code>NCCL_P2P_DISABLE=1</code>告诉GPU不要使用NVLink。",Ot,nt,Ee="这里是完整的基准测试代码和输出：",Kt,st,te,it,Ze=`硬件: 2x TITAN RTX 24GB each + NVlink with 2 NVLinks (<code>NV2</code> in <code>nvidia-smi topo -m</code>)
软件: <code>pytorch-1.8-to-be</code> + <code>cuda-11.0</code> / <code>transformers==4.3.0.dev0</code>`,ee,pt,le;return I=new Ut({props:{title:"训练用的定制硬件",local:"训练用的定制硬件",headingTag:"h1"}}),j=new Ut({props:{title:"GPU",local:"gpu",headingTag:"h2"}}),r=new Ut({props:{title:"供电和散热",local:"供电和散热",headingTag:"h3"}}),E=new Ut({props:{title:"多GPU连接",local:"多gpu连接",headingTag:"h3"}}),$=new at({props:{code:"bnZpZGlhLXNtaSUyMHRvcG8lMjAtbQ==",highlighted:"nvidia-smi topo -m",wrap:!1}}),X=new at({props:{code:"JTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwR1BVMCUyMCUyMCUyMCUyMEdQVTElMjAlMjAlMjAlMjBDUFUlMjBBZmZpbml0eSUyMCUyMCUyMCUyME5VTUElMjBBZmZpbml0eSUwQUdQVTAlMjAlMjAlMjAlMjAlMjBYJTIwJTIwJTIwJTIwJTIwJTIwTlYyJTIwJTIwJTIwJTIwJTIwMC0yMyUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyME4lMkZBJTBBR1BVMSUyMCUyMCUyMCUyME5WMiUyMCUyMCUyMCUyMCUyMCUyMFglMjAlMjAlMjAlMjAlMjAlMjAwLTIzJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwTiUyRkE=",highlighted:`        <span class="hljs-attribute">GPU0</span>    GPU1    CPU Affinity    NUMA Affinity
<span class="hljs-attribute">GPU0</span>     X      NV2     <span class="hljs-number">0</span>-<span class="hljs-number">23</span>            N/A
<span class="hljs-attribute">GPU1</span>    NV2      X      <span class="hljs-number">0</span>-<span class="hljs-number">23</span>            N/A`,wrap:!1}}),R=new at({props:{code:"JTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwR1BVMCUyMCUyMCUyMCUyMEdQVTElMjAlMjAlMjAlMjBDUFUlMjBBZmZpbml0eSUyMCUyMCUyMCUyME5VTUElMjBBZmZpbml0eSUwQUdQVTAlMjAlMjAlMjAlMjAlMjBYJTIwJTIwJTIwJTIwJTIwJTIwUEhCJTIwJTIwJTIwJTIwJTIwMC0xMSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyME4lMkZBJTBBR1BVMSUyMCUyMCUyMCUyMFBIQiUyMCUyMCUyMCUyMCUyMCUyMFglMjAlMjAlMjAlMjAlMjAlMjAwLTExJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwTiUyRkE=",highlighted:`        <span class="hljs-attribute">GPU0</span>    GPU1    CPU Affinity    NUMA Affinity
<span class="hljs-attribute">GPU0</span>     X      PHB     <span class="hljs-number">0</span>-<span class="hljs-number">11</span>            N/A
<span class="hljs-attribute">GPU1</span>    PHB      X      <span class="hljs-number">0</span>-<span class="hljs-number">11</span>            N/A`,wrap:!1}}),W=new at({props:{code:"JTIwJTIwWCUyMCUyMCUyMCUyMCUzRCUyMFNlbGYlMEElMjAlMjBTWVMlMjAlMjAlM0QlMjBDb25uZWN0aW9uJTIwdHJhdmVyc2luZyUyMFBDSWUlMjBhcyUyMHdlbGwlMjBhcyUyMHRoZSUyMFNNUCUyMGludGVyY29ubmVjdCUyMGJldHdlZW4lMjBOVU1BJTIwbm9kZXMlMjAoZS5nLiUyQyUyMFFQSSUyRlVQSSklMEElMjAlMjBOT0RFJTIwJTNEJTIwQ29ubmVjdGlvbiUyMHRyYXZlcnNpbmclMjBQQ0llJTIwYXMlMjB3ZWxsJTIwYXMlMjB0aGUlMjBpbnRlcmNvbm5lY3QlMjBiZXR3ZWVuJTIwUENJZSUyMEhvc3QlMjBCcmlkZ2VzJTIwd2l0aGluJTIwYSUyME5VTUElMjBub2RlJTBBJTIwJTIwUEhCJTIwJTIwJTNEJTIwQ29ubmVjdGlvbiUyMHRyYXZlcnNpbmclMjBQQ0llJTIwYXMlMjB3ZWxsJTIwYXMlMjBhJTIwUENJZSUyMEhvc3QlMjBCcmlkZ2UlMjAodHlwaWNhbGx5JTIwdGhlJTIwQ1BVKSUwQSUyMCUyMFBYQiUyMCUyMCUzRCUyMENvbm5lY3Rpb24lMjB0cmF2ZXJzaW5nJTIwbXVsdGlwbGUlMjBQQ0llJTIwYnJpZGdlcyUyMCh3aXRob3V0JTIwdHJhdmVyc2luZyUyMHRoZSUyMFBDSWUlMjBIb3N0JTIwQnJpZGdlKSUwQSUyMCUyMFBJWCUyMCUyMCUzRCUyMENvbm5lY3Rpb24lMjB0cmF2ZXJzaW5nJTIwYXQlMjBtb3N0JTIwYSUyMHNpbmdsZSUyMFBDSWUlMjBicmlkZ2UlMEElMjAlMjBOViUyMyUyMCUyMCUzRCUyMENvbm5lY3Rpb24lMjB0cmF2ZXJzaW5nJTIwYSUyMGJvbmRlZCUyMHNldCUyMG9mJTIwJTIzJTIwTlZMaW5rcw==",highlighted:`  X    = Self
  SYS  = Connection traversing PCIe <span class="hljs-keyword">as</span> well <span class="hljs-keyword">as</span> <span class="hljs-keyword">the</span> SMP interconnect between NUMA nodes (e.g., QPI/UPI)
  NODE = Connection traversing PCIe <span class="hljs-keyword">as</span> well <span class="hljs-keyword">as</span> <span class="hljs-keyword">the</span> interconnect between PCIe Host Bridges <span class="hljs-keyword">within</span> <span class="hljs-keyword">a</span> NUMA node
  PHB  = Connection traversing PCIe <span class="hljs-keyword">as</span> well <span class="hljs-keyword">as</span> <span class="hljs-keyword">a</span> PCIe Host Bridge (typically <span class="hljs-keyword">the</span> CPU)
  PXB  = Connection traversing multiple PCIe bridges (<span class="hljs-keyword">without</span> traversing <span class="hljs-keyword">the</span> PCIe Host Bridge)
  PIX  = Connection traversing <span class="hljs-keyword">at</span> most <span class="hljs-keyword">a</span> single PCIe bridge
  NV<span class="hljs-comment">#  = Connection traversing a bonded set of # NVLinks</span>`,wrap:!1}}),g=new Ut({props:{title:"NVlink",local:"nvlink",headingTag:"h4"}}),st=new at({props:{code:"JTIzJTIwRERQJTIwdyUyRiUyME5WTGluayUwQSUwQXJtJTIwLXIlMjAlMkZ0bXAlMkZ0ZXN0LWNsbSUzQiUyMENVREFfVklTSUJMRV9ERVZJQ0VTJTNEMCUyQzElMjB0b3JjaHJ1biUyMCU1QyUwQS0tbnByb2NfcGVyX25vZGUlMjAyJTIwZXhhbXBsZXMlMkZweXRvcmNoJTJGbGFuZ3VhZ2UtbW9kZWxpbmclMkZydW5fY2xtLnB5JTIwLS1tb2RlbF9uYW1lX29yX3BhdGglMjBvcGVuYWktY29tbXVuaXR5JTJGZ3B0MiUyMCU1QyUwQS0tZGF0YXNldF9uYW1lJTIwd2lraXRleHQlMjAtLWRhdGFzZXRfY29uZmlnX25hbWUlMjB3aWtpdGV4dC0yLXJhdy12MSUyMC0tZG9fdHJhaW4lMjAlNUMlMEEtLW91dHB1dF9kaXIlMjAlMkZ0bXAlMkZ0ZXN0LWNsbSUyMC0tcGVyX2RldmljZV90cmFpbl9iYXRjaF9zaXplJTIwNCUyMC0tbWF4X3N0ZXBzJTIwMjAwJTBBJTBBJTdCJ3RyYWluX3J1bnRpbWUnJTNBJTIwMTAxLjkwMDMlMkMlMjAndHJhaW5fc2FtcGxlc19wZXJfc2Vjb25kJyUzQSUyMDEuOTYzJTJDJTIwJ2Vwb2NoJyUzQSUyMDAuNjklN0QlMEElMEElMjMlMjBERFAlMjB3JTJGbyUyME5WTGluayUwQSUwQXJtJTIwLXIlMjAlMkZ0bXAlMkZ0ZXN0LWNsbSUzQiUyMENVREFfVklTSUJMRV9ERVZJQ0VTJTNEMCUyQzElMjBOQ0NMX1AyUF9ESVNBQkxFJTNEMSUyMHRvcmNocnVuJTIwJTVDJTBBLS1ucHJvY19wZXJfbm9kZSUyMDIlMjBleGFtcGxlcyUyRnB5dG9yY2glMkZsYW5ndWFnZS1tb2RlbGluZyUyRnJ1bl9jbG0ucHklMjAtLW1vZGVsX25hbWVfb3JfcGF0aCUyMG9wZW5haS1jb21tdW5pdHklMkZncHQyJTIwJTVDJTBBLS1kYXRhc2V0X25hbWUlMjB3aWtpdGV4dCUyMC0tZGF0YXNldF9jb25maWdfbmFtZSUyMHdpa2l0ZXh0LTItcmF3LXYxJTIwLS1kb190cmFpbiUwQS0tb3V0cHV0X2RpciUyMCUyRnRtcCUyRnRlc3QtY2xtJTIwLS1wZXJfZGV2aWNlX3RyYWluX2JhdGNoX3NpemUlMjA0JTIwLS1tYXhfc3RlcHMlMjAyMDAlMEElMEElN0IndHJhaW5fcnVudGltZSclM0ElMjAxMzEuNDM2NyUyQyUyMCd0cmFpbl9zYW1wbGVzX3Blcl9zZWNvbmQnJTNBJTIwMS41MjIlMkMlMjAnZXBvY2gnJTNBJTIwMC42OSU3RA==",highlighted:`<span class="hljs-comment"># DDP w/ NVLink</span>

<span class="hljs-built_in">rm</span> -r /tmp/test-clm; CUDA_VISIBLE_DEVICES=0,1 torchrun \\
--nproc_per_node 2 examples/pytorch/language-modeling/run_clm.py --model_name_or_path openai-community/gpt2 \\
--dataset_name wikitext --dataset_config_name wikitext-2-raw-v1 --do_train \\
--output_dir /tmp/test-clm --per_device_train_batch_size 4 --max_steps 200

{<span class="hljs-string">&#x27;train_runtime&#x27;</span>: 101.9003, <span class="hljs-string">&#x27;train_samples_per_second&#x27;</span>: 1.963, <span class="hljs-string">&#x27;epoch&#x27;</span>: 0.69}

<span class="hljs-comment"># DDP w/o NVLink</span>

<span class="hljs-built_in">rm</span> -r /tmp/test-clm; CUDA_VISIBLE_DEVICES=0,1 NCCL_P2P_DISABLE=1 torchrun \\
--nproc_per_node 2 examples/pytorch/language-modeling/run_clm.py --model_name_or_path openai-community/gpt2 \\
--dataset_name wikitext --dataset_config_name wikitext-2-raw-v1 --do_train
--output_dir /tmp/test-clm --per_device_train_batch_size 4 --max_steps 200

{<span class="hljs-string">&#x27;train_runtime&#x27;</span>: 131.4367, <span class="hljs-string">&#x27;train_samples_per_second&#x27;</span>: 1.522, <span class="hljs-string">&#x27;epoch&#x27;</span>: 0.69}`,wrap:!1}}),{c(){J=M("meta"),wt=s(),Mt=M("p"),yt=s(),U(I.$$.fragment),Ct=s(),d=M("p"),d.innerHTML=se,Tt=s(),f=M("p"),f.textContent=ie,mt=s(),U(j.$$.fragment),Jt=s(),o=M("p"),o.textContent=Me,It=s(),u=M("ul"),u.innerHTML=pe,dt=s(),c=M("p"),c.textContent=ae,ft=s(),U(r.$$.fragment),jt=s(),x=M("p"),x.textContent=Ue,ot=s(),b=M("p"),b.innerHTML=we,ut=s(),v=M("p"),v.textContent=ye,ct=s(),h=M("p"),h.textContent=Ce,rt=s(),P=M("p"),P.textContent=Te,xt=s(),B=M("p"),B.textContent=me,bt=s(),_=M("p"),_.textContent=Je,vt=s(),N=M("p"),N.textContent=Ie,ht=s(),k=M("p"),k.innerHTML=de,Pt=s(),G=M("p"),G.textContent=fe,Bt=s(),V=M("p"),V.textContent=je,_t=s(),A=M("p"),A.textContent=oe,Nt=s(),U(E.$$.fragment),kt=s(),Z=M("p"),Z.textContent=ue,Gt=s(),U($.$$.fragment),Vt=s(),L=M("p"),L.textContent=ce,At=s(),U(X.$$.fragment),Et=s(),S=M("p"),S.textContent=re,Zt=s(),U(R.$$.fragment),$t=s(),H=M("p"),H.textContent=xe,Lt=s(),U(W.$$.fragment),Xt=s(),Q=M("p"),Q.innerHTML=be,St=s(),Y=M("p"),Y.textContent=ve,Rt=s(),F=M("p"),F.textContent=he,Ht=s(),U(g.$$.fragment),Wt=s(),z=M("p"),z.innerHTML=Pe,Qt=s(),D=M("p"),D.innerHTML=Be,Yt=s(),q=M("blockquote"),q.innerHTML=_e,Ft=s(),O=M("p"),O.innerHTML=Ne,gt=s(),K=M("p"),K.textContent=ke,zt=s(),tt=M("p"),tt.textContent=Ge,Dt=s(),et=M("table"),et.innerHTML=Ve,qt=s(),lt=M("p"),lt.innerHTML=Ae,Ot=s(),nt=M("p"),nt.textContent=Ee,Kt=s(),U(st.$$.fragment),te=s(),it=M("p"),it.innerHTML=Ze,ee=s(),pt=M("p"),this.h()},l(t){const e=Qe("svelte-u9bgzb",document.head);J=p(e,"META",{name:!0,content:!0}),e.forEach(l),wt=i(t),Mt=p(t,"P",{}),$e(Mt).forEach(l),yt=i(t),w(I.$$.fragment,t),Ct=i(t),d=p(t,"P",{"data-svelte-h":!0}),a(d)!=="svelte-mc5nxz"&&(d.innerHTML=se),Tt=i(t),f=p(t,"P",{"data-svelte-h":!0}),a(f)!=="svelte-166hpoh"&&(f.textContent=ie),mt=i(t),w(j.$$.fragment,t),Jt=i(t),o=p(t,"P",{"data-svelte-h":!0}),a(o)!=="svelte-qacgmx"&&(o.textContent=Me),It=i(t),u=p(t,"UL",{"data-svelte-h":!0}),a(u)!=="svelte-1rfifts"&&(u.innerHTML=pe),dt=i(t),c=p(t,"P",{"data-svelte-h":!0}),a(c)!=="svelte-159n9qx"&&(c.textContent=ae),ft=i(t),w(r.$$.fragment,t),jt=i(t),x=p(t,"P",{"data-svelte-h":!0}),a(x)!=="svelte-1ql8w6p"&&(x.textContent=Ue),ot=i(t),b=p(t,"P",{"data-svelte-h":!0}),a(b)!=="svelte-197glyv"&&(b.innerHTML=we),ut=i(t),v=p(t,"P",{"data-svelte-h":!0}),a(v)!=="svelte-s9fmg9"&&(v.textContent=ye),ct=i(t),h=p(t,"P",{"data-svelte-h":!0}),a(h)!=="svelte-1i1j87b"&&(h.textContent=Ce),rt=i(t),P=p(t,"P",{"data-svelte-h":!0}),a(P)!=="svelte-1a54n6v"&&(P.textContent=Te),xt=i(t),B=p(t,"P",{"data-svelte-h":!0}),a(B)!=="svelte-1j2fc2i"&&(B.textContent=me),bt=i(t),_=p(t,"P",{"data-svelte-h":!0}),a(_)!=="svelte-8fml98"&&(_.textContent=Je),vt=i(t),N=p(t,"P",{"data-svelte-h":!0}),a(N)!=="svelte-10x6vpl"&&(N.textContent=Ie),ht=i(t),k=p(t,"P",{"data-svelte-h":!0}),a(k)!=="svelte-vr849j"&&(k.innerHTML=de),Pt=i(t),G=p(t,"P",{"data-svelte-h":!0}),a(G)!=="svelte-hj5mwm"&&(G.textContent=fe),Bt=i(t),V=p(t,"P",{"data-svelte-h":!0}),a(V)!=="svelte-cb4w4a"&&(V.textContent=je),_t=i(t),A=p(t,"P",{"data-svelte-h":!0}),a(A)!=="svelte-2danla"&&(A.textContent=oe),Nt=i(t),w(E.$$.fragment,t),kt=i(t),Z=p(t,"P",{"data-svelte-h":!0}),a(Z)!=="svelte-hl2gd8"&&(Z.textContent=ue),Gt=i(t),w($.$$.fragment,t),Vt=i(t),L=p(t,"P",{"data-svelte-h":!0}),a(L)!=="svelte-1odqbve"&&(L.textContent=ce),At=i(t),w(X.$$.fragment,t),Et=i(t),S=p(t,"P",{"data-svelte-h":!0}),a(S)!=="svelte-1waxkfx"&&(S.textContent=re),Zt=i(t),w(R.$$.fragment,t),$t=i(t),H=p(t,"P",{"data-svelte-h":!0}),a(H)!=="svelte-1vt7wb9"&&(H.textContent=xe),Lt=i(t),w(W.$$.fragment,t),Xt=i(t),Q=p(t,"P",{"data-svelte-h":!0}),a(Q)!=="svelte-4q8rk1"&&(Q.innerHTML=be),St=i(t),Y=p(t,"P",{"data-svelte-h":!0}),a(Y)!=="svelte-86zrdf"&&(Y.textContent=ve),Rt=i(t),F=p(t,"P",{"data-svelte-h":!0}),a(F)!=="svelte-11e56sq"&&(F.textContent=he),Ht=i(t),w(g.$$.fragment,t),Wt=i(t),z=p(t,"P",{"data-svelte-h":!0}),a(z)!=="svelte-12wlfql"&&(z.innerHTML=Pe),Qt=i(t),D=p(t,"P",{"data-svelte-h":!0}),a(D)!=="svelte-1k06un1"&&(D.innerHTML=Be),Yt=i(t),q=p(t,"BLOCKQUOTE",{"data-svelte-h":!0}),a(q)!=="svelte-14khom1"&&(q.innerHTML=_e),Ft=i(t),O=p(t,"P",{"data-svelte-h":!0}),a(O)!=="svelte-d63owv"&&(O.innerHTML=Ne),gt=i(t),K=p(t,"P",{"data-svelte-h":!0}),a(K)!=="svelte-1p43ga6"&&(K.textContent=ke),zt=i(t),tt=p(t,"P",{"data-svelte-h":!0}),a(tt)!=="svelte-1j2yk26"&&(tt.textContent=Ge),Dt=i(t),et=p(t,"TABLE",{"data-svelte-h":!0}),a(et)!=="svelte-1hvmx1i"&&(et.innerHTML=Ve),qt=i(t),lt=p(t,"P",{"data-svelte-h":!0}),a(lt)!=="svelte-1o4ysrx"&&(lt.innerHTML=Ae),Ot=i(t),nt=p(t,"P",{"data-svelte-h":!0}),a(nt)!=="svelte-k5cryp"&&(nt.textContent=Ee),Kt=i(t),w(st.$$.fragment,t),te=i(t),it=p(t,"P",{"data-svelte-h":!0}),a(it)!=="svelte-13y7wdy"&&(it.innerHTML=Ze),ee=i(t),pt=p(t,"P",{}),$e(pt).forEach(l),this.h()},h(){Le(J,"name","hf:doc:metadata"),Le(J,"content",ge)},m(t,e){Ye(document.head,J),n(t,wt,e),n(t,Mt,e),n(t,yt,e),y(I,t,e),n(t,Ct,e),n(t,d,e),n(t,Tt,e),n(t,f,e),n(t,mt,e),y(j,t,e),n(t,Jt,e),n(t,o,e),n(t,It,e),n(t,u,e),n(t,dt,e),n(t,c,e),n(t,ft,e),y(r,t,e),n(t,jt,e),n(t,x,e),n(t,ot,e),n(t,b,e),n(t,ut,e),n(t,v,e),n(t,ct,e),n(t,h,e),n(t,rt,e),n(t,P,e),n(t,xt,e),n(t,B,e),n(t,bt,e),n(t,_,e),n(t,vt,e),n(t,N,e),n(t,ht,e),n(t,k,e),n(t,Pt,e),n(t,G,e),n(t,Bt,e),n(t,V,e),n(t,_t,e),n(t,A,e),n(t,Nt,e),y(E,t,e),n(t,kt,e),n(t,Z,e),n(t,Gt,e),y($,t,e),n(t,Vt,e),n(t,L,e),n(t,At,e),y(X,t,e),n(t,Et,e),n(t,S,e),n(t,Zt,e),y(R,t,e),n(t,$t,e),n(t,H,e),n(t,Lt,e),y(W,t,e),n(t,Xt,e),n(t,Q,e),n(t,St,e),n(t,Y,e),n(t,Rt,e),n(t,F,e),n(t,Ht,e),y(g,t,e),n(t,Wt,e),n(t,z,e),n(t,Qt,e),n(t,D,e),n(t,Yt,e),n(t,q,e),n(t,Ft,e),n(t,O,e),n(t,gt,e),n(t,K,e),n(t,zt,e),n(t,tt,e),n(t,Dt,e),n(t,et,e),n(t,qt,e),n(t,lt,e),n(t,Ot,e),n(t,nt,e),n(t,Kt,e),y(st,t,e),n(t,te,e),n(t,it,e),n(t,ee,e),n(t,pt,e),le=!0},p:Se,i(t){le||(C(I.$$.fragment,t),C(j.$$.fragment,t),C(r.$$.fragment,t),C(E.$$.fragment,t),C($.$$.fragment,t),C(X.$$.fragment,t),C(R.$$.fragment,t),C(W.$$.fragment,t),C(g.$$.fragment,t),C(st.$$.fragment,t),le=!0)},o(t){T(I.$$.fragment,t),T(j.$$.fragment,t),T(r.$$.fragment,t),T(E.$$.fragment,t),T($.$$.fragment,t),T(X.$$.fragment,t),T(R.$$.fragment,t),T(W.$$.fragment,t),T(g.$$.fragment,t),T(st.$$.fragment,t),le=!1},d(t){t&&(l(wt),l(Mt),l(yt),l(Ct),l(d),l(Tt),l(f),l(mt),l(Jt),l(o),l(It),l(u),l(dt),l(c),l(ft),l(jt),l(x),l(ot),l(b),l(ut),l(v),l(ct),l(h),l(rt),l(P),l(xt),l(B),l(bt),l(_),l(vt),l(N),l(ht),l(k),l(Pt),l(G),l(Bt),l(V),l(_t),l(A),l(Nt),l(kt),l(Z),l(Gt),l(Vt),l(L),l(At),l(Et),l(S),l(Zt),l($t),l(H),l(Lt),l(Xt),l(Q),l(St),l(Y),l(Rt),l(F),l(Ht),l(Wt),l(z),l(Qt),l(D),l(Yt),l(q),l(Ft),l(O),l(gt),l(K),l(zt),l(tt),l(Dt),l(et),l(qt),l(lt),l(Ot),l(nt),l(Kt),l(te),l(it),l(ee),l(pt)),l(J),m(I,t),m(j,t),m(r,t),m(E,t),m($,t),m(X,t),m(R,t),m(W,t),m(g,t),m(st,t)}}}const ge='{"title":"训练用的定制硬件","local":"训练用的定制硬件","sections":[{"title":"GPU","local":"gpu","sections":[{"title":"供电和散热","local":"供电和散热","sections":[],"depth":3},{"title":"多GPU连接","local":"多gpu连接","sections":[{"title":"NVlink","local":"nvlink","sections":[],"depth":4}],"depth":3}],"depth":2}],"depth":1}';function ze(ne){return Re(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class tl extends He{constructor(J){super(),We(this,J,ze,Fe,Xe,{})}}export{tl as component};
