timesfm
A time series foundation model.
Decision gist · record as of 2026-08-14
Yes. TimesFM is actively maintained, has no known vulnerabilities, installs with low friction, and is backed by published research and Google's production deployments. Install it if you need a modern pretrained foundation model for time-series forecasting; the permissive Apache-2.0 license and optional backends (torch/Flax) make it flexible for both research and production use.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; torch or Flax backend must be installed separately for inference acceleration.
- Low friction installation via pip with optional torch or Flax backends.
- Active maintenance with recent updates (June 2026); requires Python 3.10 or later.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions. You may use, modify, and distribute the package freely provided you include the license notice.
last release 2026-07-02 (43 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 284,286 downloads/mo, #8,064 on PyPI
Alternatives
Verify before relying
pip install timesfm[torch]
import numpy as np
import timesfm
model = timesfm.TimesFM_2p5_200M_torch.from_pretrained("google/timesfm-2.5-200m-pytorch")
model.compile(timesfm.ForecastConfig(max_context=1024, max_horizon=256))
point_forecast, quantile_forecast = model.forecast(
horizon=12,
inputs=[np.linspace(0, 1, 100)]
)- Whether the package includes built-in utilities for handling missing values or irregular time-series frequencies
- Performance characteristics (inference speed, memory footprint) for different model sizes and context lengths
- Whether XReg covariate support is production-ready or still experimental
What it is and what it does
TimesFM is a decoder-only foundation model pretrained by Google Research specifically for time-series forecasting. It accepts historical time-series data and produces both point forecasts and quantile forecasts (percentile ranges) for future time steps. The model is available in different parameter sizes and supports context lengths up to 16k tokens, making it suitable for both short and long historical sequences.
The package provides a straightforward API: load a pretrained checkpoint from Hugging Face, configure forecast parameters (horizon, context length, quantile settings), and call forecast() with your time-series arrays. It supports optional backends (torch or Flax) for inference acceleration and optional covariate inputs via XReg. The model handles normalization internally and includes flags for specialized behaviors like flip invariance and quantile crossing fixes.
Use it for
- Generate multi-step-ahead forecasts with confidence intervals for financial or operational time series
- Fine-tune the pretrained model on domain-specific data using LoRA and HuggingFace Transformers
- Integrate time-series predictions into BigQuery ML or Google Sheets workflows via the open-source API
- Build agentic systems that call TimesFM as a forecasting skill for automated decision-making
- Benchmark decoder-only architectures against traditional or RNN-based forecasting methods
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
TimesFM is actively maintained, has no known vulnerabilities, installs with low friction, and is backed by published research and Google's production deployments. Install it if you need a modern pretrained foundation model for time-series forecasting; the permissive Apache-2.0 license and optional backends (torch/Flax) make it flexible for both research and production use.
Install
timesfm on PyPI
Before you install
Low friction installation via pip with optional torch or Flax backends. Active maintenance with recent updates (June 2026); requires Python 3.10 or later. Runtime dependencies are lightweight: numpy, huggingface_hub, and safetensors.
Requires Python 3.10 or later; torch or Flax backend must be installed separately for inference acceleration.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions. You may use, modify, and distribute the package freely provided you include the license notice.
Quickstart
pip install timesfm[torch]
import numpy as np
import timesfm
model = timesfm.TimesFM_2p5_200M_torch.from_pretrained("google/timesfm-2.5-200m-pytorch")
model.compile(timesfm.ForecastConfig(max_context=1024, max_horizon=256))
point_forecast, quantile_forecast = model.forecast(
horizon=12,
inputs=[np.linspace(0, 1, 100)]
)
Verify before relying
- Whether the package includes built-in utilities for handling missing values or irregular time-series frequencies
- Performance characteristics (inference speed, memory footprint) for different model sizes and context lengths
- Whether XReg covariate support is production-ready or still experimental
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesnumpyhuggingface_hubsafetensors |
| Maintenance | Actively maintained 43 days since the last release |
| First released | |
| Downloads | 284,286 / month, #8,064 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: timesfm-2.0.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “foundation model forecasting”
- timesfmTimesFM is a pretrained time-series foundation model from Google…
- nixtlaPython SDK for accessing TimeGPT, a foundation model for time series…
- autogluon.timeseriesAutoGluon TimeSeries automates machine learning for time series…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also chronos-forecasting · nixtla · autogluon.timeseries · coreforecast · ai4ts · neuralforecast · fev · hierarchicalforecast · mlforecast · pytorch-forecasting