Text Classification
Transformers
Safetensors
distilbert
Generated from Trainer
text-embeddings-inference
Instructions to use rngrye/my-document-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rngrye/my-document-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="rngrye/my-document-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("rngrye/my-document-classifier") model = AutoModelForSequenceClassification.from_pretrained("rngrye/my-document-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update results on README
Browse files
README.md
CHANGED
|
@@ -130,7 +130,24 @@ Use the code below to get started with the model.
|
|
| 130 |
|
| 131 |
### Results
|
| 132 |
|
| 133 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 134 |
|
| 135 |
#### Summary
|
| 136 |
|
|
|
|
| 130 |
|
| 131 |
### Results
|
| 132 |
|
| 133 |
+
|
| 134 |
+
Epoch Training Loss Validation Loss Accuracy F1
|
| 135 |
+
1 0.073100 0.090870 0.982063 0.981749
|
| 136 |
+
2 0.034800 0.070832 0.986547 0.986532
|
| 137 |
+
3 0.010100 0.066102 0.991031 0.991009
|
| 138 |
+
4 0.002600 0.082557 0.986547 0.986532
|
| 139 |
+
5 0.001200 0.078924 0.986547 0.986532
|
| 140 |
+
|
| 141 |
+
TrainOutput(global_step=560, training_loss=0.02437255925365857, metrics={'train_runtime': 496.0245, 'train_samples_per_second': 17.943, 'train_steps_per_second': 1.129, 'total_flos': 1179022923264000.0, 'train_loss': 0.02437255925365857, 'epoch': 5.0})
|
| 142 |
+
|
| 143 |
+
Test set evaluation results:
|
| 144 |
+
eval_loss: 0.0272
|
| 145 |
+
eval_accuracy: 0.9910
|
| 146 |
+
eval_f1: 0.9910
|
| 147 |
+
eval_runtime: 3.8344
|
| 148 |
+
eval_samples_per_second: 57.8970
|
| 149 |
+
eval_steps_per_second: 3.6510
|
| 150 |
+
epoch: 5.0000
|
| 151 |
|
| 152 |
#### Summary
|
| 153 |
|