Skip to main content

TSFM: Time Series Foundation Models

Public notebooks, utilities, and serving components for working with Time Series Foundation Models (TSFM).

The core TSFM time series models have been made available on Hugging Face -- check out the granite time series collection here. Additional details can be found in our wiki. Information on the services component can be found here.

Python Version

The current Python versions supported are 3.10, 3.11, 3.12, 3.13.

Initial Setup

First clone the repository:

git clone "https://github.com/ibm-granite/granite-tsfm.git" 
cd granite-tsfm

📕 Notebooks Installation

Several notebooks are provided in the notebooks folder. They allow you to perform pre-training and finetuning on the models. To install use pip:

pip install ".[notebooks]"

🔗 Links to the notebooks

  • Getting started with PatchTSMixer [Try it out]
  • Transfer learning with PatchTSMixer [Try it out]
  • Transfer learning with PatchTST [Try it out]
  • Getting started with TinyTimeMixer (TTM) [Try it out]
  • TTM full benchmarking scripts and results are available [here]
  • FlowState example notebook is available [here]
  • PatchTST-FM example notebook is available [here]

📗 Google Colab Tutorials

Run the TTM tutorial in Google Colab, and quickly build a forecasting application with the pre-trained TSFM models.

💻 Demos Installation

The demo presented at NeurIPS 2023 is available in tsfmhfdemos. This demo requires you to have pre-trained and finetuned models in place (we plan to release these at a later date). To install the requirements use pip:

pip install ".[demos]"

🪲 Issues

If you encounter an issue with this project, you are welcome to submit a bug report. Before opening a new issue, please search for similar issues. It's possible that someone has already reported it.

🌏 Wiki

Wiki Page

Notice

The intention of this repository is to make it easier to use and demonstrate Granite TimeSeries components that have been made available in the Hugging Face transformers library. As we continue to develop these capabilities we will update the code here.

IBM Public Repository Disclosure: All content in this repository including code has been provided by IBM under the associated open source software license and IBM is under no obligation to provide enhancements, updates, or support. IBM developers produced this code as an open source project (not as an IBM product), and IBM makes no assertions as to the level of quality nor security, and will not be maintaining this code going forward.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

granite_tsfm-0.3.8.tar.gz (26.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

granite_tsfm-0.3.8-py3-none-any.whl (3.9 MB view details)

Uploaded Python 3

File details

Details for the file granite_tsfm-0.3.8.tar.gz.

File metadata

  • Download URL: granite_tsfm-0.3.8.tar.gz
  • Upload date:
  • Size: 26.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for granite_tsfm-0.3.8.tar.gz
Algorithm Hash digest
SHA256 2b1207d933043c57fb681486d25bb4b10f6ca74fa33bb9f9a59034adad1b1a69
MD5 68a5c4d343f526852e89ad6a06b069c0
BLAKE2b-256 c0a93bea2a57a0b91fd6e347ba7f21d11be3a471dbbd7fa67a4103ac08b4487e

See more details on using hashes here.

File details

Details for the file granite_tsfm-0.3.8-py3-none-any.whl.

File metadata

  • Download URL: granite_tsfm-0.3.8-py3-none-any.whl
  • Upload date:
  • Size: 3.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for granite_tsfm-0.3.8-py3-none-any.whl
Algorithm Hash digest
SHA256 ec1c857c2b1807569ab661cfe54b5b266790b651e5aa3d35da4e2ce2e8d96d84
MD5 569a3b3df4dcb9286e9a10e4c8e9cf29
BLAKE2b-256 07e78204d275d056d581cf767b219a604d996256298e619ceaf40366323d7efb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page