Skip to main contentIBM Granite

Granite on Linux

Hardware requirements

Granite time series models are very small, the amount of memory you need will largely depend on the size of the dataset you have.

Setup

  1. Create a python virtual environment:
python -m venv granite-tsfm --update-deps

Granite time series components currently work with python versions 3.9 - 3.12.

  1. Activate the new environment you created:
source granite-tsfm/bin/activate
  1. Install necessary dependencies for Granite time series:
pip install "tsfm_public[notebooks] @ git+https://github.com/ibm-granite/granite-tsfm.git"
  1. Download the Granite time series notebook.
curl -O https://raw.githubusercontent.com/ibm-granite/granite-tsfm/main/notebooks/tutorial/ttm_tutorial.ipynb
  1. Run jupyter lab and open the notebook
jupyter lab ttm_tutorial.ipynb