DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to forecast a series without training anything with Timesfm

Load the TimesFM 3.0 checkpoint and predict a horizon with quantiles straight from your history.

Short answer: Install it with pip install timesfm[torch]; then create a ModelConfig with checkpoint_path set to google/timesfm-3.0-pytorch and build a TimesFM3Evaluator as in the README; call forecaster.predict_batch with your list of 1D NumPy arrays, a horizon and return_quantiles=True. All steps.

  • Top pick
  • Data and analytics
  • Intermediate
  • 45 minutes
  • From the README
  • Claude Code
  • Codex
  • Cursor
  • Gemini CLI

platform. TimesFM 3.0 pretrained weights are under a non-commercial license and the README says commercial or production use of self-hosted weights is not permitted.

Who it is forAn analyst who needs a forecast today and has no model.

The problemFitting a model per series is slow and needs tuning.

The outcomePoint forecasts and nine quantiles for each series you pass.

What you need first

  • Python with pip, and `pip install timesfm[torch]`, or `pip install timesfm[mlx]` on Apple silicon
  • A CUDA GPU for the PyTorch examples, which set device to cuda
  • Your series as NumPy arrays

Steps

  1. Install it with pip install timesfm[torch]
  2. Create a ModelConfig with checkpoint_path set to google/timesfm-3.0-pytorch and build a TimesFM3Evaluator as in the README
  3. Call forecaster.predict_batch with your list of 1D NumPy arrays, a horizon and return_quantiles=True
  4. Read outputs[0].forecast and outputs[0].quantiles, which have shapes like (12,) and (12, 9)

Prompt for your agent

Using google-research/timesfm, install `pip install timesfm[torch]`, forecast the next 12 steps of each series in <my CSV> with TimesFM3Evaluator and return_quantiles, and write the medians and deciles to a new CSV.

Caveat. Weights up to version 2.5 remain Apache 2.0 if you need a permissive option.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for google-research/timesfm and "Forecast a series without training anything"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer