timesfm-forecasting
यह क्या करती है
यह स्किल एजेंट को Google के TimesFM मॉडल से समय के साथ संख्याओं की एक श्रृंखला का पूर्वानुमान लगाना सिखाती है। इसे कस्टम प्रशिक्षण नहीं चाहिए, और यह संभावित मानों की सीमा के साथ अनुमान लौटाता है।
कब इस्तेमाल करें
- ✓जब उपयोगकर्ता बिना मॉडल प्रशिक्षित किए बिक्री, माँग, सेंसर या ऊर्जा डेटा का पूर्वानुमान चाहता है।
- ✓जब उपयोगकर्ता को ऐसे पूर्वानुमान अंतराल चाहिए जो संभावित मानों की सीमा दिखाएँ।
- ✓जब उपयोगकर्ता कई टाइम सीरीज़ का एक बैच में पूर्वानुमान चाहता है।
Skill का लिंक
https://github.com/zLanqing/codex-claude-academic-skills/blob/main/scientific-toolkit-skill/references/scientific-skills/timesfm-forecasting/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस CSV फ़ाइल से मेरी रोज़ की बिक्री के अगले 30 दिनों का पूर्वानुमान लगाइए, हर दिन के लिए संभावित सीमा के साथ।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट पहले सिस्टम जाँच चलाता है कि पर्याप्त मेमोरी और डिस्क स्पेस है, फिर मॉडल लोड करके डेटा से पूर्वानुमान लगाता है। यह बिंदु अनुमान और क्वांटाइल सीमाएँ लौटाता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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 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
अक्सर पूछे जाने वाले सवाल
इसे कितनी मेमोरी चाहिए?
स्किल कहती है कि TimesFM 2.5 को CPU पर लगभग 1.5 GB RAM चाहिए, और मॉडल लोड होने से पहले सिस्टम जाँच चलती है।
क्या इसे प्रशिक्षण डेटा चाहिए?
नहीं। स्किल इसे zero-shot पूर्वानुमान बताती है, इसलिए कस्टम प्रशिक्षण की ज़रूरत नहीं।
यह कौन-से इनपुट स्वीकार करती है?
स्किल कहती है कि CSV फ़ाइलें, डेटा फ़्रेम और ऐरे सभी काम करते हैं।
जानकारी
लेखक का मूल विवरण
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.
लोकप्रियता
- GitHub स्टार
- 5.6k
- रैंकिंग में स्थान
- #14773
- लाइसेंस
- MIT
- अपडेट की गई
- 14/5/2026
कमेंट
- …
इस repository की और skills
office-academic-skill
5.6kआपके एजेंट को रिसर्च पेपर को Word रिपोर्ट में बदलने और संपादन योग्य चीनी-प्रधान शैक्षिक PowerPoint स्लाइड बनाने देती है, स्पीकर नोट्स और लेआउट जाँच के साथ।
research-writing-skill
5.6kआपके एजेंट को रिसर्च पेपर के भाग, सार और रिव्यूअर के जवाब लिखने, संशोधित करने और निखारने देती है, सूत्र, शीर्षक और उद्धरण जैसे दिए गए हैं वैसे ही रखते हुए।
scientific-toolkit-skill
5.6kआपके एजेंट को सिग्नल और इमेज प्रोसेसिंग, सांख्यिकी, सिमुलेशन और प्रकाशन-योग्य चित्रों के लिए MATLAB या Python वैज्ञानिक कोड लिखने और डीबग करने देती है।
matlab
5.6kआपके एजेंट को मैट्रिक्स गणित, सिग्नल और इमेज प्रोसेसिंग, अवकल समीकरण, ऑप्टिमाइज़ेशन और प्लॉट के लिए MATLAB और GNU Octave स्क्रिप्ट लिखने और डीबग करने देती है।
मिलती-जुलती skills
pytorch-patterns
280kआपके एजेंट को machine learning models के लिए PyTorch इस्तेमाल करने में मदद करता है। कुशल model training के best practices लागू करता है और नतीजों को दोहराने लायक रखता है।
evm-token-decimals
280kयह आपके एजेंट को अलग-अलग blockchain networks पर decimal numbers की गलतियों से बचने में मदद करता है। यह transactions और calculations में token values सही रखने का ध्यान रखता है।
ito-inference
280kआपके एजेंट को AI models की उपलब्धता जाँचने देता है। यह compute request को तैयार model service से जोड़ता है।