Time Series Forecasting
TimesFM
Safetensors

Run this model with HF Jobs

Run google/timesfm-2.5-200m-pytorch on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/google/timesfm-2.5-200m-pytorch. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/google/timesfm-2.5-200m-pytorch on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

TimesFM

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

Updates

  • October 2, 2025: We changed the structure of the model to fuse QKV matrices into one for speed optimization. Please reinstall the latest version of the timesfm package to reflect these changes. Results should be unchanged.

Resources and Technical Documentation:

Authors: Google Research

This checkpoint is not an officially supported Google product. See TimesFM in BigQuery for Google official support.

Checkpoint timesfm-2.5-200m

timesfm-2.5-200m is the third open model checkpoint.

Data

timesfm-2.5-200m is pretrained using

Install

pip install from PyPI coming soon. At this point, please run

git clone https://github.com/google-research/timesfm.git
cd timesfm
pip install -e .

Code Example

import numpy as np
import timesfm
model = timesfm.TimesFM_2p5_200M_torch.from_pretrained("google/timesfm-2.5-200m-pytorch", torch_compile=True)

model.compile(
    timesfm.ForecastConfig(
        max_context=1024,
        max_horizon=256,
        normalize_inputs=True,
        use_continuous_quantile_head=True,
        force_flip_invariance=True,
        infer_is_positive=True,
        fix_quantile_crossing=True,
    )
)
point_forecast, quantile_forecast = model.forecast(
    horizon=12,
    inputs=[
        np.linspace(0, 1, 100),
        np.sin(np.linspace(0, 20, 67)),
    ],  # Two dummy inputs
)
point_forecast.shape  # (2, 12)
quantile_forecast.shape  # (2, 12, 10): mean, then 10th to 90th quantiles.
Downloads last month
1,940,161
Safetensors
Model size
0.2B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ 2 Ask for provider support

Model tree for google/timesfm-2.5-200m-pytorch

Adapters
1 model
Finetunes
2 models
Quantizations
3 models

Spaces using google/timesfm-2.5-200m-pytorch 49

Collection including google/timesfm-2.5-200m-pytorch

Paper for google/timesfm-2.5-200m-pytorch