Downloads ยท 30 days
0
CommerAI/tirex-multidomain-forecaster
tirex-multidomain-forecaster is a time series forecasting model from CommerAI. Use it for the time series forecasting task on the model card, and read the license before you ship it in a product. It is set up for tirex. The card lists the license as other.
Downloads ยท 30 days
0
Access
Public
Updated Nov 17, 2025
Repo size
424 MB
Likes
0
Public
Click a slice to open those files.
.pt424 MB ยท 100%
From the Hugging Face model README
A specialized fine-tuned version of TiRex for enhanced time series forecasting across multiple domains
๐ค Base Model | ๐ Original Paper | ๐ป GitHub | ๐ FEV-Bench
</div>This is a fine-tuned version of the state-of-the-art TiRex (Time-series Representation via xLSTM) model, specialized on 20 diverse real-world datasets from the FEV-Bench benchmark. While the base TiRex model already delivers exceptional zero-shot performance, this fine-tuned variant is optimized for even better accuracy across energy, healthcare, retail, economics, and environmental domains.
This model was fine-tuned on a carefully curated subset of FEV-Bench (Realistic Benchmark for Time Series Forecasting), including:
Total Training Samples: ~3,500+ time series windows with sophisticated augmentation
| Epoch | Training Loss | Improvement |
|---|---|---|
| 2 | 0.467 | Baseline |
| 5 | 0.286 | 38.8% โ |
| 10 | 0.171 | 63.4% โ |
| 15 | 0.114 | 75.6% โ |
| 20 | 0.097 | 79.2% โ |
๐ Note: These metrics demonstrate strong generalization on held-out validation data, with the model achieving production-grade accuracy across diverse forecasting scenarios.
pip install tirex-ts torch
import torch
from tirex import load_model
# Load the fine-tuned model
model = load_model("CommerAI/tirex-multidomain-forecaster")
# Prepare your time series data (5 series, each 512 timesteps)
context = torch.rand(5, 512)
# Generate forecasts with quantile predictions
quantiles, mean_forecast = model.forecast(
context=context,
prediction_length=64 # Forecast 64 steps ahead
)
# quantiles: [batch_size, prediction_length, num_quantiles]
# mean_forecast: [batch_size, prediction_length]
print(f"Forecast shape: {mean_forecast.shape}")
print(f"Quantiles shape: {quantiles.shape}") # Includes 0.1, 0.2, ..., 0.9
import torch
from tirex import load_model
# Load base TiRex architecture
model = load_model("NX-AI/TiRex")
# Load fine-tuned weights
checkpoint = torch.load("best_model.pt", map_location="cpu")
model.load_state_dict(checkpoint["model_state_dict"])
# Move to GPU if available
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model = model.to(device)
model.eval()
---
## ๐ง Training Details
### Model Architecture
- **Base Model**: TiRex (35M parameters)
- **Backbone**: xLSTM with sLSTM blocks
- **Input Patching**: 16-token patches
- **Context Length**: 512 timesteps
- **Prediction Length**: 64 timesteps
- **Quantiles**: [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]
### Training Configuration
```yaml
Optimizer: AdamW
Learning Rate: 1e-4
Weight Decay: 1e-5
Batch Size: 16
Epochs: 20
Scheduler: CosineAnnealingLR
Gradient Clipping: 1.0
Loss Function: Quantile Loss (Pinball Loss)
Validation Split: 20%
This fine-tuned model excels in:
โก Energy Forecasting
๐ฅ Healthcare Analytics
๐ Retail & E-commerce
๐ Environmental Monitoring
๐ผ Business Intelligence
Unlike point forecasts, this model provides full probabilistic predictions with 9 quantiles:
| Aspect | Base TiRex | Fine-tuned TiRex |
|---|---|---|
| Training Data | General time series corpus | FEV-Bench specialized domains |
| Zero-Shot | โญโญโญโญโญ | โญโญโญโญโญ |
| Domain-Specific | โญโญโญโญ | โญโญโญโญโญ |
| Energy Sector | โญโญโญโญ | โญโญโญโญโญ |
| Healthcare | โญโญโญโญ | โญโญโญโญโญ |
| Retail | โญโญโญโญ | โญโญโญโญโญ |
If you use this fine-tuned model in your research or production, please cite both TiRex and FEV-Bench:
@inproceedings{auer2025tirex,
title={TiRex: Zero-Shot Forecasting Across Long and Short Horizons with Enhanced In-Context Learning},
author={Andreas Auer and Patrick Podest and Daniel Klotz and Sebastian B{\"o}ck and G{\"u}nter Klambauer and Sepp Hochreiter},
booktitle={The Thirty-Ninth Annual Conference on Neural Information Processing Systems},
year={2025},
url={https://arxiv.org/abs/2505.23719}
}
@article{oliva2024fevbench,
title={fev-bench: A Realistic Benchmark for Time Series Forecasting},
author={Oliva, Juliette and others},
journal={arXiv preprint arXiv:2509.26468},
year={2024}
}
This model inherits the NXAI Community License from the base TiRex model.
pip install tirex-tsFound a bug or have suggestions? Please reach out or contribute:
Built with โค๏ธ using TiRex and PyTorch
</div>