src/transformers/models/cpm/tokenization_cpm.py/CpmTokenizer/__getstate__
class CpmTokenizer:    def __getstate__(self):
        state = self.__dict__.copy()
        state["sp_model"] = None
        return state