Time Series Forecasting
Chronos
Safetensors
t5
time series
forecasting
pretrained models
foundation models
time series foundation models
time-series
Instructions to use amazon/chronos-t5-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Chronos
How to use amazon/chronos-t5-small with Chronos:
pip install chronos-forecasting
import pandas as pd from chronos import BaseChronosPipeline pipeline = BaseChronosPipeline.from_pretrained("amazon/chronos-t5-small", 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
Commit History
-
Fix: Add missing matplotlib installation in example code
Verified signature## Description The example code fails with `ModuleNotFoundError: No module named 'matplotlib'` when run in a clean environment. This is due to the `matplotlib` package not being pre-installed. ## Changes Added the following line at the beginning of the script to ensure all required dependencies are available: ```python # Requires: matplotlib ``` ## Testing The code has been successfully tested and runs without error. ## Note This contribution is part of an ongoing research initiative to systematically identify and correct faulty example code in Hugging Face Model Cards. We would appreciate a timely review and integration of this patch to support code reliability and enhance reproducibility for downstream users.e8ac4ac
-
Update README.md
Verified signature6bcab32 -
Update README.md
Verified signatureeae4e97
-
Update README
4b88b0c
-
Add pipeline for time series forecasting (#3)
Verified signature- Add pipeline for time series forecasting (23077cc3c87b218edf0e965dfd2bc0dacb843358) Co-authored-by: Omar Sanseviero <osanseviero@users.noreply.huggingface.co>476a71b
-
Delete pytorch_model.bin (#2)
Verified signature- Delete pytorch_model.bin (ff3aecf0fcd6faa10346dbd3162c18f720cc3bb2)4753ebe
-
Adding `safetensors` variant of this model (#1)
Verified signature- Adding `safetensors` variant of this model (267792e7d4bf14d572da2e6c8e1ac61a9eae82f7) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>da0eb42
-
initial commit
a8ddaa5