Encoding error with fine-tuned model
Hello there! I have a question regarding the fine-tuning of mbart. I did the training like the example herehttps://github.com/huggingface/transformers/tree/v4.6.1/examples/pytorch/translationand obtained a modelpytorch_model.binHowever when trying to use the model to translate I get an UnicodeDecodeErrorUnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 64: invalid start byteThe complete error is the following. As far as I can see it produces when loading the model I obtained from fine-tuning.Traceback (most recent call last):
  File "mbart/predict.py", line 41, in <module>
    main()
  File "mbart/predict.py", line 21, in main
    model = MBartForConditionalGeneration.from_pretrained(opt.model)
  File "/home/claudia/anaconda3/envs/speechenv/lib/python3.7/site-packages/transformers/modeling_utils.py", line 1080, in from_pretrained
    **kwargs,
  File "/home/claudia/anaconda3/envs/speechenv/lib/python3.7/site-packages/transformers/configuration_utils.py", line 427, in from_pretrained
    config_dict, kwargs = cls.get_config_dict(pretrained_model_name_or_path, **kwargs)
  File "/home/claudia/anaconda3/envs/speechenv/lib/python3.7/site-packages/transformers/configuration_utils.py", line 495, in get_config_dict
    config_dict = cls._dict_from_json_file(resolved_config_file)
  File "/home/claudia/anaconda3/envs/speechenv/lib/python3.7/site-packages/transformers/configuration_utils.py", line 578, in _dict_from_json_>
    text = reader.read()
  File "/home/claudia/anaconda3/envs/speechenv/lib/python3.7/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 64: invalid start byteAny ideas on how to solve this?Thanks in advance
2021-10-04T22:11:57Z
@claudiadid you ever solve this?