GPU deploy isn't supported for this model type.
| Capability | Chronos-2 | Chronos-Bolt | Chronos |
|---|---|---|---|
| Univariate Forecasting | ✅ | ✅ | ✅ |
| Cross-learning across items | ✅ | ❌ | ❌ |
| Multivariate Forecasting | ✅ | ❌ | ❌ |
| Past-only (real/categorical) covariates | ✅ | ❌ | ❌ |
| Known future (real/categorical) covariates | ✅ | 🧩 | 🧩 |
| Max. Context Length | 8192 | 2048 | 512 |
| Max. Prediction Length | 1024 | 64 | 64 |
pip install "chronos-forecasting>=2.0"pandas API1import pandas as pd # requires: pip install 'pandas[pyarrow]'
2from chronos import Chronos2Pipeline
3
4pipeline = Chronos2Pipeline.from_pretrained("amazon/chronos-2", device_map="cuda")
5
6# Load historical target values and past values of covariates
7context_df = pd.read_parquet("https://autogluon.s3.amazonaws.com/datasets/timeseries/electricity_price/train.parquet")
8
9# (Optional) Load future values of covariates
10future_df = pd.read_parquet("https://autogluon.s3.amazonaws.com/datasets/timeseries/electricity_price/test.parquet").drop(columns="target")
11
12# Generate predictions with covariates
13pred_df = pipeline.predict_df(
14 context_df,
15 future_df=future_df,
16 prediction_length=24, # Number of steps to forecast
17 quantile_levels=[0.1, 0.5, 0.9], # Quantiles for probabilistic forecast
18 id_column="id", # Column identifying different time series
19 timestamp_column="timestamp", # Column with datetime information
20 target="target", # Column(s) with time series values to predict
21)pip install autogluon.cloud>=0.5.01from autogluon.cloud import TimeSeriesFoundationModel
2
3model = TimeSeriesFoundationModel(model_name="chronos-2")
4
5# Batch prediction
6forecast_df = model.predict(df, prediction_length=24)
7
8# Deploy & invoke a real-time endpoint
9endpoint = model.deploy(instance_type="ml.g5.xlarge")
10forecast_df = endpoint.predict(df, prediction_length=24)pip install -U 'sagemaker<3'1from sagemaker.jumpstart.model import JumpStartModel
2
3model = JumpStartModel(
4 model_id="pytorch-forecasting-chronos-2",
5 instance_type="ml.g5.2xlarge",
6)
7predictor = model.deploy()1payload = {
2 "inputs": [
3 {"target": [1.0, 2.5, ..., 12.3]}
4 ],
5 "parameters": {
6 "prediction_length": 24,
7 }
8}
9forecast = predictor.predict(payload)["predictions"]@article{ansari2025chronos2,
title = {Chronos-2: From Univariate to Universal Forecasting},
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},
year = {2025},
url = {https://arxiv.org/abs/2510.15821}
}