PyTorch Lightning is an open-source deep-learning framework that simplifies putting PyTorch models into production. In Lag-Llama forecasting, it creates an estimator from pretrained weights and model parameters, while GluonTS separates the estimator from the reusable predictor. section 4.2.2
A practical forecasting workflow uses it to:
- Configure an estimator with prediction length, context length, scaling, device, and pretrained parameters. section 4.2.2
- Generate forecasts through a predictor, then convert its iterator into a list for downstream processing. section 4.2.2
Zero-shot sales forecasting
A Walmart weekly-sales dataset is converted to GluonTS format, forecast for eight time steps on a CPU, and processed into medians and 95% prediction intervals for four stores.

