RepositoryPython
GO

google-research/timesfm

TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.

35.9kstars
3.5kforks
155issues
8views

📊 TimesFM: Google Research's Decoder-Only Time Series Foundation Model

A pretrained foundation model built for scalable and accurate time-series forecasting.

TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting. The latest version, TimesFM 2.5, uses 200M parameters and supports up to 16k context length, continuous quantile forecasts, and covariate inputs via XReg. It is available in both PyTorch and Flax, with integrations in BigQuery ML, Google Sheets, and Vertex Model Garden.

✨ Highlights

  • PyTorch and Flax support: Run inference with either backend for flexibility and speed.
  • Covariate support via XReg: Incorporate external variables into forecasts using the XReg mechanism.
  • Continuous quantile forecasting: Optional 30M quantile head enables probabilistic forecasts up to 1k horizon.
  • Long context length: Supports up to 16k tokens, a major increase from the previous 2048.
  • Built-in integrations: Available in BigQuery ML, Google Sheets, and Vertex Model Garden for production use.
  • Fine-tuning example: Includes LoRA-based fine-tuning via HuggingFace Transformers and PEFT.
  • Unit tests: Covers core layers, configs, and utilities for reliability.
  • Community contributions: Actively maintained with fixes and features from open-source contributors.

💡 Why it matters

TimesFM stands out by applying a decoder-only architecture — commonly used in NLP — to the time-series domain, enabling scalable and accurate forecasting without task-specific models. Its support for long sequences, covariates, and quantile outputs makes it suitable for both research and enterprise applications, especially when integrated with Google Cloud tools like BigQuery ML and Vertex AI.


#TimeSeries #MachineLearning #Forecasting #GoogleResearch #TiniX