SAVRN
Search Contact SAVRN

Open-weight model · Time series forecasting

sundial-base-128m

by THUML @ Tsinghua University thuml/sundial-base-128m

News (2025.08) Sundial has been integrated into Apache IoTDB, a native time-series database. News (2025.06) Sundial has been accepted as ICML 2025 Oral (Top 1%). News (2025.05) Get 1st MASE on the GIFT-Eval Benchmark.

Parameters128M
Context10,000
Weights513.3 MB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads29.5k

Runs On

What it takes to serve sundial-base-128m (128M parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 0.3 GB 0.3 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 0.1 GB 0.2 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 0.1 GB 0.1 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Sep 18, 2026.

Model Card

By THUML @ Tsinghua University, published under apache-2.0, revision 3212e4256449.

News (2025.08) Sundial has been integrated into Apache IoTDB, a native time-series database. News (2025.06) Sundial has been accepted as ICML 2025 Oral (Top 1%). News (2025.05) Get 1st MASE on the GIFT-Eval Benchmark. News (2025.02) Get 1st MSE/MAE zero-shot performance on Time-Series-Library datasets. Sundial is a family of generative time series foundation models. This version is pre-trained on 1 trillion time points with 128M parameters. For more information, please refer to this paper. [[Slides]](https://cloud.tsinghua.edu.cn/f/8d526337afde465e87c9/) [[Poster]](https://cloud.tsinghua.edu.cn/f/cc2a156315e9453f99b3/) [[Intro (CN)]](https://mp.weixin.qq.com/s/y3sc2e2lmW1sqfnoK-ZdDA). The…

Read THUML @ Tsinghua University's full model card

Sundial (Timer 3.0)

News (2025.08) Sundial has been integrated into Apache IoTDB, a native time-series database.

News (2025.06) Sundial has been accepted as ICML 2025 Oral (Top 1%).

News (2025.05) Get 1st MASE on the GIFT-Eval Benchmark.

News (2025.02) Get 1st MSE/MAE zero-shot performance on Time-Series-Library datasets.

Sundial is a family of generative time series foundation models. This version is pre-trained on 1 trillion time points with 128M parameters. For more information, please refer to this paper. [Slides] [Poster] [Intro (CN)].

The model can make zero-shot predictions for point and probabilistic forecasting. Not only the mean or quantiles, you can get any statistical predictions with a set of generated samples.

Sundial can be viewed as an ARMA model (Auto-Regression and Moving-Average). Transformer learns auto-regressive token representations. Conditioned on them, TimeFlow transforms random noises into non-deterministic predictions.

Overall Architecture: The input time series is divided into patch tokens, which are embedded from the original continuous values. The patch embeddings are fed into a decoder-only Transformer, a stable and speedup version that learns token representations. The model is optimized using our TimeFlow Loss, a parameterized loss function that models per-token probability distribution conditioned on the learned representations, and generates multiple plausible predictions under the flow-matching framework.

Quickstart

pip install transformers==4.40.1 # Use this version and Python 3.10 for stable compatibility
import torch
from transformers import AutoModelForCausalLM

# load pretrain model
# supports different lookback/forecast lengths
model = AutoModelForCausalLM.from_pretrained('thuml/sundial-base-128m', trust_remote_code=True) 

# prepare input
batch_size, lookback_length = 1, 2880 
seqs = torch.randn(batch_size, lookback_length)

# Note that Sundial can generate multiple probable predictions
forecast_length = 96 
num_samples = 20

output = model.generate(seqs, max_new_tokens=forecast_length, num_samples=num_samples)

# use raw predictions for mean/quantiles/confidence-interval estimation
print(output.shape) 

More examples for predicting quantiles or confidence intervals are provided in this notebook.

Evaluation

We evaluate performance on the following benchmarks:

We are actively working around it and are glad to hear suggestions and noteworthy cases :)

Inference Time

  • Hardware: Apple M1 Pro CPU (16 GB)
Lookback Length Prediction Length # Generated Samples Inference Time Accelerate By
672 16 1 249ms -
2880 16 1 510ms FlashAttention
2880 720 1 510ms Multi-Patch Prediction
2880 1440 1 789ms KV Cache
2880 720 20 949ms Shared Condition
  • Hardware: A100-40G GPU, following Chronos paper.

Specification

  • Architecture: Causal Transformer (Decoder-only)
  • Pre-training Scale: 1032B time points
  • Context Length: up to 2880
  • ReNorm: Default=True
  • Patch Length: 16
  • Multi-Patch Prediction Length: 720
  • Parameter Count: 128M
  • Number of Layers: 12
  • Precision: FP32
  • Speedup: KV Cache & FlashAttention

Acknowledgments

This work was supported by the National Natural Science Foundation of China (62022050 and U2342217), the BNRist Innovation Fund (BNR2024RC01010), and the National Engineering Research Center for Big Data Software.

The model is mostly built from the Internet public time series dataset, which comes from different research teams and providers. We sincerely thank all individuals and organizations who have contributed the data. Without their generous sharing, this model would not have existed.

Citation

If you find Sundial helpful for your research, please cite our paper:

@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}
}

Contact

If you have any questions or want to use the code, feel free to contact:

License

This model is licensed under the Apache-2.0 License.

Configuration

Architecture
SundialForPrediction
Context length (tokens)
10,000
Layers
12
Hidden size
768
Feed-forward size
3,072
Attention heads
12
RoPE base
10,000
Stored precision
float32
Model type
sundial

