Skip to content

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

Python

fix(timesfm3): remove library_name override in PyTorchModelHubMixin for download tracking

Rajat Sen7360853c4f8e
diff --git a/src/timesfm3/evaluator.py b/src/timesfm3/evaluator.py
index 544ec5b..d753531 100644
--- a/src/timesfm3/evaluator.py
+++ b/src/timesfm3/evaluator.py
@@ -23,9 +23,7 @@ import numpy as np
from .timesfm3_forecaster import (
ForecastOutput,
- ModelConfig,
TimesFM3Forecaster,
- _ModelConfig,
)
_MAX_VARIATES_PER_FORWARD = 32
diff --git a/src/timesfm3/model.py b/src/timesfm3/model.py
index e30f518..d415b7d 100644
--- a/src/timesfm3/model.py
+++ b/src/timesfm3/model.py
@@ -37,7 +37,6 @@ from . import cpm_revin_refine as cpm_revin_refine_lib
class TimesFM3Torch(
nn.Module,
PyTorchModelHubMixin,
- library_name="timesfm",
repo_url="https://github.com/google-research/timesfm",
):
"""PyTorch inference-only implementation of TimesFM3.
diff --git a/src/timesfm3/timesfm3_forecaster_test.py b/src/timesfm3/timesfm3_forecaster_test.py
index 078866e..5d4bb62 100644
--- a/src/timesfm3/timesfm3_forecaster_test.py
+++ b/src/timesfm3/timesfm3_forecaster_test.py
@@ -17,12 +17,12 @@
import tempfile
import unittest
from unittest import mock
+
import numpy as np
import torch
-from . import configs
+from . import configs, timesfm3_forecaster
from . import model as torch_model_lib
-from . import timesfm3_forecaster
class FakeModel(torch.nn.Module):