Instructions to use namesarnav/causalbench_math-bert-base-uncased with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use namesarnav/causalbench_math-bert-base-uncased with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="namesarnav/causalbench_math-bert-base-uncased")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("namesarnav/causalbench_math-bert-base-uncased") model = AutoModelForSequenceClassification.from_pretrained("namesarnav/causalbench_math-bert-base-uncased", device_map="auto") - Notebooks
- Google Colab
- Kaggle
causalbench_math-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.3350
- Accuracy: 0.8996
- Macro F1: 0.8171
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 |
|---|---|---|---|---|---|
| 0.3738 | 1.0 | 645 | 0.2861 | 0.8829 | 0.7492 |
| 0.2658 | 2.0 | 1290 | 0.2717 | 0.8981 | 0.7923 |
| 0.2331 | 3.0 | 1935 | 0.2583 | 0.8977 | 0.8137 |
| 0.1622 | 4.0 | 2580 | 0.3348 | 0.8996 | 0.8171 |
| 0.1297 | 5.0 | 3225 | 0.3604 | 0.8992 | 0.8141 |
Framework versions
- Transformers 5.17.0
- Pytorch 2.14.0
- Datasets 3.6.0
- Tokenizers 0.23.2
- Downloads last month
- -
Model tree for namesarnav/causalbench_math-bert-base-uncased
Base model
google-bert/bert-base-uncased