OpenLTM is an open codebase aiming to provide a pipeline to develop and evaluate large time-series models.
For deep time series models, we recommend Time-Series-Library and this comprehensive Survey.
Try out our out-of-the-box time series foundation models in Large-Time-Series-Model or HuggingFace.
:triangular_flag_on_post: News (2025.05) We release 260B pre-trained Timer in PyTorch. This version is equivalent to Huggingface Model, but more user-friendly for fine-tuning. This notebook shows how to load and use the checkpoint.
:triangular_flag_on_post: News (2025.04) Many thanks for the implementation of TTMs and other LLM4TS methods from frndtls.
:triangular_flag_on_post: News (2024.12) Many thanks for the implementation of GPT4TS from khairulislam.
:triangular_flag_on_post: News (2024.10) We include several large time-series models, release pre-training code, and provide scripts.
LTM (Large Time-Series Model, aka Time Series Foundation Model, TSFM) is a deep time series models built on scalable backbones (e.g., Transformers) via large-scale pre-training, which will be applied to a variety of time series data (e.g., zero-shot forecasting) and downstream tasks (e.g., general feature extraction of time series). For more information, here we list some tutorials: [CN], [EN].
pip install -r requirements.txt
./dataset. Here is a dataset summary.For univariate pre-training (skip this step if you use a pre-trained checkpoint):
For supervised training or modeling adaptation
./checkpoints./scripts/:# Supervised training
# (a) one-for-one forecasting
bash ./scripts/supervised/forecast/moirai_ecl.sh
# (b) one-for-all (rolling) forecasting
bash ./scripts/supervised/rolling_forecast/timer_xl_ecl.sh
# Large-scale pre-training
# (a) pre-training on UTSD
bash ./scripts/pretrain/timer_xl_utsd.sh
# (b) pre-training on ERA5
bash ./scripts/pretrain/timer_xl_era5.sh
# Model adaptation
# (a) full-shot fine-tune
bash ./scripts/adaptation/full_shot/timer_xl_etth1.sh
# (b) few-shot fine-tune
bash ./scripts/adaptation/few_shot/timer_xl_etth1.sh
./models. You can follow the ./models/timer_xl.py.Exp_Basic.model_dict of ./exp/exp_basic.py../scripts.Here we list some resources of LTMs, which support out-of-box usage (e.g., zero-shot forecasting):
[!NOTE] LTMs are still small compared to foundation models of other modalities. For example, it is okay to use CPUs for inference, RTX 4090s for adaptation, A100s for pre-training.
If you find this repo helpful, please cite our paper.
@inproceedings{liutimer,
title={Timer: Generative Pre-trained Transformers Are Large Time Series Models},
author={Liu, Yong and Zhang, Haoran and Li, Chenyu and Huang, Xiangdong and Wang, Jianmin and Long, Mingsheng},
booktitle={Forty-first International Conference on Machine Learning}
}
@article{liu2024timer,
title={Timer-XL: Long-Context Transformers for Unified Time Series Forecasting},
author={Liu, Yong and Qin, Guo and Huang, Xiangdong and Wang, Jianmin and Long, Mingsheng},
journal={arXiv preprint arXiv:2410.04803},
year={2024}
}
@article{liu2025sundial,
title={Sundial: A Family of Highly Capable Time Series Foundation Models},
author={Liu, Yong and Qin, Guo and Shi, Zhiyuan and Chen, Zhi and Yang, Caiyin and Huang, Xiangdong and Wang, Jianmin and Long, Mingsheng},
journal={arXiv preprint arXiv:2502.00816},
year={2025}
}
We appreciate the following GitHub repos a lot for their valuable code and efforts:
If you have any questions or want to use the code, feel free to contact:
Jupyter Notebook
65.0%
Python
31.0%
Shell
3.9%
OpenLTM is an open codebase aiming to provide a pipeline to develop and evaluate large time-series models.
For deep time series models, we recommend Time-Series-Library and this comprehensive Survey.
Try out our out-of-the-box time series foundation models in Large-Time-Series-Model or HuggingFace.
:triangular_flag_on_post: News (2025.05) We release 260B pre-trained Timer in PyTorch. This version is equivalent to Huggingface Model, but more user-friendly for fine-tuning. This notebook shows how to load and use the checkpoint.
:triangular_flag_on_post: News (2025.04) Many thanks for the implementation of TTMs and other LLM4TS methods from frndtls.
:triangular_flag_on_post: News (2024.12) Many thanks for the implementation of GPT4TS from khairulislam.
:triangular_flag_on_post: News (2024.10) We include several large time-series models, release pre-training code, and provide scripts.
LTM (Large Time-Series Model, aka Time Series Foundation Model, TSFM) is a deep time series models built on scalable backbones (e.g., Transformers) via large-scale pre-training, which will be applied to a variety of time series data (e.g., zero-shot forecasting) and downstream tasks (e.g., general feature extraction of time series). For more information, here we list some tutorials: [CN], [EN].
pip install -r requirements.txt
./dataset. Here is a dataset summary.For univariate pre-training (skip this step if you use a pre-trained checkpoint):
For supervised training or modeling adaptation
./checkpoints./scripts/:# Supervised training
# (a) one-for-one forecasting
bash ./scripts/supervised/forecast/moirai_ecl.sh
# (b) one-for-all (rolling) forecasting
bash ./scripts/supervised/rolling_forecast/timer_xl_ecl.sh
# Large-scale pre-training
# (a) pre-training on UTSD
bash ./scripts/pretrain/timer_xl_utsd.sh
# (b) pre-training on ERA5
bash ./scripts/pretrain/timer_xl_era5.sh
# Model adaptation
# (a) full-shot fine-tune
bash ./scripts/adaptation/full_shot/timer_xl_etth1.sh
# (b) few-shot fine-tune
bash ./scripts/adaptation/few_shot/timer_xl_etth1.sh
./models. You can follow the ./models/timer_xl.py.Exp_Basic.model_dict of ./exp/exp_basic.py../scripts.Here we list some resources of LTMs, which support out-of-box usage (e.g., zero-shot forecasting):
[!NOTE] LTMs are still small compared to foundation models of other modalities. For example, it is okay to use CPUs for inference, RTX 4090s for adaptation, A100s for pre-training.
If you find this repo helpful, please cite our paper.
@inproceedings{liutimer,
title={Timer: Generative Pre-trained Transformers Are Large Time Series Models},
author={Liu, Yong and Zhang, Haoran and Li, Chenyu and Huang, Xiangdong and Wang, Jianmin and Long, Mingsheng},
booktitle={Forty-first International Conference on Machine Learning}
}
@article{liu2024timer,
title={Timer-XL: Long-Context Transformers for Unified Time Series Forecasting},
author={Liu, Yong and Qin, Guo and Huang, Xiangdong and Wang, Jianmin and Long, Mingsheng},
journal={arXiv preprint arXiv:2410.04803},
year={2024}
}
@article{liu2025sundial,
title={Sundial: A Family of Highly Capable Time Series Foundation Models},
author={Liu, Yong and Qin, Guo and Shi, Zhiyuan and Chen, Zhi and Yang, Caiyin and Huang, Xiangdong and Wang, Jianmin and Long, Mingsheng},
journal={arXiv preprint arXiv:2502.00816},
year={2025}
}
We appreciate the following GitHub repos a lot for their valuable code and efforts:
If you have any questions or want to use the code, feel free to contact:
Jupyter Notebook
65.0%
Python
31.0%
Shell
3.9%