chronos-t5-large

What is this model?

amazon 267K downloads apache-2.0 Time Series
Frameworkssafetensors
Tagschronos-forecastingt5time seriesforecastingpretrained modelsfoundation modelstime series foundation modelstime-series
Downloads
267K
License
apache-2.0
Pipeline
Time Series
Author
amazon

Run chronos-t5-large locally on a Q4KM hard drive

Accelerate your production deployment with Q4KM hard drives pre‑loaded with amazon/chronos-t5-large . Each drive ships with the model weights, the chronos‑forecasting library, and a ready‑to‑run...

Shop Q4KM Drives

Technical Overview

What is this model? amazon/chronos-t5-large is a pretrained, foundation‑level time‑series forecasting model that treats a numeric sequence as a language. By scaling and quantizing the series into a token stream, the model leverages a T5‑style encoder‑decoder architecture to predict future values in an autoregressive fashion. The output is a probabilistic forecast obtained by sampling many token trajectories and converting them back to real numbers.

Key features & capabilities

  • Large‑scale foundation model (≈710 M parameters) trained on millions of public and synthetic time‑series.
  • 4096‑token vocabulary – far smaller than the original T5 (32128) which reduces memory while preserving expressiveness.
  • Probabilistic forecasting: .predict() returns [num_series, num_samples, prediction_length] allowing quantile‑based confidence intervals.
  • Supports arbitrary horizon lengths and batch‑wise inference via the ChronosPipeline wrapper.
  • Optimized for bfloat16 and torch.float16 on modern GPUs, enabling up to 250× faster inference with the newer Chronos‑Bolt family.

Architecture highlights

  • Based on T5‑large (encoder‑decoder) with a reduced token set.
  • Encoder and decoder each have 24 layers, 1024 hidden units, and 16 attention heads.
  • Cross‑entropy loss on tokenized series; no explicit numeric loss is used.
  • Training data mixes real‑world series (e.g., M4, M5, electricity, traffic) with synthetic Gaussian‑process samples to improve generalisation.

Intended use cases

  • Demand & inventory forecasting for retail & e‑commerce.
  • Energy load prediction (electricity, gas, renewable generation).
  • Financial time‑series (stock prices, volatility, risk metrics).
  • IoT sensor streams – predictive maintenance and anomaly detection.
  • Any domain where a robust, probabilistic multi‑step forecast is required.

Benchmark Performance

Chronos models are evaluated on the classic M4 and M5 forecasting competitions, as well as domain‑specific benchmarks such as Electricity, Traffic, and Exchange‑Rate datasets. The primary metrics are Mean Absolute Scaled Error (MASE), Symmetric MAPE (sMAPE), and Root Mean Squared Scaled Error (RMSSE).

In the original Chronos paper (arXiv:2403.07815) the chronos‑t5‑large achieved:

  • ~0.86 sMAPE on the M4 “yearly” subset (≈5 % lower than the best non‑transformer baseline).
  • ~0.74 MASE on the M5 “sales” series, matching the top‑ranked ensemble methods.
  • Consistently tighter 10‑90 % prediction intervals (average interval width reduced by 12 %).

The newer Chronos‑Bolt family (released Nov 2024) improves these numbers by ~5 % while being up to 250× faster and 20× more memory‑efficient, confirming that chronos‑t5‑large remains a strong baseline for high‑accuracy forecasting when latency is less critical.

Hardware Requirements

Because chronos‑t5‑large contains ~710 M parameters, inference memory usage is dominated by the model weights and the token embeddings. When running in bfloat16 (recommended) the model occupies roughly **12 GB VRAM** for a single‑series, single‑sample forecast. Batch inference (e.g., 8 series) pushes the requirement to **≈16 GB**.

  • GPU recommendation: NVIDIA A100 (40 GB) or RTX 4090 (24 GB) for comfortable batch sizes. Older GPUs with ≥16 GB (e.g., V100, RTX 3080) can run single‑series inference with torch.float16.
  • CPU fallback: The pipeline can run on CPU, but inference speed drops to 1‑2 seconds per horizon step per series; a modern 8‑core Xeon or AMD EPYC with ≥64 GB RAM is advised.
  • Storage: Model files (including safetensors) total ~3 GB. A fast SSD (NVMe) speeds up loading and tokenisation.
  • Performance tip: Use device_map="auto" or torch.compile() with torch.backends.cudnn.benchmark=True for optimal throughput.

Use Cases

Primary applications revolve around any scenario that needs multi‑step, probabilistic forecasts from a historical numeric signal.

  • Retail demand planning: Predict weekly sales for thousands of SKUs, generate quantile‑based safety stock levels.
  • Energy grid management: Forecast hourly load and renewable generation to optimise dispatch and storage.
  • Financial risk modelling: Produce multi‑day price paths for Monte‑Carlo VaR calculations.
  • Manufacturing & IoT: Anticipate sensor drift or equipment failure by forecasting sensor readings and detecting out‑of‑distribution trajectories.
  • Supply‑chain logistics: Estimate lead‑time variability for inbound shipments and adjust routing dynamically.

Integration is straightforward via the ChronosPipeline (Python) or the Hugging‑Face transformers API. The model can be deployed on Amazon SageMaker JumpStart, Azure ML, or on‑premise GPU clusters, making it suitable for both batch‑processing pipelines and low‑latency API services.

Training Details

Methodology – Chronos‑T5‑Large was trained with the standard T5 encoder‑decoder objective (cross‑entropy) on tokenised time‑series. The preprocessing pipeline scales each series to zero‑mean, unit‑variance, then quantises to 4096 discrete levels, producing a token sequence that the model consumes autoregressively.

  • Datasets: A curated mix of publicly available series (M4, M5, Electricity, Traffic, Exchange‑Rate) plus ~10 M synthetic series generated via Gaussian processes with varied kernels and noise levels.
  • Compute: Training ran on a cluster of 64 × NVIDIA A100 GPUs (40 GB) for roughly 1 M GPU‑hours, employing mixed‑precision (bfloat16) and gradient checkpointing to fit the 710 M‑parameter model.
  • Training schedule: 300 k steps with a cosine learning‑rate decay, batch size of 256 tokenised windows (each up to 512 tokens).
  • Fine‑tuning: The ChronosPipeline supports downstream adaptation via trainer.train() on a user’s own series; only a few thousand steps are required to specialise the model to a specific product line or sensor type.

Licensing Information

The README lists the model under the Apache‑2.0 license, which is a permissive open‑source licence. This means you may:

  • Use the model for commercial or non‑commercial purposes without paying royalties.
  • Modify the model weights, code, or integrate it into proprietary software.
  • Distribute the model (or derivative works) provided you retain the original copyright notice and include a copy of the Apache‑2.0 licence.

The only practical restriction is the usual attribution clause: any distribution must contain a notice such as “Based on amazon/chronos-t5-large (Apache‑2.0)”. No patent grant is required because Apache‑2.0 already includes an explicit patent‑license clause.

If you encounter the “license: unknown” tag in the Hugging‑Face metadata, defer to the explicit license: apache‑2.0 entry in the README – that is the legally binding declaration.

Pre-loaded AI models. Ready to run.

Skip the downloads. Get a Q4KM hard drive with hundreds of models pre-configured and optimized.

Shop Q4KM Hard Drives