From 4e9d3fc53b1fce88d9fa2b66b29948bb8fb535a6 Mon Sep 17 00:00:00 2001 From: William Falcon Date: Wed, 7 Aug 2019 08:03:37 -0500 Subject: [PATCH] Deployed b4c14a4 with MkDocs version: 1.0.4 --- Trainer/Checkpointing/index.html | 29 +++++++++++++++++++++++ Trainer/Distributed training/index.html | 2 +- Trainer/index.html | 1 + index.html | 1 + search/search_index.json | 2 +- sitemap.xml | 28 +++++++++++----------- sitemap.xml.gz | Bin 205 -> 204 bytes source/_static/lightning_logo_medium.png | Bin 0 -> 8543 bytes source/_static/lightning_logo_small.png | Bin 0 -> 2643 bytes 9 files changed, 47 insertions(+), 16 deletions(-) create mode 100644 source/_static/lightning_logo_medium.png create mode 100644 source/_static/lightning_logo_small.png diff --git a/Trainer/Checkpointing/index.html b/Trainer/Checkpointing/index.html index bf881ed1..f66aae6b 100644 --- a/Trainer/Checkpointing/index.html +++ b/Trainer/Checkpointing/index.html @@ -350,6 +350,13 @@ +
  • + + Restoring training session + + +
  • + @@ -511,6 +518,13 @@ +
  • + + Restoring training session + + +
  • + @@ -548,6 +562,21 @@ checkpoint_callback = ModelCheckpoint( trainer = Trainer(checkpoint_callback=checkpoint_callback) + +
    +

    Restoring training session

    +

    You might want to not only load a model but also continue training it. Use this method to +restore the trainer state as well. This will continue from the epoch and global step you last left off.
    +However, the dataloaders will start from the first batch again (if you shuffled it shouldn't matter).

    +

    Lightning will restore the session if you pass an experiment with the same version and there's a saved checkpoint.

    +
    from test_tube import Experiment
    +
    +exp = Experiment(version=a_previous_version_with_a_saved_checkpoint)
    +Trainer(experiment=exp)
    +
    +trainer = Trainer(checkpoint_callback=checkpoint_callback)
    +# the trainer is now restored
    +
    diff --git a/Trainer/Distributed training/index.html b/Trainer/Distributed training/index.html index de108cfd..ea52937b 100644 --- a/Trainer/Distributed training/index.html +++ b/Trainer/Distributed training/index.html @@ -698,7 +698,7 @@ cluster.add_command('export NCCL_SOCKET_IFNAME=^docker0,lo') cluster.add_command('export NCCL_DEBUG=INFO') # setting a master port here is a good idea. -cluster.add_command(f'export MASTER_PORT={PORT}') +cluster.add_command('export MASTER_PORT=%r' % PORT) # good to load the latest NCCL version cluster.load_modules(['NCCL/2.4.7-1-cuda.10.0']) diff --git a/Trainer/index.html b/Trainer/index.html index 7b06145f..ea4319d5 100644 --- a/Trainer/index.html +++ b/Trainer/index.html @@ -508,6 +508,7 @@ trainer.fit(model)

    Computing cluster (SLURM)