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]"
  • 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.

Metadata

Release files for granite-tsfm 0.3.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for granite-tsfm 0.3.10
File Size Uploaded
granite_tsfm-0.3.10.tar.gz 26.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for granite-tsfm 0.3.10
File Interpreter ABI Platform
granite_tsfm-0.3.10-py3-none-any.whl Python 3 none any Details

Total release size: 30.2 MB

Release files / granite_tsfm-0.3.10.tar.gz

Download URL granite_tsfm-0.3.10.tar.gz
Size 26.3 MB
Tags Source
SHA-256 checksum
How to use checksums
2c86947f7b19bc42f1ed512782f840f6f0fb9530e239864e7f360f3d4b227892
BLAKE2b-256 checksum
How to use checksums
e82216d623c7d847569b72617db567dca76a1fcf920673b1b7f2a819a806eaf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / granite_tsfm-0.3.10-py3-none-any.whl

Download URL granite_tsfm-0.3.10-py3-none-any.whl
Size 3.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f02fe2a7328d06a6fbd23abacc7cf0d3d22e3dd91e736c3163431732867c11fb
BLAKE2b-256 checksum
How to use checksums
b321655ae215257acfa684a2828a916d4ca09a766ad0a608fb05edeaa50ca236
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

0.3.10 This release

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.27

2 release files

0.2.24

2 release files

0.2.23

2 release files

0.2.22

2 release files

0.2.20

2 release files

0.2.19

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page