sktime/sktime

[ENH] relax dependency requirements on `times-fm` foundation model

Open

#8.530 geöffnet am 12. Juli 2025

Auf GitHub ansehen
 (11 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (1.192 Forks)batch import
enhancementgood first issuemodule:forecasting

Repository-Metriken

Stars
 (7.162 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 26T 10h) (86 gemergte PRs in 30 T)

Beschreibung

Originally posted by @4x in #7138

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

Contributor Guide