Moirai-2.0-R-Small

Moirai 2.0 is a decoder-only universal time series forecasting transformer model pre-trained on:

  • Subset of GIFT-Eval Pretrain, and Train datasets (Non-leaking historical context).
  • Mixup data generated from non-leaking subsets of Chronos Dataset.
  • Synthetic time series produced via KernelSynth introduced in Chronos paper.
  • Internal Salesforce operational data.

We make significant improvements over the first version of Moirai (please refer to the paper for previous version):

  • Switched from a distributional loss to a quantile loss formulation.
  • Moved from single-token to multi-token prediction, improving efficiency and stability.
  • Added a data filtering mechanism to filter out non-forecastable, low quality, time series during pretraining.
  • Added a new patch token embedding which includes missing value information.
  • Added patch-level random mask to improve robustness of the model during inference.

Usage

To perform inference with Moirai 2.0, install the uni2ts library from our GitHub repo.

  1. Clone repository:
git clone https://github.com/SalesforceAIResearch/uni2ts.git
cd uni2ts
  1. Create virtual environment:
virtualenv venv
. venv/bin/activate
  1. Build from source:
pip install -e '.[notebook]'
  1. Create a .env file:
touch .env

A simple notebook to get started: github_notebook_link

Citation

If you're using any Moirai model or Uni2TS in your research or applications, please cite it using this BibTeX:

@article{woo2024unified,
  title={Unified Training of Universal Time Series Forecasting Transformers},
  author={Woo, Gerald and Liu, Chenghao and Kumar, Akshat and Xiong, Caiming and Savarese, Silvio and Sahoo, Doyen},
  journal={arXiv preprint arXiv:2402.02592},
  year={2024}
}

Ethical Considerations

This release is for research purposes only in support of an academic paper. Our models, datasets, and code are not specifically designed or evaluated for all downstream purposes. We strongly recommend users evaluate and address potential concerns related to accuracy, safety, and fairness before deploying this model. We encourage users to consider the common limitations of AI, comply with applicable laws, and leverage best practices when selecting use cases, particularly for high-risk scenarios where errors or misuse could significantly impact people’s lives, rights, or safety. For further guidance on use cases, refer to our AUP and AI AUP.

Downloads last month
360
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support