Identity and Version

Repository
thuml/sundial-base-128m
Publisher
THUML @ Tsinghua University
Task
Time series forecasting
Modality
Time series
Library
transformers
Parameters
128M parameters
Languages
Not stated by the source
Revision
3212e42564493f520593e5414af4367fc4b49226
First published
2025-05-13
Last updated
2026-03-09

Files and Weights

9 files, 513.4 MB in total. The weights are 1 file totalling 513.3 MB in safetensors.

Weights1 file · 513.3 MB
Configuration6 files · 48.4 KB
Documentation1 file · 6.6 KB
Repository1 file · 1.5 KB
Every file
FileTypeSizeSHA-256
model.safetensorsWeights513.3 MB 414435b50839
config.jsonConfiguration739 B
configuration_sundial.pyConfiguration1.6 KB
flow_loss.pyConfiguration7.8 KB
generation_config.jsonConfiguration69 B
modeling_sundial.pyConfiguration24.4 KB
ts_generation_mixin.pyConfiguration13.8 KB
README.mdDocumentation6.6 KB
.gitattributesRepository1.5 KB

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
513.3 MB
Download from THUML @ Tsinghua University

Released by THUML @ Tsinghua University through its official repository on Hugging Face. Read the license.

Built From

  • Described by arXiv:2403.07815
  • Described by arXiv:2502.00816
  • Trained on (disclosed) Salesforce/lotsa_data
  • Trained on (disclosed) autogluon/chronos_datasets
  • Trained on (disclosed) thuml/UTSD

Memory Requirements

PrecisionWeights in memory
As published513.3 MB
16-bit0.3 GB
8-bit0.1 GB
4-bit0.1 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About sundial-base-128m

How much GPU memory does sundial-base-128m need?

About 0.3 GB at 16-bit and 0.1 GB at 4-bit: the weights (128M parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run sundial-base-128m on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

Can I use sundial-base-128m commercially?

Yes. sundial-base-128m is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

What is sundial-base-128m's context length?

10,000 tokens, from the maximum position embeddings in its published configuration.

Similar Models

Model · Time series forecasting

chronos-2

Amazon

Update Jun 5, 2026: Deploy Chronos-2 on AWS with AutoGluon-Cloud. Real-time, serverless, or batch inference in 3 lines of code — pandas DataFrames in, forecasts out. Check out the new deployment guide. Chronos-2 is a 120M-parameter, encoder-only time series foundation model for zero-shot forecasting. It supports univariate, multivariate, and covariate-informed tasks within a single architecture. Inspired by the T5 encoder, Chronos-2 produces multi-step-ahead quantile forecasts and uses a group attention mechanism for efficient in-context learning across related series and covariates. Trained on a combination of real-world and large-scale synthetic datasets, it achieves state-of-the-art…

Open weights apache-2.0 119M parameters chronos-forecasting

Model · Time series forecasting

chronos-2

Autogluon

Update Jun 5, 2026: Deploy Chronos-2 on AWS with AutoGluon-Cloud. Real-time, serverless, or batch inference in 3 lines of code — pandas DataFrames in, forecasts out. Check out the new deployment guide. Chronos-2 is a 120M-parameter, encoder-only time series foundation model for zero-shot forecasting. It supports univariate, multivariate, and covariate-informed tasks within a single architecture. Inspired by the T5 encoder, Chronos-2 produces multi-step-ahead quantile forecasts and uses a group attention mechanism for efficient in-context learning across related series and covariates. Trained on a combination of real-world and large-scale synthetic datasets, it achieves state-of-the-art…

Open weights apache-2.0 119M parameters chronos-forecasting

Model · Time series forecasting

chronos-2-synth

Autogluon

This is a variant of the Chronos-2 model which has only been trained on synthetic univariate and multivariate data. For usage and details on the Chronos-2 model, please refer to https://huggingface.co/autogluon/chronos-2. If you find Chronos-2 useful for your research, please consider citing the associated paper

Open weights apache-2.0 119M parameters chronos-forecasting

Model · Time series forecasting

moirai-moe-1.0-R-small

Salesforce AI Research

This model has been pushed to the Hub using the PytorchModelHubMixin integration: 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…

Open weights cc-by-nc-4.0 117M parameters

Model · Time series forecasting

MOMENT-1-base

Auton Lab

MOMENT is a family of foundation models for general-purpose time-series analysis. The models in this family (1) serve as a building block for diverse time-series analysis tasks (e.g., forecasting, classification, anomaly detection, and imputation, etc.), (2) are effective out-of-the-box, i.e., with no (or few) task-specific exemplars (enabling e.g., zero-shot forecasting, few-shot classification, etc.), and (3) are tunable using in-distribution and task-specific data to improve performance. For details on MOMENT models, training data, and experimental results, please refer to the paper MOMENT: A Family of Open Time-series Foundation Models. Recommended Python Version: Python 3.11 (support…

Open weights mit 113M parameters transformers

Model · Time series forecasting

TimeMoE-50M

Xiaoming Shi

This repository contains the weights of the TimeMoE-50M model of the paper Time-MoE: Billion-Scale Time Series Foundation Models with Mixture of Experts. For details on how to use this model, please visit our GitHub page.

Open weights apache-2.0 113M parameters 4,096 tokens