Metadata-Version: 2.5
Name: simons-forecasting
Version: 0.1.3.post2
Summary: Simons: Building Open Time Series Foundation Models through Auto-Research
Project-URL: Repository, https://github.com/Abel-ai-lab/Simons
Project-URL: Model weights, https://huggingface.co/abel-lab
Author: Abel AI Lab
License-Expression: Apache-2.0
License-File: LICENSE
License-File: NOTICE
Keywords: forecasting,foundation model,probabilistic forecasting,time series
Requires-Python: >=3.10
Requires-Dist: huggingface-hub>=0.23
Requires-Dist: numpy>=1.24
Requires-Dist: safetensors>=0.4
Requires-Dist: torch>=2.5
Provides-Extra: dev
Requires-Dist: datasets>=2.17; extra == 'dev'
Requires-Dist: gluonts>=0.15; extra == 'dev'
Requires-Dist: pyarrow>=15; extra == 'dev'
Requires-Dist: pytest>=8; extra == 'dev'
Requires-Dist: pyyaml>=6; extra == 'dev'
Requires-Dist: scipy>=1.10; extra == 'dev'
Provides-Extra: train
Requires-Dist: datasets>=2.17; extra == 'train'
Requires-Dist: pyarrow>=15; extra == 'train'
Requires-Dist: pyyaml>=6; extra == 'train'
Requires-Dist: scipy>=1.10; extra == 'train'
Description-Content-Type: text/markdown

# Simons

<table>
  <tr>
    <td><b>Package</b></td>
    <td><a href="https://pypi.org/project/simons-forecasting/"><img src="https://img.shields.io/pypi/v/simons-forecasting?label=PyPI&amp;color=3775A9&amp;logo=pypi&amp;logoColor=white" alt="PyPI: simons-forecasting"></a> <a href="https://github.com/Abel-ai-lab/Simons/blob/main/pyproject.toml"><img src="https://img.shields.io/badge/python-3.10%2B-3776AB?logo=python&amp;logoColor=white" alt="Python 3.10+"></a> <a href="https://github.com/Abel-ai-lab/Simons/releases"><img src="https://img.shields.io/github/v/release/Abel-ai-lab/Simons?label=release&amp;color=orange" alt="Release"></a> <a href="https://github.com/Abel-ai-lab/Simons/blob/main/LICENSE"><img src="https://img.shields.io/badge/code-Apache--2.0-blue" alt="Code: Apache-2.0"></a></td>
  </tr>
  <tr>
    <td><b>Weights and Data</b></td>
    <td><a href="https://huggingface.co/collections/abel-lab/simons-1-6ae3d4ce9705938e293c52dd"><img src="https://img.shields.io/badge/Hugging%20Face-Simons%201-FFD21E?logo=huggingface&amp;logoColor=FFD21E" alt="Hugging Face: Simons 1"></a> <a href="https://huggingface.co/datasets/abel-lab/Simons-Pretrain"><img src="https://img.shields.io/badge/data-Simons--Pretrain-FFD21E?logo=huggingface&amp;logoColor=FFD21E" alt="Data: Simons-Pretrain"></a> <a href="https://huggingface.co/abel-lab/Simons-297M/blob/main/LICENSE"><img src="https://img.shields.io/badge/weights-OpenMDW--1.1-blue" alt="Weights: OpenMDW-1.1"></a></td>
  </tr>
  <tr>
    <td><b>Benchmarks</b></td>
    <td><a href="https://paperswithcode.co/api/v1/papers/133409/leaderboard-badge-link?eval=49305"><img src="https://paperswithcode.co/api/v1/papers/133409/leaderboard-badge.svg?eval=49305&amp;live=1" alt="Papers with Code: GIFT-Eval"></a> <a href="https://paperswithcode.co/api/v1/papers/133409/leaderboard-badge-link?eval=49311"><img src="https://paperswithcode.co/api/v1/papers/133409/leaderboard-badge.svg?eval=49311&amp;live=1" alt="Papers with Code: fev-bench"></a> <a href="https://paperswithcode.co/api/v1/papers/133409/leaderboard-badge-link?eval=49306"><img src="https://paperswithcode.co/api/v1/papers/133409/leaderboard-badge.svg?eval=49306&amp;live=1" alt="Papers with Code: TIME"></a></td>
  </tr>
  <tr>
    <td><b>Integrations</b></td>
    <td><a href="https://github.com/TimeCopilot/foundationforecast"><img src="https://img.shields.io/badge/TimeCopilot-FoundationForecast-5B4BC4" alt="TimeCopilot: FoundationForecast"></a> <a href="https://github.com/Abel-ai-lab/Simons/blob/main/docs/GETTING_STARTED.md#options"><img src="https://img.shields.io/badge/GluonTS-SimonsPredictor-2F6F9F" alt="GluonTS: SimonsPredictor"></a></td>
  </tr>
  <tr>
    <td><b>Read more</b></td>
    <td><a href="https://abel.ai/research/introducing-simons/"><img src="https://img.shields.io/badge/Abel%20AI%20Lab-Release%20Blog-0A66C2" alt="Release Blog"></a> <a href="https://github.com/Abel-ai-lab/nanoTSFM"><img src="https://img.shields.io/badge/built%20from-nanoTSFM-24292F?logo=github" alt="Built from nanoTSFM"></a></td>
  </tr>
</table>

