Instructions to use Vaishnaviid/roberta-finetuned-scienceqa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Vaishnaviid/roberta-finetuned-scienceqa with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Vaishnaviid/roberta-finetuned-scienceqa")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Vaishnaviid/roberta-finetuned-scienceqa") model = AutoModelForSequenceClassification.from_pretrained("Vaishnaviid/roberta-finetuned-scienceqa", device_map="auto") - Notebooks
- Google Colab
- Kaggle
roberta-finetuned-scienceqa
This model is a fine-tuned version of roberta-base on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 1.0659
- Accuracy: 0.33
- Precision: 0.4048
- Recall: 0.3315
- F1: 0.2137
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 2e-05
- train_batch_size: 4
- eval_batch_size: 4
- seed: 42
- gradient_accumulation_steps: 2
- total_train_batch_size: 8
- optimizer: Use adamw_torch_fused with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- num_epochs: 3
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
|---|---|---|---|---|---|---|---|
| 1.1181 | 1.0 | 125 | 1.1282 | 0.365 | 0.2366 | 0.2934 | 0.2148 |
| 1.0528 | 2.0 | 250 | 1.0123 | 0.405 | 0.3260 | 0.3866 | 0.2781 |
| 0.998 | 3.0 | 375 | 1.0090 | 0.415 | 0.2990 | 0.3555 | 0.2616 |
Framework versions
- Transformers 4.57.3
- Pytorch 2.9.1+cu128
- Datasets 4.4.1
- Tokenizers 0.22.1
- Downloads last month
- 4
Model tree for Vaishnaviid/roberta-finetuned-scienceqa
Base model
FacebookAI/roberta-base