patchfm 2.1.0__tar.gz → 2.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: patchfm
3
- Version: 2.1.0
3
+ Version: 2.1.1
4
4
  Summary: a Foundation Model for Univariate Time Series Forecasting
5
5
  Author-email: Samy-Melwan Vilhes <samy-melwan.vilhes@insa-rouen.fr>
6
6
  License: MIT License
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "patchfm"
3
- version = "2.1.0"
3
+ version = "2.1.1"
4
4
  authors = [
5
5
  { name="Samy-Melwan Vilhes", email="samy-melwan.vilhes@insa-rouen.fr" },
6
6
  ]
@@ -0,0 +1,2 @@
1
+ from patchfm.configs.model_config import PatchFMConfig
2
+ from patchfm.inference.forecaster import Forecaster
@@ -1,11 +1,12 @@
1
- from dataclasses import dataclass, field, asdict
1
+ from dataclasses import asdict, dataclass, field
2
+
2
3
 
3
4
  @dataclass
4
5
  class PatchFMConfig:
5
6
  max_seq_len: int = 1024
6
7
  patch_len: int = 32
7
- d_model: int = 2048
8
- n_heads: int = 64
8
+ d_model: int = 1024
9
+ n_heads: int = 32
9
10
  n_layers_encoder: int = 6
10
11
  quantiles: list[float] = field(default_factory=lambda: [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9])
11
12
 
@@ -1,8 +1,10 @@
1
+ import numpy as np
1
2
  import torch
2
3
  import torch.nn as nn
3
- import numpy as np
4
4
  from einops import rearrange
5
- from patchfm.inference.modules import CausalRevIN, ResidualBlock, TransformerEncoder, PatchFM, SeqTypeConverter
5
+
6
+ from patchfm.inference.modules import (CausalRevIN, PatchFM, ResidualBlock,
7
+ SeqTypeConverter, TransformerEncoder)
6
8
 
7
9
 
8
10
  # --- Forecaster Model ---
@@ -1,11 +1,12 @@
1
1
  # Modules efficient for inference with caching
2
2
 
3
+ import numpy as np
3
4
  import torch
4
5
  import torch.nn as nn
5
6
  from einops import rearrange
6
- from rotary_embedding_torch import RotaryEmbedding
7
7
  from huggingface_hub import PyTorchModelHubMixin
8
- import numpy as np
8
+ from rotary_embedding_torch import RotaryEmbedding
9
+
9
10
 
10
11
  class SeqTypeConverter:
11
12
  def __init__(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: patchfm
3
- Version: 2.1.0
3
+ Version: 2.1.1
4
4
  Summary: a Foundation Model for Univariate Time Series Forecasting
5
5
  Author-email: Samy-Melwan Vilhes <samy-melwan.vilhes@insa-rouen.fr>
6
6
  License: MIT License
@@ -1,2 +0,0 @@
1
- from patchfm.inference.forecaster import Forecaster
2
- from patchfm.configs.model_config import PatchFMConfig
File without changes
File without changes
File without changes