whereismyai
Tsfm Pg
Tsfm Pg is a Postgres extension that runs time-series forecasting models directly inside the database using Zig.
Tsfm Pg is a PostgreSQL extension that runs the tsfm-zig forecaster directly inside the database. It supports Chronos-2 and Timestral checkpoints, keeping model weights on the database host so queries never ship series data to a cloud API. The engine is linked as a Zig module without a C ABI or secondary artifacts. It provides multiple SQL functions for single forecasts, batch operations, matrix returns, and timestamp-based series. Users can configure parameters like thread counts, CPU targets, and GPU offloading options through standard PostgreSQL settings.
Tsfm Pg at a glance
- Best for: Software engineer
- Runs on: Linux, macOS, Windows, self-hosted, open source
- Pricing: Free
- Released: November 2026
- Category: AI research tool
- Website: github.com/barddoo/tsfm-pg
Key features
- Run forecasts inside PostgreSQL via SQL functions
- Support Chronos-2 and Timestral model checkpoints
- Process single and batch time-series forecasts
- Load models lazily with explicit warmup controls
- Configure execution threads and CPU SIMD targets
- Offload large matrix products to CUDA or Metal
- Read checkpoints as memory-mapped files
Use it for
- Forecasting time-series data directly in PostgreSQL
- Running batch predictions across multiple data series
- Applying machine learning models without cloud API calls
Alternatives to Tsfm Pg
- Nixtla TimeGPT — Foundational model for forecasting and anomaly detection.
- Pg Vectorsearch — Provides faster querying and building than standard indexes.
- Chronos — Provides state-of-the-art zero-shot performance on time series benchmarks.
- MorletDB — Stores lossless waveform archives inside PostgreSQL with time-shift tolerant similarity search.
- DB-GPT — Builds autonomous agents for complex data tasks with private LLM technology.
- Elbi — Saves agent findings as Python derivations that recompute automatically when data change.
- FoundationForecast — Unifies multiple time series foundation models under one single API and data format.
- Skeg — Disk-backed indexes keep full vectors on disk, leaving memory for your model.
- AntV Chart MCP — Provides direct integration of diverse chart generation tools into AI applications.
- ktx — It gives data agents a shared context workspace of approved metrics and git-based files.
- SemIf OpenJev — Extracts direct token probabilities without generating text or running JSON repair loops.
- UltraRAG — Build complex RAG workflows using modular MCP components and YAML configuration.
All Tsfm Pg alternatives