"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "680f1337c3c894b681ebbd24c18122a61e33715b"
add `is_decoder` attribute to `PretrainedConfig`
We currenctly instantiate encoders and decoders for the seq2seq by passing the `is_decoder` keyword argument to the `from_pretrained` classmethod. On the other hand, the model class looks for the value of the `is_decoder` attribute in its config. In order for the value to propagate from the kwarg to the configuration we simply need to define `is_decoder` as an attribute to the base `PretrainedConfig`, with a default at `False`.
Showing
Please register or sign in to comment