Review sentiment - RoBERTa-base + LoRA

LoRA adapter on top of FacebookAI/roberta-base that classifies product reviews as negative / neutral / positive.

Metric (held-out test) Value
Accuracy 0.807
F1 macro 0.754
Precision (macro) 0.762
Recall (macro) 0.751

Training: LoRA r=16, alpha=32, target modules ['query', 'value', 'key'], lr 5e-05, max length 256, up to 5 epochs with early stopping.

from peft import AutoPeftModelForSequenceClassification
from transformers import AutoTokenizer

model = AutoPeftModelForSequenceClassification.from_pretrained("jramduran/review-sentiment-roberta-lora", num_labels=3)
tokenizer = AutoTokenizer.from_pretrained("jramduran/review-sentiment-roberta-lora")
Downloads last month
23
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for jramduran/review-sentiment-roberta-lora

Adapter
(329)
this model