@@ -213,9 +213,12 @@ Lightning has over [40+ advanced features](https://pytorch-lightning.readthedocs
213213
214214Here are some examples:
215215
216+ <div align =" center " >
217+ <img src =" https://pl-bolts-doc-images.s3.us-east-2.amazonaws.com/features_2.jpg " max-height =" 600px " >
218+ </div >
216219
217220<details >
218- <summary >Train on GPUs without code changes </summary >
221+ <summary >Highlighted feature code snippets </summary >
219222
220223 ``` python
221224 # 8 GPUs
@@ -225,27 +228,21 @@ Here are some examples:
225228 # 256 GPUs
226229 trainer = Trainer(max_epochs = 1 , gpus = 8 , num_nodes = 32 )
227230 ```
228- </details >
229231
230- <details >
231232 <summary >Train on TPUs without code changes</summary >
232233
233234 ``` python
234235 # no code changes needed
235236 trainer = Trainer(tpu_cores = 8 )
236237 ```
237- </details >
238238
239- <details >
240239 <summary >16-bit precision</summary >
241240
242241 ``` python
243242 # no code changes needed
244243 trainer = Trainer(precision = 16 )
245244 ```
246- </details >
247245
248- <details >
249246 <summary >Experiment managers</summary >
250247
251248 ``` python
@@ -268,37 +265,29 @@ Here are some examples:
268265
269266 # ... and dozens more
270267 ```
271- </details >
272268
273- <details >
274269 <summary >EarlyStopping</summary >
275270
276271 ``` python
277272 es = EarlyStopping(monitor = ' val_loss' )
278273 trainer = Trainer(callbacks = [es])
279274 ```
280- </details >
281275
282- <details >
283276 <summary >Checkpointing</summary >
284277
285278 ``` python
286279 checkpointing = ModelCheckpoint(monitor = ' val_loss' )
287280 trainer = Trainer(callbacks = [checkpointing])
288281 ```
289- </details >
290282
291- <details >
292283 <summary >Export to torchscript (JIT) (production use)</summary >
293284
294285 ``` python
295286 # torchscript
296287 autoencoder = LitAutoEncoder()
297288 torch.jit.save(autoencoder.to_torchscript(), " model.pt" )
298289 ```
299- </details >
300290
301- <details >
302291 <summary >Export to ONNX (production use)</summary >
303292
304293 ``` python
0 commit comments