Deployed e9fca35 with MkDocs version: 1.0.4

This commit is contained in:
William Falcon
2019-06-27 12:47:30 -05:00
parent f324ebf0ad
commit e117e9bad1
16 changed files with 622 additions and 89 deletions
+8
View File
@@ -75,6 +75,10 @@
</li>
<li class="">
<a class="" href="/Trainer/Logging/">Logging</a>
</li>
<li class="">
<a class="" href="/Trainer/SLURM Managed Cluster/">SLURM Managed Cluster</a>
</li>
<li class="">
@@ -87,6 +91,10 @@
</li>
<li class="">
<a class="" href="/Trainer/debugging/">Debugging</a>
</li>
<li class="">
<a class="" href="/Trainer/hooks/">Hooks</a>
</li>
</ul>
@@ -114,6 +114,10 @@
</li>
<li class="">
<a class="" href="../../Trainer/Logging/">Logging</a>
</li>
<li class="">
<a class="" href="../../Trainer/SLURM Managed Cluster/">SLURM Managed Cluster</a>
</li>
<li class="">
@@ -126,6 +130,10 @@
</li>
<li class="">
<a class="" href="../../Trainer/debugging/">Debugging</a>
</li>
<li class="">
<a class="" href="../../Trainer/hooks/">Hooks</a>
</li>
</ul>
+8
View File
@@ -85,6 +85,10 @@
</li>
<li class="">
<a class="" href="../Logging/">Logging</a>
</li>
<li class="">
<a class="" href="../SLURM Managed Cluster/">SLURM Managed Cluster</a>
</li>
<li class="">
@@ -97,6 +101,10 @@
</li>
<li class="">
<a class="" href="../debugging/">Debugging</a>
</li>
<li class="">
<a class="" href="../hooks/">Hooks</a>
</li>
</ul>
+10 -2
View File
@@ -85,6 +85,10 @@
</li>
<li class="">
<a class="" href="../Logging/">Logging</a>
</li>
<li class="">
<a class="" href="../SLURM Managed Cluster/">SLURM Managed Cluster</a>
</li>
<li class="">
@@ -97,6 +101,10 @@
</li>
<li class="">
<a class="" href="../debugging/">Debugging</a>
</li>
<li class="">
<a class="" href="../hooks/">Hooks</a>
</li>
</ul>
@@ -149,7 +157,7 @@
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="../SLURM Managed Cluster/" class="btn btn-neutral float-right" title="SLURM Managed Cluster">Next <span class="icon icon-circle-arrow-right"></span></a>
<a href="../Logging/" class="btn btn-neutral float-right" title="Logging">Next <span class="icon icon-circle-arrow-right"></span></a>
<a href="../Checkpointing/" class="btn btn-neutral" title="Checkpointing"><span class="icon icon-circle-arrow-left"></span> Previous</a>
@@ -183,7 +191,7 @@
<span><a href="../Checkpointing/" style="color: #fcfcfc;">&laquo; Previous</a></span>
<span style="margin-left: 15px"><a href="../SLURM Managed Cluster/" style="color: #fcfcfc">Next &raquo;</a></span>
<span style="margin-left: 15px"><a href="../Logging/" style="color: #fcfcfc">Next &raquo;</a></span>
</span>
</div>
+234
View File
@@ -0,0 +1,234 @@
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="../../img/favicon.ico">
<title>Logging - Pytorch lightning Documentation</title>
<link href='https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="../../css/theme.css" type="text/css" />
<link rel="stylesheet" href="../../css/theme_extra.css" type="text/css" />
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/github.min.css">
<script>
// Current page data
var mkdocs_page_name = "Logging";
var mkdocs_page_input_path = "Trainer/Logging.md";
var mkdocs_page_url = null;
</script>
<script src="../../js/jquery-2.1.1.min.js" defer></script>
<script src="../../js/modernizr-2.8.3.min.js" defer></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</head>
<body class="wy-body-for-nav" role="document">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
<div class="wy-side-nav-search">
<a href="../.." class="icon icon-home"> Pytorch lightning Documentation</a>
<div role="search">
<form id ="rtd-search-form" class="wy-form" action="../../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" title="Type search term here" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
<ul class="current">
<li class="toctree-l1">
<a class="" href="../..">PYTORCH-LIGHTNING DOCUMENTATION</a>
</li>
<li class="toctree-l1">
<span class="caption-text">Pytorch Lightning</span>
<ul class="subnav">
<li class="">
<a class="" href="../../Pytorch-Lightning/LightningModule/">Lightning module</a>
</li>
</ul>
</li>
<li class="toctree-l1">
<span class="caption-text">Trainer</span>
<ul class="subnav">
<li class="">
<a class="" href="../">Trainer</a>
</li>
<li class="">
<a class="" href="../Checkpointing/">Checkpointing</a>
</li>
<li class="">
<a class="" href="../Distributed training/">Distributed training</a>
</li>
<li class=" current">
<a class="current" href="./">Logging</a>
<ul class="subnav">
<li class="toctree-l3"><a href="#display-metrics-in-progress-bar">Display metrics in progress bar</a></li>
<li class="toctree-l3"><a href="#print-which-gradients-are-nan">Print which gradients are nan</a></li>
<li class="toctree-l3"><a href="#process-position">Process position</a></li>
</ul>
</li>
<li class="">
<a class="" href="../SLURM Managed Cluster/">SLURM Managed Cluster</a>
</li>
<li class="">
<a class="" href="../Training Loop/">Training Loop</a>
</li>
<li class="">
<a class="" href="../Validation loop/">Validation loop</a>
</li>
<li class="">
<a class="" href="../debugging/">Debugging</a>
</li>
<li class="">
<a class="" href="../hooks/">Hooks</a>
</li>
</ul>
</li>
</ul>
</div>
&nbsp;
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../..">Pytorch lightning Documentation</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="../..">Docs</a> &raquo;</li>
<li>Trainer &raquo;</li>
<li>Logging</li>
<li class="wy-breadcrumbs-aside">
<a href="https://github.com/williamFalcon/pytorch-lightning/edit/master/docs/Trainer/Logging.md"
class="icon icon-github"> Edit on GitHub</a>
</li>
</ul>
<hr/>
</div>
<div role="main">
<div class="section">
<hr />
<h4 id="display-metrics-in-progress-bar">Display metrics in progress bar</h4>
<pre><code class="python"># DEFAULT
trainer = Trainer(progress_bar=True)
</code></pre>
<hr />
<h4 id="print-which-gradients-are-nan">Print which gradients are nan</h4>
<p>This option prints a list of tensors with nan gradients.</p>
<pre><code class="python"># DEFAULT
trainer = Trainer(print_nan_grads=False)
</code></pre>
<hr />
<h4 id="process-position">Process position</h4>
<p>When running multiple models on the same machine we want to decide which progress bar to use.
Lightning will stack progress bars according to this value. </p>
<pre><code class="python"># DEFAULT
trainer = Trainer(process_position=0)
# if this is the second model on the node, show the second progress bar below
trainer = Trainer(process_position=1)
</code></pre>
</div>
</div>
<footer>
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="../SLURM Managed Cluster/" class="btn btn-neutral float-right" title="SLURM Managed Cluster">Next <span class="icon icon-circle-arrow-right"></span></a>
<a href="../Distributed training/" class="btn btn-neutral" title="Distributed training"><span class="icon icon-circle-arrow-left"></span> Previous</a>
</div>
<hr/>
<div role="contentinfo">
<!-- Copyright etc -->
</div>
Built with <a href="http://www.mkdocs.org">MkDocs</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<div class="rst-versions" role="note" style="cursor: pointer">
<span class="rst-current-version" data-toggle="rst-current-version">
<a href="https://github.com/williamFalcon/pytorch-lightning/" class="fa fa-github" style="float: left; color: #fcfcfc"> GitHub</a>
<span><a href="../Distributed training/" style="color: #fcfcfc;">&laquo; Previous</a></span>
<span style="margin-left: 15px"><a href="../SLURM Managed Cluster/" style="color: #fcfcfc">Next &raquo;</a></span>
</span>
</div>
<script>var base_url = '../..';</script>
<script src="../../js/theme.js" defer></script>
<script src="../../search/main.js" defer></script>
</body>
</html>
+10 -2
View File
@@ -79,6 +79,10 @@
<li class="">
<a class="" href="../Distributed training/">Distributed training</a>
</li>
<li class="">
<a class="" href="../Logging/">Logging</a>
</li>
<li class=" current">
@@ -97,6 +101,10 @@
</li>
<li class="">
<a class="" href="../debugging/">Debugging</a>
</li>
<li class="">
<a class="" href="../hooks/">Hooks</a>
</li>
</ul>
@@ -152,7 +160,7 @@
<a href="../Training Loop/" class="btn btn-neutral float-right" title="Training Loop">Next <span class="icon icon-circle-arrow-right"></span></a>
<a href="../Distributed training/" class="btn btn-neutral" title="Distributed training"><span class="icon icon-circle-arrow-left"></span> Previous</a>
<a href="../Logging/" class="btn btn-neutral" title="Logging"><span class="icon icon-circle-arrow-left"></span> Previous</a>
</div>
@@ -180,7 +188,7 @@
<a href="https://github.com/williamFalcon/pytorch-lightning/" class="fa fa-github" style="float: left; color: #fcfcfc"> GitHub</a>
<span><a href="../Distributed training/" style="color: #fcfcfc;">&laquo; Previous</a></span>
<span><a href="../Logging/" style="color: #fcfcfc;">&laquo; Previous</a></span>
<span style="margin-left: 15px"><a href="../Training Loop/" style="color: #fcfcfc">Next &raquo;</a></span>
+8 -69
View File
@@ -82,6 +82,10 @@
</li>
<li class="">
<a class="" href="../Logging/">Logging</a>
</li>
<li class="">
<a class="" href="../SLURM Managed Cluster/">SLURM Managed Cluster</a>
</li>
<li class=" current">
@@ -95,21 +99,6 @@
<li class="toctree-l3"><a href="#anneal-learning-rate">Anneal Learning rate</a></li>
<li class="toctree-l3"><a href="#check-gpu-usage">Check GPU usage</a></li>
<li class="toctree-l3"><a href="#check-which-gradients-are-nan">Check which gradients are nan</a></li>
<li class="toctree-l3"><a href="#display-metrics-in-progress-bar">Display metrics in progress bar</a></li>
<li class="toctree-l3"><a href="#display-the-parameter-count-by-layer">Display the parameter count by layer</a></li>
<li class="toctree-l3"><a href="#fast-dev-run">Fast dev run</a></li>
<li class="toctree-l3"><a href="#force-training-for-min-or-max-epochs">Force training for min or max epochs</a></li>
@@ -119,12 +108,6 @@
<li class="toctree-l3"><a href="#inspect-gradient-norms">Inspect gradient norms</a></li>
<li class="toctree-l3"><a href="#make-model-overfit-on-subset-of-data">Make model overfit on subset of data</a></li>
<li class="toctree-l3"><a href="#process-position">Process position</a></li>
<li class="toctree-l3"><a href="#set-how-much-of-the-training-set-to-check">Set how much of the training set to check</a></li>
@@ -136,6 +119,10 @@
</li>
<li class="">
<a class="" href="../debugging/">Debugging</a>
</li>
<li class="">
<a class="" href="../hooks/">Hooks</a>
</li>
</ul>
@@ -199,33 +186,6 @@ trainer = Trainer(lr_scheduler_milestones=None)
trainer = Trainer(lr_scheduler_milestones=[100, 200, 300])
</code></pre>
<hr />
<h4 id="check-gpu-usage">Check GPU usage</h4>
<p>Lightning automatically logs gpu usage to the test tube logs. It'll only do it at the metric logging interval, so it doesn't slow down training.</p>
<hr />
<h4 id="check-which-gradients-are-nan">Check which gradients are nan</h4>
<p>This option prints a list of tensors with nan gradients.</p>
<pre><code class="python"># DEFAULT
trainer = Trainer(print_nan_grads=False)
</code></pre>
<hr />
<h4 id="display-metrics-in-progress-bar">Display metrics in progress bar</h4>
<pre><code class="python"># DEFAULT
trainer = Trainer(progress_bar=True)
</code></pre>
<hr />
<h4 id="display-the-parameter-count-by-layer">Display the parameter count by layer</h4>
<p>By default lightning prints a list of parameters <em>and submodules</em> when it starts training.</p>
<hr />
<h4 id="fast-dev-run">Fast dev run</h4>
<p>This flag is meant for debugging a full train/val/test loop. It'll activate callbacks, everything but only with 1 training and 1 validation batch.
Use this to debug a full run of your program quickly</p>
<pre><code class="python"># DEFAULT
trainer = Trainer(fast_dev_run=False)
</code></pre>
<hr />
<h4 id="force-training-for-min-or-max-epochs">Force training for min or max epochs</h4>
<p>It can be useful to force training for a minimum number of epochs or limit to a max number</p>
@@ -250,27 +210,6 @@ trainer = Trainer(track_grad_norm=-1)
trainer = Trainer(track_grad_norm=2)
</code></pre>
<hr />
<h4 id="make-model-overfit-on-subset-of-data">Make model overfit on subset of data</h4>
<p>A useful debugging trick is to make your model overfit a tiny fraction of the data.</p>
<pre><code class="python"># DEFAULT don't overfit (ie: normal training)
trainer = Trainer(overfit_pct=0.0)
# overfit on 1% of data
trainer = Trainer(overfit_pct=0.01)
</code></pre>
<hr />
<h4 id="process-position">Process position</h4>
<p>When running multiple models on the same machine we want to decide which progress bar to use.
Lightning will stack progress bars according to this value. </p>
<pre><code class="python"># DEFAULT
trainer = Trainer(process_position=0)
# if this is the second model on the node, show the second progress bar below
trainer = Trainer(process_position=1)
</code></pre>
<hr />
<h4 id="set-how-much-of-the-training-set-to-check">Set how much of the training set to check</h4>
<p>If you don't want to check 100% of the training set (for debugging or if it's huge), set this flag</p>
+10 -2
View File
@@ -82,6 +82,10 @@
</li>
<li class="">
<a class="" href="../Logging/">Logging</a>
</li>
<li class="">
<a class="" href="../SLURM Managed Cluster/">SLURM Managed Cluster</a>
</li>
<li class="">
@@ -112,6 +116,10 @@
</li>
<li class="">
<a class="" href="../debugging/">Debugging</a>
</li>
<li class="">
<a class="" href="../hooks/">Hooks</a>
</li>
</ul>
@@ -210,7 +218,7 @@ trainer = Trainer(nb_sanity_val_steps=5)
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="../hooks/" class="btn btn-neutral float-right" title="Hooks">Next <span class="icon icon-circle-arrow-right"></span></a>
<a href="../debugging/" class="btn btn-neutral float-right" title="Debugging">Next <span class="icon icon-circle-arrow-right"></span></a>
<a href="../Training Loop/" class="btn btn-neutral" title="Training Loop"><span class="icon icon-circle-arrow-left"></span> Previous</a>
@@ -244,7 +252,7 @@ trainer = Trainer(nb_sanity_val_steps=5)
<span><a href="../Training Loop/" style="color: #fcfcfc;">&laquo; Previous</a></span>
<span style="margin-left: 15px"><a href="../hooks/" style="color: #fcfcfc">Next &raquo;</a></span>
<span style="margin-left: 15px"><a href="../debugging/" style="color: #fcfcfc">Next &raquo;</a></span>
</span>
</div>
+262
View File
@@ -0,0 +1,262 @@
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="../../img/favicon.ico">
<title>Debugging - Pytorch lightning Documentation</title>
<link href='https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="../../css/theme.css" type="text/css" />
<link rel="stylesheet" href="../../css/theme_extra.css" type="text/css" />
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/github.min.css">
<script>
// Current page data
var mkdocs_page_name = "Debugging";
var mkdocs_page_input_path = "Trainer/debugging.md";
var mkdocs_page_url = null;
</script>
<script src="../../js/jquery-2.1.1.min.js" defer></script>
<script src="../../js/modernizr-2.8.3.min.js" defer></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</head>
<body class="wy-body-for-nav" role="document">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
<div class="wy-side-nav-search">
<a href="../.." class="icon icon-home"> Pytorch lightning Documentation</a>
<div role="search">
<form id ="rtd-search-form" class="wy-form" action="../../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" title="Type search term here" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
<ul class="current">
<li class="toctree-l1">
<a class="" href="../..">PYTORCH-LIGHTNING DOCUMENTATION</a>
</li>
<li class="toctree-l1">
<span class="caption-text">Pytorch Lightning</span>
<ul class="subnav">
<li class="">
<a class="" href="../../Pytorch-Lightning/LightningModule/">Lightning module</a>
</li>
</ul>
</li>
<li class="toctree-l1">
<span class="caption-text">Trainer</span>
<ul class="subnav">
<li class="">
<a class="" href="../">Trainer</a>
</li>
<li class="">
<a class="" href="../Checkpointing/">Checkpointing</a>
</li>
<li class="">
<a class="" href="../Distributed training/">Distributed training</a>
</li>
<li class="">
<a class="" href="../Logging/">Logging</a>
</li>
<li class="">
<a class="" href="../SLURM Managed Cluster/">SLURM Managed Cluster</a>
</li>
<li class="">
<a class="" href="../Training Loop/">Training Loop</a>
</li>
<li class="">
<a class="" href="../Validation loop/">Validation loop</a>
</li>
<li class=" current">
<a class="current" href="./">Debugging</a>
<ul class="subnav">
<li class="toctree-l3"><a href="#fast-dev-run">Fast dev run</a></li>
<li class="toctree-l3"><a href="#inspect-gradient-norms">Inspect gradient norms</a></li>
<li class="toctree-l3"><a href="#make-model-overfit-on-subset-of-data">Make model overfit on subset of data</a></li>
<li class="toctree-l3"><a href="#print-the-parameter-count-by-layer">Print the parameter count by layer</a></li>
<li class="toctree-l3"><a href="#print-which-gradients-are-nan">Print which gradients are nan</a></li>
<li class="toctree-l3"><a href="#log-gpu-usage">Log GPU usage</a></li>
</ul>
</li>
<li class="">
<a class="" href="../hooks/">Hooks</a>
</li>
</ul>
</li>
</ul>
</div>
&nbsp;
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../..">Pytorch lightning Documentation</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="../..">Docs</a> &raquo;</li>
<li>Trainer &raquo;</li>
<li>Debugging</li>
<li class="wy-breadcrumbs-aside">
<a href="https://github.com/williamFalcon/pytorch-lightning/edit/master/docs/Trainer/debugging.md"
class="icon icon-github"> Edit on GitHub</a>
</li>
</ul>
<hr/>
</div>
<div role="main">
<div class="section">
<p>These flags are useful to help debug a model.</p>
<hr />
<h4 id="fast-dev-run">Fast dev run</h4>
<p>This flag is meant for debugging a full train/val/test loop. It'll activate callbacks, everything but only with 1 training and 1 validation batch.
Use this to debug a full run of your program quickly</p>
<pre><code class="python"># DEFAULT
trainer = Trainer(fast_dev_run=False)
</code></pre>
<hr />
<h4 id="inspect-gradient-norms">Inspect gradient norms</h4>
<p>Looking at grad norms can help you figure out where training might be going wrong.</p>
<pre><code class="python"># DEFAULT (-1 doesn't track norms)
trainer = Trainer(track_grad_norm=-1)
# track the LP norm (P=2 here)
trainer = Trainer(track_grad_norm=2)
</code></pre>
<hr />
<h4 id="make-model-overfit-on-subset-of-data">Make model overfit on subset of data</h4>
<p>A useful debugging trick is to make your model overfit a tiny fraction of the data.</p>
<pre><code class="python"># DEFAULT don't overfit (ie: normal training)
trainer = Trainer(overfit_pct=0.0)
# overfit on 1% of data
trainer = Trainer(overfit_pct=0.01)
</code></pre>
<hr />
<h4 id="print-the-parameter-count-by-layer">Print the parameter count by layer</h4>
<p>By default lightning prints a list of parameters <em>and submodules</em> when it starts training.</p>
<hr />
<h4 id="print-which-gradients-are-nan">Print which gradients are nan</h4>
<p>This option prints a list of tensors with nan gradients.</p>
<pre><code class="python"># DEFAULT
trainer = Trainer(print_nan_grads=False)
</code></pre>
<hr />
<h4 id="log-gpu-usage">Log GPU usage</h4>
<p>Lightning automatically logs gpu usage to the test tube logs. It'll only do it at the metric logging interval, so it doesn't slow down training.</p>
</div>
</div>
<footer>
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="../hooks/" class="btn btn-neutral float-right" title="Hooks">Next <span class="icon icon-circle-arrow-right"></span></a>
<a href="../Validation loop/" class="btn btn-neutral" title="Validation loop"><span class="icon icon-circle-arrow-left"></span> Previous</a>
</div>
<hr/>
<div role="contentinfo">
<!-- Copyright etc -->
</div>
Built with <a href="http://www.mkdocs.org">MkDocs</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<div class="rst-versions" role="note" style="cursor: pointer">
<span class="rst-current-version" data-toggle="rst-current-version">
<a href="https://github.com/williamFalcon/pytorch-lightning/" class="fa fa-github" style="float: left; color: #fcfcfc"> GitHub</a>
<span><a href="../Validation loop/" style="color: #fcfcfc;">&laquo; Previous</a></span>
<span style="margin-left: 15px"><a href="../hooks/" style="color: #fcfcfc">Next &raquo;</a></span>
</span>
</div>
<script>var base_url = '../..';</script>
<script src="../../js/theme.js" defer></script>
<script src="../../search/main.js" defer></script>
</body>
</html>
+10 -2
View File
@@ -82,6 +82,10 @@
</li>
<li class="">
<a class="" href="../Logging/">Logging</a>
</li>
<li class="">
<a class="" href="../SLURM Managed Cluster/">SLURM Managed Cluster</a>
</li>
<li class="">
@@ -91,6 +95,10 @@
<li class="">
<a class="" href="../Validation loop/">Validation loop</a>
</li>
<li class="">
<a class="" href="../debugging/">Debugging</a>
</li>
<li class=" current">
@@ -150,7 +158,7 @@
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="../Validation loop/" class="btn btn-neutral" title="Validation loop"><span class="icon icon-circle-arrow-left"></span> Previous</a>
<a href="../debugging/" class="btn btn-neutral" title="Debugging"><span class="icon icon-circle-arrow-left"></span> Previous</a>
</div>
@@ -178,7 +186,7 @@
<a href="https://github.com/williamFalcon/pytorch-lightning/" class="fa fa-github" style="float: left; color: #fcfcfc"> GitHub</a>
<span><a href="../Validation loop/" style="color: #fcfcfc;">&laquo; Previous</a></span>
<span><a href="../debugging/" style="color: #fcfcfc;">&laquo; Previous</a></span>
</span>
+26 -10
View File
@@ -88,6 +88,10 @@
</li>
<li class="">
<a class="" href="Logging/">Logging</a>
</li>
<li class="">
<a class="" href="SLURM Managed Cluster/">SLURM Managed Cluster</a>
</li>
<li class="">
@@ -100,6 +104,10 @@
</li>
<li class="">
<a class="" href="debugging/">Debugging</a>
</li>
<li class="">
<a class="" href="hooks/">Hooks</a>
</li>
</ul>
@@ -161,17 +169,9 @@ trainer.fit(model)
<ul>
<li><a href="Training%20Loop/#accumulated-gradients">Accumulate gradients</a></li>
<li><a href="Training%20Loop/#anneal-learning-rate">Anneal Learning rate</a></li>
<li><a href="Training%20Loop/#Check-gpu-usage">Check GPU usage</a></li>
<li><a href="Training%20Loop/#check-which-gradients-are-nan">Check which gradients are nan</a></li>
<li><a href="Training%20Loop/#display-metrics-in-progress-bar">Display metrics in progress bar</a></li>
<li><a href="Training%20Loop/#display-the-parameter-count-by-layer">Display the parameter count by layer</a></li>
<li><a href="Training%20Loop/#fast-dev-run">Fast dev run</a></li>
<li><a href="Training%20Loop/#force-training-for-min-or-max-epochs">Force training for min or max epochs</a></li>
<li><a href="Training%20Loop/#force-disable-early-stop">Force disable early stop</a></li>
<li><a href="Training%20Loop/#inspect-gradient-norms">Inspect gradient norms</a></li>
<li><a href="Training%20Loop/#make-model-overfit-on-subset-of-data">Make model overfit on subset of data</a></li>
<li><a href="../Pytorch-lightning/LightningModule/#configure_optimizers">Use multiple optimizers (like GANs)</a></li>
<li><a href="Training%20Loop/#process-position">Process position</a></li>
<li><a href="Training%20Loop/#set-how-much-of-the-training-set-to-check">Set how much of the training set to check (1-100%)</a></li>
</ul>
<p><strong>Validation loop</strong> </p>
@@ -181,14 +181,30 @@ trainer.fit(model)
<li><a href="Validation%20Loop/#set-how-much-of-the-test-set-to-check">Set how much of the test set to check</a></li>
<li><a href="Validation%20Loop/#set-validation-check-frequency-within-1-training-epoch">Set validation check frequency within 1 training epoch</a></li>
<li><a href="Validation%20Loop/#set-the-number-of-validation-sanity-steps">Set the number of validation sanity steps</a></li>
<li><a href="Validation%20Loop/#check-validation-every-n-epochs">Check validation every n epochs</a></li>
</ul>
<p><strong>Debugging</strong> </p>
<ul>
<li><a href="Debugging/#fast-dev-run">Fast dev run</a></li>
<li><a href="Debugging/#inspect-gradient-norms">Inspect gradient norms</a></li>
<li><a href="Debugging/#Log-gpu-usage">Log GPU usage</a></li>
<li><a href="Debugging/#make-model-overfit-on-subset-of-data">Make model overfit on subset of data</a></li>
<li><a href="Debugging/#print-the-parameter-count-by-layer">Print the parameter count by layer</a></li>
<li><a href="Debugging/#print-which-gradients-are-nan">Pring which gradients are nan</a></li>
</ul>
<p><strong>Experiment Logging</strong> </p>
<ul>
<li><a href="Logging/#display-metrics-in-progress-bar">Display metrics in progress bar</a></li>
<li>Log arbitrary metrics</li>
<li><a href="Logging/#process-position">Process position</a></li>
<li>Save a snapshot of all hyperparameters</li>
<li>Save a snapshot of the code for a particular model run</li>
</ul>
<p><strong>Distributed training</strong> </p>
<ul>
<li>16-bit mixed precision</li>
<li>Single-gpu </li>
<li>Multi-gpu </li>
<li>Multi-node </li>
<li>16-bit mixed precision</li>
</ul>
<p><strong>Checkpointing</strong> </p>
<ul>
+9 -1
View File
@@ -106,6 +106,10 @@
</li>
<li class="">
<a class="" href="Trainer/Logging/">Logging</a>
</li>
<li class="">
<a class="" href="Trainer/SLURM Managed Cluster/">SLURM Managed Cluster</a>
</li>
<li class="">
@@ -118,6 +122,10 @@
</li>
<li class="">
<a class="" href="Trainer/debugging/">Debugging</a>
</li>
<li class="">
<a class="" href="Trainer/hooks/">Hooks</a>
</li>
</ul>
@@ -265,5 +273,5 @@
<!--
MkDocs version : 1.0.4
Build Date UTC : 2019-06-27 17:29:15
Build Date UTC : 2019-06-27 17:47:30
-->
+8
View File
@@ -75,6 +75,10 @@
</li>
<li class="">
<a class="" href="./Trainer/Logging/">Logging</a>
</li>
<li class="">
<a class="" href="./Trainer/SLURM Managed Cluster/">SLURM Managed Cluster</a>
</li>
<li class="">
@@ -87,6 +91,10 @@
</li>
<li class="">
<a class="" href="./Trainer/debugging/">Debugging</a>
</li>
<li class="">
<a class="" href="./Trainer/hooks/">Hooks</a>
</li>
</ul>
File diff suppressed because one or more lines are too long
+10
View File
@@ -45,4 +45,14 @@
<lastmod>2019-06-27</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-06-27</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2019-06-27</lastmod>
<changefreq>daily</changefreq>
</url>
</urlset>
BIN
View File
Binary file not shown.