Thank you! This fixed my problem too!
It was weird that this didnât work:
AutoModelForSequenceClassification.from_pretrained(âhuggingface/CodeBERTa-language-idâ, num_labels=15)
but this did:
config = AutoConfig.from_pretrained(âhuggingface/CodeBERTa-language-idâ)
config.num_labels = 15
model = AutoModelForSequenceClassification.from_config(config)
Answering to tolgayan, the point is that this gets trained, youâre fine tuning the model.