TiRex-2: Generalizing TiRex to Multivariate Data and Streaming
[!NOTE]
🎉 News (Sep 2026): TiRex-2 has been accepted as an Oral presentation (0.36%) at NeurIPS 2026!
This repository provides the pre-trained multivariate forecasting model TiRex-2 introduced in the paper TiRex-2: Generalizing TiRex to Multivariate Data and Streaming.
TiRex-2 PRO: This repository is our open-source release. TiRex-2 PRO extends it with dedicated support, streaming, hardware-optimized inference (edge, embedded, and industrial PCs, among others), fine-tuning, and classification & regression support — see TiRex-2 PRO below or contact us at [email protected].
TiRex-2
TiRex-2 is a pretrained time series foundation model that forecasts one or many target
variates directly from their history, optionally conditioned on past and future-known
covariates. A single checkpoint serves both univariate and multivariate forecasting, built
on a recurrent architecture designed for efficient streaming settings — all zero-shot, with
no task-specific training or fine-tuning.
TiRex-2 generalizes our original univariate model, TiRex, to
multivariate forecasting with past and future covariates.
Key facts
-
Zero-shot multivariate forecasting:
TiRex-2 forecasts multiple target variates out of the box, without training or fine-tuning on your data.
-
Past and future-known covariates:
TiRex-2 natively conditions on past covariates and future-known covariates, such as
calendar features, holidays, promotions, or scheduled interventions.
-
Small active footprint:
TiRex-2 activates 38.4M parameters in univariate mode and an additional 44.1M parameters
for multivariate forecasting.
Installation
Requires Python 3.11 or newer. Install PyTorch for your CPU or GPU, then TiRex-2:
pip install tirex-2
Documentation
The full documentation, with how-to guides, deployment and the API reference, is available at https://nx-ai.github.io/tirex-2/.
Model files
The pretrained weights are hosted on Hugging Face in several formats:
| File | Format | Notes |
|---|
model.safetensors + config.json | safetensors | Default. Loaded by load_model("NX-AI/TiRex-2") and bundled in the Docker images. Avoids unpickling and loads faster. |
model.onnx | ONNX | Run with only numpy and onnxruntime, no PyTorch needed. See the ONNX guide. |
model.ckpt + model-config.yaml | PyTorch checkpoint | Legacy format, kept on Hugging Face for older releases. Not supported by tirex-2 0.5.0 and later; use tirex-2<0.5.0 to load it. |
FAQ
See the FAQ in the documentation.