Chronos-Bolt is a family of pretrained time series forecasting models which can be used for zero-shot forecasting. Chronos-Bolt models are based on the
T5 architecture
and are available in the following sizes.
Chronos-Bolt models will be available in the next stable release of AutoGluon, so the following instructions will only work once AutoGluon 1.2 has been released.
The recommended way of using Chronos for production use cases is through
AutoGluon
, which features effortless fine-tuning, ensembling with other statistical and machine learning models for time series forecasting as well as seamless deployments on AWS with SageMaker.
Check out the AutoGluon Chronos
tutorial
.
A minimal example showing how to perform zero-shot inference using Chronos-Bolt with AutoGluon:
Alternatively, you can install the package in the GitHub
companion repo
.
This is intended for research purposes and provides a minimal interface to Chronos models.
Install the library by running:
A minimal example showing how to perform inference using Chronos-Bolt models:
import pandas as pd # requires: pip install pandasimport torch
from chronos import BaseChronosPipeline
pipeline = BaseChronosPipeline.from_pretrained(
"amazon/chronos-bolt-tiny",
device_map="cuda", # use "cpu" for CPU inference and "mps" for Apple Silicon
torch_dtype=torch.bfloat16,
)
df = pd.read_csv(
"https://raw.githubusercontent.com/AileenNielsen/TimeSeriesAnalysisWithPython/master/data/AirPassengers.csv"
)
# context must be either a 1D tensor, a list of 1D tensors,# or a left-padded 2D tensor with batch as the first dimension# Chronos-Bolt models generate quantile forecasts, so forecast has shape# [num_series, num_quantiles, prediction_length].
forecast = pipeline.predict(
context=torch.tensor(df["#Passengers"]), prediction_length=12
)
Citation
If you find Chronos or Chronos-Bolt models useful for your research, please consider citing the associated
paper
:
@article{ansari2024chronos,
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},
title = {Chronos: Learning the Language of Time Series},
journal = {arXiv preprint arXiv:2403.07815},
year = {2024}
}
License
This project is licensed under the Apache-2.0 License.
Runs of amazon chronos-bolt-tiny on huggingface.co
1.7M
Total runs
39.7K
24-hour runs
36.0K
3-day runs
-280.1K
7-day runs
207.7K
30-day runs
More Information About chronos-bolt-tiny huggingface.co Model
chronos-bolt-tiny huggingface.co is an AI model on huggingface.co that provides chronos-bolt-tiny's model effect (), which can be used instantly with this amazon chronos-bolt-tiny model. huggingface.co supports a free trial of the chronos-bolt-tiny model, and also provides paid use of the chronos-bolt-tiny. Support call chronos-bolt-tiny model through api, including Node.js, Python, http.
chronos-bolt-tiny huggingface.co is an online trial and call api platform, which integrates chronos-bolt-tiny's modeling effects, including api services, and provides a free online trial of chronos-bolt-tiny, you can try chronos-bolt-tiny online for free by clicking the link below.
amazon chronos-bolt-tiny online free url in huggingface.co:
chronos-bolt-tiny is an open source model from GitHub that offers a free installation service, and any user can find chronos-bolt-tiny on GitHub to install. At the same time, huggingface.co provides the effect of chronos-bolt-tiny install, users can directly use chronos-bolt-tiny installed effect in huggingface.co for debugging and trial. It also supports api for free installation.