Instructions to use AbrarAbhinaya/bert-news-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AbrarAbhinaya/bert-news-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="AbrarAbhinaya/bert-news-classification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("AbrarAbhinaya/bert-news-classification") model = AutoModelForSequenceClassification.from_pretrained("AbrarAbhinaya/bert-news-classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
bert-news-classification
This model is a fine-tuned version of bert-base-uncased on the None dataset. It achieves the following results on the evaluation set:
- Loss: 1.0563
- Accuracy: 0.7189
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: 16
- eval_batch_size: 16
- seed: 42
- 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: 3
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 1.0271 | 1.0 | 10477 | 1.1025 | 0.6758 |
| 0.7183 | 2.0 | 20954 | 0.9734 | 0.7187 |
| 0.3972 | 3.0 | 31431 | 1.0563 | 0.7189 |
Framework versions
- Transformers 4.55.1
- Pytorch 2.6.0+cu124
- Datasets 4.0.0
- Tokenizers 0.21.4
- Downloads last month
- 12
Model tree for AbrarAbhinaya/bert-news-classification
Base model
google-bert/bert-base-uncased