Commit ·
0fb8498
1
Parent(s): e11caaf
create MODELCARD
Browse files
README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+

|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
[](https://www.python.org/) [](https://pytorch.org/)
|
| 10 |
+
|
| 11 |
+
# FLAME: Flow Enhanced Legendre Memory Models for General Time Series Forecasting
|
| 12 |
+
|
| 13 |
+
This is the official repository of **FLAME**: Flow Enhanced Legendre Memory Models for General Time Series Forecasting.
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
## Introduction
|
| 18 |
+
FLAME is a family of extremely **lightweight** and highly capable time series foundation models. Based on the normalization-based forecasting head, it can support both the **deterministic** and **probabilistic** forecasting.
|
| 19 |
+
|
| 20 |
+
To our best knowldege, FLAME is the first time series foundation model possessing both lightweight backbones and generative prediction capabilities!
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+

|
| 25 |
+
|
| 26 |
+
## Architecture
|
| 27 |
+
|
| 28 |
+
FLAME adopts the Channel-Independent pretraining paradigm, and each variable is preprocessed through Instance Normalization to mitigate the value discrepancy. FLAME utilizes the Re-Norm to further mitigate the statistical differences between inputs and forecasts, and its backbone mainly consists of three modules: 1) Encoding, including Time Series Tokenization, **Local-Perception**, and MSA-Encoder, which tokenize the time series and enhance them through fusing the local environmental information with LegT; 2) Decoding, including **LegS based SSD-Decoder** and MCA-Enhancer, which utilize the SSD layers and MCA layers to make long-term inference ; 3) **Flow-based Head**, which leverages the Normalization Flow to support generative probabilistic forecasting, with both efficiency and accuracy.
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+

|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
## Quickstart
|
| 35 |
+
|
| 36 |
+
You need to install the following packages:
|
| 37 |
+
|
| 38 |
+
```shell
|
| 39 |
+
pip install transformers[torch]
|
| 40 |
+
|
| 41 |
+
pip install mamba-ssm[causal-conv1d]
|
| 42 |
+
|
| 43 |
+
pip install zuko
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
For mamba-ssm, there exists a bug about triton. We fix it and release the code at [./flame/mamba/mamba_ssm](./flame/mamba/mamba_ssm), you can compile it from scratch or simply replace the mamba_ssm package under the default path of conda.
|
| 47 |
+
|