src/transformers/models/herbert/tokenization_herbert.py/HerbertTokenizer/__getstate__
class HerbertTokenizer:    def __getstate__(self):
        state = self.__dict__.copy()
        state["sm"] = None
        return state