########
Examples
########

.. raw:: html

    <div class="display-card-container">
        <div class="row">

.. displayitem::
    :header: Image Classification
    :description: Train an image classifier on the MNIST dataset
    :button_link: https://github.com/Lightning-AI/pytorch-lightning/blob/master/examples/fabric/image_classifier
    :col_css: col-md-4
    :height: 200
    :tag: basic

.. displayitem::
    :header: Transformer Language Model
    :description: A simple language model that learns to predict the next word in a sentence
    :button_link: https://github.com/Lightning-AI/pytorch-lightning/blob/master/examples/fabric/language_model
    :col_css: col-md-4
    :height: 200
    :tag: basic

.. displayitem::
    :header: GAN
    :description: Train a GAN that generates realistic human faces
    :button_link: https://github.com/Lightning-AI/pytorch-lightning/blob/master/examples/fabric/dcgan
    :col_css: col-md-4
    :height: 200
    :tag: intermediate

.. displayitem::
    :header: Meta-Learning
    :description: Distributed training with the MAML algorithm on the Omniglot and MiniImagenet datasets
    :button_link: https://github.com/Lightning-AI/pytorch-lightning/blob/master/examples/fabric/meta_learning
    :col_css: col-md-4
    :height: 200
    :tag: intermediate

.. displayitem::
    :header: Large Language Models
    :description: Pretrain a large language model (LLM)
    :button_link: https://github.com/Lightning-AI/litgpt/blob/main/tutorials/pretrain_tinyllama.md
    :col_css: col-md-4
    :height: 200
    :tag: advanced

.. displayitem::
    :header: Reinforcement Learning
    :description: Implementation of the Proximal Policy Optimization (PPO) algorithm with multi-GPU support
    :button_link: https://github.com/Lightning-AI/pytorch-lightning/blob/master/examples/fabric/reinforcement_learning
    :col_css: col-md-4
    :height: 200
    :tag: intermediate

.. displayitem::
    :header: K-Fold Cross Validation
    :description: Cross validation helps you estimate the generalization error of a model and select the best one.
    :button_link: https://github.com/Lightning-AI/lightning/tree/master/examples/fabric/kfold_cv
    :col_css: col-md-4
    :height: 200
    :tag: intermediate

.. displayitem::
    :header: Active Learning
    :description: Coming soon
    :col_css: col-md-4
    :height: 200
    :tag: intermediate


.. raw:: html

        </div>
    </div>
