skillfed

chronos-forecasting

Chronos: Pretrained models for time series forecasting

chronos-forecasting v2.3.1 667.0K downloads/30d#5,423 on PyPI5,708
Permissive license Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for… (full text in the JSON record) Active released

What it is and what it does

Chronos is a library that wraps pretrained language-model-based time series forecasting models. It transforms historical time series data into token sequences, uses transformer architectures to learn patterns, and generates probabilistic forecasts by sampling multiple future trajectories or computing quantile predictions. The library includes three model families: Chronos-2 (latest, 120M parameters, best zero-shot performance), Chronos-Bolt (patch-based, up to 250 times faster and 20 times more memory-efficient), and the original Chronos (T5-based, ranging from 8M to 710M parameters).

You use it by loading a pretrained model via HuggingFace, passing historical time series data as a pandas DataFrame with optional covariate columns, and calling predict_df to get quantile forecasts for future steps. The library handles the tokenization, model inference, and output formatting automatically. It's designed for zero-shot forecasting—applying a model trained on diverse time series to new domains without fine-tuning—and supports both univariate (single target column) and multivariate (multiple targets plus exogenous features) scenarios.

Use it for:

  • Forecast electricity prices or demand using historical data and optional future weather or market covariates.
  • Generate probabilistic predictions for stock prices or financial metrics with quantile-based confidence intervals.
  • Predict website traffic, server load, or system metrics for capacity planning without retraining.
  • Perform rapid prototyping of time series predictions on new datasets without labeled training data.
  • Deploy production forecasting endpoints on AWS SageMaker or AutoGluon-Cloud for real-time or batch inference.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Chronos provides pretrained transformer-based models for zero-shot time series forecasting, supporting univariate, multivariate, and covariate-informed tasks with quantile-based probabilistic predictions.

Yes. Chronos is actively maintained, has no known vulnerabilities, and offers a straightforward interface to state-of-the-art pretrained models. Install it if you need time series forecasting without the overhead of training your own model. The low install friction and permissive license make it a practical choice for prototyping and production use. Consider it essential if you're forecasting on new domains where labeled training data is scarce.

Install

chronos-forecasting on PyPI

pip

pip install chronos-forecasting

uv

uv add chronos-forecasting

poetry

poetry add chronos-forecasting

Installing chronos-forecasting

Before you install

Low install friction with a pure-Python wheel. Active maintenance with recent releases (last commit 2026-08-14, 43 days since latest version). Depends on torch, transformers, and accelerate—standard ML stack dependencies that may require significant disk space but are widely available.

License in practice

Apache License 2.0 permits commercial and derivative use with minimal restrictions. You must include a copy of the license and note any modifications, but there are no copyleft obligations or patent claims that would restrict downstream use.

Quickstart

pip install chronos-forecasting

from chronos import Chronos2Pipeline
import pandas as pd

pipeline = Chronos2Pipeline.from_pretrained("amazon/chronos-2", device_map="cuda")
context_df = pd.read_parquet("train.parquet")
pred_df = pipeline.predict_df(context_df, prediction_length=24, quantile_levels=[0.1, 0.5, 0.9], id_column="id", timestamp_column="timestamp", target="target")

Requires Python >=3.10. torch and transformers must be installed; GPU recommended for inference speed but CPU inference is supported via device_map.

Verify before relying

  • Whether pretrained model weights are automatically downloaded on first use or require manual setup.
  • Memory and disk requirements for different model sizes (8M to 710M parameters).
  • Inference latency and throughput benchmarks on CPU vs. GPU hardware.
  • Whether the package supports batch inference across multiple time series simultaneously.

Package facts

License Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for… (full text in the JSON record) (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 6 — accelerate, einops, numpy, pandas, torch, transformers
Maintenance actively maintained — 43 days since the last release
Last repo commit
First released
Downloads 666,996/month — #5,423 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: chronos_forecasting-2.3.1-py3-none-any.whl

License :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Topic :: Scientific/Engineering :: Artificial Intelligence

Tags

time series forecastingpretrained forecasting modelszero-shot time series predictionprobabilistic forecastingmultivariate time seriestransformer forecastingquantile forecasts
time-seriesforecastingfoundation-models

More Artificial Intelligence packages