timesfm
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "timesfm" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-4ca17e4d38bc1584e5e49915cc90282f3a277f832d032cd94df2e6422b1aa135. Verify the upstream source and version against https://github.com/TerminalSkills/skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Zero-shot forecasting for time series data using Google's TimesFM base model. Applicable to sales or demand forecasting, server metrics forecasting, financial time series analysis, and anomaly detection without training custom models.
Introduction source: third_party · TerminalSkills · 1.0.0 Reference
SkillPi interpretation
- Testing
- Not tested
Browse files
Frontmatter
name: timesfm
description: >-
Forecast time series data using Google's TimesFM foundation model with zero-shot
prediction. Use when: forecasting sales or demand, predicting server metrics,
financial time series analysis, anomaly detection without training custom models.
license: Apache-2.0
compatibility: "Python 3.10+, PyTorch"
metadata:
author: terminal-skills
version: "1.0.0"
category: data-ai
tags: ["forecasting", "time-series", "google-research"]TimesFM
Overview
TimesFM is a 200M-parameter foundation model by Google Research, pretrained on 100 billion real-world time points. It performs zero-shot forecasting across domains — no fine-tuning required. Feed it historical data, get predictions immediately.
Instructions
Installation
pip install timesfm
Basic Forecasting
import timesfm
import numpy as np
# Initialize model
tfm = timesfm.TimesFm(
hparams=timesfm.TimesFmHparams(
per_core_batch_size=32,
horizon_len=30,
),
checkpoint=timesfm.TimesFmCheckpoint(
huggingface_repo_id="google/timesfm-2.0-200m-pytorch",
),
)
# Your historical data (e.g., daily sales for 1 year)
history = np.array([120, 135, 128, 142, 155, 148, 160, ...])
# Forecast next 30 days
forecasts = tfm.forecast([history], freq=[1])
predictions = forecasts[0] # shape: (30,)
Frequency Parameter
Set freq to match your data granularity:
0: High frequency (seconds/minutes)1: Daily2: Weekly/Monthly
Multi-Series Forecasting
# Forecast multiple product categories at once
series = [sales_electronics, sales_clothing, sales_food]
forecasts = tfm.forecast(series, freq=[1, 1, 1])
# Returns list of 3 forecast arrays
Examples
Example 1: Demand forecasting
Input: 365 days of daily product sales data. Output: 30-day forecast with the model capturing weekly seasonality and growth trend automatically.
history = load_csv("daily_sales.csv")["quantity"].values
forecast = tfm.forecast([history], freq=[1])[0]
print(f"Next 7 days: {forecast[:7]}")
# Next 7 days: [182, 175, 190, 168, 195, 201, 178]
Example 2: Server metrics anomaly detection
Input: 720 hours (30 days) of CPU utilization. Output: Forecast next 24 hours. Flag if actual exceeds forecast by 2x standard deviation.
cpu_history = get_metrics("cpu_percent", days=30)
forecast = tfm.forecast([cpu_history], freq=[0])[0]
threshold = forecast.mean() + 2 * forecast.std()
Guidelines
- Provide at least 3x the forecast horizon as history (forecasting 30 days? give 90+ days history)
- TimesFM works best on data with clear patterns (seasonality, trends)
- For noisy data, smooth with rolling average before feeding to the model
- Compare against a naive baseline (last period's values) to validate improvement
- The model runs on CPU; GPU speeds up batch processing of many series
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供基于 Google TimesFM 的时间序列零样本预测能力,适用于销售预测、服务器指标、金融分析等明确场景
- 具备高实用价值,非测试性质或同质化壳工具,未违反安全底线
Highlights
- description 明确描述适用场景(销售/需求预测、服务器指标预测、金融时间序列分析、异常检测),覆盖多种变体,边界清晰
Highlights
- 文档结构清晰,包含 Overview、Instructions、Examples、Guidelines,frontmatter 完整,单文件未超500行
Highlights
- 工具来源明确(Google Research 的 TimesFM),参数说明清晰,示例代码完整,覆盖主要异常,无不可逆操作
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 27
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.