Instructions to use Abelex/english-news-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Abelex/english-news-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Abelex/english-news-model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Abelex/english-news-model") model = AutoModelForSequenceClassification.from_pretrained("Abelex/english-news-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
english-news-model
This model is a fine-tuned version of bert-base-cased on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.2400
- Accuracy: 0.9701
- Macro Precision: 0.9715
- Macro Recall: 0.9687
- Macro F1: 0.9698
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: 3e-05
- train_batch_size: 1
- eval_batch_size: 2
- 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 | Accuracy | Macro Precision | Macro Recall | Macro F1 |
|---|---|---|---|---|---|---|---|
| 0.5532 | 1.0 | 1557 | 0.2361 | 0.9671 | 0.9712 | 0.9662 | 0.9682 |
| 0.1444 | 2.0 | 3114 | 0.2396 | 0.9671 | 0.9653 | 0.9679 | 0.9661 |
| 0.0831 | 3.0 | 4671 | 0.2423 | 0.9701 | 0.9699 | 0.9693 | 0.9695 |
| 0.0473 | 4.0 | 6228 | 0.2022 | 0.9760 | 0.9749 | 0.9750 | 0.9748 |
| 0.0344 | 5.0 | 7785 | 0.2557 | 0.9731 | 0.9726 | 0.9725 | 0.9724 |
Framework versions
- Transformers 4.45.0
- Pytorch 2.10.0+cu128
- Datasets 4.6.1
- Tokenizers 0.20.3
- Downloads last month
- 9
Model tree for Abelex/english-news-model
Base model
google-bert/bert-base-cased