Skip to content

Instantly share code, notes, and snippets.

View simon-minorco's full-sized avatar

Simon Y simon-minorco

View GitHub Profile
"""
Minimal FastAPI wrapper around Google TimesFM for self-hosted forecasting.
Endpoints:
GET /health liveness + model-loaded status
POST /forecast batch forecast for one or more series
Environment variables:
TIMESFM_VARIANT "v1" (200m, default) or "v2" (500m)
TIMESFM_BACKEND "cpu" (default) or "gpu"