google-research/timesfm/timesfm-forecasting
Claude Code and agent skill by google-research/timesfm
- community
Checking that the SKILL.md file is still in the repository.
Zero-shot time series forecasting with Google's TimesFM foundation model. Use this skill when forecasting ANY univariate time series — sales, sensor readings, stock prices, energy demand, patient vitals, weather, or scientific measurements — without training a custom model. Supports both basic forecasting and advanced covariate forecasting (XReg) with dynamic and static exogenous variables. Automatically checks system RAM/GPU before loading the model, validates dataset fit before processing, supports CSV/DataFrame/array inputs, and returns point forecasts with calibrated prediction intervals. Includes a preflight system checker script that MUST be run before first use to verify the machine can load the model and handle your specific dataset.
Install
npx vskill@latest install google-research/timesfm/timesfm-forecastingSKILL.md
The same SKILL.md was published earlier as google-research/timesfm/timesfm-forecasting.
TimesFM Forecasting
Overview
TimesFM (Time Series Foundation Model) is a pretrained decoder-only foundation model developed by Google Research for time-series forecasting. It works zero-shot — feed it any univariate time series and it returns point forecasts with calibrated quantile prediction intervals, no training required.
This skill includes a mandatory preflight system checker that verifies RAM, GPU memory, and disk space before the model is ever loaded so the agent never crashes the user's machine.
Key numbers: TimesFM 2.5 uses 200M parameters (~800 MB on disk, ~1.5 GB in RAM onCPU, ~1 GB VRAM on GPU). The archived v1/v2 500M-parameter model needs ~32 GB RAM.Always run the system checker first.
When to Use This Skill
Use this skill when:
- Forecasting any univariate time series (sales, demand, sensor, vitals, price, weather)
- You need zero-shot forecasting without training a custom model
- You want probabilistic forecasts with calibrated prediction intervals (quantiles)
- You have time series of any length (the model handles 1–16,384 context points)
- You need to batch-forecast hundreds or thousands of series efficiently
- You want a foundation model approach instead of hand-tuning ARIMA/ETS parameters
- You need covariate forecasting with exogenous variables (price, promotions, holidays, day-of-week effects) → use
forecast_with_covariates()(TimesFM 2.5 +pip install timesfm[xreg])
Do not use this skill when:
- You need classical statistical models with coefficient interpretation → use
statsmodels - You need time series classification or clustering → use
aeon - You need multivariate vector autoregression or Granger causality → use
statsmodels - Your data is tabular (not temporal) → use
scikit-learn - You cannot install optional dependencies → XReg requires scikit-learn and JAX
Note on Anomaly Detection: TimesFM does not have built-in anomaly detection, but youcan use the quantile forecasts as prediction intervals — values outside the 90% CI(q10–q90) are statistically unusual. Seeexamples/anomaly-detection/for a full example.
⚠️ Mandatory Preflight: System Requirements Check
CRITICAL — ALWAYS run the system checker before loading the model for the first time.
This script checks:
- Available RAM — warns if below 4 GB, blocks if below 2 GB
- GPU availability — detects CUDA/MPS devices and VRAM
- Disk space — verifies room for the ~800 MB model download
- Python version — requires 3.10+
- Existing installation — checks if
timesfmandtorchare installed
Note: Model weights are NOT stored in this repository. TimesFM weights (~800 MB)download on-demand from HuggingFace on first use and cache in~/.cache/huggingface/.
Dataset Preflight (NEW)
Before loading your actual data, verify it will fit in memory:
This will show you the estimated memory requirements and warn if your dataset is too large.
Memory Estimation Formula: RAM ≈ 0.8 GB (model) + 0.5 GB (overhead) + (0.2 MB × num_series × context_length / 1000)
Example Outputs:
✅ Dataset Fits:
⚠️ Dataset Too Large:
Hardware Requirements by Model Version
| Model | Parameters | RAM (CPU) | VRAM (GPU) | Disk | Context | |
|---|---|---|---|---|---|---|
| TimesFM 2.5 (recommended) | 200M | ≥ 4 GB | ≥ 2 GB | ~800 MB | up to 16,384 | |
| TimesFM 2.0 (archived) | 500M | ≥ 16 GB | ≥ 8 GB | ~2 GB | up to 2,048 | |
| TimesFM 1.0 (archived) | 200M | ≥ 8 GB | ≥ 4 GB | ~800 MB | up to 2,048 |
Recommendation: Always use TimesFM 2.5 unless you have a specific reason to use anolder checkpoint. It is smaller, faster, and supports 8× longer context.
🔧 Installation
Step 1: Verify System (always first)
Step 2: Install TimesFM
Step 3: Install PyTorch for Your Hardware
🎯 Quick Start
Minimal Example
Forecast with Covariates (XReg)
TimesFM 2.5+ supports exogenous variables through forecast_with_covariates(). Requires pip install timesfm[xreg].
Anomaly Detection (via Quantile Intervals)
| Severity | Condition | Interpretation | |
|---|---|---|---|
| Normal | Inside 80% CI | Expected behavior | |
| Warning | Outside 80% CI | Unusual but possible | |
| Critical | Outside 90% CI | Statistically rare (< 10% probability) |
Seeexamples/anomaly-detection/for a complete worked example with visualization.
📊 Understanding the Output
TimesFM returns (point_forecast, quantile_forecast):
- `point_forecast`: shape
(batch, horizon)— the median (0.5 quantile) - `quantile_forecast`: shape
(batch, horizon, 10)— ten quantile slices:
| Index | Quantile | Use | |
|---|---|---|---|
| 0 | Mean | Average prediction | |
| 1 | 0.1 | Lower bound of 80% PI | |
| 2 | 0.2 | Lower bound of 60% PI | |
| 5 | 0.5 | Median (= `point_forecast`) | |
| 8 | 0.8 | Upper bound of 60% PI | |
| 9 | 0.9 | Upper bound of 80% PI |
🔧 ForecastConfig Reference
All forecasting behavior is controlled by timesfm.ForecastConfig:
| Parameter | Default | When to Change | |
|---|---|---|---|
max_context | 0 | Set to match your longest historical window | |
normalize_inputs | False | Always set True | |
use_continuous_quantile_head | False | Set True for calibrated PIs | |
infer_is_positive | True | Set False for series that can be negative | |
fix_quantile_crossing | False | Set True for monotonic quantiles |
See references/api_reference.md for the complete parameter reference.
📋 Common Workflows
Single Series Forecast
Batch Forecasting (Many Series)
Evaluate Forecast Accuracy
⚙️ Performance Tuning
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingtimesfm-forecasting/SKILL.md
Popularity
- Repository stars
- 18,774
- Repository forks
- 1,822
- 7-day trend score
- 49
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 28 Apr 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/google-research/timesfm/timesfm-forecasting)