跳到主内容
@wquguru
精选88MarkTechPost(RSS)模型发布/更新

Mistral发布Timestral时序模型,CPU推理性能超TimesFM-3

Mistral AI Releases Timestral: A 209M Forecasting Model Family That Outperforms Google’s TimesFM-3

原文
发到 X
推荐理由

时序预测是落地刚需,这款模型在CPU上跑出超越Google TimesFM-3的性能,且完全开源,做边缘计算或低成本部署的同学值得重点关注。

Mistral AI has released Timestral, its first family of time series foundation models. Timestral is a set of 4 zero-shot forecasting models from Mistral AI, sized from 5M to 209M parameters. The largest checkpoint ranks first among pretrained, zero-shot models on GIFT-Eval, TIME and fev-bench. It does this without a GPU at inference. For developers, this Timestral time series foundation model means probabilistic forecasts on standard server CPUs, with open weights and inference code.

Mistral AI 发布了 Timestral,这是其首个时间序列基础模型系列。Timestral 是 Mistral AI 推出的一组 4 个零样本预测模型,参数量从 500 万到 2.09 亿不等。在 GIFT-Eval、TIME 和 fev-bench 上,最大的检查点(checkpoint)在所有预训练的零样本模型中排名第一。它无需 GPU 即可进行推理。对于开发者而言,这个 Timestral 时间序列基础模型意味着可以在标准服务器 CPU 上进行概率预测,并提供开放权重和推理代码。

TL;DR

TL;DR(太长不看版)

  • Size: 4 models: 5M, 28M, 123M, 209M parameters (dense). Context up to 32,768 time steps.
  • Runs on: Standard server CPU, no GPU needed. 209M weights are 837 MB in fp32. GPU optional.
  • Performance: #1 among zero-shot pretrained models on GIFT-Eval, TIME and fev-bench (Mistral-reported).
  • Best: fev-bench SQL skill score of 50.39, ahead of TimesFM-3 at 48.99.
  • Worst: GIFT-Eval MASE of 0.658 leads t0-gamma (0.661) by only 0.003.
  • 规模:4 个模型:500 万、2800 万、1.23 亿、2.09 亿参数(密集型)。上下文长度最多支持 32,768 个时间步。
  • 运行环境:标准服务器 CPU,无需 GPU。2.09 亿参数的 fp32 模型大小为 837 MB。GPU 为可选配置。
  • 性能:在 GIFT-Eval、TIME 和 fev-bench 上,零样本预训练模型中排名第一(由 Mistral 报告)。
  • 最佳表现:fev-bench SQL 技能得分为 50.39,领先于 TimesFM-3 的 48.99。
  • 最差表现:GIFT-Eval MASE 为 0.658,仅比 t0-gamma(0.661)高出 0.003。

What is Timestral?

什么是 Timestral?

Timestral is a time series foundation model (TSFM). It is pretrained on a large, diverse corpus, then forecasts zero-shot on data it has never seen. Classical tools like ARIMA fit one series at a time. Deep models like PatchTST usually train from scratch on each dataset. Timestral transfers patterns across domains instead.

Timestral 是一个时间序列基础模型(TSFM)。它在大规模、多样化的语料库上进行预训练,然后对从未见过的数据进行零样本预测。像 ARIMA 这样的经典工具一次只能拟合一个序列。像 PatchTST 这样的深度模型通常需要在每个数据集上从头开始训练。而 Timestral 则实现跨领域的模式迁移。

Each model outputs 21 quantiles per time step. It forecasts multivariate targets jointly. It accepts past-only, known-future and categorical covariates.

每个模型在每个时间步输出 21 个分位数。它联合预测多变量目标。它接受仅历史数据、已知未来协变量以及分类协变量。

How does Timestral work?

Timestral 是如何工作的?

Timestral is a causal, patch-based transformer with time attention and variate attention. The 209M model uses 24 layers and an embedding dimension of 768. Each patch covers 32 time steps. A single forward pass forecasts up to 1,024 steps. Longer horizons run block by block, feeding each block’s median back as context.

Timestral 是一个基于因果关系的、基于 patch 的 Transformer,具有时间注意力机制和变量注意力机制。2.09 亿参数的模型使用 24 层网络,嵌入维度为 768。每个 patch 覆盖 32 个时间步。单次前向传播可预测多达 1,024 个步长。更长的预测 horizon 按块运行,将每个块的中位数反馈作为上下文。

Mistral lists 4 technical contributions:

