AttributeError: module 'timesfm' has no attribute 'TimesFM_2p5_200M_torch' #308
Replies: 2 comments 2 replies
|
TimesFM attributes: [] |
|
if you are using torch here is a workaround ` torch.set_float32_matmul_precision("high") model.compile( |
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I tried running the example from the README in Google Colab:
import numpy as np
import timesfm
model = timesfm.TimesFM_2p5_200M_torch()
model.load_checkpoint()
model.compile(
timesfm.ForecastConfig(
max_context=1024,
max_horizon=256,
normalize_inputs=True,
use_continuous_quantile_head=True,
force_flip_invariance=True,
infer_is_positive=True,
fix_quantile_crossing=True,
)
)
But I get the following error:
AttributeError: module 'timesfm' has no attribute 'TimesFM_2p5_200M_torch'
Steps I followed:
Fresh Colab runtime
Installed with:
git clone https://github.com/google-research/timesfm.git
cd timesfm
pip install -e .
Then ran the code above.
Expected behavior: The class TimesFM_2p5_200M_torch should be accessible directly from import timesfm as shown in the README example.
Actual behavior: The attribute is missing, leading to an AttributeError.
Could you confirm whether the class has been renamed, moved to another submodule, or not yet exported in init.py?
Thank you!
All reactions