src/transformers/models/deberta_v2/tokenization_deberta_v2.py/SPMTokenizer/__setstate__
class SPMTokenizer:    def __setstate__(self, d):
        self.__dict__ = d

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

        self.spm = sp.SentencePieceProcessor(**self.sp_model_kwargs)
        self.spm.Load(self.vocab_file)