Mistral 列出了 4 项技术贡献:

  • Decoupled Horizon Forecasting (DHF): Learned forecast tokens read the full history. Observed values stay in context instead of being masked, unlike contiguous patch masking in Toto 2.0 and TimesFM-3.
  • Covariate-aware attention: Each series is a target, past-only covariate or known-future covariate. Information flows only from covariates to targets, preventing future leakage.
  • Synthetic-first data: Most training data is synthetic, with trends, seasonality, noise and nonlinear cross-series dependencies.
  • Two-stage training: Pretraining on synthetic data at context 8,192, then post-training on mixed data with 4x longer context. The loss is pinball loss over 21 quantiles.
  • 解耦视界预测(DHF):学习到的预测 token 读取完整的历史记录。观测值保留在上下文中,而不是被掩码,这与 Toto 2.0 和 TimesFM-3 中的连续 patch 掩码不同。
  • 感知协变量的注意力机制:每个序列可以是目标、仅历史协变量或已知未来协变量。信息仅从协变量流向目标,防止未来信息泄露。
  • 合成数据优先:大多数训练数据是合成的,包含趋势、季节性、噪声和非线性跨序列依赖关系。
  • 两阶段训练:先在上下文长度为 8,192 的合成数据上进行预训练,然后在混合数据上进行后训练,上下文长度增加 4 倍。损失函数是覆盖 21 个分位数的 Pinball Loss。

How does Timestral perform on benchmarks?

Timestral 在基准测试中的表现如何?

All scores below are zero-shot, from a single checkpoint without ensembling. They come from the Timestral-209M model card.

以下所有分数均为零样本(zero-shot)结果,来自单个检查点且未进行集成。它们源自 Timestral-209M 模型卡。

  • GIFT-Eval: MASE 0.658, CRPS 0.446 (lower is better).
  • TIME: MASE 0.626, CRPS 0.522 (lower is better).
  • fev-bench: SQL skill score 50.39, MASE skill score 39.49 (higher is better).
  • GIFT-Eval:MASE 0.658,CRPS 0.446(越低越好)。
  • TIME:MASE 0.626,CRPS 0.522(越低越好)。
  • fev-bench:SQL 技能得分 50.39,MASE 技能得分 39.49(越高越好)。

The size scaling is flat at the top. Timestral-123M scores 0.659 MASE on GIFT-Eval, against 0.658 for 209M. Mistral team states that the 28M model beats Chronos-2 on GIFT-Eval and TIME. Chronos-2 is about 4 times larger.

规模扩展在顶部趋于平缓。Timestral-123M 在 GIFT-Eval 上的 MASE 得分为 0.659,而 209M 为 0.658。Mistral 团队指出,28M 模型在 GIFT-Eval 和 TIME 上优于 Chronos-2。Chronos-2 的参数量大约是其 4 倍。

How fast is Timestral on CPU?

Timestral 在 CPU 上的速度如何?

Mistral team tested a standard server CPU with 8 threads. The task: forecast 1 day ahead from 3 weeks of 15-minute history. The 5M model took 10 ms and the 209M model took 140 ms. The 28M model is 5 times faster than 209M. The 123M model lands within 0.2% of the 209M score at three quarters of its latency.

Mistral 团队使用具有 8 个线程的标准服务器 CPU 进行了测试。任务要求:基于过去 3 周每 15 分钟的历史数据,预测未来 1 天。5M 模型耗时 10 毫秒,209M 模型耗时 140 毫秒。28M 模型的速度是 209M 的 5 倍。123M 模型在延迟仅为 209M 四分之三的情况下,得分差距在 0.2% 以内。

How does Timestral compare with TimesFM-3, Chronos-2 and Toto 2.0?

Timestral 与 TimesFM-3、Chronos-2 和 Toto 2.0 相比表现如何?

