google-research / timesfm

TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.
https://research.google/blog/a-decoder-only-foundation-model-for-time-series-forecasting/
Apache License 2.0
3.02k stars 228 forks source link

installed failed #35

Open zhousheng89 opened 1 month ago

zhousheng89 commented 1 month ago

Has anyone effectively configured timesfm? Could you kindly provide details of the operating system and hardware configuration used?

Ivo196 commented 1 month ago

I have the same problem, i couldn't intall the dependencies

sulochan commented 1 month ago

(tfm_env) timesfm ➤ pip --version git:master pip 24.0 from /Users/sulochan.acharya/opt/anaconda3/envs/tfm_env/lib/python3.10/site-packages/pip (python 3.10) (tfm_env) timesfm ➤ python --version git:master Python 3.10.14 (tfm_env) timesfm ➤ pip install -e . git:master* Obtaining file:///Users/sulochan.acharya/timesfm Installing build dependencies ... done Checking if build backend supports build_editable ... done Getting requirements to build editable ... done Installing backend dependencies ... done Preparing editable metadata (pyproject.toml) ... done Collecting einshape>=1.0.0 (from timesfm==0.0.1) Using cached einshape-1.0-py3-none-any.whl.metadata (706 bytes) Collecting paxml>=1.4.0 (from timesfm==0.0.1) Using cached paxml-1.4.0-py3-none-any.whl.metadata (1.3 kB) Collecting praxis>=1.3.1 (from timesfm==0.0.1) Using cached praxis-1.4.0-py3-none-any.whl.metadata (1.2 kB) Collecting jax>=0.4.26 (from timesfm==0.0.1) Using cached jax-0.4.28-py3-none-any.whl.metadata (23 kB) Collecting numpy>=1.26.4 (from timesfm==0.0.1) Using cached numpy-1.26.4-cp310-cp310-macosx_10_9_x86_64.whl.metadata (61 kB) Collecting pandas>=2.1.4 (from timesfm==0.0.1) Using cached pandas-2.2.2-cp310-cp310-macosx_10_9_x86_64.whl.metadata (19 kB) Collecting absl-py (from einshape>=1.0.0->timesfm==0.0.1) Using cached absl_py-2.1.0-py3-none-any.whl.metadata (2.3 kB) Collecting ml-dtypes>=0.2.0 (from jax>=0.4.26->timesfm==0.0.1) Using cached ml_dtypes-0.4.0-cp310-cp310-macosx_10_9_universal2.whl.metadata (20 kB) Collecting opt-einsum (from jax>=0.4.26->timesfm==0.0.1) Using cached opt_einsum-3.3.0-py3-none-any.whl.metadata (6.5 kB) Collecting scipy>=1.9 (from jax>=0.4.26->timesfm==0.0.1) Using cached scipy-1.13.0-cp310-cp310-macosx_10_9_x86_64.whl.metadata (60 kB) Requirement already satisfied: python-dateutil>=2.8.2 in /Users/sulochan.acharya/opt/anaconda3/envs/tfm_env/lib/python3.10/site-packages (from pandas>=2.1.4->timesfm==0.0.1) (2.9.0) Requirement already satisfied: pytz>=2020.1 in /Users/sulochan.acharya/opt/anaconda3/envs/tfm_env/lib/python3.10/site-packages (from pandas>=2.1.4->timesfm==0.0.1) (2024.1) Collecting tzdata>=2022.7 (from pandas>=2.1.4->timesfm==0.0.1) Using cached tzdata-2024.1-py2.py3-none-any.whl.metadata (1.4 kB) Collecting absl-py (from einshape>=1.0.0->timesfm==0.0.1) Using cached absl_py-1.4.0-py3-none-any.whl.metadata (2.3 kB) Collecting clu==0.0.11 (from paxml>=1.4.0->timesfm==0.0.1) Using cached clu-0.0.11-py3-none-any.whl.metadata (1.9 kB) Collecting etils==1.7.0 (from paxml>=1.4.0->timesfm==0.0.1) Using cached etils-1.7.0-py3-none-any.whl.metadata (6.4 kB) Collecting flax==0.8.2 (from paxml>=1.4.0->timesfm==0.0.1) Using cached flax-0.8.2-py3-none-any.whl.metadata (10 kB) Collecting graphviz==0.20.1 (from paxml>=1.4.0->timesfm==0.0.1) Using cached graphviz-0.20.1-py3-none-any.whl.metadata (12 kB) Collecting jax>=0.4.26 (from timesfm==0.0.1) Using cached jax-0.4.26-py3-none-any.whl.metadata (23 kB) INFO: pip is looking at multiple versions of paxml to determine which version is compatible with other requirements. This could take a while. ERROR: Ignored the following versions that require a different python version: 1.6.2 Requires-Python >=3.7,<3.10; 1.6.3 Requires-Python >=3.7,<3.10; 1.7.0 Requires-Python >=3.7,<3.10; 1.7.1 Requires-Python >=3.7,<3.10; 1.8.0 Requires-Python >=3.11 ERROR: Could not find a version that satisfies the requirement lingvo==0.12.7 (from paxml) (from versions: none) ERROR: No matching distribution found for lingvo==0.12.7

lhw828 commented 1 month ago

It's quite troublesome to configure, Google can consider providing a Docker version now.

This program has been successfully run in Ubuntu.

https://github.com/lhw828/timesfm

abhidas commented 1 month ago

TimesFM has a lingvo dependency. lingvo unfortunately does not support ARM, and consequentially Apple silicon (M1/M2 etc.). We are working to find a way around this issue

Sovenok-Hacker commented 1 month ago

I have same problem too, but I am on x86_64 Linux

alextooter commented 1 month ago

I tried in macos 14.4.1(x64,intel) failed at lingvo. Then I tried on a ubuntu box, failed on jax and jaxlib problem.