All models

HF TimesFM tiny

A decoder-only transformer that forecasts a time series from patches of its past values.

Time series · 1,901 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (34 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
498.8M
Operations
1,901
Framework
PyTorch
Recurrent
No
Published
ICML 2024
Cited by
61 (as of 23 October 2026)
Authors
Abhimanyu Das, Weihao Kong, Rajat Sen, Yichen Zhou
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m1297
Graph hash
f399b50321ecd30ec82bac8bc53d0d2c45d7240278b4aedf81ac0362d2ae05cd
Skeleton hash
9a6d9d79030209699c4534e79dac8ce43e30048e7e9636ae60a4bce659dc8d00
Architecture hash
840f6350d6b176931a00ac6e506ded63fd60fee6d2f71eb64e3493730a041821
Diagram SHA-256
8c349c15c50c9cfcb91181373df0f8669d700b31b0dab49f6d3cd748a71ae458
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

transformers.TimesFmModelForPrediction()

What it is

TimesFM (Time-series Foundation Model) is a single pretrained model for time-series forecasting that is meant to be applied zero-shot to datasets it has never seen. Its core is a decoder-style attention model with input patching, pretrained on a large corpus of real-world and synthetic series.

The series is cut into patches, and a patch plays the role that a token plays in a language model. Each patch is turned into a vector by a residual block, which is an MLP with one hidden layer and a skip connection. The vectors then pass through stacked transformer layers with causal attention, so each output token attends only to input tokens that come before it. Training optimizes the model to predict the next patch from all past patches. Output patches are allowed to be longer than input patches, so a long horizon takes fewer autoregressive steps.

The bulk of the pretraining data came from three sources: Google Trends, Wiki Pageview statistics and synthetic series. The paper reports a model of 200M parameters, much smaller than recent large language models. Zero-shot evaluation used three groups of held-out datasets: Darts, Monash and the Informer datasets. On the Monash datasets, the paper reports TimesFM as the top model by scaled MAE.

Key idea. The paper pretrains a decoder-style attention model with input patching on a large real and synthetic time-series corpus and reports accurate zero-shot forecasts on unseen datasets.

  • timesfm
  • time series foundation model
  • time-series forecasting
  • zero-shot forecasting
  • foundation model
  • decoder-only
  • patching
  • forecasting
  • google research
  • time series

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{das2024decoderonlyfoundationmodeltimeseries,
      title={A decoder-only foundation model for time-series forecasting}, 
      author={Abhimanyu Das and Weihao Kong and Rajat Sen and Yichen Zhou},
      year={2024},
      eprint={2310.10688},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2310.10688}, 
}