Text Classification
Transformers
PyTorch
TensorBoard
roberta
Generated from Trainer
text-embeddings-inference
Instructions to use xreborn/roberta-base_ag_news with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use xreborn/roberta-base_ag_news with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="xreborn/roberta-base_ag_news")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("xreborn/roberta-base_ag_news") model = AutoModelForSequenceClassification.from_pretrained("xreborn/roberta-base_ag_news") - Notebooks
- Google Colab
- Kaggle
roberta-base_ag_news
This model is a fine-tuned version of roberta-base on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.3108
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: 5e-05
- train_batch_size: 8
- eval_batch_size: 8
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- lr_scheduler_warmup_steps: 500
- num_epochs: 5
Training results
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 0.3947 | 1.0 | 100 | 0.3689 |
| 0.3548 | 2.0 | 200 | 0.3108 |
| 0.0662 | 3.0 | 300 | 0.4454 |
| 0.435 | 4.0 | 400 | 0.4059 |
| 0.4893 | 5.0 | 500 | 0.4149 |
Framework versions
- Transformers 4.26.1
- Pytorch 2.1.1+cu121
- Datasets 2.12.0
- Tokenizers 0.13.3
- Downloads last month
- 4