Hey , last week i was finetuning bert i came across this problem like i made this class
class BERTForClassification(tf.keras.Model):
def __init__(self, bert_model):
super().__init__()
self.bert = bert_model
self.fc = tf.keras.layers.Dense(1, activation='sigmoid')
but i wasn't able to save_pretrained(path)
and when saved using keras i wasn't able push it on huggingface hub since it needs config.js and model
i tried to extract weights still there were so many problems that i couldn't figure out
Can anyone tell me what the possible problem could be?