How to use yuuhan/roberta-base-rte-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("/home/sunyuhan/syh/sunyuhan/zju/roberta-base") model = PeftModel.from_pretrained(base_model, "yuuhan/roberta-base-rte-lora")
The community tab is the place to discuss and collaborate with the HF community!