# time-series-foundation-models/lag-llama

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/time-series-foundation-models-lag-llama).**

1,589 stars · 200 forks · Python · Apache-2.0

## Links

- GitHub: https://github.com/time-series-foundation-models/lag-llama
- awesome-repositories: https://awesome-repositories.com/repository/time-series-foundation-models-lag-llama.md

## Topics

`forecasting` `foundation-models` `lag-llama` `llama` `time-series` `time-series-forecasting` `time-series-prediction` `time-series-transformer` `timeseries` `timeseries-forecasting` `transformers`

## Description

Lag-llama is a probabilistic machine learning foundation model designed for time series forecasting. It generates predictive distributions and uncertainty bounds for sequential data across arbitrary frequencies by leveraging pre-trained foundational weights.

The system supports zero-shot transfer inference, allowing it to predict future values on entirely new and unseen datasets without requiring prior retraining. It achieves this by combining generalized representations from foundational training with adjustable context lengths, where historical context lengths and lagged feature values feed directly into the model inputs during iterative autoregressive predictions.

Additionally, the framework provides capabilities for foundation model fine-tuning. Users can adapt pre-trained weights and adjust forecasting models on specialized datasets using targeted hyperparameters and validation splits to optimize domain-specific predictive accuracy.

## Tags

### Artificial Intelligence & ML

- [Zero-Shot Forecasting](https://awesome-repositories.com/f/artificial-intelligence-ml/time-series-forecasting/zero-shot-forecasting.md) — Predicts future values on new datasets without prior training by leveraging pre-trained foundational knowledge and adjustable context lengths. ([source](https://github.com/time-series-foundation-models/lag-llama#readme))
- [Autoregressive Lag Tuning](https://awesome-repositories.com/f/artificial-intelligence-ml/neural-network-layers/autoregressive-lag-tuning.md) — Predicts future values iteratively by feeding historical context lengths and lagged feature values directly into model inputs.
- [Probabilistic Forecasting](https://awesome-repositories.com/f/artificial-intelligence-ml/time-series-forecasting/probabilistic-forecasting.md) — Generates predictive distributions and uncertainty bounds for sequential data across arbitrary frequencies using probabilistic deep learning.
- [Finetuning Workflows](https://awesome-repositories.com/f/artificial-intelligence-ml/model-pretraining-frameworks/finetuning-workflows.md) — Adjusts foundational weights on custom datasets using dedicated hyperparameters and validation splits to maximize prediction accuracy. ([source](https://github.com/time-series-foundation-models/lag-llama#readme))
- [Zero-Shot Inference](https://awesome-repositories.com/f/artificial-intelligence-ml/zero-shot-inference.md) — Predicts future values on unseen target datasets without prior retraining by leveraging generalized representations from foundational training.

### Part of an Awesome List

- [Time Series Foundation Models](https://awesome-repositories.com/f/awesome-lists/ai/time-series-foundation-models.md) — Serves as a probabilistic machine learning model pretrained on sequential data to forecast future values and quantify uncertainty across arbitrary frequencies.
- [Probabilistic Hybrid Models](https://awesome-repositories.com/f/awesome-lists/ai/deep-learning/probabilistic-hybrid-models.md) — Generates predictive distributions and uncertainty bounds for sequential data across arbitrary frequencies using probabilistic modeling.
- [Foundational Model Adaptation](https://awesome-repositories.com/f/awesome-lists/ai/model-training-and-fine-tuning/model-fine-tuning/foundational-model-adaptation.md) — Adapts pre-trained neural network weights to specialized downstream domains using targeted hyperparameter tuning and validation splits.
- [Time Series Forecasting Fine-Tuners](https://awesome-repositories.com/f/awesome-lists/ai/model-training-and-fine-tuning/model-fine-tuning/time-series-forecasting-fine-tuners.md) — Tunes pre-trained time series models on specialized datasets to improve predictive accuracy for domain-specific workloads. ([source](https://github.com/time-series-foundation-models/lag-llama/blob/main/README.md))

### Scientific & Mathematical Computing

- [Probability Distributions](https://awesome-repositories.com/f/scientific-mathematical-computing/numerical-mathematical-foundations/statistics-probability/probability-distributions.md) — Produces probability distributions for future timesteps to quantify uncertainty across any prediction length and data frequency. ([source](https://github.com/time-series-foundation-models/lag-llama#readme))
