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
|
Download README.md from Anirudh7003/roberta-base-rte-lora: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/Anirudh7003/roberta-base-rte-lora/resolve/main/README.md
- Command line
-
hf download hf://Anirudh7003/roberta-base-rte-lora/README.md
-
curl -L -o README.md https://huggingface.co/Anirudh7003/roberta-base-rte-lora/resolve/main/README.md
1.03 kB
| language: en | |
| library_name: transformers | |
| base_model: roberta-base | |
| tags: | |
| - text-classification | |
| - rte | |
| - parameter-efficient-fine-tuning | |
| # 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 | |
| ```python | |
| 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") | |
| ``` | |