Text Classification
Transformers
Safetensors
roberta
Generated from Trainer
text-embeddings-inference
Instructions to use leomaurodesenv/roberta-base-answerable-or-not with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use leomaurodesenv/roberta-base-answerable-or-not with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="leomaurodesenv/roberta-base-answerable-or-not")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("leomaurodesenv/roberta-base-answerable-or-not") model = AutoModelForSequenceClassification.from_pretrained("leomaurodesenv/roberta-base-answerable-or-not", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| library_name: transformers | |
| license: mit | |
| base_model: FacebookAI/roberta-base | |
| tags: | |
| - generated_from_trainer | |
| metrics: | |
| - accuracy | |
| model-index: | |
| - name: roberta-base-answerable-or-not | |
| results: [] | |
| <!-- This model card has been generated automatically according to the information the Trainer had access to. You | |
| should probably proofread and complete it, then remove this comment. --> | |
| # roberta-base-answerable-or-not | |
| This model is a fine-tuned version of [FacebookAI/roberta-base](https://huggingface.co/FacebookAI/roberta-base) on an unknown dataset. | |
| It achieves the following results on the evaluation set: | |
| - Loss: 0.0507 | |
| - Accuracy: 0.9949 | |
| ## 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: 8 | |
| - eval_batch_size: 8 | |
| - seed: 42 | |
| - 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 | |
| - lr_scheduler_warmup_steps: 50 | |
| - num_epochs: 10 | |
| ### Training results | |
| | Training Loss | Epoch | Step | Validation Loss | Accuracy | | |
| |:-------------:|:-----:|:----:|:---------------:|:--------:| | |
| | 0.1538 | 1.0 | 198 | 0.1729 | 0.9696 | | |
| | 0.1172 | 2.0 | 396 | 0.1149 | 0.9823 | | |
| | 0.0325 | 3.0 | 594 | 0.0816 | 0.9873 | | |
| | 0.0001 | 4.0 | 792 | 0.0507 | 0.9949 | | |
| | 0.0001 | 5.0 | 990 | 0.0844 | 0.9899 | | |
| | 0.0000 | 6.0 | 1188 | 0.0528 | 0.9949 | | |
| | 0.0000 | 7.0 | 1386 | 0.0559 | 0.9949 | | |
| ### Framework versions | |
| - Transformers 5.2.0 | |
| - Pytorch 2.10.0+cu128 | |
| - Datasets 4.5.0 | |
| - Tokenizers 0.22.2 | |