src/transformers/models/biogpt/tokenization_biogpt.py/BioGptTokenizer/__getstate__
class BioGptTokenizer:    def __getstate__(self):
        state = self.__dict__.copy()
        state["sm"] = None
        return state