src/transformers/models/xlm/tokenization_xlm.py/XLMTokenizer/__getstate__
class XLMTokenizer:    def __getstate__(self):
        state = self.__dict__.copy()
        state["sm"] = None
        return state