The script in this folder provides minimal examples showing how to train a LitGPT model using LitGPT's GPT
class with the PyTorch Lightning Trainer.
You can run the scripts as follows:
 
# Download the Pythia model
litgpt download EleutherAI/pythia-160m
python litgpt_ptl_small.py
 
# Download the Llama 3.1 model
litgpt download meta-llama/Meta-Llama-3.1-8B --access_token hf_...
python litgpt_ptl_medium.py