Model Pipeline - Saving entire model
This pipeline shows how a PyTorch model is trained and then saved entirely to disk. Saving the whole model means storing both the model's structure and its learned weights, so it can be loaded later without redefining it.