timesfm-forecasting
Skill này làm gì
Skill này dạy agent cách dự báo một chuỗi số theo thời gian bằng mô hình TimesFM của Google. Không cần huấn luyện riêng, và kết quả trả về là dự báo kèm khoảng giá trị có thể xảy ra.
Khi nào nên dùng
- ✓Khi người dùng muốn dự báo doanh số, nhu cầu, cảm biến hoặc dữ liệu năng lượng mà không huấn luyện mô hình.
- ✓Khi người dùng cần khoảng dự báo thể hiện phạm vi giá trị có thể xảy ra.
- ✓Khi người dùng muốn dự báo nhiều chuỗi thời gian trong một lô.
Liên kết skill
https://github.com/zLanqing/codex-claude-academic-skills/blob/main/scientific-toolkit-skill/references/scientific-skills/timesfm-forecasting/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Dự báo 30 ngày tới của doanh số hằng ngày trong file CSV này, kèm khoảng giá trị có thể xảy ra cho mỗi ngày.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent chạy kiểm tra hệ thống trước để xác nhận đủ bộ nhớ và dung lượng đĩa, rồi nạp mô hình và dự báo từ dữ liệu. Agent trả về giá trị dự báo điểm và khoảng phân vị.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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 wraps TimesFM for safe, agent-friendly local inference. It 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 a 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
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
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 the
examples/anomaly-detection/directory 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/`. The preflight checker ensures sufficient resources before any download begins.
flowchart TD
accTitle: Preflight System Check
accDescr: Decision flowchart showing the system requirement checks that must pass before loading TimesFM.
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"]
classDef ok fill:#dcfce7,stroke:#16a34a,stroke-width:2px,color:#14532d
classDef warn fill:#fef9c3,stroke:#ca8a04,stroke-width:2px,color:#713f12
classDef block fill:#fee2e2,stroke:#dc2626,stroke-width:2px,color:#7f1d1d
classDef neutral fill:#f3f4f6,stroke:#6b7280,stroke-width:2px,color:#1f2937
class ready,gpu_ok,cpu_ok ok
class warn_ram warn
class block,block_disk block
class start,ram,gpu,vram,disk neutral
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 u
Câu hỏi thường gặp
Nó cần bao nhiêu bộ nhớ?
Skill nói TimesFM 2.5 cần khoảng 1,5 GB RAM khi chạy bằng CPU, và kiểm tra hệ thống chạy trước khi mô hình được nạp.
Nó có cần dữ liệu huấn luyện không?
Không. Skill mô tả đây là dự báo zero-shot, nên không cần huấn luyện riêng.
Nó nhận những đầu vào nào?
Skill nói file CSV, data frame và mảng đều được.
Chi tiết
Mô tả gốc của tác giả
Zero-shot time series forecasting with Google's TimesFM foundation model. Use for any univariate time series (sales, sensors, energy, vitals, weather) without training a custom model. Supports CSV/DataFrame/array inputs with point forecasts and prediction intervals. Includes a preflight system checker script to verify RAM/GPU before first use.
Độ phổ biến
- Sao GitHub
- 5.6k
- Vị trí xếp hạng
- #14773
- Giấy phép
- MIT
- Cập nhật
- 14/5/2026
Bình luận
- …
Thêm skill từ kho mã này
office-academic-skill
5.6kGiúp agent của bạn biến bài báo khoa học thành báo cáo Word và tạo slide PowerPoint học thuật có thể chỉnh sửa, ưu tiên tiếng Trung, kèm ghi chú người trình bày và kiểm tra bố cục.
research-writing-skill
5.6kGiúp agent của bạn viết, sửa và trau chuốt các phần của bài báo khoa học, tóm tắt và phản hồi cho phản biện, giữ nguyên công thức, tiêu đề và trích dẫn.
scientific-toolkit-skill
5.6kGiúp agent của bạn viết và gỡ lỗi mã khoa học MATLAB hoặc Python cho xử lý tín hiệu và ảnh, thống kê, mô phỏng và biểu đồ sẵn sàng cho công bố.
matlab
5.6kGiúp agent của bạn viết và gỡ lỗi script MATLAB và GNU Octave cho phép toán ma trận, xử lý tín hiệu và ảnh, phương trình vi phân, tối ưu hóa và biểu đồ.
Skill tương tự
pytorch-patterns
280kGiúp agent của bạn dùng PyTorch cho các mô hình học máy. Áp dụng thực hành tốt nhất để huấn luyện mô hình hiệu quả và đảm bảo kết quả có thể lặp lại.
evm-token-decimals
280kGiúp agent tránh lỗi về số thập phân khi làm việc với các mạng blockchain khác nhau. Đảm bảo giá trị token chính xác trong giao dịch và phép tính.
ito-inference
280kGiúp agent kiểm tra xem các mô hình AI đã sẵn sàng để dùng chưa. Kết nối yêu cầu tài nguyên tính toán với dịch vụ mô hình đã sẵn sàng.