Upload config
Browse files- config.json +2 -1
- configuration_t5mimo.py +4 -0
config.json
CHANGED
@@ -4,7 +4,6 @@
|
|
4 |
],
|
5 |
"auto_map": {
|
6 |
"AutoConfig": "configuration_t5mimo.T5MIMOConfig",
|
7 |
-
"AutoModel": "modeling_t5mimo.T5MIMOModel",
|
8 |
"AutoModelForSeq2SeqLM": "modeling_t5mimo.T5MIMOForConditionalGeneration"
|
9 |
},
|
10 |
"classifier_dropout": 0.0,
|
@@ -22,8 +21,10 @@
|
|
22 |
"layer_norm_epsilon": 1e-06,
|
23 |
"model_type": "t5",
|
24 |
"num_decoder_layers": 4,
|
|
|
25 |
"num_heads": 4,
|
26 |
"num_layers": 4,
|
|
|
27 |
"pad_token_id": 0,
|
28 |
"relative_attention_max_distance": 128,
|
29 |
"relative_attention_num_buckets": 32,
|
|
|
4 |
],
|
5 |
"auto_map": {
|
6 |
"AutoConfig": "configuration_t5mimo.T5MIMOConfig",
|
|
|
7 |
"AutoModelForSeq2SeqLM": "modeling_t5mimo.T5MIMOForConditionalGeneration"
|
8 |
},
|
9 |
"classifier_dropout": 0.0,
|
|
|
21 |
"layer_norm_epsilon": 1e-06,
|
22 |
"model_type": "t5",
|
23 |
"num_decoder_layers": 4,
|
24 |
+
"num_filters": 64,
|
25 |
"num_heads": 4,
|
26 |
"num_layers": 4,
|
27 |
+
"num_seqs": 3,
|
28 |
"pad_token_id": 0,
|
29 |
"relative_attention_max_distance": 128,
|
30 |
"relative_attention_num_buckets": 32,
|
configuration_t5mimo.py
CHANGED
@@ -79,6 +79,8 @@ class T5MIMOConfig(PretrainedConfig):
|
|
79 |
eos_token_id=1,
|
80 |
decoder_start_token_id = 0,
|
81 |
classifier_dropout=0.0,
|
|
|
|
|
82 |
**kwargs,
|
83 |
):
|
84 |
self.vocab_size = vocab_size
|
@@ -98,6 +100,8 @@ class T5MIMOConfig(PretrainedConfig):
|
|
98 |
self.initializer_factor = initializer_factor
|
99 |
self.feed_forward_proj = feed_forward_proj
|
100 |
self.use_cache = use_cache
|
|
|
|
|
101 |
|
102 |
act_info = self.feed_forward_proj.split("-")
|
103 |
self.dense_act_fn = act_info[-1]
|
|
|
79 |
eos_token_id=1,
|
80 |
decoder_start_token_id = 0,
|
81 |
classifier_dropout=0.0,
|
82 |
+
num_seqs=3,
|
83 |
+
num_filters=64,
|
84 |
**kwargs,
|
85 |
):
|
86 |
self.vocab_size = vocab_size
|
|
|
100 |
self.initializer_factor = initializer_factor
|
101 |
self.feed_forward_proj = feed_forward_proj
|
102 |
self.use_cache = use_cache
|
103 |
+
self.num_seqs = num_seqs
|
104 |
+
self.num_filters = num_filters
|
105 |
|
106 |
act_info = self.feed_forward_proj.split("-")
|
107 |
self.dense_act_fn = act_info[-1]
|