Time Series Forecasting
Chronos
Safetensors
t5
time series
forecasting
foundation models
pretrained models
Instructions to use amazon/chronos-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Chronos
How to use amazon/chronos-2 with Chronos:
pip install chronos-forecasting
import pandas as pd from chronos import BaseChronosPipeline pipeline = BaseChronosPipeline.from_pretrained("amazon/chronos-2", device_map="cuda") # Load historical data context_df = pd.read_csv("https://autogluon.s3.us-west-2.amazonaws.com/datasets/timeseries/misc/AirPassengers.csv") # Generate predictions pred_df = pipeline.predict_df( context_df, prediction_length=36, # Number of steps to forecast quantile_levels=[0.1, 0.5, 0.9], # Quantiles for probabilistic forecast id_column="item_id", # Column identifying different time series timestamp_column="Month", # Column with datetime information target="#Passengers", # Column(s) with time series values to predict ) - Notebooks
- Google Colab
- Kaggle
Add update for new SageMaker deployment guide
Browse files
README.md
CHANGED
|
@@ -21,6 +21,9 @@ library_name: chronos-forecasting
|
|
| 21 |
---
|
| 22 |
|
| 23 |
# Chronos-2
|
|
|
|
|
|
|
|
|
|
| 24 |
**Chronos-2** is a 120M-parameter, encoder-only time series foundation model for zero-shot forecasting.
|
| 25 |
It supports **univariate**, **multivariate**, and **covariate-informed** tasks within a single architecture.
|
| 26 |
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.
|
|
|
|
| 21 |
---
|
| 22 |
|
| 23 |
# Chronos-2
|
| 24 |
+
|
| 25 |
+
**Update Dec 30, 2025:** ☁️ Deploy Chronos-2 on Amazon SageMaker. [New guide](https://github.com/amazon-science/chronos-forecasting/blob/main/notebooks/deploy-chronos-to-amazon-sagemaker.ipynb) covers real-time GPU and CPU inference, serverless endpoints (run on demand, no idle costs), and batch transform for large-scale forecasting.
|
| 26 |
+
|
| 27 |
**Chronos-2** is a 120M-parameter, encoder-only time series foundation model for zero-shot forecasting.
|
| 28 |
It supports **univariate**, **multivariate**, and **covariate-informed** tasks within a single architecture.
|
| 29 |
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.
|