How to run inference with a PyTorch time series Transformer

Using a PyTorch transformer for time series forecasting at inference time where you don’t know the decoder input

Kasper Groes Albin Ludvigsen
Towards Data Science
6 min readOct 18, 2022

--

Production equipment in steel
Photo by Crystal Kwok on Unsplash

In this post, I will show how to run inference with a PyTorch transformer for time series forecasting. Specifically, we will use the PyTorch time series transformer I described…

--

--

I write about LLMs, time series forecasting, sustainable data science and green software engineering