From 194f04826388baf90ff757e2b3c26ba2e770b9ab Mon Sep 17 00:00:00 2001 From: William Falcon Date: Sat, 13 Feb 2021 14:41:38 -0500 Subject: [PATCH] Update README.md --- README.md | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index e09c1f25d1..cdb0b402ff 100644 --- a/README.md +++ b/README.md @@ -213,9 +213,12 @@ Lightning has over [40+ advanced features](https://pytorch-lightning.readthedocs Here are some examples: +
+ +
- Train on GPUs without code changes + Highlighted feature code snippets ```python # 8 GPUs @@ -225,27 +228,21 @@ Here are some examples: # 256 GPUs trainer = Trainer(max_epochs=1, gpus=8, num_nodes=32) ``` -
-
Train on TPUs without code changes ```python # no code changes needed trainer = Trainer(tpu_cores=8) ``` -
-
16-bit precision ```python # no code changes needed trainer = Trainer(precision=16) ``` -
-
Experiment managers ```python @@ -268,27 +265,21 @@ Here are some examples: # ... and dozens more ``` -
-
EarlyStopping ```python es = EarlyStopping(monitor='val_loss') trainer = Trainer(callbacks=[es]) ``` -
-
Checkpointing ```python checkpointing = ModelCheckpoint(monitor='val_loss') trainer = Trainer(callbacks=[checkpointing]) ``` -
-
Export to torchscript (JIT) (production use) ```python @@ -296,9 +287,7 @@ Here are some examples: autoencoder = LitAutoEncoder() torch.jit.save(autoencoder.to_torchscript(), "model.pt") ``` -
-
Export to ONNX (production use) ```python