import{s as Re,n as He,o as We}from"../chunks/scheduler.9991993c.js";import{S as Qe,i as Ye,g as M,s,r as U,A as ge,h as p,f as l,c as i,j as Xe,u as w,x as a,k as Se,y as Fe,a as n,v as y,d as C,t as m,w as T}from"../chunks/index.ed60ef0f.js";import{C as Ut}from"../chunks/CodeBlock.d4c22193.js";import{H as wt,E as ze}from"../chunks/index.3555199c.js";function De(ie){let J,yt,pt,Ct,d,mt,f,Me='您用来运行模型训练和推断的硬件可能会对性能产生重大影响。要深入了解 GPU，务必查看 Tim Dettmer 出色的<a href="https://timdettmers.com/2020/09/07/which-gpu-for-deep-learning/" rel="nofollow">博文</a>。',Tt,I,pe="让我们来看一些关于 GPU 配置的实用建议。",Jt,j,dt,u,ae="当你训练更大的模型时，基本上有三种选择：",ft,r,Ue='<li>更大的 GPU</li> <li>更多的 GPU</li> <li>更多的 CPU 和 NVMe（通过<a href="main_classes/deepspeed#nvme-support">DeepSpeed-Infinity</a>实现）</li>',It,o,we="让我们从只有一块GPU的情况开始。",jt,c,ut,b,ye="如果您购买了昂贵的高端GPU，请确保为其提供正确的供电和足够的散热。",rt,x,Ce="<strong>供电</strong>：",ot,h,me="一些高端消费者级GPU卡具有2个，有时甚至3个PCI-E-8针电源插口。请确保将与插口数量相同的独立12V PCI-E-8针线缆插入卡中。不要使用同一根线缆两端的2个分叉（也称为pigtail cable）。也就是说，如果您的GPU上有2个插口，您需要使用2条PCI-E-8针线缆连接电源和卡，而不是使用一条末端有2个PCI-E-8针连接器的线缆！否则，您无法充分发挥卡的性能。",ct,v,Te="每个PCI-E-8针电源线缆需要插入电源侧的12V轨上，并且可以提供最多150W的功率。",bt,P,Je="其他一些卡可能使用PCI-E-12针连接器，这些连接器可以提供最多500-600W的功率。",xt,B,de="低端卡可能使用6针连接器，这些连接器可提供最多75W的功率。",ht,_,fe="此外，您需要选择具有稳定电压的高端电源。一些质量较低的电源可能无法为卡提供所需的稳定电压以发挥其最大性能。",vt,G,Ie="当然，电源还需要有足够的未使用的瓦数来为卡供电。",Pt,N,je="<strong>散热</strong>：",Bt,k,ue="当GPU过热时，它将开始降频，不会提供完整的性能。如果温度过高，可能会缩短GPU的使用寿命。",_t,V,re="当GPU负载很重时，很难确定最佳温度是多少，但任何低于+80度的温度都是好的，越低越好，也许在70-75度之间是一个非常好的范围。降频可能从大约84-90度开始。但是除了降频外，持续的高温可能会缩短GPU的使用寿命。",Gt,$,oe="接下来让我们看一下拥有多个GPU时最重要的方面之一：连接。",Nt,A,kt,E,ce="如果您使用多个GPU，则卡之间的互连方式可能会对总训练时间产生巨大影响。如果GPU位于同一物理节点上，您可以运行以下代码：",Vt,Z,$t,L,be="它将告诉您GPU如何互连。在具有双GPU并通过NVLink连接的机器上，您最有可能看到类似以下内容：",At,X,Et,S,xe="在不同的机器上，如果没有NVLink，我们可能会看到：",Zt,R,Lt,H,he="这个报告包括了这个输出：",Xt,W,St,Q,ve="因此，第一个报告<code>NV2</code>告诉我们GPU通过2个NVLink互连，而第二个报告<code>PHB</code>展示了典型的消费者级PCIe+Bridge设置。",Rt,Y,Pe="检查你的设置中具有哪种连接类型。其中一些会使卡之间的通信更快（例如NVLink），而其他则较慢（例如PHB）。",Ht,g,Be="根据使用的扩展解决方案的类型，连接速度可能会产生重大或较小的影响。如果GPU很少需要同步，就像在DDP中一样，那么较慢的连接的影响将不那么显著。如果GPU经常需要相互发送消息，就像在ZeRO-DP中一样，那么更快的连接对于实现更快的训练变得非常重要。",Wt,F,Qt,z,_e='<a href="https://en.wikipedia.org/wiki/NVLink" rel="nofollow">NVLink</a>是由Nvidia开发的一种基于线缆的串行多通道近程通信链接。',Yt,D,Ge='每个新一代提供更快的带宽，例如在<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>中有这样的引述：',gt,O,Ne=`<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,q,ke="所以，在<code>nvidia-smi topo -m</code>输出的<code>NVX</code>报告中获取到的更高的<code>X</code>值意味着更好的性能。生成的结果将取决于您的GPU架构。",zt,K,Ve="让我们比较在小样本wikitext上训练gpt2语言模型的执行结果。",Dt,tt,$e="结果是：",Ot,et,Ae='<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,Ee="可以看到，NVLink使训练速度提高了约23%。在第二个基准测试中，我们使用<code>NCCL_P2P_DISABLE=1</code>告诉GPU不要使用NVLink。",Kt,nt,Ze="这里是完整的基准测试代码和输出：",te,st,ee,it,Le=`硬件: 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>`,le,Mt,ne,at,se;return d=new wt({props:{title:"训练用的定制硬件",local:"训练用的定制硬件",headingTag:"h1"}}),j=new wt({props:{title:"GPU",local:"gpu",headingTag:"h2"}}),c=new wt({props:{title:"供电和散热",local:"供电和散热",headingTag:"h3"}}),A=new wt({props:{title:"多GPU连接",local:"多gpu连接",headingTag:"h3"}}),Z=new Ut({props:{code:"bnZpZGlhLXNtaSUyMHRvcG8lMjAtbQ==",highlighted:"nvidia-smi topo -m",wrap:!1}}),X=new Ut({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 Ut({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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TIzJTIwTlZMaW5rcw==",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}}),F=new wt({props:{title:"NVlink",local:"nvlink",headingTag:"h4"}}),st=new Ut({props:{code:"JTIzJTIwRERQJTIwdyUyRiUyME5WTGluayUwQSUwQXJtJTIwLXIlMjAlMkZ0bXAlMkZ0ZXN0LWNsbSUzQiUyMENVREFfVklTSUJMRV9ERVZJQ0VTJTNEMCUyQzElMjB0b3JjaHJ1biUyMCU1QyUwQS0tbnByb2NfcGVyX25vZGUlMjAyJTIwZXhhbXBsZXMlMkZweXRvcmNoJTJGbGFuZ3VhZ2UtbW9kZWxpbmclMkZydW5fY2xtLnB5JTIwLS1tb2RlbF9uYW1lX29yX3BhdGglMjBvcGVuYWktY29tbXVuaXR5JTJGZ3B0MiUyMCU1QyUwQS0tZGF0YXNldF9uYW1lJTIwd2lraXRleHQlMjAtLWRhdGFzZXRfY29uZmlnX25hbWUlMjB3aWtpdGV4dC0yLXJhdy12MSUyMC0tZG9fdHJhaW4lMjAlNUMlMEEtLW91dHB1dF9kaXIlMjAlMkZ0bXA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run \\
--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}}),Mt=new ze({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/zh/perf_hardware.md"}}),{c(){J=M("meta"),yt=s(),pt=M("p"),Ct=s(),U(d.$$.fragment),mt=s(),f=M("p"),f.innerHTML=Me,Tt=s(),I=M("p"),I.textContent=pe,Jt=s(),U(j.$$.fragment),dt=s(),u=M("p"),u.textContent=ae,ft=s(),r=M("ul"),r.innerHTML=Ue,It=s(),o=M("p"),o.textContent=we,jt=s(),U(c.$$.fragment),ut=s(),b=M("p"),b.textContent=ye,rt=s(),x=M("p"),x.innerHTML=Ce,ot=s(),h=M("p"),h.textContent=me,ct=s(),v=M("p"),v.textContent=Te,bt=s(),P=M("p"),P.textContent=Je,xt=s(),B=M("p"),B.textContent=de,ht=s(),_=M("p"),_.textContent=fe,vt=s(),G=M("p"),G.textContent=Ie,Pt=s(),N=M("p"),N.innerHTML=je,Bt=s(),k=M("p"),k.textContent=ue,_t=s(),V=M("p"),V.textContent=re,Gt=s(),$=M("p"),$.textContent=oe,Nt=s(),U(A.$$.fragment),kt=s(),E=M("p"),E.textContent=ce,Vt=s(),U(Z.$$.fragment),$t=s(),L=M("p"),L.textContent=be,At=s(),U(X.$$.fragment),Et=s(),S=M("p"),S.textContent=xe,Zt=s(),U(R.$$.fragment),Lt=s(),H=M("p"),H.textContent=he,Xt=s(),U(W.$$.fragment),St=s(),Q=M("p"),Q.innerHTML=ve,Rt=s(),Y=M("p"),Y.textContent=Pe,Ht=s(),g=M("p"),g.textContent=Be,Wt=s(),U(F.$$.fragment),Qt=s(),z=M("p"),z.innerHTML=_e,Yt=s(),D=M("p"),D.innerHTML=Ge,gt=s(),O=M("blockquote"),O.innerHTML=Ne,Ft=s(),q=M("p"),q.innerHTML=ke,zt=s(),K=M("p"),K.textContent=Ve,Dt=s(),tt=M("p"),tt.textContent=$e,Ot=s(),et=M("table"),et.innerHTML=Ae,qt=s(),lt=M("p"),lt.innerHTML=Ee,Kt=s(),nt=M("p"),nt.textContent=Ze,te=s(),U(st.$$.fragment),ee=s(),it=M("p"),it.innerHTML=Le,le=s(),U(Mt.$$.fragment),ne=s(),at=M("p"),this.h()},l(t){const e=ge("svelte-u9bgzb",document.head);J=p(e,"META",{name:!0,content:!0}),e.forEach(l),yt=i(t),pt=p(t,"P",{}),Xe(pt).forEach(l),Ct=i(t),w(d.$$.fragment,t),mt=i(t),f=p(t,"P",{"data-svelte-h":!0}),a(f)!=="svelte-mc5nxz"&&(f.innerHTML=Me),Tt=i(t),I=p(t,"P",{"data-svelte-h":!0}),a(I)!=="svelte-166hpoh"&&(I.textContent=pe),Jt=i(t),w(j.$$.fragment,t),dt=i(t),u=p(t,"P",{"data-svelte-h":!0}),a(u)!=="svelte-qacgmx"&&(u.textContent=ae),ft=i(t),r=p(t,"UL",{"data-svelte-h":!0}),a(r)!=="svelte-1rfifts"&&(r.innerHTML=Ue),It=i(t),o=p(t,"P",{"data-svelte-h":!0}),a(o)!=="svelte-159n9qx"&&(o.textContent=we),jt=i(t),w(c.$$.fragment,t),ut=i(t),b=p(t,"P",{"data-svelte-h":!0}),a(b)!=="svelte-1ql8w6p"&&(b.textContent=ye),rt=i(t),x=p(t,"P",{"data-svelte-h":!0}),a(x)!=="svelte-197glyv"&&(x.innerHTML=Ce),ot=i(t),h=p(t,"P",{"data-svelte-h":!0}),a(h)!=="svelte-s9fmg9"&&(h.textContent=me),ct=i(t),v=p(t,"P",{"data-svelte-h":!0}),a(v)!=="svelte-1i1j87b"&&(v.textContent=Te),bt=i(t),P=p(t,"P",{"data-svelte-h":!0}),a(P)!=="svelte-1a54n6v"&&(P.textContent=Je),xt=i(t),B=p(t,"P",{"data-svelte-h":!0}),a(B)!=="svelte-1j2fc2i"&&(B.textContent=de),ht=i(t),_=p(t,"P",{"data-svelte-h":!0}),a(_)!=="svelte-8fml98"&&(_.textContent=fe),vt=i(t),G=p(t,"P",{"data-svelte-h":!0}),a(G)!=="svelte-10x6vpl"&&(G.textContent=Ie),Pt=i(t),N=p(t,"P",{"data-svelte-h":!0}),a(N)!=="svelte-vr849j"&&(N.innerHTML=je),Bt=i(t),k=p(t,"P",{"data-svelte-h":!0}),a(k)!=="svelte-hj5mwm"&&(k.textContent=ue),_t=i(t),V=p(t,"P",{"data-svelte-h":!0}),a(V)!=="svelte-cb4w4a"&&(V.textContent=re),Gt=i(t),$=p(t,"P",{"data-svelte-h":!0}),a($)!=="svelte-2danla"&&($.textContent=oe),Nt=i(t),w(A.$$.fragment,t),kt=i(t),E=p(t,"P",{"data-svelte-h":!0}),a(E)!=="svelte-hl2gd8"&&(E.textContent=ce),Vt=i(t),w(Z.$$.fragment,t),$t=i(t),L=p(t,"P",{"data-svelte-h":!0}),a(L)!=="svelte-1odqbve"&&(L.textContent=be),At=i(t),w(X.$$.fragment,t),Et=i(t),S=p(t,"P",{"data-svelte-h":!0}),a(S)!=="svelte-1waxkfx"&&(S.textContent=xe),Zt=i(t),w(R.$$.fragment,t),Lt=i(t),H=p(t,"P",{"data-svelte-h":!0}),a(H)!=="svelte-1vt7wb9"&&(H.textContent=he),Xt=i(t),w(W.$$.fragment,t),St=i(t),Q=p(t,"P",{"data-svelte-h":!0}),a(Q)!=="svelte-4q8rk1"&&(Q.innerHTML=ve),Rt=i(t),Y=p(t,"P",{"data-svelte-h":!0}),a(Y)!=="svelte-86zrdf"&&(Y.textContent=Pe),Ht=i(t),g=p(t,"P",{"data-svelte-h":!0}),a(g)!=="svelte-11e56sq"&&(g.textContent=Be),Wt=i(t),w(F.$$.fragment,t),Qt=i(t),z=p(t,"P",{"data-svelte-h":!0}),a(z)!=="svelte-12wlfql"&&(z.innerHTML=_e),Yt=i(t),D=p(t,"P",{"data-svelte-h":!0}),a(D)!=="svelte-1k06un1"&&(D.innerHTML=Ge),gt=i(t),O=p(t,"BLOCKQUOTE",{"data-svelte-h":!0}),a(O)!=="svelte-14khom1"&&(O.innerHTML=Ne),Ft=i(t),q=p(t,"P",{"data-svelte-h":!0}),a(q)!=="svelte-d63owv"&&(q.innerHTML=ke),zt=i(t),K=p(t,"P",{"data-svelte-h":!0}),a(K)!=="svelte-1p43ga6"&&(K.textContent=Ve),Dt=i(t),tt=p(t,"P",{"data-svelte-h":!0}),a(tt)!=="svelte-1j2yk26"&&(tt.textContent=$e),Ot=i(t),et=p(t,"TABLE",{"data-svelte-h":!0}),a(et)!=="svelte-1hvmx1i"&&(et.innerHTML=Ae),qt=i(t),lt=p(t,"P",{"data-svelte-h":!0}),a(lt)!=="svelte-1o4ysrx"&&(lt.innerHTML=Ee),Kt=i(t),nt=p(t,"P",{"data-svelte-h":!0}),a(nt)!=="svelte-k5cryp"&&(nt.textContent=Ze),te=i(t),w(st.$$.fragment,t),ee=i(t),it=p(t,"P",{"data-svelte-h":!0}),a(it)!=="svelte-13y7wdy"&&(it.innerHTML=Le),le=i(t),w(Mt.$$.fragment,t),ne=i(t),at=p(t,"P",{}),Xe(at).forEach(l),this.h()},h(){Se(J,"name","hf:doc:metadata"),Se(J,"content",Oe)},m(t,e){Fe(document.head,J),n(t,yt,e),n(t,pt,e),n(t,Ct,e),y(d,t,e),n(t,mt,e),n(t,f,e),n(t,Tt,e),n(t,I,e),n(t,Jt,e),y(j,t,e),n(t,dt,e),n(t,u,e),n(t,ft,e),n(t,r,e),n(t,It,e),n(t,o,e),n(t,jt,e),y(c,t,e),n(t,ut,e),n(t,b,e),n(t,rt,e),n(t,x,e),n(t,ot,e),n(t,h,e),n(t,ct,e),n(t,v,e),n(t,bt,e),n(t,P,e),n(t,xt,e),n(t,B,e),n(t,ht,e),n(t,_,e),n(t,vt,e),n(t,G,e),n(t,Pt,e),n(t,N,e),n(t,Bt,e),n(t,k,e),n(t,_t,e),n(t,V,e),n(t,Gt,e),n(t,$,e),n(t,Nt,e),y(A,t,e),n(t,kt,e),n(t,E,e),n(t,Vt,e),y(Z,t,e),n(t,$t,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,Lt,e),n(t,H,e),n(t,Xt,e),y(W,t,e),n(t,St,e),n(t,Q,e),n(t,Rt,e),n(t,Y,e),n(t,Ht,e),n(t,g,e),n(t,Wt,e),y(F,t,e),n(t,Qt,e),n(t,z,e),n(t,Yt,e),n(t,D,e),n(t,gt,e),n(t,O,e),n(t,Ft,e),n(t,q,e),n(t,zt,e),n(t,K,e),n(t,Dt,e),n(t,tt,e),n(t,Ot,e),n(t,et,e),n(t,qt,e),n(t,lt,e),n(t,Kt,e),n(t,nt,e),n(t,te,e),y(st,t,e),n(t,ee,e),n(t,it,e),n(t,le,e),y(Mt,t,e),n(t,ne,e),n(t,at,e),se=!0},p:He,i(t){se||(C(d.$$.fragment,t),C(j.$$.fragment,t),C(c.$$.fragment,t),C(A.$$.fragment,t),C(Z.$$.fragment,t),C(X.$$.fragment,t),C(R.$$.fragment,t),C(W.$$.fragment,t),C(F.$$.fragment,t),C(st.$$.fragment,t),C(Mt.$$.fragment,t),se=!0)},o(t){m(d.$$.fragment,t),m(j.$$.fragment,t),m(c.$$.fragment,t),m(A.$$.fragment,t),m(Z.$$.fragment,t),m(X.$$.fragment,t),m(R.$$.fragment,t),m(W.$$.fragment,t),m(F.$$.fragment,t),m(st.$$.fragment,t),m(Mt.$$.fragment,t),se=!1},d(t){t&&(l(yt),l(pt),l(Ct),l(mt),l(f),l(Tt),l(I),l(Jt),l(dt),l(u),l(ft),l(r),l(It),l(o),l(jt),l(ut),l(b),l(rt),l(x),l(ot),l(h),l(ct),l(v),l(bt),l(P),l(xt),l(B),l(ht),l(_),l(vt),l(G),l(Pt),l(N),l(Bt),l(k),l(_t),l(V),l(Gt),l($),l(Nt),l(kt),l(E),l(Vt),l($t),l(L),l(At),l(Et),l(S),l(Zt),l(Lt),l(H),l(Xt),l(St),l(Q),l(Rt),l(Y),l(Ht),l(g),l(Wt),l(Qt),l(z),l(Yt),l(D),l(gt),l(O),l(Ft),l(q),l(zt),l(K),l(Dt),l(tt),l(Ot),l(et),l(qt),l(lt),l(Kt),l(nt),l(te),l(ee),l(it),l(le),l(ne),l(at)),l(J),T(d,t),T(j,t),T(c,t),T(A,t),T(Z,t),T(X,t),T(R,t),T(W,t),T(F,t),T(st,t),T(Mt,t)}}}const Oe='{"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 qe(ie){return We(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class nl extends Qe{constructor(J){super(),Ye(this,J,qe,De,Re,{})}}export{nl as component};
