LLM4TS
March 5, 2025 ยท View on GitHub
Welcome to the official codebase of LLM4TS. This project is based on research that has been accepted for publication in the ACM Transactions on Intelligent Systems and Technology (TIST) 2025.
Usage
- Install Python 3.8, and use
requirements.txtto install the dependenciespip install -r requirements.txt - Place all datasets in the
datasetfolder. The datasets can be downloaded from this link. - Place the GPT-2 model from Hugging Face into the
LLM/gpt2directory. - To execute the script with configuration settings passed via argparse, use:
Alternatively, if you prefer to use locally defined parameters to overwrite args for faster experimentation iterations, run:python main.py --...python main.py --overwrite_args - Please refer to
exp_settings_and_resultsto see all the experiments' settings and corresponding results.
Citation
If you find value in this repository, we kindly ask that you cite our paper.
@article{chang2023llm4ts,
title={LLM4TS: Two-Stage Fine-Tuning for Time-Series Forecasting with Pre-Trained LLMs},
author={Chang, Ching and Peng, Wen-Chih and Chen, Tien-Fu},
journal={arXiv preprint arXiv:2308.08469},
year={2023}
}
Contact
If you have any questions or suggestions, please reach out to Ching Chang at blacksnail789521@gmail.com, or raise them in the 'Issues' section.
Acknowledgement
This library was built upon the following repositories:
- Time Series Library (TSlib): https://github.com/thuml/Time-Series-Library