You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 26, 2022. It is now read-only.
<h1>Activation Checkpointing<aclass="headerlink" href="#activation-checkpointing" title="Permalink to this headline">¶</a></h1>
309
+
<h1>Activation Checkpointing<aclass="headerlink" href="#activation-checkpointing" title="Permalink to this headline"></a></h1>
278
310
<p>You can specify your own activation checkpointing related configuration under <codeclass="docutils literal notranslate"><spanclass="pre">activation_checkpointing</span></code> like:</p>
<h2>1. enable: <codeclass="docutils literal notranslate"><spanclass="pre">bool</span></code><aclass="headerlink" href="#enable-bool" title="Permalink to this headline">¶</a></h2>
322
+
<h2>1. enable: <codeclass="docutils literal notranslate"><spanclass="pre">bool</span></code><aclass="headerlink" href="#enable-bool" title="Permalink to this headline"></a></h2>
291
323
<ulclass="simple">
292
324
<li><p>type: bool</p></li>
293
325
<li><p>default: False</p></li>
294
326
</ul>
295
327
<p>Enable activation checkpointing.</p>
296
328
</div>
297
329
<divclass="section" id="cpu-checkpointing-bool">
298
-
<h2>2. cpu_checkpointing: <codeclass="docutils literal notranslate"><spanclass="pre">bool</span></code><aclass="headerlink" href="#cpu-checkpointing-bool" title="Permalink to this headline">¶</a></h2>
330
+
<h2>2. cpu_checkpointing: <codeclass="docutils literal notranslate"><spanclass="pre">bool</span></code><aclass="headerlink" href="#cpu-checkpointing-bool" title="Permalink to this headline"></a></h2>
<h2>3. partitioned_checkpointing: <codeclass="docutils literal notranslate"><spanclass="pre">bool</span></code><aclass="headerlink" href="#partitioned-checkpointing-bool" title="Permalink to this headline">¶</a></h2>
338
+
<h2>3. partitioned_checkpointing: <codeclass="docutils literal notranslate"><spanclass="pre">bool</span></code><aclass="headerlink" href="#partitioned-checkpointing-bool" title="Permalink to this headline"></a></h2>
<h2>4. contiguous_checkpointing: <codeclass="docutils literal notranslate"><spanclass="pre">bool</span></code><aclass="headerlink" href="#contiguous-checkpointing-bool" title="Permalink to this headline">¶</a></h2>
347
+
<h2>4. contiguous_checkpointing: <codeclass="docutils literal notranslate"><spanclass="pre">bool</span></code><aclass="headerlink" href="#contiguous-checkpointing-bool" title="Permalink to this headline"></a></h2>
316
348
<p>Enable contiguous checkpointing.</p>
317
349
<p>Note that this is only available when you are using partitioned checkpointing.</p>
<h1>Kernel Fusion<aclass="headerlink" href="#kernel-fusion" title="Permalink to this headline">¶</a></h1>
289
+
<h1>Kernel Fusion<aclass="headerlink" href="#kernel-fusion" title="Permalink to this headline"></a></h1>
257
290
<p>You can specify your own kernel fusion related configuration under <codeclass="docutils literal notranslate"><spanclass="pre">kernel_fusion</span></code> like:</p>
@@ -265,23 +298,23 @@ <h1>Kernel Fusion<a class="headerlink" href="#kernel-fusion" title="Permalink to
265
298
</pre></div>
266
299
</div>
267
300
<divclass="section" id="enable-bool">
268
-
<h2>1. enable: <codeclass="docutils literal notranslate"><spanclass="pre">bool</span></code><aclass="headerlink" href="#enable-bool" title="Permalink to this headline">¶</a></h2>
301
+
<h2>1. enable: <codeclass="docutils literal notranslate"><spanclass="pre">bool</span></code><aclass="headerlink" href="#enable-bool" title="Permalink to this headline"></a></h2>
<h2>2. memory_efficient_fusion: <codeclass="docutils literal notranslate"><spanclass="pre">bool</span></code><aclass="headerlink" href="#memory-efficient-fusion-bool" title="Permalink to this headline">¶</a></h2>
309
+
<h2>2. memory_efficient_fusion: <codeclass="docutils literal notranslate"><spanclass="pre">bool</span></code><aclass="headerlink" href="#memory-efficient-fusion-bool" title="Permalink to this headline"></a></h2>
<h2>3. custom_cuda_kernels: <codeclass="docutils literal notranslate"><spanclass="pre">list</span></code><aclass="headerlink" href="#custom-cuda-kernels-list" title="Permalink to this headline">¶</a></h2>
317
+
<h2>3. custom_cuda_kernels: <codeclass="docutils literal notranslate"><spanclass="pre">list</span></code><aclass="headerlink" href="#custom-cuda-kernels-list" title="Permalink to this headline"></a></h2>
<h1>Model Parallelism<aclass="headerlink" href="#model-parallelism" title="Permalink to this headline">¶</a></h1>
283
+
<h1>Model Parallelism<aclass="headerlink" href="#model-parallelism" title="Permalink to this headline"></a></h1>
252
284
<p>You can specify your own model parallelism related configuration under <codeclass="docutils literal notranslate"><spanclass="pre">model_parallelism</span></code> like:</p>
<h2>1. enable: <codeclass="docutils literal notranslate"><spanclass="pre">bool</span></code><aclass="headerlink" href="#enable-bool" title="Permalink to this headline">¶</a></h2>
294
+
<h2>1. enable: <codeclass="docutils literal notranslate"><spanclass="pre">bool</span></code><aclass="headerlink" href="#enable-bool" title="Permalink to this headline"></a></h2>
<h2>2. tensor_parallel_size: <codeclass="docutils literal notranslate"><spanclass="pre">int</span></code><aclass="headerlink" href="#tensor-parallel-size-int" title="Permalink to this headline">¶</a></h2>
302
+
<h2>2. tensor_parallel_size: <codeclass="docutils literal notranslate"><spanclass="pre">int</span></code><aclass="headerlink" href="#tensor-parallel-size-int" title="Permalink to this headline"></a></h2>
0 commit comments