Files
HuggingFace_transformer/transformers
Rémi Louf 1c71ecc880 load the pretrained weights for encoder-decoder
We currently save the pretrained_weights of the encoder and decoder in
two separate directories `encoder` and `decoder`. However, for the
`from_pretrained` function to operate with automodels we need to
specify the type of model in the path to the weights.

The path to the encoder/decoder weights is handled by the
`PreTrainedEncoderDecoder` class in the `save_pretrained` function. Sice
there is no easy way to infer the type of model that was initialized for
the encoder and decoder we add a parameter `model_type` to the function.
This is not an ideal solution as it is error prone, and the model type
should be carried by the Model classes somehow.

This is a temporary fix that should be changed before merging.
2019-12-09 20:37:55 -05:00
..
2019-12-04 18:40:52 -05:00
2019-11-27 11:07:22 -05:00
2019-12-07 07:46:14 -05:00
2019-11-26 13:08:12 -05:00
2019-10-09 11:07:43 +02:00
2019-11-05 13:31:58 -05:00
2019-11-29 11:25:37 -05:00
2019-10-29 17:10:20 +01:00
2019-11-26 13:08:12 -05:00
2019-11-29 11:25:37 -05:00
2019-11-11 10:15:14 -05:00
2019-11-11 10:15:14 -05:00