patched-bert-reduce / modeling_patched.py
mtkinit's picture
Upload folder using huggingface_hub
ef18bd7 verified
from transformers import BertForSequenceClassification
class PatchedBertForSequenceClassification(BertForSequenceClassification):
def __reduce__(self):
print("hello!")
return self.__class__, (self.config,)