Understand the EBT Code Flow
mainThe execution flow follows this hierarchy:
- Job Script: Passes hyperparameters to
train_model.py. train_model.py: The primary entry point. It handles distributed training setup, GPU determination, model configuration, and argument parsing.base_model_trainer.py: A PyTorch Lightning trainer that manages the training/validation loops, dataset instantiation (viasetup), logging, and optimizers.- Model Modules: PyTorch Lightning modules (e.g., in
model/nlp) that implement the actual architectures and forward/loss calculations.
Developer Tip: If you want to use EBT architectures in your own custom training loop, refer directly to the model/ directory for the model implementations and utilities.