Upload chronos_bolt_tiny_9m_forecasting model card
Browse files- README.md +109 -0
- config.json +22 -0
README.md
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
library_name: ts-arena
|
| 4 |
+
tags:
|
| 5 |
+
- time-series
|
| 6 |
+
- forecasting
|
| 7 |
+
- foundation-model
|
| 8 |
+
- chronos
|
| 9 |
+
- chronos-bolt
|
| 10 |
+
- ts-arena
|
| 11 |
+
pipeline_tag: time-series-forecasting
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# chronos_bolt_tiny_9m_forecasting
|
| 15 |
+
|
| 16 |
+
TS Arena wrapper for Amazon Chronos BOLT-Tiny time series forecasting model.
|
| 17 |
+
|
| 18 |
+
## Model Description
|
| 19 |
+
|
| 20 |
+
Chronos-Bolt is an optimized version of the Chronos family, designed for faster inference while maintaining accuracy.
|
| 21 |
+
It uses an optimized T5 architecture with improved tokenization and reduced computational overhead.
|
| 22 |
+
|
| 23 |
+
| Attribute | Value |
|
| 24 |
+
|-----------|-------|
|
| 25 |
+
| **Parameters** | 9M |
|
| 26 |
+
| **Architecture** | T5 Optimized (Bolt) |
|
| 27 |
+
| **Original Repo** | [amazon/chronos-bolt-tiny](https://huggingface.co/amazon/chronos-bolt-tiny) |
|
| 28 |
+
| **Paper** | [Chronos: Learning the Language of Time Series](https://arxiv.org/abs/2403.07815) |
|
| 29 |
+
| **Task** | Time Series Forecasting |
|
| 30 |
+
|
| 31 |
+
## Usage with TS Arena
|
| 32 |
+
|
| 33 |
+
```python
|
| 34 |
+
import ts_arena
|
| 35 |
+
|
| 36 |
+
# Load model
|
| 37 |
+
model = ts_arena.load_model("chronos-bolt-tiny")
|
| 38 |
+
|
| 39 |
+
# Generate forecasts
|
| 40 |
+
import numpy as np
|
| 41 |
+
context = np.random.randn(96) # 96 timesteps of history
|
| 42 |
+
output = model.predict(context, prediction_length=24, num_samples=20)
|
| 43 |
+
|
| 44 |
+
# Access results
|
| 45 |
+
print(output.predictions.shape) # Point forecasts (median)
|
| 46 |
+
print(output.quantiles[0.5].shape) # Median forecast
|
| 47 |
+
print(output.quantiles[0.1].shape) # 10th percentile
|
| 48 |
+
print(output.quantiles[0.9].shape) # 90th percentile
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
## Direct Usage with Chronos
|
| 52 |
+
|
| 53 |
+
```python
|
| 54 |
+
from chronos import ChronosPipeline
|
| 55 |
+
import torch
|
| 56 |
+
|
| 57 |
+
pipeline = ChronosPipeline.from_pretrained(
|
| 58 |
+
"amazon/chronos-bolt-tiny",
|
| 59 |
+
device_map="cuda",
|
| 60 |
+
torch_dtype=torch.bfloat16,
|
| 61 |
+
)
|
| 62 |
+
|
| 63 |
+
context = torch.randn(1, 96) # (batch, time)
|
| 64 |
+
forecast = pipeline.predict(context, prediction_length=24, num_samples=20)
|
| 65 |
+
```
|
| 66 |
+
|
| 67 |
+
## Evaluation Results
|
| 68 |
+
|
| 69 |
+
### ETTh1 Dataset (context=96, horizon=96)
|
| 70 |
+
|
| 71 |
+
| Metric | Value |
|
| 72 |
+
|--------|-------|
|
| 73 |
+
| MSE | 4.37 |
|
| 74 |
+
| MAE | 1.66 |
|
| 75 |
+
| RMSE | 2.09 |
|
| 76 |
+
|
| 77 |
+
## Features
|
| 78 |
+
|
| 79 |
+
- **Zero-shot forecasting**: No training required
|
| 80 |
+
- **Probabilistic forecasts**: Returns samples and quantiles
|
| 81 |
+
- **Variable horizons**: Supports different prediction lengths
|
| 82 |
+
- **Multivariate support**: Processes each channel independently
|
| 83 |
+
|
| 84 |
+
## Limitations
|
| 85 |
+
|
| 86 |
+
- Univariate model (multivariate handled channel-by-channel)
|
| 87 |
+
- No exogenous variable support
|
| 88 |
+
- Recommended max prediction length: 64
|
| 89 |
+
|
| 90 |
+
## Citation
|
| 91 |
+
|
| 92 |
+
```bibtex
|
| 93 |
+
@article{ansari2024chronos,
|
| 94 |
+
title={Chronos: Learning the Language of Time Series},
|
| 95 |
+
author={Ansari, Abdul Fatir and Stella, Lorenzo and Turkmen, Caner and Zhang, Xiyuan and others},
|
| 96 |
+
journal={arXiv preprint arXiv:2403.07815},
|
| 97 |
+
year={2024}
|
| 98 |
+
}
|
| 99 |
+
```
|
| 100 |
+
|
| 101 |
+
## License
|
| 102 |
+
|
| 103 |
+
Apache-2.0 (following the original Chronos license)
|
| 104 |
+
|
| 105 |
+
## Links
|
| 106 |
+
|
| 107 |
+
- [TS Arena GitHub](https://github.com/your-username/ts_arena)
|
| 108 |
+
- [Original Chronos](https://github.com/amazon-science/chronos-forecasting)
|
| 109 |
+
- [Chronos Paper](https://arxiv.org/abs/2403.07815)
|
config.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "chronos",
|
| 3 |
+
"model_variant": "bolt",
|
| 4 |
+
"model_name": "chronos_bolt_tiny_9m_forecasting",
|
| 5 |
+
"original_repo": "amazon/chronos-bolt-tiny",
|
| 6 |
+
"parameters": "9M",
|
| 7 |
+
"architecture": "t5-optimized-bolt",
|
| 8 |
+
"task": "forecasting",
|
| 9 |
+
"probabilistic": true,
|
| 10 |
+
"multivariate": false,
|
| 11 |
+
"requires_training": false,
|
| 12 |
+
"context_length": 512,
|
| 13 |
+
"max_prediction_length": 64,
|
| 14 |
+
"num_samples": 20,
|
| 15 |
+
"quantile_levels": [
|
| 16 |
+
0.1,
|
| 17 |
+
0.2,
|
| 18 |
+
0.5,
|
| 19 |
+
0.8,
|
| 20 |
+
0.9
|
| 21 |
+
]
|
| 22 |
+
}
|