**Simons** is a family of four open time series foundation models developed by Abel AI Lab for zero-shot probabilistic forecasting. Starting from a 3.3M-parameter [baseline](https://github.com/Abel-ai-lab/nanoTSFM), we developed the models in just 15 days, achieving SOTA performance on several benchmark datasets.


<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/Abel-ai-lab/Simons/main/docs/assets/benchmark-places-dark.png">
  <img src="https://raw.githubusercontent.com/Abel-ai-lab/Simons/main/docs/assets/benchmark-places.png" alt="Places on public benchmark leaderboards" width="720">
</picture>

Simons is also very fast. It can complete a GIFT-Eval benchmark run in just 14 minutes on a single A100 GPU.

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/Abel-ai-lab/Simons/main/docs/assets/inference-time-dark.png">
  <img src="https://raw.githubusercontent.com/Abel-ai-lab/Simons/main/docs/assets/inference-time.png" alt="Time to forecast GIFT-Eval, TIME and fev-bench" width="720">
</picture>

## Open Artifacts

Simons is fully open source. In addition to the inference code and model weights, we release the complete training recipe and code.

| Artifact | Type | Source |
|---|---|---|
| Simons-25M | Model weights | [abel-lab/Simons-25M](https://huggingface.co/abel-lab/Simons-25M) |
| Simons-60M | Model weights | [abel-lab/Simons-60M](https://huggingface.co/abel-lab/Simons-60M) |
| Simons-178M | Model weights | [abel-lab/Simons-178M](https://huggingface.co/abel-lab/Simons-178M) |
| Simons-297M | Model weights | [abel-lab/Simons-297M](https://huggingface.co/abel-lab/Simons-297M) |
| Simons-Pretrain | Pretraining data | [abel-lab/Simons-Pretrain](https://huggingface.co/datasets/abel-lab/Simons-Pretrain) |
| Code | Inference and training | [`src/simons`](https://github.com/Abel-ai-lab/Simons/tree/main/src/simons) |
| Training recipes | Configurations and scripts | [`configs/`](https://github.com/Abel-ai-lab/Simons/tree/main/configs), [`scripts/train.sh`](https://github.com/Abel-ai-lab/Simons/blob/main/scripts/train.sh) |
| Benchmark code | GIFT-Eval, fev-bench, TIME | [`benchmarks/`](https://github.com/Abel-ai-lab/Simons/tree/main/benchmarks) |
| Forecast Explorer | Forecasting demo | [abel-lab/simons-forecast-explorer](https://huggingface.co/spaces/abel-lab/simons-forecast-explorer) |

## Install

Simons requires Python 3.10+ and PyTorch 2.5+. A GPU is optional for inference.

```shell
pip install simons-forecasting           # inference
pip install "simons-forecasting[train]"  # with training and fine-tuning
uv pip install simons-forecasting        # or with uv
```

## Forecast

```python
import torch
from simons import Simons

device = "cuda" if torch.cuda.is_available() else "cpu"
model = Simons.from_pretrained("abel-lab/Simons-60M", device=device)

history = torch.randn(8, 2000).cumsum(-1)         # [batch, time]; NaN marks missing values
quantiles = model.forecast(history, horizon=96)  # [batch, 96, 9]: quantiles 0.1 to 0.9

# Known-future covariates span the history and the horizon: [batch, covariates, time + horizon]
covariates = torch.randn(8, 2, 2000 + 96)
quantiles = model.forecast(history, horizon=96, covariates=covariates)
```

## Integrations

| Library | Use |
|---|---|
| [FoundationForecast](https://github.com/TimeCopilot/foundationforecast) (TimeCopilot) | `from foundationforecast.models import Simons` |
| [GluonTS](https://github.com/awslabs/gluonts) | `from simons.predictor import SimonsPredictor` |

## Train

```shell
git clone https://github.com/Abel-ai-lab/Simons && cd Simons && pip install -e ".[train]"
python scripts/prepare_example_data.py --output data/example
bash scripts/train.sh 25m data/example/train data/example/covariates
```

## Learn More

- [Getting started](https://github.com/Abel-ai-lab/Simons/blob/main/docs/GETTING_STARTED.md): input formats, covariates, forecasting options, and fine-tuning
- [Models](https://github.com/Abel-ai-lab/Simons/blob/main/docs/MODEL.md): the four sizes, their scores, CPU memory and time, and the benchmark runs
- [Training](https://github.com/Abel-ai-lab/Simons/blob/main/docs/TRAINING.md)
- [Training data](https://github.com/Abel-ai-lab/Simons/blob/main/docs/DATA.md)
- [examples/demo.ipynb](https://github.com/Abel-ai-lab/Simons/blob/main/examples/demo.ipynb): end-to-end forecasting on a CPU
- [examples/finetune.ipynb](https://github.com/Abel-ai-lab/Simons/blob/main/examples/finetune.ipynb)
- [Forecast Explorer](https://huggingface.co/spaces/abel-lab/simons-forecast-explorer): forecasts from all four models in your browser
- [CONTRIBUTING.md](https://github.com/Abel-ai-lab/Simons/blob/main/CONTRIBUTING.md)
- [CHANGELOG.md](https://github.com/Abel-ai-lab/Simons/blob/main/CHANGELOG.md)

## Citation

```bibtex
@misc{simons2026,
  title  = {Simons: Building Open Time Series Foundation Models through Auto-Research},
  author = {{Abel AI Lab}},
  year   = {2026},
  url    = {https://github.com/Abel-ai-lab/Simons}
}
```

## License

The code is licensed under [Apache-2.0](https://github.com/Abel-ai-lab/Simons/blob/main/LICENSE), and the model weights are licensed under [OpenMDW-1.1](https://huggingface.co/abel-lab/Simons-297M/blob/main/LICENSE).

The training datasets retain their respective licenses. The training data [NOTICE.md](https://huggingface.co/datasets/abel-lab/Simons-Pretrain/blob/main/NOTICE.md) lists the relevant licenses and attributions.
