#136136th of 168 in ML frameworks and libraries

tsai

PyTorch and fastai library for time series classification and forecasting

Stars
6.1k
License
Apache-2.0
Last commit
Jun 2026
Last release
May 2026
Language
Jupyter Notebook
Stars, last 29 weeks+140
20 Apr 2026: 6,004 stars27 Apr 2026: 6,010 stars4 May 2026: 6,018 stars11 May 2026: 6,024 stars18 May 2026: 6,030 stars25 May 2026: 6,034 stars1 Jun 2026: 6,038 stars8 Jun 2026: 6,047 stars15 Jun 2026: 6,051 stars22 Jun 2026: 6,056 stars29 Jun 2026: 6,061 stars6 Jul 2026: 6,066 stars13 Jul 2026: 6,070 stars20 Jul 2026: 6,077 stars27 Jul 2026: 6,083 stars3 Aug 2026: 6,086 stars10 Aug 2026: 6,092 stars17 Aug 2026: 6,099 stars24 Aug 2026: 6,101 stars31 Aug 2026: 6,106 stars7 Sept 2026: 6,111 stars14 Sept 2026: 6,115 stars21 Sept 2026: 6,117 stars28 Sept 2026: 6,119 stars5 Oct 2026: 6,121 stars12 Oct 2026: 6,128 stars19 Oct 2026: 6,130 stars26 Oct 2026: 6,137 stars2 Nov 2026: 6,141 stars9 Nov 2026: 6,144 stars

6,004 on 20 Apr 20266,144 on 9 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

tsai is a Python package built on PyTorch and fastai for training deep learning models on time series: classification, regression, forecasting and imputation. It bundles about 30 architectures (InceptionTime, TST, PatchTST, MiniRocket, TCN and others), dataset downloaders and tutorial notebooks. Models take a 3D array of samples x variables x sequence length and export to a pickled learner for inference.

Who it is for: ML engineers and researchers modeling time series in Python

Strengths

  • Ships many time series architectures, including PatchTST, InceptionTime, TST and MiniRocket
  • Downloads 128 univariate and 30 multivariate classification datasets, plus regression and forecasting sets
  • Plus models auto-configure the output head to match the forecasting target shape
  • Tutorial notebooks, including a Colab intro to time series classification

Weaknesses

  • Tied to the fastai training loop and API, which adds a learning curve
  • ROCKET models need sktime installed separately or via the extras install
  • Requires Python 3.10 or newer; conda channel is no longer updated
  • Library only: no serving layer, UI or deployment tooling

What it needs

  • GPU optional
  • Compose
  • Needs PyTorch, fastai, Python 3.10+, sktime (optional), tsfresh (optional)
  • Models: PatchTST, InceptionTime, TST, TSiT, MiniRocket

What changed

  1. “PyPI users: bump your Python to 3.10+ before pip install -U tsai. On Python 3.9 the upgrade will fail to resolve”

From the release notes. No flag means the note does not say so, not that the upgrade is safe.

Quick answers

Is tsai open source?

Yes. Its code is on GitHub under the Apache-2.0 license.

Can you run tsai with Docker?

Yes. Its repository has a Docker setup: a Dockerfile, a Compose file or a published image.

Does tsai need a GPU?

No. It runs on a CPU and can use a GPU when you have one.

Also in ML frameworks and libraries

See all 168
Also in ML frameworks and libraries
RankProjectScore
1transformersPython library defining open models for text, vision, audio and multimodal tasks168.8k stars+1,522 (+0.9%) in 30 daysApache-2.094 out of 100
2pytorchPython tensor library with GPU support and tape-based autograd105.4k stars+1,043 (+1.0%) in 30 dayscustom license93 out of 100
3ultralyticsPython library and CLI for training and running YOLO vision models63.3k stars+1,015 (+1.6%) in 30 daysAGPL-3.093 out of 100
#4pytorch-image-modelsPyTorch library of image models, pretrained weights and training scripts37.3k stars+101 (+0.3%) in 30 daysApache-2.093 out of 100
#5supervisionPython toolkit for loading, annotating and counting computer vision detections Live demo ↗ (opens in a new tab)51.6k stars+514 (+1.0%) in 30 daysMIT92 out of 100