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

PyPI package, introducing poetry for the CPU version #52

Open JustinGuese opened 1 month ago

JustinGuese commented 1 month ago

Thanks already for your hard work with this package! My proposal would be to publish timesfm as PyPI package using poetry, as this would allow more people to easily use timesfm.

Conda is still supported, meaning people can choose to setup their environment with Conda or Poetry.

I have included a GitHub Actions workflow as well, which would require the setup of a repo secret variable "PYPI_API_TOKEN", which is the PYPI token. Currently I have published the package to my PyPI, but this should obviously changed to the according google-research author. It is currently located at https://pypi.org/manage/project/timesfm/releases/

My second proposal would be to build a timesfm-gpu package as well, or offer it as flag timesfm[gpu] and timesfm[tpu], but I wanted to check for your opinion first.

Have a great weekend

juneedpk commented 1 month ago

I have python 3.10.0 when installing through pip install timesfm it shows following error: 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.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

JustinGuese commented 1 month ago

Are you by chance using macos with the arm chip? I'll have a look at it but had a similar error with arm

juneedpk commented 1 month ago

Are you by chance using macos with the arm chip? I'll have a look at it but had a similar error with arm

I m using windows 10 VS code with python 3.10.0 version