Update modeling_custom_t5.py
Browse files- modeling_custom_t5.py +2 -0
modeling_custom_t5.py
CHANGED
@@ -27,6 +27,7 @@ from .configuration_custom_t5 import (
|
|
27 |
POSITION_ENCODING_ALiBi_LEARNED,
|
28 |
POSITION_ENCODING_NONE,
|
29 |
POSITION_ENCODING_NONE_WINDOW,
|
|
|
30 |
)
|
31 |
from .modeling_t5 import (
|
32 |
T5Stack,
|
@@ -1181,6 +1182,7 @@ class CustomT5Stack(T5Stack):
|
|
1181 |
|
1182 |
|
1183 |
class CustomDecoderOnlyT5(T5PreTrainedModel):
|
|
|
1184 |
_keys_to_ignore_on_load_missing = [
|
1185 |
r"decoder\.embed_tokens\.weight",
|
1186 |
r"encoder",
|
|
|
27 |
POSITION_ENCODING_ALiBi_LEARNED,
|
28 |
POSITION_ENCODING_NONE,
|
29 |
POSITION_ENCODING_NONE_WINDOW,
|
30 |
+
CustomT5Config,
|
31 |
)
|
32 |
from .modeling_t5 import (
|
33 |
T5Stack,
|
|
|
1182 |
|
1183 |
|
1184 |
class CustomDecoderOnlyT5(T5PreTrainedModel):
|
1185 |
+
config_class = CustomT5Config
|
1186 |
_keys_to_ignore_on_load_missing = [
|
1187 |
r"decoder\.embed_tokens\.weight",
|
1188 |
r"encoder",
|