Instructions to use bjbjbj/classifier-chapter4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bjbjbj/classifier-chapter4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="bjbjbj/classifier-chapter4")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("bjbjbj/classifier-chapter4") model = AutoModelForSequenceClassification.from_pretrained("bjbjbj/classifier-chapter4", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files- README.md +9 -9
- model.safetensors +1 -1
README.md
CHANGED
|
@@ -19,9 +19,9 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 19 |
|
| 20 |
This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on an unknown dataset.
|
| 21 |
It achieves the following results on the evaluation set:
|
| 22 |
-
- Loss: 0.
|
| 23 |
-
- Accuracy: 0.
|
| 24 |
-
- F1: 0.
|
| 25 |
|
| 26 |
## Model description
|
| 27 |
|
|
@@ -44,7 +44,7 @@ The following hyperparameters were used during training:
|
|
| 44 |
- train_batch_size: 32
|
| 45 |
- eval_batch_size: 32
|
| 46 |
- seed: 42
|
| 47 |
-
- optimizer:
|
| 48 |
- lr_scheduler_type: linear
|
| 49 |
- num_epochs: 2
|
| 50 |
|
|
@@ -52,13 +52,13 @@ The following hyperparameters were used during training:
|
|
| 52 |
|
| 53 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|
| 54 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|
|
| 55 |
-
| No log | 1.0 | 313 | 0.
|
| 56 |
-
| 0.
|
| 57 |
|
| 58 |
|
| 59 |
### Framework versions
|
| 60 |
|
| 61 |
-
- Transformers 4.
|
| 62 |
- Pytorch 2.5.1
|
| 63 |
-
- Datasets 2.
|
| 64 |
-
- Tokenizers 0.20.
|
|
|
|
| 19 |
|
| 20 |
This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on an unknown dataset.
|
| 21 |
It achieves the following results on the evaluation set:
|
| 22 |
+
- Loss: 0.2407
|
| 23 |
+
- Accuracy: 0.9251
|
| 24 |
+
- F1: 0.9251
|
| 25 |
|
| 26 |
## Model description
|
| 27 |
|
|
|
|
| 44 |
- train_batch_size: 32
|
| 45 |
- eval_batch_size: 32
|
| 46 |
- seed: 42
|
| 47 |
+
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 48 |
- lr_scheduler_type: linear
|
| 49 |
- num_epochs: 2
|
| 50 |
|
|
|
|
| 52 |
|
| 53 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|
| 54 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|
|
| 55 |
+
| No log | 1.0 | 313 | 0.2599 | 0.9108 | 0.9106 |
|
| 56 |
+
| 0.2944 | 2.0 | 626 | 0.2407 | 0.9251 | 0.9251 |
|
| 57 |
|
| 58 |
|
| 59 |
### Framework versions
|
| 60 |
|
| 61 |
+
- Transformers 4.46.3
|
| 62 |
- Pytorch 2.5.1
|
| 63 |
+
- Datasets 2.16.1
|
| 64 |
+
- Tokenizers 0.20.3
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 437964800
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f22e7ada715f3cf4b74b4e2cbee4e3c0efdef2f18e0d79b5e7524d3abc8bc5c5
|
| 3 |
size 437964800
|