bbgame60 commited on
Commit
b5e3c76
·
verified ·
1 Parent(s): d141fc8

Upload chronos_t5_base_200m_forecasting model card

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