ValueError: The model class you are passing has a `config_class` attribute that is not consistent with the config class you passed (model has <class 'transformers.models.t5.configuration_t5.T5Config'> and you passed <class 'transformers_modules.google.madlad400-8b-lm.d1017b424b97ad0fd1bbeca987ff208ef17367e0.decoderonlyt5_config.DecoderOnlyT5Config'>. Fix one of those so they match!
#1
by
MohammadJRanjbar
- opened
- decoderonlyt5_config.py +1 -3
decoderonlyt5_config.py
CHANGED
@@ -1,6 +1,4 @@
|
|
1 |
-
from
|
2 |
-
|
3 |
-
|
4 |
class DecoderOnlyT5Config(T5Config):
|
5 |
is_decoder_only = True
|
6 |
# whether to call attention and mlp in parallel.
|
|
|
1 |
+
from transformers_modules.google.madlad400-8b-lm.d1017b424b97ad0fd1bbeca987ff208ef17367e0.decoderonlyt5_config import DecoderOnlyT5Config
|
|
|
|
|
2 |
class DecoderOnlyT5Config(T5Config):
|
3 |
is_decoder_only = True
|
4 |
# whether to call attention and mlp in parallel.
|