mirror of
				https://github.com/clearml/clearml-docs
				synced 2025-06-26 18:17:44 +00:00 
			
		
		
		
	Add PyTorch Lightning example (#47)
This commit is contained in:
		
							parent
							
								
									fb0c30a86e
								
							
						
					
					
						commit
						0048cea0d8
					
				@ -0,0 +1,40 @@
 | 
			
		||||
---
 | 
			
		||||
title: Pytorch Lightning
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
The [pytorch-lightning](https://github.com/allegroai/clearml/blob/master/examples/frameworks/pytorch-lightning/pytorch_lightning_example.py) 
 | 
			
		||||
script demonstrates the integration of ClearML into code that uses [PyTorch Lightning](https://www.pytorchlightning.ai/). 
 | 
			
		||||
 | 
			
		||||
The example script does the following:
 | 
			
		||||
* Trains a simple deep neural network on the PyTorch built-in MNIST dataset
 | 
			
		||||
* Defines Argparse command line options, which are automatically captured by ClearML
 | 
			
		||||
* Creates an experiment named `pytorch lightning mnist example`, which is associated with the `examples` project.
 | 
			
		||||
 | 
			
		||||
## Scalars
 | 
			
		||||
 | 
			
		||||
The test loss and validation loss plots appear in the experiment's page in the ClearML web UI under **RESULTS > SCALARS**. 
 | 
			
		||||
Resource utilization plots, which are titled **:monitor: machine**, also appear in the **SCALARS** tab. All of these 
 | 
			
		||||
plots are automatically captured by ClearML. 
 | 
			
		||||
 | 
			
		||||

 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Hyperparameters
 | 
			
		||||
 | 
			
		||||
ClearML automatically logs command line options defined with argparse and TensorFlow Definitions, which appear in 
 | 
			
		||||
**CONFIGURATIONS > HYPER PARAMETERS > Args** and **TF_DEFINE** respectively. 
 | 
			
		||||
 | 
			
		||||

 | 
			
		||||
 | 
			
		||||
## Artifacts
 | 
			
		||||
 | 
			
		||||
Model artifacts associated with the experiment appear in the info panel of the **EXPERIMENTS** tab and in the info panel of the **MODELS** tab.
 | 
			
		||||
 | 
			
		||||

 | 
			
		||||
 | 
			
		||||
## Console
 | 
			
		||||
 | 
			
		||||
All other console output appears in **RESULTS > CONSOLE**.
 | 
			
		||||
 | 
			
		||||

 | 
			
		||||
 | 
			
		||||
@ -18,7 +18,7 @@ When the script runs, it creates an experiment named `Tensorflow v2 mnist with s
 | 
			
		||||
## Scalars
 | 
			
		||||
 | 
			
		||||
The loss and accuracy metric scalar plots appear in the experiment's page in the **ClearML web UI** under **RESULTS** 
 | 
			
		||||
**>** **SCALARS**. Resource utilization plots, which are titled **:monitor: machine**, also appear in the *SCALARS** tab.
 | 
			
		||||
**>** **SCALARS**. Resource utilization plots, which are titled **:monitor: machine**, also appear in the **SCALARS** tab.
 | 
			
		||||
 | 
			
		||||

 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								docs/img/examples_pytorch_lightning_console.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								docs/img/examples_pytorch_lightning_console.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 203 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								docs/img/examples_pytorch_lightning_model.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								docs/img/examples_pytorch_lightning_model.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 41 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								docs/img/examples_pytorch_lightning_params.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								docs/img/examples_pytorch_lightning_params.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 76 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								docs/img/examples_pytorch_lightning_scalars.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								docs/img/examples_pytorch_lightning_scalars.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 83 KiB  | 
@ -76,6 +76,7 @@ module.exports = {
 | 
			
		||||
                        'guides/frameworks/pytorch/tensorboard_toy_pytorch']
 | 
			
		||||
                },
 | 
			
		||||
                {'Pytorch Ignite': ['guides/frameworks/pytorch ignite/integration_pytorch_ignite']},
 | 
			
		||||
                {'Pytorch Lightning': ['guides/frameworks/pytorch_lightning/pytorch_lightning_example']},
 | 
			
		||||
                {
 | 
			
		||||
                    'Pytorch Notebooks': [
 | 
			
		||||
                        {'Audio': ['guides/frameworks/pytorch/notebooks/audio/audio_classification_UrbanSound8K', 'guides/frameworks/pytorch/notebooks/audio/audio_preprocessing_example']},
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user