Instructions to use dusersad12/SweepBestModel-Repo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dusersad12/SweepBestModel-Repo with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="dusersad12/SweepBestModel-Repo")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("dusersad12/SweepBestModel-Repo") model = AutoModelForSequenceClassification.from_pretrained("dusersad12/SweepBestModel-Repo", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,218 Bytes
f51f23c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | ---
license: apache-2.0
library_name: transformers
tags:
- text-classification
- roberta
- sweep
---
# SweepBestModel
<div align="center">
<img src="figures/training_curve.png" width="70%" alt="Training Curve" />
</div>
## Overview
This model was selected from a hyperparameter sweep as the best-performing run based on validation accuracy. It is a RoBERTa-based sequence classifier fine-tuned on our internal dataset.
## Training Configuration
- **Learning Rate:** 3e-5
- **Batch Size:** 64
- **Epochs:** 10
- **Best Validation Accuracy:** 0.864
## Benchmark Results
<div align="center">
| Benchmark | Score |
|---|---|
| MNLI (m/mm) | 0.864 |
| SST-2 | 0.864 |
| QQP | 0.864 |
| QNLI | 0.864 |
| RTE | 0.864 |
| CoLA | 0.864 |
| STS-B | 0.864 |
| MRPC | 0.864 |
</div>
## Usage
```python
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model = AutoModelForSequenceClassification.from_pretrained("SweepBestModel-Repo")
tokenizer = AutoTokenizer.from_pretrained("SweepBestModel-Repo")
```
## Figures
<div align="center">
<img src="figures/confusion_matrix.png" width="45%" alt="Confusion Matrix" />
<img src="figures/loss_curve.png" width="45%" alt="Loss Curve" />
</div> |