src/transformers/models/ernie_m/tokenization_ernie_m.py/ErnieMTokenizer/__getstate__
class ErnieMTokenizer:    def __getstate__(self):
        state = self.__dict__.copy()
        state["sp_model"] = None
        return state