Skip to content

TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.

Python

adding these changes to default config.

Rajat Sen08918788ade5
diff --git a/src/timesfm/timesfm_2p5/timesfm_2p5_torch.py b/src/timesfm/timesfm_2p5/timesfm_2p5_torch.py
index 7753850..897dbe7 100644
--- a/src/timesfm/timesfm_2p5/timesfm_2p5_torch.py
+++ b/src/timesfm/timesfm_2p5/timesfm_2p5_torch.py
@@ -262,16 +262,10 @@ class TimesFM_2p5_200M_torch_module(nn.Module):
return outputs
-class TimesFM_2p5_200M_torch_new_module(TimesFM_2p5_200M_torch_module):
- """TimesFM 2.5 with 200M parameters."""
-
- config = timesfm_2p5_base.TimesFM_2p5_new_200M_Definition()
-
-
class TimesFM_2p5_200M_torch(timesfm_2p5_base.TimesFM_2p5, ModelHubMixin):
"""PyTorch implementation of TimesFM 2.5 with 200M parameters."""
- model: nn.Module = TimesFM_2p5_200M_torch_new_module()
+ model: nn.Module = TimesFM_2p5_200M_torch_module()
@classmethod
def _from_pretrained(