Model Details of granite-timeseries-patchtst-fm-r2
Granite TimeSeries PatchTST-FM-r2 Model Card
Model Description
PatchTST-FM-r2, a state-of-the-art zero-shot time series foundation model, represents a continuation of the well-recognized PatchTST model series, building on the original
PatchTST
and its zero-shot variant
PatchTST-FM-r1
. PatchTST-FM-r2 brings architectural enhancements as well as an expanded training base on top of its predecessor PatchTST-FM-r1. As of August 28, 2026 Granite-TimeSeries-PatchTST-FM-r2
ranks number one
on the
GIFT-Eval
benchmark when considering replicable, zero-shot models (see below for more details).
The architectural changes in r2 include:
Introduction of a convolution layer after the multi-head self-attention (MHSA) layer, sandwiched between two "half-step" FFNs. This block, known as the
Conformer
block, previously gained popularity in speech recognition. The convolution sublayer tends to capture near-term information between patches thus enabling the MHSA to focus on long-term relationships.
Plain-transformer blocks are replaced by Conformer blocks with alternating convolution kernel sizes of 3 and 5, in a repeating pattern {5, 5, 3, 3}
Overlapping patches of size 16 with stride of 8, combined with a Hamming window loss weighting at training time, and an overlap-and-add forecasting approach at inference time
The overall number of blocks increased to 30 (from 20) to absorb expanded training data
A pre-head layer norm is applied for enhanced training stability
As with PatchTST-FM-r1, the r2 model was trained on a diverse set of data (see details below) using context length of 8192. The model hidden dimension is set to 1024, patch_length is 16, and the quantile head spans 99 quantiles. In total, the model has ~385M parameters.
The current implementation of the new model architecture is available in the
IBM TSFM repository
and remains backward compatible with checkpoints for PatchTST-FM-r1. Previous implementations of PatchTST can be found here:
Original PatchTST Implementation
: Implemented by an IBM Research intern who was part of the IBM TSFM team, and the first author of the original PatchTST paper.
License
This model is dual‑licensed under the OpenMDW License version 1.0 and the Apache License 2.0. Users may choose to use the model under either license.
Usage
Install the Granite-TSFM package
pip install "granite-tsfm>=0.3.9"
Make zero-shot predictions using the HF Pipeline-based API:
import pandas as pd
from tsfm_public import PatchTSTFMForPrediction, TimeSeriesForecastingPipeline
# Load model weights
model = PatchTSTFMForPrediction.from_pretrained("ibm-granite/granite-timeseries-patchtst-fm-r2")
# Read some sample data from ETTh
df = pd.read_csv(
"https://raw.githubusercontent.com/zhouhaoyi/ETDataset/main/ETT-small/ETTh1.csv",
parse_dates=["date"],
)
# Set up the forecasting pipeline
pipe = TimeSeriesForecastingPipeline(
model=model,
id_columns=[],
timestamp_column="date",
target_columns=["HUFL"],
max_context_length=model.config.context_length,
context_length=512,
prediction_length=64,
impute_method=None,
quantile_levels=[0.1, 0.5, 0.9],
explode_forecasts=True,
freq="1h",
)
# Create a forecast from the last 512 samples of the input dataframe
forecast = pipe(df.iloc[-512:])
Performance
As of August 28, 2026 Granite-TimeSeries-PatchTST-FM-r2
ranks number one
on the GIFT-Eval benchmark when considering replicable, zero-shot models. Results for both CRPS and MASE performance are shown below.
The GIFT-Eval benchmark compares a variety of different model types. To reproduce the ranking below, take the following steps: 1) select only "zero-shot" under "Model Types", 2) uncheck "Yes" under "Test Leak", and 3) uncheck "No" under "Replication Code". Note that Granite-PatchTST-FM-r2 results are in a pending PR submitted to the GIFT-Eval benchmark.
The geometric mean CRPS and MASE scores of the top replicable, zero-shot models on the
GIFT-Eval
benchmark (results as of August 28, 2026), lower is better. Models shown in blue are released by IBM TSFM.
When including pretrained along with zero-shot replicable models, PatchTST-FM-r2 ranks 2nd and 4th in CRPS and MASE, respectively. Recall that pretrained models are allowed to use the train portion of the GIFT-Eval evaluation datasets in their pretraining corpus. As can be seen from the charts, PatchTST-FM-r2 exceeds the performance of several pretrained models, including Chronos-2, and Timer-S1, and Toto variants, some of which are significantly larger models.
The geometric mean CRPS and MASE scores of the top replicable, zero-shot & pretrained models on the
GIFT-Eval
benchmark (results as of August 28, 2026), lower is better. Models shown in blue are released by IBM TSFM.
Custom synthesized data: Based on
KernelSynth
with a different set of periodic kernels (as suggested by the Tirex paper), and a small volume of augmentations
A TSMixup dataset, based on the same process described in the
Chronos paper
, but using only datasets which are not in the GIFT-Eval evaluation set.
CauKer dataset. ~0.5M sequences generated in-house using the
method
. Each sequence has a length of 4096.
Citation
Please cite the following paper if you intend to use our model or its associated architectures/approaches in your work.
@misc{wen2026revisitingtransformer,
title={Revisiting the Generic Transformer: Deconstructing a Strong Baseline for Time Series Foundation Models},
author={Yunshi Wen and Wesley M. Gifford and Chandra Reddy and Lam M. Nguyen and Jayant Kalagnanam and Anak Agung Julius},
year={2026},
eprint={2602.06909},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2602.06909},
}
Model Card Authors
Jiri Navratil, Wesley M. Gifford, Yunshi Wen, Chandra K. Reddy, Agung Julius
Acknowledgements
This work builds upon previous joint effort between Rensselaer Polytechnic Institute and IBM (see the PatchTST-FM-r1
modelcard
).
The CauKer dataset was generated by the FlowState team: Lars Graf, Thomas Ortner, Stanislaw Wozniak, Angeliki Pantazi.
IBM Public Repository Disclosure
All content in this repository including code has been provided by IBM under the associated open source software license and IBM is under no obligation to provide enhancements, updates, or support. IBM developers produced this code as an open source project (not as an IBM product), and IBM makes no assertions as to the level of quality nor security, and will not be maintaining this code going forward.
Runs of ibm-granite granite-timeseries-patchtst-fm-r2 on huggingface.co
336.6K
Total runs
0
24-hour runs
0
3-day runs
9.5K
7-day runs
306.7K
30-day runs
More Information About granite-timeseries-patchtst-fm-r2 huggingface.co Model
More granite-timeseries-patchtst-fm-r2 license Visit here:
granite-timeseries-patchtst-fm-r2 huggingface.co is an AI model on huggingface.co that provides granite-timeseries-patchtst-fm-r2's model effect (), which can be used instantly with this ibm-granite granite-timeseries-patchtst-fm-r2 model. huggingface.co supports a free trial of the granite-timeseries-patchtst-fm-r2 model, and also provides paid use of the granite-timeseries-patchtst-fm-r2. Support call granite-timeseries-patchtst-fm-r2 model through api, including Node.js, Python, http.
granite-timeseries-patchtst-fm-r2 huggingface.co is an online trial and call api platform, which integrates granite-timeseries-patchtst-fm-r2's modeling effects, including api services, and provides a free online trial of granite-timeseries-patchtst-fm-r2, you can try granite-timeseries-patchtst-fm-r2 online for free by clicking the link below.
ibm-granite granite-timeseries-patchtst-fm-r2 online free url in huggingface.co:
granite-timeseries-patchtst-fm-r2 is an open source model from GitHub that offers a free installation service, and any user can find granite-timeseries-patchtst-fm-r2 on GitHub to install. At the same time, huggingface.co provides the effect of granite-timeseries-patchtst-fm-r2 install, users can directly use granite-timeseries-patchtst-fm-r2 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
granite-timeseries-patchtst-fm-r2 install url in huggingface.co: