Fine-tuning a Fine-tuned Model
@everyone,@sguggerI want to fine-tune a TextClassification Model previously fine-tuned for x number of classes to a new model with y number of classes.Model didn’t allow to change label2id and id2label config parameter.Thanks in advance.
2023-07-05T00:31:06Z
found solution to this… This question was already asked… forgot the exact post.Solution is to pass following argument in the from_pretrained() function call.ignore_mismatched_sizes=TrueThanks anyways… can be closed now