8000 [ENH] Add support for Windows in TimesFMForecastor · Issue #8291 · sktime/sktime · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[ENH] Add support for Windows in TimesFMForecastor #8291

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
OmBiradar opened this issue May 26, 2025 · 10 comments
Open

[ENH] Add support for Windows in TimesFMForecastor #8291

OmBiradar opened this issue May 26, 2025 · 10 comments

Comments

@OmBiradar
Copy link
Contributor

I use Python 3.13 in Windows 11. Outside of sktime, I can use times-fm without any problem e.g. using something like

tfm = timesfm.TimesFm(
            hparams=timesfm.TimesFmHparams(
                backend=backend, per_core_batch_size=per_core_batch_size,
                horizon_len=horizon_len, num_layers=num_layers,
                use_positional_embedding=use_positional_embedding,
                context_len=context_len),
            checkpoint=timesfm.TimesFmCheckpoint(
                huggingface_repo_id="google/timesfm-2.0-500m-pytorch"
            )
        )

However, within sktime, the TimesFMForecaster requires (a) to downgrade to 3.10 and (b) to use... Linux:

ModuleNotFoundError
TimesFMForecaster requires an environment to satisfy packaging marker spec sys_platform == "linux", but environment does not satisfy it.

Could we kindly request to remove/relax these requirements? Sure, I can spin up a 3.10 venv but Linux?!
Thank you

Originally posted by @4x in #7138 (comment)

@OmBiradar OmBiradar changed the title I use Python 3.13 in Windows 11. Outside of sktime, I can use times-fm without any problem e.g. using something like Add support for Windows in TimesFMForecastor May 26, 2025
@viditjain44
Copy link

Hey, can i please be assigned this issue? I would like to work on it .

@viditjain44
Copy link

i think this issue is not related to this repo.

@OmBiradar
Copy link
Contributor Author

Hey @viditjain44 !

I would like to say that it is related to this repo, as sktime is a toolbox and it's made to support various forecasters and give a unified interface for them.

I say so because timesfm 2.x the pytorch implementation supports python versions above 11.0 and I think that it should also be supported in sktime.

I believe it's a new feature that can be worked out. Maybe as a new Forecastor??

@OmBiradar
Copy link
Contributor Author

Hey @4x!

I think you can use the following parameters and check if it works once..

ignore_deps : bool, default=False
        If True, dependency checks will be ignored, and the user is expected to handle
        the installation of required packages manually. If False, the class will enforce
        the default dependencies required for the vendor library or the pypi
        package, as described above, via ``use_source_package``.

I hope it works out!

@4x
Copy link
4x commented May 28, 2025

Hi @OmBiradar - thank you for the suggestion! Unfortunately, I am still getting the same ModuleNotFoundError: TimesFMForecaster requires an environment to satisfy packaging marker spec sys_platform == "linux", but environment does not satisfy it.