Time Series Forecasting
Chronos
Safetensors
t5
time series
forecasting
foundation models
pretrained models
Gregory-L commited on
Commit
2ba6c02
Β·
verified Β·
1 Parent(s): d3aafed

fork autogluon/chronos-2@60088152a34e (full): card, licence, FORK.json

Browse files
Files changed (2) hide show
  1. FORK.json +15 -0
  2. README.md +183 -0
FORK.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source_repo": "autogluon/chronos-2",
3
+ "source_commit": "60088152a34e242427b44c3100014473a0157d53",
4
+ "mode": "full",
5
+ "forked_at_utc": "2026-11-26T08:32:34Z",
6
+ "licence": "apache-2.0",
7
+ "licence_file": null,
8
+ "licence_sha256": null,
9
+ "files_copied": 4,
10
+ "bytes_copied": 477940832,
11
+ "weights_left_at_source": [],
12
+ "role": "time-series forecasting, 120M \u2014 uni/multivariate, covariates",
13
+ "selection_source": "KDnuggets, \"7 Most Downloaded AI Models on Hugging Face\", Abid Ali Awan, 2026-11-24",
14
+ "load": "from_pretrained('PYTHAI/chronos-2-fork')"
15
+ }
README.md ADDED
@@ -0,0 +1,183 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ model_id: chronos-2
4
+ tags:
5
+ - time series
6
+ - forecasting
7
+ - foundation models
8
+ - pretrained models
9
+ - safetensors
10
+ paper:
11
+ - https://arxiv.org/abs/2510.15821
12
+ datasets:
13
+ - autogluon/chronos_datasets
14
+ - Salesforce/GiftEvalPretrain
15
+ leaderboards:
16
+ - Salesforce/GIFT-Eval
17
+ - autogluon/fev-leaderboard
18
+ pipeline_tag: time-series-forecasting
19
+ library_name: chronos-forecasting
20
+
21
+ ---
22
+
23
+ > **PYTHAI fork of [`autogluon/chronos-2`](https://huggingface.co/autogluon/chronos-2/tree/60088152a34e242427b44c3100014473a0157d53)**, pinned at `60088152a34e242427b44c3100014473a0157d53`. Licence as read at that commit: **apache-2.0** (see LICENSE / FORK.json). Weights are copied: this fork runs on its own. Kept by [mindX](https://mindx.pythai.net) as a reference model; selection source: KDnuggets, "7 Most Downloaded AI Models on Hugging Face", Abid Ali Awan, 2026-11-24.
24
+
25
+
26
+ # Chronos-2
27
+
28
+ **Update Jun 5, 2026:** ☁️ Deploy Chronos-2 on AWS with AutoGluon-Cloud. Real-time, serverless, or batch inference in 3 lines of code β€” pandas DataFrames in, forecasts out. Check out the [new deployment guide](https://auto.gluon.ai/cloud/stable/tutorials/foundation-model-timeseries.html).
29
+
30
+ **Chronos-2** is a 120M-parameter, encoder-only time series foundation model for zero-shot forecasting.
31
+ It supports **univariate**, **multivariate**, and **covariate-informed** tasks within a single architecture.
32
+ Inspired by the T5 encoder, Chronos-2 produces multi-step-ahead quantile forecasts and uses a group attention mechanism for efficient in-context learning across related series and covariates.
33
+ Trained on a combination of real-world and large-scale synthetic datasets, it achieves **state-of-the-art zero-shot accuracy** among public models on [**fev-bench**](https://huggingface.co/spaces/autogluon/fev-leaderboard), [**GIFT-Eval**](https://huggingface.co/spaces/Salesforce/GIFT-Eval), and [**Chronos Benchmark II**](https://arxiv.org/abs/2403.07815).
34
+ Chronos-2 is also **highly efficient**, delivering over 300 time series forecasts per second on a single A10G GPU and supporting both **GPU and CPU inference**.
35
+
36
+ ## Links
37
+ - ☁️ [Deploy on SageMaker with AutoGluon-Cloud](https://auto.gluon.ai/cloud/stable/tutorials/foundation-model-timeseries.html) (recommended)
38
+ - πŸš€ [Deploy on SageMaker with JumpStart](https://github.com/amazon-science/chronos-forecasting/blob/main/notebooks/deploy-chronos-to-amazon-sagemaker.ipynb)
39
+ - πŸ“„ [Technical report](https://arxiv.org/abs/2510.15821v1)
40
+ - πŸ’» [GitHub](https://github.com/amazon-science/chronos-forecasting)
41
+ - πŸ“˜ [Example notebook](https://github.com/amazon-science/chronos-forecasting/blob/main/notebooks/chronos-2-quickstart.ipynb)
42
+ - πŸ“° [Amazon Science Blog](https://www.amazon.science/blog/introducing-chronos-2-from-univariate-to-universal-forecasting)
43
+
44
+
45
+ ## Overview
46
+
47
+ | Capability | Chronos-2 | Chronos-Bolt | Chronos |
48
+ |------------|-----------|--------------|----------|
49
+ | Univariate Forecasting | βœ… | βœ… | βœ… |
50
+ | Cross-learning across items | βœ… | ❌ | ❌ |
51
+ | Multivariate Forecasting | βœ… | ❌ | ❌ |
52
+ | Past-only (real/categorical) covariates | βœ… | ❌ | ❌ |
53
+ | Known future (real/categorical) covariates | βœ… | 🧩 | 🧩 |
54
+ | Max. Context Length | 8192 | 2048 | 512 |
55
+ | Max. Prediction Length | 1024 | 64 | 64 |
56
+
57
+ 🧩 Chronos & Chronos-Bolt do not natively support future covariates, but they can be combined with external covariate regressors (see [AutoGluon tutorial](https://auto.gluon.ai/stable/tutorials/timeseries/forecasting-chronos.html#incorporating-the-covariates)). This only models per-timestep effects, not effects across time. In contrast, Chronos-2 supports all covariate types natively.
58
+
59
+
60
+ ## Running the model locally
61
+
62
+ For experimentation and local inference, you can use the [inference package](https://github.com/amazon-science/chronos-forecasting).
63
+
64
+ Install the package
65
+ ```
66
+ pip install "chronos-forecasting>=2.0"
67
+ ```
68
+
69
+ Make zero-shot predictions using the `pandas` API
70
+
71
+ ```python
72
+ import pandas as pd # requires: pip install 'pandas[pyarrow]'
73
+ from chronos import Chronos2Pipeline
74
+
75
+ pipeline = Chronos2Pipeline.from_pretrained("amazon/chronos-2", device_map="cuda")
76
+
77
+ # Load historical target values and past values of covariates
78
+ context_df = pd.read_parquet("https://autogluon.s3.amazonaws.com/datasets/timeseries/electricity_price/train.parquet")
79
+
80
+ # (Optional) Load future values of covariates
81
+ future_df = pd.read_parquet("https://autogluon.s3.amazonaws.com/datasets/timeseries/electricity_price/test.parquet").drop(columns="target")
82
+
83
+ # Generate predictions with covariates
84
+ pred_df = pipeline.predict_df(
85
+ context_df,
86
+ future_df=future_df,
87
+ prediction_length=24, # Number of steps to forecast
88
+ quantile_levels=[0.1, 0.5, 0.9], # Quantiles for probabilistic forecast
89
+ id_column="id", # Column identifying different time series
90
+ timestamp_column="timestamp", # Column with datetime information
91
+ target="target", # Column(s) with time series values to predict
92
+ )
93
+ ```
94
+
95
+ ## Production use on Amazon SageMaker
96
+
97
+ For production use, we recommend deploying Chronos-2 to Amazon SageMaker. There are two options:
98
+
99
+ - **AutoGluon-Cloud** (recommended) β€” minimal setup with a high-level Python API: pass a pandas DataFrame in, get forecasts back. Supports real-time, serverless, and batch inference out of the box.
100
+ - **SageMaker JumpStart** β€” fine-grained control over the deployment configuration. JSON request/response payloads only; serverless inference and batch prediction require additional setup.
101
+
102
+ ### ☁️ AutoGluon-Cloud
103
+
104
+ Install AutoGluon-Cloud:
105
+
106
+ ```
107
+ pip install autogluon.cloud>=0.5.0
108
+ ```
109
+
110
+ Make predictions from a pandas DataFrame
111
+
112
+ ```python
113
+ from autogluon.cloud import TimeSeriesFoundationModel
114
+
115
+ model = TimeSeriesFoundationModel(model_name="chronos-2")
116
+
117
+ # Batch prediction
118
+ forecast_df = model.predict(df, prediction_length=24)
119
+
120
+ # Deploy & invoke a real-time endpoint
121
+ endpoint = model.deploy(instance_type="ml.g5.xlarge")
122
+ forecast_df = endpoint.predict(df, prediction_length=24)
123
+ ```
124
+
125
+ For more details (e.g. serverless endpoints, covariate-aware forecasting), see the [full deployment guide](https://auto.gluon.ai/cloud/stable/tutorials/foundation-model-timeseries.html).
126
+
127
+ ### πŸš€ SageMaker JumpStart
128
+
129
+ First, update the SageMaker SDK to make sure that all the latest models are available.
130
+
131
+ ```
132
+ pip install -U 'sagemaker<3'
133
+ ```
134
+
135
+ Deploy an inference endpoint to SageMaker.
136
+
137
+ ```python
138
+ from sagemaker.jumpstart.model import JumpStartModel
139
+
140
+ model = JumpStartModel(
141
+ model_id="pytorch-forecasting-chronos-2",
142
+ instance_type="ml.g5.2xlarge",
143
+ )
144
+ predictor = model.deploy()
145
+ ```
146
+
147
+ Now you can send time series data to the endpoint in JSON format.
148
+
149
+ ```python
150
+ payload = {
151
+ "inputs": [
152
+ {"target": [1.0, 2.5, ..., 12.3]}
153
+ ],
154
+ "parameters": {
155
+ "prediction_length": 24,
156
+ }
157
+ }
158
+ forecast = predictor.predict(payload)["predictions"]
159
+ ```
160
+
161
+ For more details about the endpoint API, check out the [example notebook](https://github.com/amazon-science/chronos-forecasting/blob/2.2.2/notebooks/deploy-chronos-to-amazon-sagemaker.ipynb).
162
+
163
+
164
+ ## Training data
165
+ More details about the training data are available in the [technical report](https://arxiv.org/abs/2510.15821).
166
+
167
+ - Subset of [Chronos Datasets](https://huggingface.co/datasets/autogluon/chronos_datasets) (excluding test portion of datasets that overlap with GIFT-Eval)
168
+ - Subset of [GIFT-Eval Pretrain](https://huggingface.co/datasets/Salesforce/GiftEvalPretrain)
169
+ - Synthetic univariate and multivariate data
170
+
171
+
172
+ ## Citation
173
+
174
+ If you find Chronos-2 useful for your research, please consider citing the associated paper:
175
+
176
+ ```
177
+ @article{ansari2025chronos2,
178
+ title = {Chronos-2: From Univariate to Universal Forecasting},
179
+ author = {Abdul Fatir Ansari and Oleksandr Shchur and Jaris KΓΌken and Andreas Auer and Boran Han and Pedro Mercado and Syama Sundar Rangapuram and Huibin Shen and Lorenzo Stella and Xiyuan Zhang and Mononito Goswami and Shubham Kapoor and Danielle C. Maddix and Pablo Guerron and Tony Hu and Junming Yin and Nick Erickson and Prateek Mutalik Desai and Hao Wang and Huzefa Rangwala and George Karypis and Yuyang Wang and Michael Bohlke-Schneider},
180
+ year = {2025},
181
+ url = {https://arxiv.org/abs/2510.15821}
182
+ }
183
+ ```