Instructions to use nicodebtno/bert_polite with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nicodebtno/bert_polite with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="nicodebtno/bert_polite")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("nicodebtno/bert_polite") model = AutoModelForSequenceClassification.from_pretrained("nicodebtno/bert_polite", device_map="auto") - Notebooks
- Google Colab
- Kaggle
bert_polite
This model is a fine-tuned version of google-bert/bert-base-uncased on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.3514
- Precision: 0.9381
- Recall: 0.9192
- F1: 0.9286
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: 2.7407785176271274e-05
- train_batch_size: 4
- eval_batch_size: 8
- seed: 42
- gradient_accumulation_steps: 2
- total_train_batch_size: 8
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- num_epochs: 4
Training results
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 |
|---|---|---|---|---|---|---|
| No log | 1.0 | 100 | 0.4699 | 0.9540 | 0.8384 | 0.8925 |
| No log | 2.0 | 200 | 0.3724 | 0.8952 | 0.9495 | 0.9216 |
| No log | 3.0 | 300 | 0.2953 | 0.9231 | 0.9697 | 0.9458 |
| No log | 4.0 | 400 | 0.3514 | 0.9381 | 0.9192 | 0.9286 |
Framework versions
- Transformers 4.46.2
- Pytorch 2.6.0+cu124
- Datasets 3.3.2
- Tokenizers 0.20.3
- Downloads last month
- 10
Model tree for nicodebtno/bert_polite
Base model
google-bert/bert-base-uncased