Metadata-Version: 2.4
Name: timecopilot-simons
Version: 0.1.0
Summary: Standalone inference for Simons time-series forecasting models
Author: TimeCopilot
License-Expression: Apache-2.0
Project-URL: Homepage, https://github.com/TimeCopilot/timecopilot-simons
Project-URL: Upstream, https://github.com/Abel-ai-lab/Simons
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE
Requires-Dist: huggingface_hub>=0.23
Requires-Dist: numpy>=1.24
Requires-Dist: safetensors>=0.4
Requires-Dist: torch>=2.5
Dynamic: license-file

# Disclaimer

> This packages the inference code from [Abel-ai-lab/Simons](https://github.com/Abel-ai-lab/Simons) at tag `v0.1.2`, so [FoundationForecast](https://github.com/TimeCopilot/foundationforecast) can install it from PyPI as [`timecopilot-simons`](https://pypi.org/project/timecopilot-simons/). Training, synthetic data, and the GluonTS predictor are not included. The import name stays `simons`.

## Credits

The original code is by Abel AI Lab. This repository redistributes the inference modules under the same Apache-2.0 license.

# timecopilot-simons

Standalone inference for the [Simons](https://github.com/Abel-ai-lab/Simons) time series foundation models (`abel-lab/Simons-25M`, `60M`, `178M`, and `297M` on Hugging Face).

```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
```

`from_pretrained` accepts a Hub repo id or a local directory with `config.json` and `model.safetensors`.

The code is Apache-2.0. The checkpoint weights are OpenMDW-1.1 on the Hub. See `NOTICE`.
