Instructions to use A-dung-ng31/roberta-base-coco-NER with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use A-dung-ng31/roberta-base-coco-NER with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="A-dung-ng31/roberta-base-coco-NER")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("A-dung-ng31/roberta-base-coco-NER") model = AutoModelForTokenClassification.from_pretrained("A-dung-ng31/roberta-base-coco-NER", device_map="auto") - Notebooks
- Google Colab
- Kaggle
roberta-base-coco-NER
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.0521
- Precision: 0.9788
- Recall: 0.9762
- F1: 0.9775
- Accuracy: 0.9876
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: 1e-05
- train_batch_size: 16
- eval_batch_size: 16
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 5
Training results
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|---|---|---|
| 0.1156 | 1.0 | 2721 | 0.1158 | 0.9372 | 0.9504 | 0.9437 | 0.9644 |
| 0.0906 | 2.0 | 5442 | 0.0985 | 0.9467 | 0.9530 | 0.9498 | 0.9691 |
| 0.0812 | 3.0 | 8163 | 0.0968 | 0.9504 | 0.9562 | 0.9533 | 0.9702 |
| 0.0694 | 4.0 | 10884 | 0.0962 | 0.9499 | 0.9559 | 0.9529 | 0.9705 |
| 0.067 | 5.0 | 13605 | 0.0970 | 0.9515 | 0.9567 | 0.9541 | 0.9711 |
Framework versions
- Transformers 4.41.1
- Pytorch 2.0.1+cu117
- Datasets 2.17.1
- Tokenizers 0.19.1
- Downloads last month
- 6
Model tree for A-dung-ng31/roberta-base-coco-NER
Base model
FacebookAI/roberta-base