src/transformers/models/bert_generation/tokenization_bert_generation.py/BertGenerationTokenizer/__getstate__
class BertGenerationTokenizer:    def __getstate__(self):
        state = self.__dict__.copy()
        state["sp_model"] = None
        return state