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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
license: apache-2.0
|
| 4 |
-
base_model:
|
| 5 |
tags:
|
| 6 |
- generated_from_trainer
|
| 7 |
metrics:
|
|
@@ -17,11 +17,11 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 17 |
|
| 18 |
# classifier-chapter4
|
| 19 |
|
| 20 |
-
This model is a fine-tuned version of [
|
| 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
|
| 64 |
-
- Tokenizers 0.20.
|
|
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
license: apache-2.0
|
| 4 |
+
base_model: distilbert/distilbert-base-uncased
|
| 5 |
tags:
|
| 6 |
- generated_from_trainer
|
| 7 |
metrics:
|
|
|
|
| 17 |
|
| 18 |
# classifier-chapter4
|
| 19 |
|
| 20 |
+
This model is a fine-tuned version of [distilbert/distilbert-base-uncased](https://huggingface.co/distilbert/distilbert-base-uncased) on an unknown dataset.
|
| 21 |
It achieves the following results on the evaluation set:
|
| 22 |
+
- Loss: 0.2417
|
| 23 |
+
- Accuracy: 0.9197
|
| 24 |
+
- F1: 0.9198
|
| 25 |
|
| 26 |
## Model description
|
| 27 |
|
|
|
|
| 44 |
- train_batch_size: 32
|
| 45 |
- eval_batch_size: 32
|
| 46 |
- seed: 42
|
| 47 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 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.2637 | 0.9137 | 0.9135 |
|
| 56 |
+
| 0.3064 | 2.0 | 626 | 0.2417 | 0.9197 | 0.9198 |
|
| 57 |
|
| 58 |
|
| 59 |
### Framework versions
|
| 60 |
|
| 61 |
+
- Transformers 4.45.2
|
| 62 |
- Pytorch 2.5.1
|
| 63 |
+
- Datasets 3.1.0
|
| 64 |
+
- Tokenizers 0.20.1
|