Instructions to use namesarnav/ac-reason-bert-base-uncased with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use namesarnav/ac-reason-bert-base-uncased with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="namesarnav/ac-reason-bert-base-uncased")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("namesarnav/ac-reason-bert-base-uncased") model = AutoModelForSequenceClassification.from_pretrained("namesarnav/ac-reason-bert-base-uncased", device_map="auto") - Notebooks
- Google Colab
- Kaggle
ac-reason-bert-base-uncased
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: 0.2518
- Accuracy: 0.952
- Macro F1: 0.952
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: 32
- 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
- lr_scheduler_warmup_steps: 100
- num_epochs: 5
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Macro F1 |
|---|---|---|---|---|---|
| No log | 1.0 | 188 | 0.2954 | 0.899 | 0.8990 |
| No log | 2.0 | 376 | 0.2971 | 0.88 | 0.8787 |
| 0.3353 | 3.0 | 564 | 0.2329 | 0.934 | 0.9339 |
| 0.3353 | 4.0 | 752 | 0.2518 | 0.952 | 0.952 |
| 0.3353 | 5.0 | 940 | 0.2732 | 0.943 | 0.9430 |
Framework versions
- Transformers 5.17.0
- Pytorch 2.14.0+cu130
- Datasets 3.6.0
- Tokenizers 0.23.2
- Downloads last month
- 54
Model tree for namesarnav/ac-reason-bert-base-uncased
Base model
google-bert/bert-base-uncased