Configurable Transformer Training with Best Model Checkpointing

Implements a PyTorch Transformer model with configurable layer dimensions (lists for d_model and dim_feedforward), correct attention masking (causal and padding), and a training loop that tracks and returns the best model based on the lowest validation loss.

ECNU-ICALK Updated 559 repo stars

File contents

ECNU-ICALK/AutoSkill/tree/main/SkillBank/ConvSkill/english_gpt4_8/configurable-transformer-training-with-best-model-checkpointing commit 5b562242d9

Frequently asked questions

npx skillmds@latest add ecnu-icalk/configurable-transformer-training-with-best-model-checkpoint