SetFit/mnli
Viewer • Updated • 412k • 2.74k • 8
How to use yuuhan/roberta-base-mnli-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-mnli-lora")This modelcard aims to be a base template for new models. It has been generated using this raw template.
Accurate: 0.8654100866021396 on glue/mnli