src/transformers/models/m2m_100/tokenization_m2m_100.py/M2M100Tokenizer/__setstate__
class M2M100Tokenizer:    def __setstate__(self, d: Dict) -> None:
        self.__dict__ = d

        # for backward compatibility
        if not hasattr(self, "sp_model_kwargs"):
            self.sp_model_kwargs = {}

        self.sp_model = load_spm(self.spm_file, self.sp_model_kwargs)