FeatureTimestral-209MTimesFM-3Chronos-2Toto-2.0-2.5B
DeveloperMistral AIGoogle ResearchAmazonDatadog
Parameters209M330M120M2.5B
ArchitectureCausal patch transformer, DHFDecoder-only, contiguous patch maskingEncoder-only, group attentionDecoder-only, contiguous patch masking
Max context32,768 stepsNot disclosed8,192 stepsNot disclosed
Single-pass horizon1,024 stepsNot disclosed1,024 steps (max)Not disclosed
Quantiles219Not disclosed9
Weights licenceModified MITNon-commercial v1.0Apache 2.0Apache 2.0
Weights (fp32)837 MBNot disclosedNot disclosed9.1 GB
GIFT-Eval MASE / CRPS0.658 / 0.4460.667 / 0.456*0.698 / 0.485*0.696 / 0.476
TIME MASE / CRPS0.626 / 0.5220.640 / 0.536*0.662 / 0.556*0.640 / 0.532**
fev-bench SQL skill50.3948.99*47.28*44.42*
特性Timestral-209MTimesFM-3Chronos-2Toto-2.0-2.5B
开发者Mistral AIGoogle ResearchAmazonDatadog
参数量209M330M120M2.5B
架构因果补丁变换器,DHF仅解码器,连续补丁掩码仅编码器,分组注意力仅解码器,连续补丁掩码
最大上下文32,768 步未披露8,192 步未披露
单次通过预测范围1,024 步未披露1,024 步(最大)未披露
分位数219未披露9
权重许可证Modified MITNon-commercial v1.0Apache 2.0Apache 2.0
权重 (fp32)837 MB未披露未披露9.1 GB
GIFT-Eval MASE / CRPS0.658 / 0.4460.667 / 0.456*0.698 / 0.485*0.696 / 0.476
TIME MASE / CRPS0.626 / 0.5220.640 / 0.536*0.662 / 0.556*0.640 / 0.532**
fev-bench SQL 技能50.3948.99*47.28*44.42*

* As listed on the Timestral-209M model card. Google and Amazon do not publish matching figures on their own model pages. ** From Datadog’s model card. Mistral’s card lists 0.642 / 0.539.

* 如 Timestral-209M 模型卡所列。Google 和 Amazon 在其各自的模型页面上未发布匹配的数据。** 来自 Datadog 的模型卡。Mistral 的模型卡列出的是 0.642 / 0.539。

How can developers deploy Timestral?

开发者如何部署 Timestral?

Install the package with pip install git+https://github.com/mistralai/timestral.git. It needs Python 3.10+ and torch 2.4+. Dependencies are PyTorch, NumPy, safetensors and huggingface_hub. Weights download from Hugging Face: 21 MB for 5M, 111 MB for 28M, 490 MB for 123M.

使用 pip install git+https://github.com/mistralai/timestral.git 安装软件包。需要 Python 3.10+ 和 torch 2.4+。依赖项包括 PyTorch、NumPy、safetensors 和 huggingface_hub。权重从 Hugging Face 下载:5M 为 21 MB,28M 为 111 MB,123M 为 490 MB。

Mistral’s docs list Timestral 1.0 209M as Public Preview. Fine-tuning on proprietary data runs through Mistral Forge. The pipeline can deploy on-prem, in a VPC or air-gapped.

Mistral 的文档将 Timestral 1.0 209M 列为公共预览版。在专有数据上进行微调需通过 Mistral Forge 运行。该管道可部署于本地数据中心、VPC 或物理隔离环境中。

Key Takeaways

关键要点

  • 4 sizes, 5M to 209M, all on the accuracy-vs-size Pareto front.
  • 209M leads GIFT-Eval, TIME and fev-bench among zero-shot models.
  • CPU-only inference: 10 ms (5M) to 140 ms (209M).
  • 32,768-step context, 21 quantiles, native covariate support.
  • Modified MIT weights, unlike TimesFM-3’s non-commercial licence.
  • 4种尺寸,从5M到209M,均位于准确率-尺寸的帕累托前沿。
  • 在零样本模型中,209M在GIFT-Eval、TIME和fev-bench上表现领先。
  • 仅CPU推理:5M为10毫秒,209M为140毫秒。
  • 32,768步上下文,21个分位数,原生协变量支持。
  • 采用修改后的MIT许可证权重,不同于TimesFM-3的非商业许可。

Check out the blog post, GitHub repo and model weights on Hugging Face. All credit goes to the researcher of this project. Also, feel free to follow us on Twitter and don’t forget to join our 150k+ML SubReddit and Subscribe to our Newsletter. Wait! are you on telegram? now you can join us on telegram as well.

请查看博客文章、GitHub仓库以及Hugging Face上的模型权重。所有功劳归于该项目的研究人员。此外,欢迎在Twitter上关注我们,别忘了加入我们拥有15万+成员的ML SubReddit并订阅我们的新闻通讯。等等!你在Telegram上吗?现在你也可以加入我们的Telegram群组。

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

关联讨论

同一事件的更多信源

相似阅读

关联信息,但可能不是同一事件