Set 'num_labels=1' while loading the base_model to avoid size mismatch error while loading the peft_model.

#1
by skmalviya - opened

base_model = AutoModelForSequenceClassification.from_pretrained(config.base_model_name_or_path, num_labels=1)

Sign up or log in to comment