Instructions to use Anirudh7003/roberta-base-rte-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Anirudh7003/roberta-base-rte-lora with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Anirudh7003/roberta-base-rte-lora")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Anirudh7003/roberta-base-rte-lora", device_map="auto") - Notebooks
- Google Colab
- Kaggle
RoBERTa-base fine-tuned on GLUE RTE (lora)
This checkpoint is one learning experiment comparing Full Fine-Tuning, BitFit, adapters, and LoRA on GLUE Recognizing Textual Entailment (RTE). It uses seed 42 and selects the highest validation epoch.
| Metric | Value |
|---|---|
| Best validation accuracy | 0.7148 |
| Best epoch | 6 |
| Trainable parameters | 887,042 |
| Total parameters | 125,534,212 |
Method
lora. See the project README for the exact shared training configuration.
This is an educational experiment, not a benchmark-level performance claim.
Load
from peft import PeftModel
from transformers import AutoModelForSequenceClassification
base = AutoModelForSequenceClassification.from_pretrained("roberta-base", num_labels=2)
model = PeftModel.from_pretrained(base, "Anirudh7003/roberta-base-rte-lora")
Model tree for Anirudh7003/roberta-base-rte-lora
Base model
FacebookAI/roberta-base