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.11

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.11
File Size Uploaded Provenance Actions
granite_tsfm-0.3.11.tar.gz 26.3 MB Without provenance Details for granite_tsfm-0.3.11.tar.gz

Built distribution (wheel)

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

Total release size: 30.2 MB

Release files / granite_tsfm-0.3.11.tar.gz

Download URL granite_tsfm-0.3.11.tar.gz
Size 26.3 MB
Tags Source
SHA-256 checksum
How to use checksums
e351c24f704c738131dee6e9d4a9a0a0e82c16ae676ddfce0ddba785fc13b182
BLAKE2b-256 checksum
How to use checksums
f8258a61217136cf9429457f95ff6981fc34dcae9aff5dfd45cf08d31e2416b3
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.11-py3-none-any.whl

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

Security for granite-tsfm 0.3.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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