File size: 683 Bytes
2a1e94d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

from transformers import T5Config, PretrainedConfig
from typing import List


# define Flan-T5 nest CNN autoencoder here
class DeTiMEAutoConfig(T5Config):
    model_type = "detime"

    def __init__(
        self,
        hidden_size1: int = 512,
        hidden_size3: int = 512,
        num_layer: int = 1,
        dropout: float = 0.1,
        max_length: int = 512,
        model_name: str = None,
        **kwargs,
    ):
        self.hidden_size1 = hidden_size1
        self.hidden_size3 = hidden_size3
        self.num_layer = num_layer
        self.dropout = dropout
        self.max_length = max_length
        self.model_name = model_name
        super().__init__(**kwargs)