Collected sources and patterns will appear here. Add from search or the patterns library.
A general-purpose probabilistic time-series forecasting foundation model based on a decoder-only Transformer (Llama) architecture using lagged features.
Utility
downloads
0
likes
255
Lag-Llama is a prominent entrant in the 'Time Series Foundation Model' (TSFM) space. While the repository shows 0 stars in this specific snapshot (likely a data artifact or recent migration), the 255 forks indicate significant developer engagement and architectural reuse. It competes directly with Amazon's Chronos, Salesforce's MOIRAI, and Google's TimesFM. Its primary moat is its specific architectural choice—using lags as features within a Llama-style decoder—which offers a different inductive bias compared to patch-based models like TimesFM. However, the defensibility is limited by 'Big Tech's' massive compute and data advantages; Amazon and Google have access to orders of magnitude more proprietary time-series data (AWS demand, Google Trends/Cloud data) to train superior foundation models. The project is highly composable via GluonTS and Hugging Face, making it easy to adopt, but it faces high platform domination risk as cloud providers are increasingly integrating zero-shot forecasting directly into their managed ML services (e.g., SageMaker Canvas, Vertex AI). Its survival depends on maintaining superior performance on niche or long-tail datasets where general-purpose big-tech models might overfit or lack resolution.
TECH STACK
INTEGRATION
pip_installable
READINESS
The reusable building blocks distilled from this project — each a mechanism you could lift into your own.
Tuple<TimeSeries, List<Offset>> -> FeatureSequence
Construct feature vectors for each time step by concatenating the current value with past values extracted at specified index offsets.
TimeSeriesWindow -> Tuple<ScaledWindow, ScaleFactor>
Normalize a local time-series window by its mean absolute value to scale arbitrary inputs into a standard range, returning the scaled series and the scale factor.