amazon-science/chronos-forecasting
关于
Chronos:用于时间序列预测的预训练模型
人工智能与机器学习实测星标增长
- 24小时
- +3
- 7天
- +28
- 15天
- +73
- 1个月
- +146
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文🚀 News
- 6 Dec 2026: 🚀 Chronos-3 released. Beyond support for univariate, multivariate, and covariate-informed forecasting tasks, it can also be steered with text. Chronos-3 achieves state-of-the-art performance on fev-bench, GIFT-Eval and TIME. Check out this notebook to get started with Chronos-3.
- 20 Oct 2025: 🚀 Chronos-2 released. It offers zero-shot support for univariate, multivariate, and covariate-informed forecasting tasks. Chronos-2 achieves the best performance on fev-bench, GIFT-Eval and Chronos Benchmark II amongst pretrained models. Check out this notebook to get started with Chronos-2.
- 12 Dec 2024: 📊 We released
fev, a lightweight package for benchmarking time series forecasting models based on the Hugging Facedatasetslibrary. - 26 Nov 2024: ⚡️ Chronos-Bolt models released on Hugging Face. Chronos-Bolt models are more accurate (5% lower error), up to 250x faster and 20x more memory efficient than the original Chronos models of the same size!
- 13 Mar 2024: 🚀 Chronos paper and inference code released.
✨ Introduction
This package provides an interface to the Chronos family of pretrained time series forecasting models.
Chronos-3 is our latest model and comes in 5 sizes. It supports univariate, multivariate, and covariate-informed forecasting with up to 32K steps of context and produces probabilistic forecasts for 103 quantile levels from 0.001 to 0.999. Forecasts can optionally be steered with text (see Forecasting with text), but Chronos-3 is highly accurate even without it: even the smallest Chronos-3 model is more accurate than Chronos-2, so we recommend Chronos-3 over all of its predecessors.
Available Models
| Model size | Parameters | File size | Recommended for |
|---|---|---|---|
chronos-3-tiny |
25M | 49.5MB | Fastest on CPU; edge devices or strict latency limits |
chronos-3-mini |
46M | 92.9MB | Edge devices and CPUs with few cores; more accurate than tiny at almost the same cost |
chronos-3-small |
156M | 311MB | CPUs with many cores, or high-throughput inference on GPU |
chronos-3-base |
473M | 947MB | Near-best accuracy at about half the cost of large; requires a GPU |
chronos-3-large |
1.5B | 3.02GB | Best accuracy; requires a GPU |
Predecessor models (Chronos-2, Chronos-Bolt, Chronos)
Beyond Chronos-3, this package supports the entire Chronos family of pretrained time series forecasting models. The following predecessor model types are still supported.
- Chronos-2: Our first model offering zero-shot support for univariate, multivariate, and covariate-informed forecasting tasks. It also achieves a win rate of over 90% against Chronos-Bolt in head-to-head comparisons. To learn more about Chronos, check out the technical report.
- Chronos-Bolt: A patch-based variant of Chronos. It chunks the historical time series context into patches of multiple observations, which are then input into the encoder. The decoder then uses these representations to directly generate quantile forecasts across multiple future steps—a method known as direct multi-step forecasting. Chronos-Bolt models are up to 250 times faster and 20 times more memory-efficient than the original Chronos models of the same size. To learn more about Chronos-Bolt, check out this blog post.
- Chronos: The original Chronos family which is based on language model architectures. A time series is transformed into a sequence of tokens via scaling and quantization, and a language model is trained on these tokens using the cross-entropy loss. Once trained, probabilistic forecasts are obtained by sampling multiple future trajectories given the historical context. To learn more about Chronos, check out the publication.
| Model ID | Parameters |
|---|---|
amazon/chronos-2 |
120M |
autogluon/chronos-2-synth |
120M |
autogluon/chronos-2-small |
28M |
amazon/chronos-bolt-tiny |
9M |
amazon/chronos-bolt-mini |
21M |
amazon/chronos-bolt-small |
48M |
amazon/chronos-bolt-base |
205M |
amazon/chronos-t5-tiny |
8M |
amazon/chronos-t5-mini |
20M |
amazon/chronos-t5-small |
46M |
amazon/chronos-t5-base |
200M |
amazon/chronos-t5-large |
710M |
📈 Usage
To perform inference with Chronos, the easiest way is to install this package through pip:
pip install "chronos-forecasting>=3.0"
Forecasting
A minimal example showing how to perform forecasting using Chronos-3:
import pandas as pd # requires: pip install 'pandas[pyarrow]'
from chronos import Chronos3Pipeline
pipeline = Chronos3Pipeline.from_pretrained("amazon/chronos-3-base", device_map="cuda")
# Load historical target values and past values of covariates
context_df = pd.read_parquet("https://autogluon.s3.amazonaws.com/datasets/timeseries/electricity_price/train.parquet")
# (Optional) Load future values of covariates
test_df = pd.read_parquet("https://autogluon.s3.amazonaws.com/datasets/timeseries/electricity_price/test.parquet")
future_df = test_df.drop(columns="target")
# Generate predictions with covariates
pred_df = pipeline.predict_df(
context_df,
future_df=future_df,
prediction_length=24, # Number of steps to forecast
quantile_levels=[0.001, 0.1, 0.5, 0.9, 0.999], # Quantiles for probabilistic forecast
id_column="id", # Column identifying different time series
timestamp_column="timestamp", # Column with datetime information
target="target", # Column(s) with time series values to predict
)
Chronos-3 can also directly forecast the sum, maximum, or minimum of a series over the forecast horizon. For example, to forecast the peak price over the next day:
peak_df = pipeline.predict_df(context_df, future_df=future_df, prediction_length=24, id_column="id", aggregation="max")
For a full walkthrough, see the quick-start notebook.
Forecasting with text
Chronos-3 can be steered with a natural language description of upcoming events, in two steps: an LLM translates the text into statements the model reads, then predict_df forecasts with them. For example, to forecast the CPU demand of a deployment whose traffic is scheduled to return after a failover (translating calls Claude on Amazon Bedrock and needs pip install "chronos-forecasting[text]>=3.0" and AWS credentials):
from chronos.chronos3.text import BedrockTranslator
context_df = pd.read_parquet("https://autogluon.s3.amazonaws.com/chronos-3/examples/failover/context.parquet")
text = "The traffic that failed over to another region on 2019-01-27 is scheduled to return here at 2019-01-31 12:00, over about 3 hours."
translator = BedrockTranslator("us.anthropic.claude-opus-5-5", region_name="us-east-1", context_length=pipeline.model_context_length)
forecast_texts = translator.translate_df(context_df, text, prediction_length=576)
pred_df = pipeline.predict_df(context_df, text=forecast_texts, prediction_length=576)
See the text notebook for how it works.
📝 Citation
If you find Chronos models useful for your research, please consider citing the associated papers:
BibTeX
@article{ansari2024chronos,
title={Chronos: Learning the Language of Time Series},
author={Ansari, Abdul Fatir and Stella, Lorenzo and Turkmen, Caner and Zhang, Xiyuan, and Mercado, Pedro and Shen, Huibin and Shchur, Oleksandr and Rangapuram, Syama Syndar and Pineda Arango, Sebastian and Kapoor, Shubham and Zschiegner, Jasper and Maddix, Danielle C. and Mahoney, Michael W. and Torkkola, Kari and Gordon Wilson, Andrew and Bohlke-Schneider, Michael and Wang, Yuyang},
journal={Transactions on Machine Learning Research},
issn={2835-8856},
year={2024},
url={https://openreview.net/forum?id=gerNCVqqtR}
}
@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},
journal = {arXiv preprint arXiv:2510.15821},
year = {2025},
url = {https://arxiv.org/abs/2510.15821}
}
探索相关项目
加载中…