# Training

*Avalanche* offers significant support for *training* (with *templates*, *strategies* and *plug-ins*). Here you can find a list of **examples** related to the training and some strategies available in Avalanche (each strategy reproduces original paper results in the [CL-Baselines](https://github.com/ContinualAI/continual-learning-baselines) repository:

* [Joint-Training](https://github.com/ContinualAI/avalanche/blob/master/examples/joint_training.py): *this example shows how to take a stream of experiences and train simultaneously on all of them. This is useful to implement the "offline" or "multi-task" upper bound.*
* [AR1 strategy](https://github.com/ContinualAI/avalanche/blob/master/examples/ar1.py): t\_his is a simple example on how to use the AR1 strategy.\_
* [Cumulative Strategy](https://github.com/ContinualAI/avalanche/blob/master/examples/dataloader.py): h\_ow to define your own cumulative strategy based on the different Data Loaders made available in Avalanche.\_
* [Early Stopping](https://github.com/ContinualAI/avalanche/blob/master/examples/all_mnist_early_stopping.py): *this example shows how to use early stopping to dynamically stop the training procedure when the model converged instead of training for a fixed number of epochs.*
* [Object Detection](https://github.com/ContinualAI/avalanche/blob/master/examples/detection.py): *this example shows how to run object detection/segmentation tasks.*
* [Object Detection with Elvis](https://github.com/ContinualAI/avalanche/blob/master/examples/detection_lvis.py)*: this example shows how to run object detection/segmentation tasks with a* *toy benchmark based on the LVIS dataset.*
* [Object Detection Training](https://github.com/ContinualAI/avalanche/tree/master/examples/tvdetection): *set of examples showing how you can use Avalanche for distributed training of object detector.*
* [Ex-Model Continual Learning](https://github.com/ContinualAI/avalanche/blob/master/examples/ex_model_cl.py)*: this example shows how to create a stream of pre-trained model from which to learn.*
* [Generative Replay](https://github.com/ContinualAI/avalanche/blob/master/examples/generative_replay_MNIST_generator.py)*: this is a simple example on how to implement generative replay in Avalanche.*
* [Online Naive](https://github.com/ContinualAI/avalanche/blob/6dbabb2ab787a53b59b9cbcb245ad500e984f671/examples/online_naive.py): *example to run a naive strategy in an online setting.*
* [Continual Sequence Classification](https://github.com/ContinualAI/avalanche/blob/master/examples/continual_sequence_classification.py): *sequence classification example using torchaudio and Speech Commands.*
