timesfm-forecasting
Fungsinya
Skill ini memprediksi nilai masa depan dari sebuah angka dari waktu ke waktu tanpa melatih model khusus. Skill ini untuk analis dan perencana yang membutuhkan perkiraan untuk penjualan, energi, sensor, atau harga.
Kapan dipakai
- βSaat Anda ingin memperkirakan penjualan atau permintaan bulan depan dari angka masa lalu.
- βSaat Anda membutuhkan perkiraan dengan rentang hasil yang mungkin, bukan hanya satu angka.
- βSaat Anda menginginkan perkiraan cepat tanpa menyetel model secara manual.
Link skill
https://github.com/google-research/timesfm/blob/master/timesfm-forecasting/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βPerkirakan penjualan bulanan saya untuk enam bulan ke depan dari kolom spreadsheet ini.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill ini pertama-tama memeriksa apakah komputer memiliki memori dan ruang disk yang cukup, lalu memuat model peramalan yang sudah dilatih sebelumnya. Nilai masa lalu Anda dimasukkan, dan hasilnya berupa prediksi dengan rentang yang sudah dikalibrasi.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
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 on CPU, ~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 you can use the quantile forecasts as prediction intervals β values outside the 90% CI (q10βq90) are statistically unusual. See
examples/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.
python scripts/check_system.py
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/`.
flowchart TD
start["π Run check_system.py"] --> ram{"RAM β₯ 4 GB?"}
ram -->|"Yes"| gpu{"GPU available?"}
ram -->|"No (2-4 GB)"| warn_ram["β οΈ Warning: tight RAM<br/>CPU-only, small batches"]
ram -->|"No (< 2 GB)"| block["π BLOCKED<br/>Insufficient memory"]
warn_ram --> disk
gpu -->|"CUDA / MPS"| vram{"VRAM β₯ 2 GB?"}
gpu -->|"CPU only"| cpu_ok["β
CPU mode<br/>Slower but works"]
vram -->|"Yes"| gpu_ok["β
GPU mode<br/>Fast inference"]
vram -->|"No"| cpu_ok
gpu_ok --> disk{"Disk β₯ 2 GB free?"}
cpu_ok --> disk
disk -->|"Yes"| ready["β
READY<br/>Safe to load model"]
disk -->|"No"| block_disk["π BLOCKED<br/>Need space for weights"]
Dataset Preflight (NEW)
Before loading your actual data, verify it will fit in memory:
# Quick estimate for your dataset
python scripts/check_system.py \
--num-series 1000 \
--context-length 1024 \
--horizon 24 \
--batch-size 32 \
--estimate-only
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:
Total CPU memory: 2.34 GB
Total GPU memory: 2.15 GB
β οΈ Dataset Too Large:
Dataset requires ~12.5 GB RAM but system has 8.0 GB.
Try: context_length=512 or process in chunks of 50 series.
Hardware Requirements by Model Version
| Model | Parameters | RAM (CPU) | VRAM (GPU) | Disk | Context |
|---|---|---|---|---|---|
| **TimesF |
Pertanyaan umum
Apakah perlu melatih model?
Tidak. Model bekerja secara zero-shot, sehingga meramalkan dari data Anda tanpa pelatihan apa pun.
Apakah bisa berjalan di komputer yang lemah?
Skill ini memeriksa memori dan disk terlebih dahulu, dan model membutuhkan beberapa gigabita RAM.
Bisakah memakai faktor lain seperti promosi?
Bisa. Skill ini mendukung peramalan kovariat dengan variabel tambahan seperti promosi atau hari libur.
Detail
Deskripsi asli dari pembuat
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.
repo: google-research/timesfm
Popularitas
- Bintang GitHub
- 35k
- Peringkat
- #7589
- Lisensi
- Apache-2.0
- Diperbarui
- 29/9/2026
Komentar
- β¦
Skill serupa
pytorch-patterns
280kMembantu agent Anda menggunakan PyTorch untuk model machine learning. Menerapkan praktik terbaik untuk pelatihan model yang efisien dan hasil yang dapat direproduksi.
evm-token-decimals
280kMembantu agent menghindari kesalahan angka desimal di berbagai jaringan blockchain. Memastikan nilai token akurat dalam transaksi dan perhitungan.
ito-inference
280kMemungkinkan agent Anda mengecek ketersediaan model AI untuk digunakan. Menghubungkan permintaan komputasi dengan layanan model yang siap.