TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.
Python
use snapshot_download
Kashif Rasuld5f55b082566
diff --git a/src/timesfm.py b/src/timesfm.pyindex 56456f5..23635eb 100644--- a/src/timesfm.py+++ b/src/timesfm.py@@ -24,7 +24,7 @@ import jaximport jax.numpy as jnpimport numpy as npimport pandas as pd-from huggingface_hub import hf_hub_download+from huggingface_hub import snapshot_downloadfrom paxml import checkpointsfrom paxml import tasks_libfrom praxis import base_hyperparams@@ -235,7 +235,7 @@ class TimesFm:step: step of the checkpoint to load. If `None`, load lastest checkpoint."""# Download the checkpoint from Hugging Face Hub- checkpoint_path = hf_hub_download(repo_id)+ checkpoint_path = snapshot_download(repo_id)# Initialize the model weights.self._logging("Constructing model weights.")