Skip to main content
Time-LLM is a reprogramming framework to repurpose LLMs for general time series forecasting with the backbone language models kept intact. In other words, it transforms a forecasting task into a “language task” that can be tackled by an off-the-shelf LLM. References Figure 1. Time-LLM Architecture. Figure 1. Time-LLM Architecture.

1. Time-LLM

Usage example

2. Auxiliary Functions

ReprogrammingLayer

Bases: Module ReprogrammingLayer

FlattenHead

Bases: Module FlattenHead

PatchEmbedding

Bases: Module PatchEmbedding

TokenEmbedding

Bases: Module TokenEmbedding

ReplicationPad1d

Bases: Module ReplicationPad1d