AI tools, scored for your job
Get paid to train AI
🤝 You're in the Free & Open Source library — community-built tools you can use without paying. A different concept from our scored AI directory.
Home › Free & Open Source › Data Science › pytorch-forecasting
✦ Free & open sourceData Science

pytorch-forecasting

Deep learning time series forecasting library for PyTorch using PyTorch Lightning for scalable training.

Scalable deep learning for time series forecasting

Build, train, and interpret advanced neural network architectures on multi-horizon time series data.

Free forever · open source · MIT
✓ Light setup✓ Browser-based✓ Real-time collaboration
8.3
ZEKAI
Top choice for PyTorch forecasting
Free & open source · Data Science
Ease of setup7
Usefulness9
Maintenance9.5
Community7.5
★ 5,001
GITHUB
Oct 2026
UPDATED
MIT
LICENSE
🛠 Don't want to self-host? We can set it up →
⚡ Quick answer

PyTorch Forecasting is a Python package designed for high-level deep learning time series prediction. It helps data scientists quickly implement complex architectures like Temporal Fusion Transformers and N-BEATS using PyTorch Lightning for hardware acceleration. You should use it if you need multi-horizon probabilistic forecasting on tabular time series data.

Runs on
Cross-platform
Hosting
Cloud or self-host
Languages
Python
License
MIT

What it is

The package abstracts data preparation using a specialized dataset class that handles missing values, variable transformations, and subsampling automatically. It provides built-in neural architectures optimized for real-world deployments alongside TensorBoard logging and dependency visualizations. Training scales across CPU and multi-GPU environments through its PyTorch Lightning integration.

Who it's for

It suits data scientists and machine learning engineers building production-grade predictive models for complex temporal data. It is not suitable for non-programmers or teams looking for code-free tools, as it requires proficiency in Python and PyTorch.

Key features

TimeSeriesDataSet abstraction class

Handles feature transformations, missing values, variable history lengths, and subsampling automatically.

Advanced neural architectures

Provides implementations of Temporal Fusion Transformers, N-BEATS, N-HiTS, PatchTST, and DeepAR.

Automated logging and visuals

Integrates with TensorBoard to output training metrics, actual versus predicted plots, and dependency charts.

Optuna hyperparameter tuning

Includes integration with Optuna to tune model parameters across complex forecasting architectures.

How to start

Up and running in 3 steps

1
Install the library via pip or conda along with your environment's PyTorch dependencies.
2
Convert your pandas DataFrame into a TimeSeriesDataSet with defined targets and time keys.
3
Instantiate a pre-built architecture like Temporal Fusion Transformer and fit it using PyTorch Lightning.
Real talk

Our honest verdict

What's great

  • Includes ready-to-use implementations of Temporal Fusion Transformers, N-HiTS, and PatchTST.
  • Uses PyTorch Lightning to scale training across multi-GPU setups without manual distributed code.
  • TimeSeriesDataSet wrapper automates complex feature engineering and windowing tasks.
  • Provides built-in interpretability features and multi-horizon prediction evaluation metrics.

Where it falls short

  • High computational overhead and hardware costs for training large transformer models.
  • Steep learning curve for practitioners who lack PyTorch or PyTorch Lightning experience.
  • Requires extra manual installation steps for specific loss functions like MQF2.
  • Windows installations require extra manual steps to select the correct PyTorch binaries.
Cost

Pricing & license

PyTorch Forecasting is free and open-source under the MIT License. The primary expense involved is the server and GPU infrastructure required to train these deep learning models.

Paid work

Open remote AI-training roles

874 open remote AI-training roles, updated November 15, 2026; most pay $20–$170 an hour. Zekai lists them free; the application goes to the employer’s platform.

See all open roles →
Compare

Alternatives

🎁 Free & open-source alternatives

These reviewed AI tools do the same job instantly — from our scored directory.

Get more

Use it, or have us set it up

📄 Free PDF: pytorch-forecasting for Data Science
A plain-language guide to getting your first result. Sent to your inbox.
🔔 64 people want a full video tutorial — add your vote
🛠 Don't want to set it up yourself?
We'll install, host & configure pytorch-forecasting for you — and train your team.
Get it done for you ↗
Questions

FAQ

What deep learning architectures are included?

It includes Temporal Fusion Transformers, N-BEATS, N-HiTS, PatchTST, DeepAR, standard LSTM/GRU networks, and simple baseline models.

Does PyTorch Forecasting support hyperparameter tuning?

Yes, it integrates directly with Optuna for automated hyperparameter optimization.

Can models be trained on multi-GPU setups?

Yes, PyTorch Lightning provides out-of-the-box support for CPU, single GPU, and multi-GPU hardware acceleration.

Radar

Latest AI news

✉️ The weekly free toolkit
The best new free & open-source tools for Data Science — one short email a week, in your language.
Free · 1 email/week · unsubscribe anytime
Get paid to train AI →

See Zekai first in Google