Skip to main content

Disclaimer

This is a personal fork of granite-tsfm, maintained to support custom changes for timecopilot and publish pypi wheels at timecopilot-granite-tsfm. It may diverge from upstream.

Credits

This project is a fork of by Original Author(s).
All credit for the original code belongs to them. This fork is maintained independently to support TimeCopilot-specific changes.

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.

Release files for timecopilot-granite-tsfm 0.2.1

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

Source distribution (sdist)

Source distribution for timecopilot-granite-tsfm 0.2.1
File Size Uploaded
timecopilot_granite_tsfm-0.2.1.tar.gz 24.5 MB Details

Built distribution (wheel)

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

Total release size: 28.3 MB

Release files / timecopilot_granite_tsfm-0.2.1.tar.gz

Download URL timecopilot_granite_tsfm-0.2.1.tar.gz
Size 24.5 MB
Tags Source
SHA-256 checksum
How to use checksums
753d23da2c67b232c2e7919aa776a9e0851ea5c22737ce7eb94a70f89913ebba
BLAKE2b-256 checksum
How to use checksums
b255c85728a8ea30843f745784ae760cc3db30e60f05b7662a4e3ed90fb10052
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / timecopilot_granite_tsfm-0.2.1-py3-none-any.whl

Download URL timecopilot_granite_tsfm-0.2.1-py3-none-any.whl
Size 3.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
d9c9bfe8b111f9d0f8e9d1f0e06ecf122dc6f180bf02d0a4879e85f65aaf039e
BLAKE2b-256 checksum
How to use checksums
5268b6b2994ae916d2f4fa83505d1279a66ec6ccd633819d7cd1046bfefd8c6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

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