Skip to main content

Public notebooks and utilities for TSFM

Project description

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.

Project details


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.6.tar.gz (22.9 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.6-py3-none-any.whl (3.8 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for granite_tsfm-0.3.6.tar.gz
Algorithm Hash digest
SHA256 2ac363bf6fa3a278dbf40b58bd5c4f99e0f94f656afc345a7e38bdbefc096d5c
MD5 eec50e32a98757ba4049de6445d75bb8
BLAKE2b-256 68d2174787ea23a0ffb92f1ff0ad060d03d7ef816e2837875d205d666da2b111

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for granite_tsfm-0.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 89f018400142791a73cfd2e108332daf2780e88c1bd745b0a1e11392860b72fd
MD5 04fbaab46ce3c6c4789c538b27e17fce
BLAKE2b-256 cc3ccd27cb83e355447ee3b9f9feb3437bb8e0a9861082613e194429b843516c

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 Pingdom Monitoring Sentry Error logging StatusPage Status page