Instructions to use Saggarwal/token_bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Saggarwal/token_bert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Saggarwal/token_bert")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Saggarwal/token_bert") model = AutoModelForTokenClassification.from_pretrained("Saggarwal/token_bert") - Notebooks
- Google Colab
- Kaggle
token_bert
This model is a fine-tuned version of distilbert/distilbert-base-uncased on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.1276
- Precision: 0.9566
- Recall: 0.9413
- F1: 0.9489
- Accuracy: 0.9646
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: 16
- eval_batch_size: 16
- seed: 42
- optimizer: Use OptimizerNames.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 | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|---|---|---|
| No log | 1.0 | 375 | 0.1713 | 0.9543 | 0.9195 | 0.9366 | 0.9535 |
| 0.3476 | 2.0 | 750 | 0.1324 | 0.9509 | 0.9395 | 0.9452 | 0.9622 |
| 0.1397 | 3.0 | 1125 | 0.1276 | 0.9566 | 0.9413 | 0.9489 | 0.9646 |
Framework versions
- Transformers 5.13.1
- Pytorch 2.13.0+cpu
- Datasets 5.0.0
- Tokenizers 0.22.2
- Downloads last month
- 171
Model tree for Saggarwal/token_bert
Base model
distilbert/distilbert-base-uncased