src/transformers/models/barthez/tokenization_barthez.py/BarthezTokenizer/__getstate__
class BarthezTokenizer:    def __getstate__(self):
        state = self.__dict__.copy()
        state["sp_model"] = None
        return state